joshzstuff
New Member
Sorry for the wordy Title.
Target micro: Picaxe 08m2
I have an idea how I might be able to use 2 PicAxes in a surveillance application to immediately turn on/off the illumination circuit with the photo sensor input.
I only wish the light to start when 2 factors are true:
1) when the camera is recording
2) when the correct darkness level is sensed
I want the illumination to be able to start and stop during a recording (and remain off when not recording), so I wish to use an interrupt.
(The recording is triggered by a PIR sensor)
-monitors motion sensor
-starts/stops recording
Controller B:
-continuously monitors READADC [photo sensor]
-starts/stops illumination
-triggers if controller A is recording
It would be a simple matter if the interrupt could be triggered directly when the READADC reached a desired level.
Can I take advantage of the 08m2 multi-tasking and do this on a single chip?
Is there a way to get the attention of the program for this event immediately?
(Perhaps do I need to burn an input [leg 2 or 4] and program it to catch the attention of the interrupt?)
[I wish I had more outputs, I would consider moving to a 14m2 if it would open up better options]
I'm pretty sure I can dedicate a process thread to reading the analog sensor, but how can I interface the camera-side of my program?
Thanks for your input!
Target micro: Picaxe 08m2
I have an idea how I might be able to use 2 PicAxes in a surveillance application to immediately turn on/off the illumination circuit with the photo sensor input.
I only wish the light to start when 2 factors are true:
1) when the camera is recording
2) when the correct darkness level is sensed
I want the illumination to be able to start and stop during a recording (and remain off when not recording), so I wish to use an interrupt.
(The recording is triggered by a PIR sensor)
2 Micro method
Controller A:-monitors motion sensor
-starts/stops recording
Controller B:
-continuously monitors READADC [photo sensor]
-starts/stops illumination
-triggers if controller A is recording
It would be a simple matter if the interrupt could be triggered directly when the READADC reached a desired level.
1 Micro/ multi-task solution . . ?
Can I take advantage of the 08m2 multi-tasking and do this on a single chip?
Is there a way to get the attention of the program for this event immediately?
(Perhaps do I need to burn an input [leg 2 or 4] and program it to catch the attention of the interrupt?)
[I wish I had more outputs, I would consider moving to a 14m2 if it would open up better options]
I'm pretty sure I can dedicate a process thread to reading the analog sensor, but how can I interface the camera-side of my program?
Thanks for your input!