Basic Stamp 1 Project Board problems
Hello, recently I bought a Basic Stamp 1 Project Board. I have been testing it and experimenting with it a lot.
The problem is that it shuts down and I can't start it so easily after that. I wrote a program than receives signals from a remote-control and I am using it for turning lights on and off. But when I leave the Basic Stamp running the program over night it shuts down or crashes or something. The red light that indicates that it is on doesn't lit either.
Now I wonder why The Basic Stamp 1 shuts down/crashes?
(Sorry for my bad English)
Post Edited (Exige) : 10/30/2006 8:11:08 PM GMT
The problem is that it shuts down and I can't start it so easily after that. I wrote a program than receives signals from a remote-control and I am using it for turning lights on and off. But when I leave the Basic Stamp running the program over night it shuts down or crashes or something. The red light that indicates that it is on doesn't lit either.
Now I wonder why The Basic Stamp 1 shuts down/crashes?
(Sorry for my bad English)
Post Edited (Exige) : 10/30/2006 8:11:08 PM GMT

Comments
Please , try to give us more information. Try posting a sample of your conections and your code. will be much easier to help.
Amaral.
' {$STAMP BS1} SYMBOL irpulse = W2 SYMBOL remotecode = B0 SYMBOL timer = B2 SYMBOL effekt = BIT8 HIGH 6 'Gives power to the Ir-sensor irstart: PULSIN 5, 0, irpulse IF irpulse > 80 THEN loop 'Thigns to do all the time. PULSOUT 3, 1000 IF effekt <> 1 THEN irstart timer = timer + 1 IF timer = 1 THEN led1on IF timer = 2 OR timer = 6 THEN led2on IF timer = 3 OR timer = 5 THEN led3on IF timer = 4 THEN led4on GOTO irstart loop: remotecode = 0 HIGH 3 PULSIN 5, 0, irpulse IF irpulse < 100 THEN c1 BIT0 = 1 c1:PULSIN 5, 0, irpulse IF irpulse < 100 THEN c2 BIT1 = 1 c2:PULSIN 5, 0, irpulse IF irpulse < 100 THEN c3 BIT2 = 1 c3:PULSIN 5, 0, irpulse IF irpulse < 100 THEN c4 BIT3 = 1 c4:PULSIN 5, 0, irpulse IF irpulse < 100 THEN c5 BIT4 = 1 c5:PULSIN 5, 0, irpulse IF irpulse < 100 THEN c6 BIT5 = 1 c6:PULSIN 5, 0, irpulse IF irpulse < 100 THEN c7 BIT6 = 1 c7:PULSIN 5, 0, irpulse IF irpulse < 100 THEN c8 BIT7 = 1 c8:LOW 3 'DEBUG remotecode 'Things to do if a button on the remote-control is pushed. IF remotecode = 138 OR remotecode = 203 THEN ledoff IF remotecode = 26 OR remotecode = 155 THEN ledon IF remotecode = 150 OR remotecode = 215 THEN oneledon IF remotecode <> 78 AND remotecode <> 206 THEN irstart effekt = 1 GOSUB beep GOTO irstart beep: SOUND 2,(63,10) SOUND 2,(111,10) RETURN led1on: HIGH 0 LOW 1 LOW 4 LOW 7 GOTO irstart led2on: HIGH 4 LOW 0 LOW 1 LOW 7 IF timer <> 6 THEN irstart timer = 0 GOTO irstart led3on: HIGH 1 LOW 0 LOW 4 LOW 7 GOTO irstart led4on: HIGH 7 LOW 0 LOW 4 LOW 1 GOTO irstart ledon: HIGH 0 HIGH 1 HIGH 4 HIGH 7 effekt = 0 GOSUB beep GOTO irstart ledoff: LOW 0 LOW 1 LOW 4 LOW 7 effekt = 0 GOSUB beep GOTO irstart oneledon: LOW 0 LOW 1 LOW 7 HIGH 4 effekt = 0 GOSUB beep GOTO irstartThe program is working very good, but when I leave the Basic Stamp 1 running it over a night the red "Power" led doesn't lit. I don't think my connections is the problem just because i works fine for many hours.
' {$STAMP BS1} LOW 0 LOW 1 LOW 2 LOW 3 LOW 4 LOW 5 LOW 6 LOW 7 ENDThat must be the problem? The basic stamp 1 project board technical specifications say it should draw about 5 mA in sleep mode and 7 mA running. Is the board defect?
·
·· Where (at what point) are you measuring the current, before or after the voltage regulator?· Or are you feeding voltage into VIN?· I take it this program downloads okay?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Vin is before the regulator and Vdd is after?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
My power source is a 9-volt battery. I don't think the regulator should take so much current...
' {$STAMP BS1} ' {$PBASIC 1.0} Main: GOTO Main▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I wish my multimeter was faulty but sinse I have two different multimeters there is little chance that both would display the wrong current. For example one of my multimeters is displaying 0.062A.
So now I have two questions:
How could the current draw be about 10 times more on a 9 volt battery? (The 9 volt battery is actually rechargeable, if that makes any difference.)
And why can’t (my) basic stamp 1 project board be running more than a few hours before it stops/shuts down/crashes?
I am very grateful to any answers.
·
·· You listed a specific program that this is happening.· If you write a simple program to blink an LED does the Project Board stop running then?· Try a simple loop that runs continuously and blinks and LED and see what happens.·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
' {$STAMP BS1} Loop: HIGH 0 PAUSE 1000 LOW 0 PAUSE 1000 GOTO LoopBut I don't see why my program that remote controls leds stops running after some time.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Thank you Chris for helping me [noparse]:)[/noparse]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support