|
|
| (28 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| == Ordibooth ==
| | [[User:Rando/Ordibooth]] |
|
| |
|
| === CHDK ===
| | [[User:Rando/Maslow]] |
| http://chdk.wikia.com/wiki/CHDK_1.4.0_User_Manual
| |
|
| |
|
| Download using STICK: http://zenoshrdlu.com/stick/stick.html
| | [[User:Rando/Donate_v2]] |
|
| |
|
| Remote Pameters, enable remote
| | [[User:Rando/Gain_Clone_Notes]] |
| | |
| [[File:enable_remote.png]] | |
| | |
| Remote Usage: http://chdk.wikia.com/wiki/USB_Remote
| |
| | |
| Note: the USB remote functionality is not used for this, we need to control it from the [pi <-> mac] mini device
| |
| | |
| === Scripting ===
| |
| | |
| http://chdk.wikia.com/wiki/CHDK_Scripting_Cross_Reference_Page
| |
| | |
| click
| |
| | |
| is_key
| |
| | |
| is_pressed
| |
| | |
| press
| |
| | |
| release
| |
| | |
| shoot
| |
| | |
| wait_click
| |
| | |
| wheel_left
| |
| | |
| wheel_right
| |
| | |
| '''Transferring files'''
| |
| | |
| How to transfer to computer? Perhaps the rpi can indicate to the macmini to mount the camera and tx the picture.
| |
| | |
| http://chdk.wikia.com/wiki/PTP_Extension/ptpcam_Examples
| |
| | |
| ptpcam / libptp
| |
| | |
| Install instructions
| |
| | |
| http://chdk.wikia.com/wiki/Ptpcam_in_headless_linux_Dockstar
| |
| | |
| ok, THIS is the one we want, it has the "ptpcam --chdk" option:
| |
| | |
| https://github.com/jrabbit/libptp-chdk
| |
| | |
| notes on usage: http://chdk.wikia.com/wiki/PTP_Extension/ptpcam_Examples
| |
| | |
| How to run one onn camera:
| |
| | |
| loadfile('A/CHDK/SCRIPTS/testprgm.lua')()
| |
| | |
| === ordi_controller ===
| |
| | |
| Handles from ptpcam functions from the mac mini as python calls using subprocess.run.
| |
| | |
| ==== scripting ====
| |
| | |
| http://chdk.wikia.com/wiki/Lua
| |
| | |
| The "Minimalistic Intervalometer" is a lua script that takes a photo, using half presses and full presses.
| |
| | |
| Steps:
| |
| | |
| # Write script
| |
| # Place <script>.lua in CHDK/SCRIPTS on SD card e.g. A/CHDK/SCRIPTS/testprgm.lua
| |
| # Run script with loadfile('A/CHDK/SCRIPTS/testprgm.lua')()
| |
| | |
| | |
| Script Reference
| |
| | |
| http://chdk.wikia.com/wiki/CHDK_Scripting_Cross_Reference_Page
| |
| | |
| How to script and run and stuff
| |
| | |
| http://chdk.wikia.com/wiki/Lua/PTP_Scripting
| |
| | |
| > luar shoot()
| |
| | |
| Lua dev environment metioned here:
| |
| http://chdk.wikia.com/wiki/Lua_Development_Environment
| |
| | |
| == this is how! ==
| |
| [[File:ptp-cam-shoot.png]]
| |
| | |
| | |
| ptpcam --dev=028 --chdk="luar shoot()"
| |
| | |
| | |
| == Camera Disassembly ==
| |
| Why? the power doesn't stay on without a button press. so trying to replace the button so we can drive it via a GPIO on the rasp pi.
| |
| | |
| Wait, why.
| |
| | |
| Because. We're hacking.
| |
| | |
| https://www.ifixit.com/Device/Canon_PowerShot_A2200
| |
| | |
| | |
| == Power button modification ==
| |
| | |
| In order to control the camera power "remotely", the power button was modified to pull out wires and connect them to a GPIO of the pi. This was the power can be turned on when the system boots.
| |
| | |
| The button was a SMD tact switch with barely exposed pads. In order to get sufficient copper to solder, the solder mask was gently scraped off.
| |