Robotics-II-Circuit-Python

Circuit Python tutorials in Robotics II

View the Project on GitHub MrPrattASH/Robotics-II-Circuit-Python

Table of Contents

Universal Battery Elimination Circuit (UBEC)

In this tutorial, we’ll learn how to power a microcontroller and multiple servo motors using a Universal Battery Elimination Circuit (UBEC) to prevent brownouts. This setup ensures that both components receive stable power and operate efficiently.

What is a Brownout?

A brownout occurs when the voltage supply drops below the minimum required operating voltage, causing the microcontroller to reset or behave unpredictably. You know you’ve browned out when your serial port outputs a Microcontroller rebooted in safe mode due to power limit issues. This typically happens when the current demand exceeds the supply capabilities, which can occur if too many servos are connected directly to the microcontroller’s power pins. This is why we need an alternative power source if we are using too many servos, or our servos are too power hungry.

What is a UBEC?

Universal Battery Elimination Circuits (UBECs) are electronic devices designed to provide a stable voltage output from a higher voltage power source. They are frequently used in radio-controlled vehicles and aircraft to power receivers, servos, and other onboard electronics.

Using two separate power sources ensures that the high current demand of the servo motors does not affect the microcontroller’s power stability. The UBEC provides a consistent voltage to the servos, while a separate power source supplies the microcontroller.

Why Avoid Powering Multiple Servo Motors Directly from the Microcontroller?

Microcontrollers, like the Metro M0 Express, have limited current capabilities. When you connect more than two servo motors directly to the microcontroller, you risk causing a brownout.


Level Switching Jumper (5V, 6V, 7.4V)

Your UBEC can output 5V, 6V, or 7.4V to the servo depending on where you place the jumper switch. - By bridging two pins with the jumper, you set the UBEC to the desired voltage output. - For most servo motors in Mars Rovers setting the UBEC to 5V or 6V is ideal. In Elevation Engineering we’ll use 7.4V.

In this example, we have the jumper switch set to 5V 5v

And in this example, we have the jumper switch set to 7.4V 74


Wiring Diagram 9V 6xAA Battery Pack (Mars Rovers)

9v

Explanation:


Wiring Diagram 12V Battery Pack (Elevation Engineering)

12v

Explanation: