Camera triggering

3689388976?profile=original

 

As I am immersed in my coding for the pan and tilt it occurs to me that I have not posted code for just normal camera work yet. Having updated the wiki to include this post as well as writing the servo install guide.


WP_activity.pde WP_activity.pde

3689389001?profile=original

Within this sketch is the code for waypoint events (including the eggdrop challenge code). Simply stick the function you want into it and it will be executed on the waypoint you have listed. Numbers between those circled 2 to 17 will have the event you place in the middle. You can also use the = event below so it is for a single waypoint or special event.

Don't forget to add waypoint_check() to the slow loop case 2 code in ArdupilotMega as in this slow loop.png picture.

 

Camera.pde Camera.pde

Holds the code for operating various cameras. Currently the standard servo trigger method and my ArduCam are the only ones present but as almost everyone uses the its fine.

 

3689388944?profile=original

3689388901?profile=original
This is my new version (last one died due to rainy grass landing). With the strips of metal to join the conducting side the transistors will mount easier to so I can use a simple on/off to trigger everything. I might have to use the ArduCam board (Pro Mini with PWM code) but hopefully two digital pins are free on the APM board.
Old board (below) with transistors shorting the buttons. It worked but wasn't exactly pretty.
All my ArduCam pictures are here
E-mail me when people leave their comments –

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

Join diydrones

Comments

  • just some spare ones from my project box. signal is a digitalWrite(9,ON)
  • Whats the part # on your transistor and what type of signal do i use to trigger it?
This reply was deleted.