Hardware Hacking area: Make Cool Things with Microcontrollers (and learn to solder)
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

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

  • 13,347 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
13,347
On Slideshare
13,214
From Embeds
133
Number of Embeds
7

Actions

Shares
Downloads
144
Comments
0
Likes
1

Embeds 133

http://codebits.sapo.pt 69
http://codebits.eu 25
http://www.slideshare.net 24
https://codebits.eu 10
http://www.slideee.com 3
http://209.85.173.132 1
https://www.linkedin.com 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 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. I Love My Job!
  • 3. Why make cool things with Microcontrollers?
  • 4. Why make cool things with Microcontrollers? Microcontrollers are fun to play with And anyone can learn…
  • 5. Examples of Cool Microcontroller Projects (in my opinion) TV-B-Gone Kit TV-B-Gone TV-B-Gone Pro
  • 6. Examples of Cool Microcontroller Projects (in my opinion) MiniPOV3 kit Solar BugBot The Brain Machine LED Cube Trippy RGB Light
  • 7. Examples of Cool Microcontroller Projects (in my opinion) Mignonnette Game kit
  • 8. Examples of Cool Microcontroller Projects (in my opinion) Trippy RGB Waves kit
  • 9. What is a Microcontroller?
  • 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. What Does a Microcontroller Do? Like all computers: Fetch Instruction Execute Instruction Repeat forever (till power goes off)
  • 12. How to Make Cool Things with Microcontrollers •  Idea •  Hardware •  Firmware •  Coolness!
  • 13. Hello World Make an LED blink
  • 14. Hello World – Hardware Battery + Resistor LED Microcontroller Battery - Battery -
  • 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. Hello World – Firmware Assign a value to a variable: Software: X = 00000001 Firmware: X = 00000001
  • 17. Hello World – Firmware Changing an output pin: PortA = 00000001 PortA = 00000000
  • 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. 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. 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. 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. Real Project: Ladyada’s MiniPOV3 Just like “Hello World”, but 8 LEDs and different timing Etc…
  • 23. Hacking! : The easy way to make your cool microcontroller projects
  • 24. Hacking! TV-B-Gone from MiniPOV3 kit
  • 25. Hacking! TV-B-Gone Kit from MiniPOV3 hack
  • 26. Hacking! TV-B-Gone Pro from TV-B-Gone Kit
  • 27. Hacking! Trippy RGB Light from MiniPOV3 kit ... ... 1/2 brightness Pulse Width ... ... 1/4 brightness Modulation (PWM) ... ... min brightness
  • 28. Hacking! Trippy RGB Waves kit from Trippy RGB Light IR detector causes interrupt when it sees IR reflecting from your hand
  • 29. Hacking! Solar BugBot from MiniPOV3 kit
  • 30. Hacking! LED Cube from MiniPOV3 kit (First NYC Resistor Project)
  • 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. Brain Machine
  • 33. Video by Bre Pettis What’s It Like?
  • 34. Come by the Workshop Hardware Hacking Area Microcontrollers are fun to play with And anyone can learn!
  • 35. Q&A
  • 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