Cable exist to connect a RunCam2 action cam to an RC receiver for remotely start and stop a record from the receiver PWM output (20ms period, 1ms to 2ms duty cycle). The cable has logic to decode the RC PWM signal and generate the signal pulse scheme to start and stop the RunCam2 record.
Controlling the camera can be done with a microcontroller by generating the required pulse scheme described below.
The micro USB cable pinout (on the male part) is
- Pin 1 : GND
- Pin 3 : TTL signal (5V)
- Pin 5 : +5V (higher voltage possible for the RunCam2 connector)
When the Camera USB port is set for “Remote Control” and not for “mass storage” with the configuration application, it is possible to switch back and forth the camera from video mode to photo mode, and to start/stop recording, or take a picture.
The pulse scheme is the following:
- One pulse switch the camera from video recording mode to Photo mode.
- Two pulses separated with 85ms start or stop a video record (or take a picture in photo mode).
Pulse level is 5V but it works with 3.3V. Line is low state when idle. Pulses are 85ms in high state duration separated by 85ms on multiple pulse.
Tested with a runCam2 powered from a 3S LiPo battery (10 to 14V), no battery in the camera and pulse generated with a 3.3V dsPIC pin configured as digital output.
The figure below is the Simulink diagram with the logic used to generate the appropriate pulse on a dsPIC. Code is generated through the Simulink Coder and the MPLAB block from Microchip.