Hi
After several attempts and lots of guidance thru the forum I have an ongoing issue with timer for my kontiki(baitlauncer torpedo)resetting. It works fine until its under load in the water then cuts out randomly. To test I fitted and independent 3v CR2032 button cell to the timer side(theres no room for anything bigger) and it went all the way no problems. It seems the motor current draw under load leaves the regulated side short maybe. I beefed up the capacitor to 2200uF as suggested here, included snubber across the relay. Attached is the schematic and code if I can get it into the right place.
There must be a way to maintain the supply as there are others on the market that work from the 12v supply
I did NOT do anything with the brownout setting,
Any suggestions appreciated
Steve
After several attempts and lots of guidance thru the forum I have an ongoing issue with timer for my kontiki(baitlauncer torpedo)resetting. It works fine until its under load in the water then cuts out randomly. To test I fitted and independent 3v CR2032 button cell to the timer side(theres no room for anything bigger) and it went all the way no problems. It seems the motor current draw under load leaves the regulated side short maybe. I beefed up the capacitor to 2200uF as suggested here, included snubber across the relay. Attached is the schematic and code if I can get it into the right place.
There must be a way to maintain the supply as there are others on the market that work from the 12v supply
I did NOT do anything with the brownout setting,
Any suggestions appreciated
Steve
Code:
setint %00001000, %00001000,c
main:
sertxd ("back at main ",13,10) 'message to PC
pause 50
high c.4 'fast flasing LED alerts ready mode
pause 50
low c.4
pause 50
high c.4
pause 50
low c.4
pause 50
high c.4
pause 50
low c.4
pause 50
high c.4
pause 50
low c.4
pause 50
wait 1
sertxd ("reading reed switch",13,10)
if pin1 =1 then fxtimerreadyA
if pin1 =0 then goto main
goto main
fxtimerreadyA: 'remove magnet fxtimerA will activate or keep it and move to fxtimerreadyB
for b0 = 1 to 5 'use b0 variable memory space for a loop flash 5 times
high C.4 'output pin C.4 on
pause 250
low C.4
pause 250
next b0
sertxd ("reading reed switch",13,10)
if pin1=1 then fxtimerreadyB
if pin1=0 then goto fxtimerA
fxtimerreadyB: 'remove magnet fxtimerB will activate or keep it and move to next timer
sertxd ("in fxtimerreadyB ",13,10)
for b3 = 1 to 5 'loop the LED
high C.4
pause 500
low C.4
pause 500
next b3
sertxd ("reading reed switch",13,10)
if pin1=1 then fxtimerreadyC
if pin1=0 then goto fxtimerB
fxtimerreadyC:
sertxd ("in fxtimerreadyC ",13,10)
for b5 = 1 to 5 'use variable b5 to loop LED
high C.4
pause 1000
low C.4
pause 1000
next b5
sertxd ("reading reed switch",13,10)
if pin1=1 then goto main
if pin1=0 then goto fxtimerC
fxtimerA: 'the first timer programme
sertxd ("in fxtimerA mode ",13,10)
high c.4 'LED stays on
high c.2 'activate transistor and so relay and motor
for b1 = 1 to 10 '10 loops
pause 60000 'wait 60 seconds
next b1
wait 1
low c.4
low c.2
sertxd ("finished timer ",13,10)
pause 500
goto main 'go back to main
fxtimerB:
sertxd ("in fxtimerB ",13,10)
high c.4
high c.2
for b1 = 1 to 20 '20 loops
pause 60000 'wait 60 seconds
next b1
wait 1
low c.4
low c.2
sertxd ("finished timer ",13,10)
wait 1
goto main
fxtimerC:
sertxd ("in fxtimerc ",13,10)
high c.4
high c.2
for b1 = 1 to 25 '25 loops
pause 60000 'wait 60 seconds
next b1
wait 1
low c.4
low c.2
sertxd ("finished timer ",13,10)
pause 500
wait 1
goto main
interrupt:
sertxd ("interrupting ",13,10)
if pin3 = 1 then interrupt 'if reed switch on pin3 is high(on)
low C.2
low c.4
wait 2
setint %00001000, %00001000
reset
goto main