Programs won't run on Basic Stamp 2
Hi Everybody,
I am using a Basic Stamp 2 with a Super Carrier Board. I have soldered 16 LEDs onto the board, and i want to light up the LEDs one at a time in a sequence.
Everything seems to work fine for my BS2 (connecting to pc, downloading programs,etc.) until a certain point. The programs will never run after I have downloaded them. The Editor would even say the program was successfully downloaded.
Before I soldered any LEDs onto the board, I tried the program below (just by holding a LED onto the I/O pin)
main:
high 5
pause 1000
low 5
pause 1000
goto main
This worked fine, and I could see the LED blinking.
My problem is now, after I have soldered the LEDs on, programs will not run from the BS2.
I would be very grateful if someone could help me as I am new to this.
I am using a Basic Stamp 2 with a Super Carrier Board. I have soldered 16 LEDs onto the board, and i want to light up the LEDs one at a time in a sequence.
Everything seems to work fine for my BS2 (connecting to pc, downloading programs,etc.) until a certain point. The programs will never run after I have downloaded them. The Editor would even say the program was successfully downloaded.
Before I soldered any LEDs onto the board, I tried the program below (just by holding a LED onto the I/O pin)
main:
high 5
pause 1000
low 5
pause 1000
goto main
This worked fine, and I could see the LED blinking.
My problem is now, after I have soldered the LEDs on, programs will not run from the BS2.
I would be very grateful if someone could help me as I am new to this.
Comments
They DO make LED's with internal current limiting resistors -- hopefully, that's what you have.
Note, you cannot light all 16 LED's at the same time -- even WITH the proper current limiting resistor each LED takes about 12 mA, and the total current the BS2 can drive is about 40 mA. But you do say you're lighting them one at a time, so this shouldn't be an issue.
You don't say how you're powering the BS2 -- a 12 mA load will drain a 9-volt battery pretty quickly.
It's also possible you've put the LED's in backwards -- they only work when current flows from the Anode to the Cathode.
I am also using a 12v wall socket adapter.
DEBUG "Running", CR
at the start of your program. This then puts a message on your 'debug' terminal in the IDE that the program IS in fact running, despite not blinking the LED's.
If this is your own board, it's also possible you're holding the BS2 in 'RESET'. Is it your own board?
Since you are apparently now using a different PBASIC program than what you originally used, could you attach a copy of it, using the Download Manager, to your next post to this forum. Perhaps there is something in there which will give us a clue, and enable us to better assist you.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔