Build a 5-inch FPV freestyle quad (analog video, ELRS)
A complete 5-inch freestyle drone: carbon frame, F405 stack, 2306 motors, ELRS radio link and analog goggles.
Shop by category
Shop all componentsWhen several servos move at once they can draw a few amps together, which pulls down a board's 5 V and resets it. A UBEC (universal battery elimination circuit) is a switch-mode regulator from the RC world that turns a LiPo pack into 5 or 6 V at several amps, efficiently. Here a Hobbywing 3 A UBEC powers four SG90 servos from a 2S LiPo, while the Nano gets its own supply and only sends signals.
Never leave a LiPo charging unattended.
Unplug the LiPo when not in use and do not let it run fully flat.
Tick anything you already have and the total updates.
Follow the colours: red is power, dark grey is ground, blue is a signal.
2S LiPo for the servos through the UBEC; the Nano from USB.
four_servos.inoVerify & upload in Electrolark#include <Servo.h>
Servo s[4];
const int PINS[4] = {3, 5, 6, 9};
void setup() { for (int i = 0; i < 4; i++) s[i].attach(PINS[i]); }
void loop() {
for (int a = 0; a <= 180; a += 3) { for (auto &x : s) x.write(a); delay(15); }
for (int a = 180; a >= 0; a -= 3) { for (auto &x : s) x.write(a); delay(15); }
}
The 5 V lines are joined; only ground should be shared.
The UBEC is set to 5 V; bigger servos like 6 V.
Total servo current is above 3 A; use a bigger UBEC.
A 7805 would waste most of the power as heat; a switch-mode UBEC is efficient.
Yes, from its output to 5V, if you do not also power the Nano from USB at the same time.
Two lithium cells in series, 7.4 V nominal, 8.4 V full.
6 parts: Hobbywing 5V/6V 3A Switch-Mode Ultimate BEC, Bonka 2S 7.4V LiPo Battery Pack (1000 to 4200mAh, XT60), 4 × TowerPro SG90 9g Micro Servo (180°), Generic Nano CH340 Development Board (Soldered), Solderless Breadboard and Dupont Jumper Wires (40 pcs). On this page you can tick the parts you already have and add only the rest to your cart.
It is a beginner project and takes about 1-2 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (four_servos.ino).
About ₹2,409 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Why servos need their own supply; Switch-mode versus linear regulators; Sharing ground but not power.
Never leave a LiPo charging unattended. Unplug the LiPo when not in use and do not let it run fully flat.
A complete 5-inch freestyle drone: carbon frame, F405 stack, 2306 motors, ELRS radio link and analog goggles.
A small, quiet 3-inch quad that records and streams clear HD video through a DJI O3 air unit.
A 450 mm quad that holds position on GPS, flies waypoint missions and can drop a small payload.
Efficient 2806.5 motors, 7-inch props and an M10 GPS that can fly the quad home if the radio link drops.
Learning project. Check every circuit and the datasheet of each part before you power it up.