Introduction: Use PcDuino As Photo Booth Controller

Picture of Use PcDuino As Photo Booth Controller

pcDuino can control different SLR cameras such as Nikon D40 through an USB connection using an utility called Gphoto2.

Step 1: Software Installation

The software installation guide is copied from https://www.instructables.com/id/Raspberry-Pi-phot...

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.

Step 2: Hardware Installation

Picture of Hardware Installation

Before we hook up the Nikon D40, we need to configure the USB to be MTP/PTP mode as following:picture1

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:

Comments

seamster (author)2014-09-26

Nice!

About This Instructable

1,247views

7favorites

License:

More by Yanny Guo:Use pcDuino as Photo Booth ControllerUse Si4703 FM Breakout Board on Arduino UnoUse SIM900 GPRS/GSM Shield on pcDuino
Add instructable to: