So I have a project I am trying to build but still learning about the Picaxe software programming.
I am just getting into programming and someone had pointed me to this Picaxe IC chip for my project.
Theres alot to learn about it obviously but needing alot of help
I attempted to start to write some of the programming which sort of works but not really ha
Ive drawn out a schematic of what I'm building and need some help
Basically I need C.1 to always be high.
Between C.1 and C.2 will be a LDR sensor. A laser will always be pointing at this.
When the light in broken it should set C.2 as a high.
When C.2 is high I need it to activate C.4 as a high which will turn a relay on for about 15 seconds.
After 15 seconds, I need it to make C.4 and C.2 as a low again which will turn off the relay and start over again.
This is how far I somewhat got...
main:
high b.1
if input2 = 1 then high 4 endif
if input2 = 0 then low 4 endif
LDR:
wait 3
if input4 = 1 then low 4 low 2 endif
goto main
I am just getting into programming and someone had pointed me to this Picaxe IC chip for my project.
Theres alot to learn about it obviously but needing alot of help
I attempted to start to write some of the programming which sort of works but not really ha
Ive drawn out a schematic of what I'm building and need some help
Basically I need C.1 to always be high.
Between C.1 and C.2 will be a LDR sensor. A laser will always be pointing at this.
When the light in broken it should set C.2 as a high.
When C.2 is high I need it to activate C.4 as a high which will turn a relay on for about 15 seconds.
After 15 seconds, I need it to make C.4 and C.2 as a low again which will turn off the relay and start over again.
This is how far I somewhat got...
main:
high b.1
if input2 = 1 then high 4 endif
if input2 = 0 then low 4 endif
LDR:
wait 3
if input4 = 1 then low 4 low 2 endif
goto main
![](/forums/proxy.php?image=http%3A%2F%2Fi1111.photobucket.com%2Falbums%2Fh462%2Firishluck09%2FGuardian%2520Schematic_zpsbjqhnksv.jpg&hash=ae20deadbdb2034d709ad79f5ee213ae)