Hacking Cool things
          With
     Microcontrollers!
Mitch Altman
   
Chief Scientist, Cornfield Electronics, San Fran...
I Love My Job!
Why make cool things with
   Microcontrollers?
Why make cool things with
           Microcontrollers?
Microcontrollers are fun to play with




And anyone can learn…
Examples of Cool Microcontroller Projects
               (in my opinion)




                                   TV-B-Gone ...
Examples of Cool Microcontroller Projects
                     (in my opinion)




   MiniPOV3 kit                        ...
Examples of Cool Microcontroller Projects
                (in my opinion)




              Mignonnette Game kit
Examples of Cool Microcontroller Projects
                (in my opinion)




              Trippy RGB Waves kit
What is a Microcontroller?
What is a Microcontroller?

A complete computer on a chip (with a little extra stuff)


                                  ...
What Does a Microcontroller Do?

         Like all computers:


           Fetch Instruction


          Execute Instructi...
How to Make Cool Things with
      Microcontrollers

       •  Idea

       •  Hardware

       •  Firmware

       •  Coo...
Hello World

              Make an LED blink
Hello World – Hardware
          Battery +




                          Resistor   LED
        Microcontroller           ...
Hello World – Digression:
         (Very) Basic Electronics Lesson
Electronics: electrons flowing through wires and parts
...
Hello World – Firmware

   Assign a value to a variable:

        Software:      X = 00000001

        Firmware:      X = ...
Hello World – Firmware

   Changing an output pin:



                  PortA = 00000001

                  PortA = 000000...
Hello World – Firmware

   Changing an output pin (using manual delay):



                  PortA = 00000001

           ...
Hello World – Firmware

   Changing an output pin (using hardware timer):


               Main:
                  Call In...
Hello World – Firmware
           Advanced topic:

           Changing an output pin (using interrupts):


               ...
Hello World – programming your chip

   Use software on your computer
         Text Editor
         Compiler
         Prog...
Real Project: Ladyada’s MiniPOV3
Just like “Hello World”,
       but 8 LEDs and different timing




                     ...
Hacking! :
               The easy way
to make your cool microcontroller projects
Hacking!
   TV-B-Gone from MiniPOV3 kit
Hacking!
 TV-B-Gone Kit from MiniPOV3 hack
Hacking!
 TV-B-Gone Pro from TV-B-Gone Kit
Hacking!
     Trippy RGB Light from MiniPOV3 kit




             ...             ...   1/2 brightness
  Pulse
  Width    ...
Hacking!
Trippy RGB Waves kit from Trippy RGB Light




                         IR detector causes
                      ...
Hacking!
  Solar BugBot from MiniPOV3 kit
Hacking!
    LED Cube from MiniPOV3 kit




                 (First NYC Resistor Project)
Hacking!
           Brain Machine from MiniPOV3 kit




            Synchronizes your brain to a desired brainwave sequenc...
Brain Machine
Video by Bre Pettis
What’s It Like?
Come by the Workshop
      Hardware Hacking Area
Microcontrollers are fun to play with




And anyone can learn!
Q&A
Hacking Cool things
          With
     Microcontrollers!
Mitch Altman
   
Chief Scientist, Cornfield Electronics, San Fran...
Upcoming SlideShare
Loading in...5
×

Hardware Hacking area: Make Cool Things with Microcontrollers (and learn to solder)

10,230

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
10,230
On Slideshare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
150
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Hardware Hacking area: Make Cool Things with Microcontrollers (and learn to solder)

  1. 1. Hacking Cool things With Microcontrollers! Mitch Altman Chief Scientist, Cornfield Electronics, San Francisco, CA USA Author of The Brain Machine in MAKE Magazine #10 Inventor of TV-B-Gone universal remote control email: mitch@CornfieldElectronics.com site: www.CornfieldElectronics.com Codebits November 14, 2008
  2. 2. I Love My Job!
  3. 3. Why make cool things with Microcontrollers?
  4. 4. Why make cool things with Microcontrollers? Microcontrollers are fun to play with And anyone can learn…
  5. 5. Examples of Cool Microcontroller Projects (in my opinion) TV-B-Gone Kit TV-B-Gone TV-B-Gone Pro
  6. 6. Examples of Cool Microcontroller Projects (in my opinion) MiniPOV3 kit Solar BugBot The Brain Machine LED Cube Trippy RGB Light
  7. 7. Examples of Cool Microcontroller Projects (in my opinion) Mignonnette Game kit
  8. 8. Examples of Cool Microcontroller Projects (in my opinion) Trippy RGB Waves kit
  9. 9. What is a Microcontroller?
  10. 10. What is a Microcontroller? A complete computer on a chip (with a little extra stuff) RAM Program Processor Memory Inputs Input/Output Outputs Timers
  11. 11. What Does a Microcontroller Do? Like all computers: Fetch Instruction Execute Instruction Repeat forever (till power goes off)
  12. 12. How to Make Cool Things with Microcontrollers •  Idea •  Hardware •  Firmware •  Coolness!
  13. 13. Hello World Make an LED blink
  14. 14. Hello World – Hardware Battery + Resistor LED Microcontroller Battery - Battery -
  15. 15. Hello World – Digression: (Very) Basic Electronics Lesson Electronics: electrons flowing through wires and parts (sorta like water flowing through pipes) Current -- speed of electrons flowing Battery -- like a pump pushing electrons Resistor -- like a kink in a pipe, slows down electrons Diode -- one-way valve for current LED -- special diode: emit photons when current flows Transistor -- remotely controlled switch Microcontroller -- zillions of transistors!
  16. 16. Hello World – Firmware Assign a value to a variable: Software: X = 00000001 Firmware: X = 00000001
  17. 17. Hello World – Firmware Changing an output pin: PortA = 00000001 PortA = 00000000
  18. 18. Hello World – Firmware Changing an output pin (using manual delay): PortA = 00000001 Call Delay PortA = 00000000 ----------- Delay: Count = 0 Wait: Count = Count + 1 If Count < 10,000 goto wait Return
  19. 19. Hello World – Firmware Changing an output pin (using hardware timer): Main: Call Init PortA = 00000001 Call Delay PortA = 00000000 Sleep ----------- Delay: Timer0 = 60,000 Wait: If Timer0flag = 0 goto wait Return
  20. 20. Hello World – Firmware Advanced topic: Changing an output pin (using interrupts): Main: Call Init PortA = 00000001 Call Delay PortA = 00000000 Sleep ----------- ISR: Delay: TimeFlag=1 Timer0 = 60,000 Wait: Return If TimeFlag = 0 goto wait Return
  21. 21. Hello World – programming your chip Use software on your computer Text Editor Compiler Programmer Specific software Depends on your microcontroller PIC, AVR, etc. Need hardware programmer (often very cheap)
  22. 22. Real Project: Ladyada’s MiniPOV3 Just like “Hello World”, but 8 LEDs and different timing Etc…
  23. 23. Hacking! : The easy way to make your cool microcontroller projects
  24. 24. Hacking! TV-B-Gone from MiniPOV3 kit
  25. 25. Hacking! TV-B-Gone Kit from MiniPOV3 hack
  26. 26. Hacking! TV-B-Gone Pro from TV-B-Gone Kit
  27. 27. Hacking! Trippy RGB Light from MiniPOV3 kit ... ... 1/2 brightness Pulse Width ... ... 1/4 brightness Modulation (PWM) ... ... min brightness
  28. 28. Hacking! Trippy RGB Waves kit from Trippy RGB Light IR detector causes interrupt when it sees IR reflecting from your hand
  29. 29. Hacking! Solar BugBot from MiniPOV3 kit
  30. 30. Hacking! LED Cube from MiniPOV3 kit (First NYC Resistor Project)
  31. 31. Hacking! Brain Machine from MiniPOV3 kit Synchronizes your brain to a desired brainwave sequence (and hallucinate along the way!) WARNING: Blinking lights are not good for people with epilepsy
  32. 32. Brain Machine
  33. 33. Video by Bre Pettis What’s It Like?
  34. 34. Come by the Workshop Hardware Hacking Area Microcontrollers are fun to play with And anyone can learn!
  35. 35. Q&A
  36. 36. Hacking Cool things With Microcontrollers! Mitch Altman Chief Scientist, Cornfield Electronics, San Francisco, CA USA Author of The Brain Machine in MAKE Magazine #10 Inventor of TV-B-Gone universal remote control email: mitch@CornfieldElectronics.com site: www.CornfieldElectronics.com Codebits November 14, 2008
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×