Sunday, May 18, 2008

Arduino Simplicity Part II-b

Okay - now we're actually getting to wire something. Here's the circuit from the previous post on the protoshield. (When you see this on my learning lab, you'll see why I love my protoshield - even though I didn't do a very good job on it.)



Here's the breakdown of this:

  1. If you follow the instructions for putting together the protoshield, this is just a solder pad. I soldered a wire in here - some people break up a real female header into a single port and solder that so they can remove the wire. I'll just be careful and not let the wire short out when I'm not using it. The LED is connected to a resistor and ground on the other side.
  2. We connect the LED direct into PIN13 (outPin in the sketch). You should always put a resistor in front of an LED - this one already has one.
  3. This is digital PIN7 (inPin in the sketch)
  4. +5V - another neato thing about the protoshield is that it adds all these ground and +5V headers.
  5. This is the mess in the schematic where the T is - 3. is PIN7, 4 is +5V and there's the 100 Ω (brown-black-brown) resistor, and 7. goes to the button.
  6. The button - this is already hooked up to the resistor and ground
  7. Just like the LED's, I soldered a wire into the solder pad here, rather than a single female header.
  8. This is the 1k resistor connected to the LED and to ground.


So if you have a protoshield, wire it up, hook up the board to the USB, and upload the sketch. Good luck! In the next post, I'll show you how to wire the same thing up on a learning lab (yuck!)

0 comments: