This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_servo_power_rail_en

Function Documentation

int rc_servo_power_rail_en(int en)

enables or disables the 6V power rail to drive servos.

The Robotics Cape has a 6V 4A high-efficiency switching regulator to power servos from the 2 cell LiPo battery. DO NOT enable this when using BEC-enabled brushless ESCs as it may damage them. Since brushless ESCs only need the ground and signal pins, it is safest to simply cut or disconnect the middle power wire. This will allow the use of servos and ESCs at the same time. Use the enable and disable functions above to control the power rail in software.

ALso use this to turn off power to the servos for example when the robot is in a paused state to save power or prevent noisy servos from buzzing.

Parameters

en[in] 0 to disable, non-zero to enable

Returns

0 on success, -1 on failure