This was a code I used that had the 5v exchanger I think. It used a remote array so that wouldnt fit your build but you might be able to see if it runs your exchanger.

Code:

'========================='DXG 125 Video Cam w/ Remote 940nm IR Arrays using the driveway alert for the transmitter/receiver, '5v exchanger runs off of a sister board, and sound amp. 'Amps + wire connects to C+ on the AIO'Amps - wire connects to SP on the AIO.'Transmitter + wire connects to S+ on the AIO'Transmitter - wire connects to S- on the AIO'Signal wire from exchanger connects to C.2 (phototransistor's collector)'125V's shuter/shutter common connect to PW and CM'125V's power/power common connect to F+ and F- (single channel opto needed in place of the MOC3023 was with appropriate jumpers)'Record times and delays can be changed under "time variables"'=========================

' Walktest length is 30 seconds' led will flash rapidly when motion is sensed during walktest' led will flash 4 times indication walktest is over

'=====================================================Main: ' Main loop that checks for a PIR event, charges slave, turns off the cam if in trail mode and increments counters & timers, then sleeps for 15 secs and does it all over again:'=====================================================

If PIR_Event = 1 Then GoSub PIR_INTService

' Turn off walk test if time is up If WlkTestFlag = 1 And WlkTestTime = 0 Then WlkTestFlag = 0 'turn off walk test If Time is up Byte_Var = 0 ' Flash LED to indicate walk test over For Byte_Var = 0 To 7 pause 400 Toggle LED_Out Next EndIf

PIR_Event = 0 ValidPIR = 0; +++++++ Now See how long the port is high ++++++++++++++ Byte_Var = 0 'clear the counter Do While Pinb.1= 1 'While the PIR is high (motion detected) Inc Byte_Var 'Inc our counter 'Pause 1 'un-comment for a longer period If Byte_Var >= 2 Then ValidPIR = 1 'flag the motion detected as valid Exit EndIf Loop

Who is online

Array

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum