curtis_1966
New Member
Guys I know this has been asked a million times already or its just a stupid question. I'm new to this picaxe, but I made a mistake in my program how do I fix the program on the chip.
Thanks guys
Thanks guys
Do you mean:Thanks guys for your help. I just reprogramed it with the picaxe downloader.
#Picaxe 14M2
symbol TENDA=C.0
symbol PIR_IN=pinB.5
symbol PIR_COUNT=b5
start0:
PAUSE 60000 'Delay for PIR to warm up
serout TENDA,4800,($EF); 'STOP mp3 module
pause 500
serout TENDA,4800,($E7); 'SET MP3 volume
pause 500
TESTIT:
Do : Loop Until PIR_IN=1 'PIR debounce code
Do
PIR_COUNT=PIR_COUNT+1*PIR_IN
Loop Until PIR_COUNT=10
PIR_COUNT=0
goto Routine
ROUTINE:
serout TENDA,4800,($01) 'Start playing first mp3
pause 65355 'Delay is length of audio track(Is there anyway to increase this since track is 3min. long)
for time=1 to 60 '60 is the number of seconds of retrigger delay(Can I increase this since track is 3min long)
pause 1000 'Pause for 1 second
next time
goto TESTIT 'Return to PIR testing to restart proces
start0:
for b1=1 to 60 'Delay for PIR to warm up
pause 1000
next b1
serout TENDA,4800, ($EF); 'STOP MP3 module
pause 500
serout TENDA,4800, ($E7); 'Set MP3 volume
pause 500
TESTIT:
Do : Loop Until PIR_IN=1 'PIR debounce code
Do
PIR_COUNT = PIR_COUNT + 1 * PIR_IN
Loop Until PIR_COUNT = 10
PIR_COUNT = 0
goto Routine
ROUTINE:
servo B.1,center
servo B.2,center1
servo B.3,center2
resume 1
resume 2
resume 3
serout TENDA,4800,($01) 'Start playing first mp3
for b2=1 to 149 'Delay is length of audio track
pause 1000
next b2
suspend 1
suspend 2
suspend 3
low B.1
low B.2
low B.3
for time = 1 to 180 'is the number of seconds of retrigger delay
pause 1000 'Pause for 1 sec
next time
goto TESTIT 'Return to PIR testing to restart process