Skip to content
Mark Van den Borre edited this page Nov 11, 2013 · 17 revisions

raspberry pi and chdkptp

Requirements

  • raspberry pi running Raspbian 7.1, kernel 3.6.11+
  • 2x Canon A2200 (stock firmware version 100d)
  • CHDK 1.3.0 revision 3215, build 20131111 for the Canon A2200 100D (Firmware 1.2.0 has no jpg remote shooting on the A2200 100D, so don't use it!)
  • chdkptp from https://www.assembla.com/spaces/chdkptp/documents :
  • chdkptp-r461-Linux-raspbian-gui.zip
  • chdkptp-raspbian-libs-20130826.zip

Instructions

  • Label one camera "left". Create a text file "orientation.txt" containing the string "left" in the root of this camera's sd card. Use an analog procedure for the right camera.
  • Create a directory for your chdkptp installation and jump into it:
user@scanner:~$ mkdir ~/chdkptp && cd ~/chdkptp
  • Download chdkptp:
user@scanner:~/chdkptp$ wget https://www.assembla.com/spaces/chdkptp/documents/bmtRAYoDGr47pdacwqjQXA/download/bmtRAYoDGr47pdacwqjQXA 
  • Unzip chdkptp:
user@scanner:~/chdkptp$ unzip bmtRAYoDGr47pdacwqjQXA
  • Download the chdkptp supporting libraries:
user@scanner:~/chdkptp$ wget https://www.assembla.com/spaces/chdkptp/documents/cdeZq8dTGr44klacwqEsg8/download/cdeZq8dTGr44klacwqEsg8
  • Unzip the chdkptp supporting libraries:
user@scanner:~/chdkptp$ unzip cdeZq8dTGr44klacwqEsg8
  • Put a wrapper script that loads the necessary libraries in /usr/bin:
user@scanner:~/chdkptp$ sudo su -
root@scanner:~# cd /usr/bin
root@scanner:/usr/bin# wget https://raw.github.com/markvdb/diybookscanner/master/misc/chdkptp
  • Make the wrapper script executable:
root@scanner:/usr/bin# chmod +x chdkptp
  • Install the scanner triggering script:
root@scanner:/usr/bin# wget https://raw.github.com/markvdb/diybookscanner/master/misc/chdkptp.sh
  • Make the scanner triggering script executable:
root@scanner:/usr/bin# chmod +x chdkptp.sh
  • Install lua:
apt-get install lua5.1 liblua5.1 liblua5.1-dev

Various

  • remoteshoot -tv option hard crashes a2200 with chdk 1.2.0 or 1.3.0
  • command line example
chdkptp -econnect -erec -e"remoteshoot -dng -sv=30 -nd=out -av=2"