Welcome Anonymous
Fledgling
Fledgling
It is currently Thu Jun 21, 2018 7:53 am

All times are



Post new topic Reply to topic  [ Array ]  Go to page Previous  1, 2, 3, 4
Author Message
PostPosted: Thu Jan 25, 2018 11:33 am 
Offline
Fledgling
Fledgling

Joined: Sun Jan 22, 2017 7:32 am
Posts: 51
Location: Liverpool
Thanks Casey I have put a 220 ohm resistor from pin 13 is this where I am going wrong.

Code:
int PIR_1 = 3;
int Opto_1 = 13;

void setup() {

  pinMode (PIR_1, INPUT);
  pinMode (Opto_1, OUTPUT);
}

void loop () {
  digitalWrite (Opto_1, LOW);

  int sensor_1 = digitalRead(PIR_1);
  if (sensor_1 == HIGH) {
    digitalWrite(Opto_1, HIGH);
    delay(100);
    digitalWrite(Opto_1, LOW);
    delay(3000);
    digitalWrite(Opto_1, HIGH);
    delay(100);
    digitalWrite(Opto_1, LOW);
    delay(6000);

  }
}


Thanks for advice much appreciated

_________________
It is said that it takes only a minute to find extraordinary people,an hour to appreciate them,a day to love them,but it takes a whole lifetime to forget them


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 25, 2018 1:38 pm 
Offline
Emperor
Emperor
User avatar

Joined: Tue Jun 17, 2014 4:24 pm
Posts: 745
Where does the resistor on 13 go?

Code looks ok- when the PIR sensor goes high to pin 3 it sends signal to pin 13 and fires 1 photo, 3 second pause, 2nd photo, 6 second pause.

1. Check the PIR output with a multimeter to be sure it is going high on movement.
2. If so, Hook pin 13 to an led to ensure you are getting the correct pulse per your sketch (pulse, 3-second pause, pulse, 6-second pause). If you are, then the problem is in the opto wiring. If you are getting weird blinking, then pin 2 is likely floating and you need to ground it with a resistor.

I am going to guess the issue is at the opto.

_________________
Casey

https://www.instagram.com/caseysmarttphoto/
http://www.caseysmartt.com


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 25, 2018 1:48 pm 
Offline
Fledgling
Fledgling

Joined: Sun Jan 22, 2017 7:32 am
Posts: 51
Location: Liverpool
Hi Casey the resistor goes to pin 1 on the opto.

Thanks again
Paul

_________________
It is said that it takes only a minute to find extraordinary people,an hour to appreciate them,a day to love them,but it takes a whole lifetime to forget them


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 25, 2018 1:48 pm 
Offline
Fledgling
Fledgling

Joined: Sun Jan 22, 2017 7:32 am
Posts: 51
Location: Liverpool
Hi Casey the resistor goes to pin 1 on the opto.

Thanks again
Paul

_________________
It is said that it takes only a minute to find extraordinary people,an hour to appreciate them,a day to love them,but it takes a whole lifetime to forget them


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 25, 2018 1:56 pm 
Offline
Emperor
Emperor
User avatar

Joined: Tue Jun 17, 2014 4:24 pm
Posts: 745
Which opto model?

Check PIR output- active high or low?
Check pin 13 output with led or multimeter

_________________
Casey

https://www.instagram.com/caseysmarttphoto/
http://www.caseysmartt.com


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 01, 2018 4:43 am 
Offline
Fledgling
Fledgling

Joined: Tue Sep 26, 2017 1:21 am
Posts: 48
Location: Finland
I think i saw a question about recommendation on wireless flash triggers.

I use 4 x Younguo RF 603II for my 3 flash setup. 3xSB-28 and single triggering from the PIR
There is no delay as i can see from standby mode to flash.

This picture of the deer jumping over the camera and the system took a picture so quick just front legs were rekorded on the frame :)


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ Array ]  Go to page Previous  1, 2, 3, 4

All times are


Who is online

Array


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

Jump to:  
Powered by phpBB® Forum Software © phpBB Group