I Have 3 Pyroelectric Infrared PIR Motion Sensor Detector Modules what will be hooked a to the servo and the arduino. Everything will be fitted to a tripod and a digital camera fixed to the servo. I Already have the plans for that, but what i'm wanting to do is have the camera snap a picture when the servo stops.
This will be my motion detection trail cam. I Take photos of wildlife as a hobby, it doesn't matter if the animal tracks behind the camera because the camera will turn towards the animal and take a picture. But also will be used with paranormal team (yea, go ahead and laugh).
If it's physically moving the camera, I'd be concerned about how noisy the servo is likely to be. The servos I've used have all been quite noisy, and if yours is similar I suspect all you'd see is the tail end of something disappearing from sight.
PeterH:
If it's physically moving the camera, I'd be concerned about how noisy the servo is likely to be. The servos I've used have all been quite noisy, and if yours is similar I suspect all you'd see is the tail end of something disappearing from sight.
agreed. A stepper motor would be more appropriate I think.
Just to confirm, there is a way to command the camera to take pictures?
You're leaving out a lot of details. You want to snap a picture when the servo stops. What starts the servo, the PIR? And what do you need to trip the camera, a contact closure?
As a semi-professional nature photographer myself your project sounds interesting.
Rob
I Have a regular trail cams, but the quality of the photos are very poor, There is a trail that has a very nice back setting where I've seen big bucks. But the area is so dense that i can not set up a blind unless i do some clearing and that would do more harm in this spot than good.
PeterH:
If it's physically moving the camera, I'd be concerned about how noisy the servo is likely to be. The servos I've used have all been quite noisy, and if yours is similar I suspect all you'd see is the tail end of something disappearing from sight.
well, it's not one of those type servos, more like a remote control car engine that is VERY quite and makes no noise.
Rokkit:
You're leaving out a lot of details. You want to snap a picture when the servo stops. What starts the servo, the PIR? And what do you need to trip the camera, a contact closure?
Yes, the PIR will detect motion on one of the 3 PIR thats in a triangle with the motor in the center of the triangle.
First, i'm going to take apart an older digital camera (Kodak EasyShare CX6200 2MP Digital Camera) before i do this to one of my nikon's and solder to the button contacts (?) and hook the wires to the arduino.. This is that part i will need help on because i need to tell the arduino when one of the PIR's detects motion and the camera turns towards the motion and than stops, it should than takes a picture. After no motion it is detected, it will than reset the camera and wait for motion.
Is the Arduino controlling when the servo starts? If it is, a real simple solution is when the PIR triggers the Arduino start 2 outputs - one to start the servo, and the other to delay xx seconds then trigger a relay or transistor to snap the picture.
But also will be used with paranormal team (yea, go ahead and laugh).
Ha ha ha LOL XD. Actually everything was paranormal once so good luck in capturing and then explaining. I would be interested in the final result of this project particularly the electronic side, power the PIRs, triggering the camera and so on. So please post the final design and some photographs.
Rokkit:
Is the Arduino controlling when the servo starts? If it is, a real simple solution is when the PIR triggers the Arduino start 2 outputs - one to start the servo, and the other to delay xx seconds then trigger a relay or transistor to snap the picture.
Yes, the PIR will be connected to the Arduino and so will the motor..
But also will be used with paranormal team (yea, go ahead and laugh).
Ha ha ha LOL XD. Actually everything was paranormal once so good luck in capturing and then explaining. I would be interested in the final result of this project particularly the electronic side, power the PIRs, triggering the camera and so on. So please post the final design and some photographs.
LOL I Expected someone to laugh. My ghost hunting team wants 2 of them, so i guess i'm going to buy 2 more arduino and 2 more tripods if i get this to work how i want. They want 2 of these to attach a couple of handy cams to to record movement and since the cams will be recording at all times, no need for it to start recording on movement, just turn to the side where movement is detected.
I'm pissed off!! 1 out of 3 PIRs worked!!!! Tested each PIR with the arduino and only one worked!!
/*
* PIR sensor tester
*/
int ledPin = 13; // choose the pin for the LED
int inputPin = 2; // choose the input pin (for PIR sensor)
int pirState = LOW; // we start, assuming no motion detected
int val = 0; // variable for reading the pin status
void setup() {
pinMode(ledPin, OUTPUT); // declare LED as output
pinMode(inputPin, INPUT); // declare sensor as input
Serial.begin(9600);
}
void loop(){
val = digitalRead(inputPin); // read input value
if (val == HIGH) { // check if the input is HIGH
digitalWrite(ledPin, HIGH); // turn LED ON
if (pirState == LOW) {
// we have just turned on
Serial.println("Motion detected!");
// We only want to print on the output change, not state
pirState = HIGH;
}
} else {
digitalWrite(ledPin, LOW); // turn LED OFF
if (pirState == HIGH){
// we have just turned of
Serial.println("Motion ended!");
// We only want to print on the output change, not state
pirState = LOW;
}
}
}