Hello Everyone!
I got a picaxe 28x1 and protoboard for christmass and this is my first project. I'm using a parallax PIR module.
See Video
and my code
Questions comments thoughts all welcome!
I got a picaxe 28x1 and protoboard for christmass and this is my first project. I'm using a parallax PIR module.
See Video
and my code
Code:
main:
b0 = 1
do 'pir warmup period
high 0 'turn on wiat led
pause 250
low 0
pause 250
b0 = b0 + 1
loop while b0 < 40
pause 10000 'pause for 10 seconds
low 0 'turn off wait led
setint %00000001, %00000001 'set interrupt
do
pause 2000 'wait
loop
interrupt:
b0 = 0
do
high 1
pause 500
low 1
pause 500
b0 = b0 + 1
loop while b0 < 10
high 0 'turn on wait led
pause 10000 'wait 10 seconds before restarting interrupt
low 0 ' turn off wait led
setint %00000001, %00000001 'turn interrupt back on
return