i need help to add a trigger function in 2.6 code

hello,

my new ardu working in all modes nice....  now i will add a trigger function for the camera into the code.
i hope it´s possible ?!??

i am a newbie and code-noob :-) it´s possible for someone to post me the modified code per mail ?

what i want...:

the ardu must trigger the camera if reach a waypoint.

i have an ixus 80 with CHDK remote.i need 4-5 volt into usb-camera to trigger it.best way is to conect the usb-camera direct to the digital pin from the ardu ...



olli


PS:

i used completly ardu with xy, z and 2.6 code - shield V2

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer
    If you connect it directly, maybe something like this in the events tab.
    you'll have to set
    pinMode(11,OUTPUT);
    in the system tab.

    void waypoint_event(byte event){
    switch(event)
    {
    case EVENT_SET_NEW_WAYPOINT_INDEX:
    // called just after wp_index is incemented
    if (wp_index == 5){
    Serial.println("Take Picture");
    digitalWrite(11,HIGH);
    delay(100);
    digitalWrite(11,LOW);
    }

    break;
    // snip
  • I've seen some folks use a servo to press the camera button. Jordi has a camera trigger board somewhere in the store, last time I looked.

    As far as code though, not sure what is out there. I'm not sure if there are enough timers in Ardupilot to support another servo. You may be better off by using a spare Digital output (the anolog ones work too) to send a signal to another board that handles your camera servo.

    I'm using a KODAK HD Zx1 which has an optional IR remote. My plan is to record the IR signals then use another Arduino to send commands to my camera. It can do stills and 720p video.

    Would be interested to hear about your progress.
  • Developer
    Sure it is possible. Will someone post the code for you??? This may be where the DIY part comes in.....
This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…