Digital Input and Output with Arduino

My first project with Arduino; toggle between two LEDs using a switch. LED Toggle

Getting Started

I got the kit from the NYU Bookstore; no problems. It’s actually a nice kit, the Arduino itself, a breadboard, wires, resistors and other doodads. The only problem I had getting set up was getting the Arduino environment to recognise that the board was connected to the USB port. It took a couple of restarts for the USB driver to start working - I think this was because some other application or process was holding onto the use of a USB port. How and ever, all working now.

The Challenge

This is the second lab for week 1; it’s designed to demonstrate digital input (the position of a switch) and output (the lighting of one LED with the switch is off, or another when it’s on.

The Result

Wiring the circuit was a little fiddly; but I got there after a while. I made a few mistakes, but nothing that stepping through the circuit diagram didn’t solve. I am still not 100% sure I understand how the circuit works, but I’ll ask Tom to walk through it next week.

Here is the circuit working. It’s not sexy, but it works :)

  • Picture of Paul May
    Posted by Paul May  on  21st September 2010 at 4:55

    Just a quick test

A small photo of The Author with some lovely tea by way of a witty footer
Paul May is a researcher and designer from Dublin, Ireland; he is currently a student at NYU's Interactive Telecommunications Program (ITP). Feel free to directly (or you can use the contact form). You can also get him on twitter or flickr. Paul enjoys writing in the third person.