So, my first lab assignment for Physical Computing was to wire up a breadboard with a switch, two LEDs, and program the board to toggle between the switches.
I had my circuit all set to go, verified my code and everything. However, when I uploaded the code to the microcontroller, I got a strange error message that read: avrdude:
stk500_recv(): programmer is not responding. There was also a blinking yellow light on the Arduino that seemed upset. And the lights on my breadboard were definitely not lighting up.
So, a helpful ITP student came to my rescue. After a bit of troubleshooting, Paul realized that my board was still set to Diecimila, and I’d forgotten to change the setting for this newer board.
So, with that problem solved, I rewired my circuit, uploaded the program to the Arduino, and was in business:
So, for the “Getting Creative” part of the assignment, I decided to keep my output the same, but make a switch out of some safety pins. Originally, I wanted the switch to be “on” when the safety pin was closed, but then I realized that the whole body of the pin was already connected, so the switch would always be on no matter what. Either that, or it would short circuit, so opted for Plan B.
I wrapped some wire around the end of the switches, and plugged the other end of the wire back into the breadboard in the same places as either side of the original switch. That was pretty much it. But feel free to take a look.
Oh yes, and here’s a link to the code, as well as the simple steps I followed.