pcDuino can control different SLR cameras such as Nikon D40 through an USB connection using an utility called Gphoto2.
The software installation guide is copied from http://www.instructables.com/id/Raspberry-Pi-photo-booth-controller/step2/Connect-the-Camera/
We install in the following order.
1. Update the system:
$sudo apt-get update
2. Install the dependencies library:
$sudo apt-get install pkg-config $sudo apt-get install libudev-dev
3. Download and run gphot2 installation:
$sudo wget raw.github.com/gonzalo/gphoto2-updater/master/gphoto2-updater.sh $sudo chmod 755 gphoto2-updater.sh $sudo ./gphoto2-updater.sh
4. Remove files that prevent camera mounting:
$sudo rm /usr/share/dbus-1/services/org.gtk.Private.GPhoto2VolumeMonitor.service $sudo rm /usr/share/gvfs/mounts/gphoto2.mount $sudo rm /usr/share/gvfs/remote-volume-monitors/gphoto2.monitor $sudo rm /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
5. Reboot pcDuino.
Before we hook up the Nikon D40, we need to configure the USB to be MTP/PTP mode as following:
After we connect the camera to pcDuino. We can command ‘$sudo gphoto2 –auto-detect’ to check if the camera is recognized by gphot2 or not, and run the following to capture image:
Leave a Reply
You must be logged in to post a comment.