Rocket Timer circuit causes BS1 to drop command line.
yuright
Posts: 13
I have included the code and a PNG with the schematic. This is a simple rocket parachute timer. At launch a momentary switch sets pin 6 low and starts the timer program. Pin 7 is set as an input with 0 written to it. After the delay, pin 7 is set as an output and holds it for 6 seconds then goes back to being an input. I have a 3k pull up res on the primary N Chan Mosfet which effectively keeps the igniter mosfet low. When 7 goes low it grounds the primary mosfet which ungrounds the gate on the igniter mosfet allowing it to close and fire the parachute charge.
I am using 2 cell Lipo batteries to power the circuit about 8.4 volts. The odd thing is when I use one battery which has around 1000mah capacity the circuit works fine. If I use the 850mah battery the program crashes when it gets hit with the load from the igniter. I have checked for a voltage drop but can't see anything with my meter. When I say it crashes what I mean is that it acts like a reset. Pin 7 won't hold low for the six seconds it just goes back to main immediately. One other thing is if I write a different program like low 7 pause 6000 the smaller battery works fine. Thanks
I am using 2 cell Lipo batteries to power the circuit about 8.4 volts. The odd thing is when I use one battery which has around 1000mah capacity the circuit works fine. If I use the 850mah battery the program crashes when it gets hit with the load from the igniter. I have checked for a voltage drop but can't see anything with my meter. When I say it crashes what I mean is that it acts like a reset. Pin 7 won't hold low for the six seconds it just goes back to main immediately. One other thing is if I write a different program like low 7 pause 6000 the smaller battery works fine. Thanks
txt
329B
Comments
' {$STAMP BS1}
' {$PBASIC 1.0}
' Chute Timer
high 7
Main:
DEBUG CLS
DEBUG " Looping thru Main "
IF PIN6 = 0 THEN Start_Time
IF PIN6 = 1 THEN Main
Start_Time:
DEBUG CLS
DEBUG " Start Timer! ", CR
PAUSE 8000
DEBUG " Kapow! "
low 7
PAUSE 6000
high 7
END
Humph! I wanted to keep the weight down. Oh well, what's the smallest battery I could run the Stamp on? I definitely don't want a lawn dart.
Note, Change 330uF cap to 1000uF. I tested this setup and it works every time.