VOXL m500 Gimbal User’s Guide
Table of contents
- Gimbal Version Summary
Gimbal Version Summary
As a convenience, versions of the VOXL-m500 are available to test out a gimbals. Links to the off the shelf gimbal source are provided along with any configuration software used. The factory setup used is provided here as well to help others adding gimbals of their own choosing.
Camera not included
For this gimbal, the recommended camera is something like the
Mobius Pro Mini Action Camera based on form factor alone. We are not qualifying this camera’s performance, but based on size, weight and geometry, this camera has been shown to work well in our testing wih the gimbal referenced below.
-G1 configuration consists of:
It is configured with the following:
- Configuration Software: Version 2.2b from https://www.basecamelectronics.com/downloads/8bit/ - WARNING: DON’T UPGRADE THE CONTROLLER FIRMWARE. THIS APPEARS TO BRICK THE GIMBAL CONTROLLER
- Useful links for tuning: here and here
Gimbal control handled through the PWM output connector on VOXL-Flight
J1007, Flight Core
|Pin #||Signal Name||Connection|
|6||PWM_CH5||Gimbal Pitch/Tilt Control (3.3V)|
|7||PWM_CH6||Gimbal Yaw Control (3.3V)|
PX4 Param File
For refernce, a PX4 parameter for setting up a Spektrum DX8 with this gimbal using channels 8/7 to pitch/yaw and enabling outputs on bootup can be found here
AUX Passthrough RC Channel
The AUX1/2 passthrough RC channels are configured via
RC_MAP_AUX2. These two channels can be configured to control pitch/yaw control on the gimbal from the RC transmitter. In the param file referenced above these are set to 8 and 7.
The Quadrotor x airframe is supported by the m500, which provides us feed-through of RC AUX1 and AUX2 channels to
PWM_CH6 (pins 6 and 7 above) respectively.
The AUX ouptut signals may be disarmed on bootup and only enabled after arming the vehicle which may not be desirable debugging. Setting the
COM_PREARM_MODE mode to
2 (Always) enables the outputs on bootup (this is shown in the param file referenced above).
The PWM signals
PWM_CH6 (pins 6 and 7 above) have a range of 1000 to 2000 us and are controlled by the
PWM_AUX_MAX6 parameters. These are left as the PX4 default.
Also by default, the output is 1500 us when disarmed, which is configured by
The gimbal receives power via the battery (not through the DC plug available on the power module). Upon attaching the battery, the gimbal will self stabilize in roughly 6 seconds. You can hold the camera in position during this time to stabilize into a starting point of your desire.
Pitch / Yaw Control
Using the DX4 transmitter with the params setup as above:
|Channel #||Switch Type||Control||Notes|
|8||Dial||Pitch||rotate to middle to have 0 degrees, rotate left/right to pitch up/down|
|7||3-Position||Yaw||middle position no movement, up yaw left, down yaw right|
Streaming to QGroundControl
The following additional hardware is required to stream video from the camera through VOXL to QGroundControl.
|MCBL-00009-1||USB Cable (Host, 4-pin JST to USB 2.0 Type A Female)||Purchase|
|Camera USB Cable||USB Cable included with camera (Mini USB)|
One of the following VOXL Add-on boards is required.
|VOXL-ACC-MH||VOXL Microhard Modem Add-on||Purchase|
|VOXL-ACC-HUB||VOXL USB Expansion Board with Fastboot and Emergency Boot||Purchase|
|VOXL-ACC-LTEH||VOXL Cellular LTE and USB hub add-on||Purchase|
Before beginning setup, make sure the VOXL is disconnected from both it’s power source and it’s USB to host PC cable
Attach the add-on board to the VOXL and make sure that the boot switch(es) are turned off or to the left
Plug the jst side of the MCBL-00009-1 USB Cable into the add-on board
Plug the camera’s USB cable into both the camera and the USB female side of the MCBL-00009-1 USB cable
Power the VOXL
Switch the Mobius camera into webcam mode by pressing the
Shutterbutton. (Button with picture of camera)
Before starting the camera stream, make sure your vehicle is connected to QGroundControl. Instructions on how to do so over WiFi can be found here: How to Connect QGroundControl to VOXL using WiFi
- On VOXL, start the video stream by using the following command:
ffmpeg -i /dev/video2 -f mpegts udp://GCS_IP:4242
GCS_IP with the IP Address of your Ground Control Station that is connected to the VOXL.
FFmpeg has a large variety of flags that can be set in order to change the encoder settings and modify the resolution, framerate, bitrate, etc. of the video stream. The documentation can be found on the FFmpeg Website.
In QGC, press the purple QGC logo in the top left corner in order to access the
Generaltab, scroll down until you find the
Video Sourcedropdown, choose
MPEG-TS (h.264) Video Stream.
UDP Portfield enter the default:
You will now be able to view the video stream under QGC’s
To compliment the user guide above, here’s a high level walkthrough:
- Open the SimpleBGC GUI
- Connect to the gimbal using a micro usb
- On the GUI, under Connection, click the dropdown and select the COM port. Should connect automatically
- On the top there are several tabs to select from: Basic Tab, Advanced Tab, RC Settings Tab, Follow mode Tab, Menu Button Tab, Realtime Data Tab, Firmware upgrade Tab
NOTE: Avoid flashing the newest firmware. Will brick the device. Would suggest avoiding the Firmware Upgrade tab altogether.
- Before altering any values, would recommend saving the values to reference back if needed.
- The Basic Tab, allows to set the PID’s, Motor configuration, Sensor configuration and External FC Gain
- Highly recommend calibrating the ACC. and GYRO
- The PID’s work well in default settings, but for more custom settings, change the values to your liking. Too high values and the gimbal becomes very twitchy and too low values make the gimbal sluggish, in general:
- P - is like the power/resistance to change
- I - the speed to which the gimbal will return to center
- D - stabilizes the bumps
- Power is the amount of power each motor is receiving. Can be set anywhere from 0-250. Recommend starting out anywhere from 80-120 to start. Too high a value and the motors start getting hot, too low and there’s not enough power to combat the wind and motions of the camera.
- Invert should be defaulted after plugging in the gimbal, if not select Auto
- NUM Poles should be 14, unless different motors are used then this should be changed to match the poles of the motor
- External FC Gain is left alone
- Sensor Axis should’ve been recorded correctly after connection to usb. If not, use -Z, -Y for Axis Top and Right respectively
- Advanced Tab, leave AHRS alone, good as is.
- In Timings, Serial port speed is left alone
- PWM Frequency is altered to High(silent)
- RC Settings Tab, under RC Input mapping, Source: PWM
- ROLL: RC_ROLL
- PITCH: RC_PITCH
- YAW: EXT_PITCH
- CMD: no_input
- Command Assignment is left alone
- Adjust settings here for angle of gimbal and speed:
|MIN.ANGLE||MAX.ANGLE||ANGLE MODE||LPF||SPEED MODE||SPEED||FOLLOW.%|
- Use Realtime Data Tab, simultaneously as tuning the PID’s. The goal is to get a smooth slope with the least bit of oscillations with the fastest return to center