Help! Chapter 2 in Robotics with the Boe-Bot - Blinking LEDs
niconiconico
Posts: 4
I feel so silly posting this really simple question, but I'm doing the exercises in chapter 2 of the book that came with my Boe-Bot kit, and I can't get the LEDs to light up. I followed the circuit schematic to wire up the board, and typed in the code provided in HighLowLed.bs2. However, while the debug string does pop up, the LED doesn't blink. I've tested it by moving different parts around the board, using a different battery, removing any indentation in the code, and even placing a debug statement in the loop in order to see if the information in the loop is actually looping (it is). I'm assuming it's my connections on the board, but I've tried all sorts of combinations to try to get it to work.
What are some common problems that arise with this exercise? Am I posting in the correct board? What could be the matter?
Here's what my code looks like:
I have the Board of Education board.
What are some common problems that arise with this exercise? Am I posting in the correct board? What could be the matter?
Here's what my code looks like:
' Robotics with the Boe-Bot - HighLowLed.bs2 ' Turn the LED connected to P13 on/off once every second. ' {$STAMP BS2} ' {$PBASIC 2.5} DEBUG "The LED light is blinking!" DO HIGH 13 PAUSE 500 LOW 13 PAUSE 500 LOOP
I have the Board of Education board.
Comments
- your wiring is incorrect (LEDs backwards, incorrect connections to pins or ground, etc)
- your resistors are incorrect (too high)
- your LEDs are bad
- your Stamp is damaged
Can you take a picture of your exact wiring setup and post it? It's hard to know much more w/o seeing what's going on.
Here's a picture of my setup:
(Sorry for the bad image. Cell phone photo.)
Since it's hard to see in this image, I have the longer ends of the LEDs in the white part of the board, and the shorter ends are in the black portion. The resistors are plugged into the white part as well as P12 and P13. Their bands are yellow, violet, brown, and gold.
If the LED lights up normally right away when you move the resistor to Vdd, then it is possible you have a bad pin on the Stamp (seems less likely though).
You used a resistor, correct? If not, the LED will probably burn out due to over current.
The "flat" spot on the side of the base of the LED should go to - (ground, Vss) and the other lead of the LED should go THROUGH A RESISTOR to + (5v, Vdd). If you do that, and you have 5v on your Vdd header sockets it seems very unlikely that every LED is bad. If you have hooked up the LEDs without resistors (either to a Stamp pin or to 5v power) then it is possible to burn the LED out very quickly.
From the pictures, it looks like the BOE-Bot should come with some red LEDs made with red plastic.
The BOE-Bot should also have two IR LEDs with clear plastic lenses.
niconiconico -- do you have any regular red or green or yellow LEDs lying around to test with?