Near-complete Camera Slider
Here's the latest on the camera slider. I'm pretty happy with it but still a bit spastic on the controls (much like I fly RC planes!)
I do a complete run using only the IR Remote for all functions...
In the following video, I JOG the linear axis to desire starting position, position rotation axis as desired, and capture first setpoint. Then JOG linear axis to ending position, position rotation axis as desired, and capture second setpoint. Go into TRAVERSE/PREVIEW mode (both motors now start/move/end simultaneously) and use left/right arrow buttons to move rapidly between captured setpoints to PREVIEW they are what I want and, when happy, I press OK to TRAVERSE at slow speed between setpoints. [..then everything goes to heck... I reset the Arduino and do pretty much the same again but forget to capture one set of coordinates, go back to capture them, and then do Preview runs in each direction and finally forget to Traverse before turning off camera...
]
The Arduino sketch features the following functionality:
The IR Remote Camera Slider Controller operates in two basic modes: JOG and PREVIEW/TRAVERSE
-- JOG mode primarily used to position each axis independently at desired start and end setpoints
---- Use arrow keys: Each axis moves independently: Right/Left for linear axis, Up/Down for rotation axis (CW/CCW)
---- Use 1/2/3 keypad keys for preset JOG speeds: Slow/Med/Fast
---- Use OK/STOP to stop current JOG in desired position
---- Use CH+ and CH- to capture setpoint coordinates
-- PREVIEW/TRAVERSE mode has two sub-modes: GOTO/PREVIEW and TRAVERSE
---- Use TVPwr to enter PREVIEW/TRAVERSE mode after setpoints have been captured in JOG mode
---- Use arrow keys to GOTO/PREVIEW current setpoints:
---- Both axis start, move, and stop simultaneously at GOTO/PREVIEW speed (much faster than actual TRAVERSE)
---- Left arrow GOTO/PREVIEW left-most setpoint position, Right arrow GOTO/PREVIEW right-most setpoint
---- Use OK/STOP to begin actual TRAVERSE:
---- Automatically TRAVERSES to opposite setpoint from current GOTO/PREVIEW setpoint
---- Uses TRAVERSE speed input by operator in steps/mm (225.0 steps/mm moves about 12" in 1 minute)
------ TRAVERSE speed currently hard-coded to 225.0 steps/mm
------ TODO: still need to figure out how to enter multi-digit speed from IR keypad... 12/15/2016
-- BOXPwr key is a soft RESET for Arduino
-- Uses Arduino IDE Serial Monitor to monitor operation while testing
-- Uses generic RCA IR remote control
---- (Arduino example sketch "IRRecvDemo" from IRRemote library allows capture/display of IR
---- remote codes so that almost any common TV remote can be used to control camera slider)
-- Assumes linear axis stepper with 200 steps/rev, 1/16 micro-stepping, 36-tooth GT2 drive gear
Everything is working as envisioned except for user-input TRAVERSE speed. That requires multi-digit input of a number of steps/sec -- i.e. 225.0, 450.7, etc. -- and I've hard coded it for now to about 1' per minute (225.0). It should be much like putting in a channel number for the TV... I just don't know how to do it yet. I won't be broken-hearted if someone with an idea of how to do that yells out a solution... I'll post the code if it helps
-- David