This tutorial will show you How to use a PIR sensor with a ARDUINO board to make a motion detecting camera trigger (Trail Cam).
Click on video below for full tutorial…
Parts List:
#affiliate links#
SCHEMATIC:
ARDUINO Code:
#define pir 8
#define cam 2
int val;
void setup() {
pinMode(cam,OUTPUT);
pinMode(pir,INPUT);
}
void loop() {
val = digitalRead(pir);
if (val == HIGH)
{
digitalWrite(cam,HIGH);
delay(50);
digitalWrite(cam,LOW);
delay(10000);
}
delay(50);
}