stevieg2
Posts: 2
Joined: Mon Dec 14, 2015 10:25 pm

Trigger Camera from GPIO Pins

Mon Apr 18, 2016 5:11 pm

Hi There,

I am new to using the raspberry pi and have purchased a Raspberry Pi 3 and a Pi NoIR camera for use in an aerial mapping project. I have the camera all set up and working using Raspbian. What i wanted to know is can i trigger the board to take a picture when a certain voltage is detected by one of the GPIO pins? I am using an APM 2.6 (http://ardupilot.org/copter/docs/common ... rview.html) which can be set to remote trigger a camera using 5V. Could this be adapted so it is connected to the raspberry pi to trigger the camera and if so how would i do this considering i have no experience with coding at all?

Thanks

gordon77
Posts: 6640
Joined: Sun Aug 05, 2012 3:12 pm

Re: Trigger Camera from GPIO Pins

Mon Apr 18, 2016 5:22 pm

You can use a gpio pin as an input, high or low, and take a photo using raspistill or picamera using python.

Here's a python example using pir as inputs to take stills or video...
viewtopic.php?f=91&t=142564&p=945422#p945422


Return to “Beginners”