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 componentsDrone power modules sit between the battery and the rest of the craft. They give the flight controller two analog signals, one proportional to battery voltage and one to current, plus a regulated 5 V supply. A Nano reads the same two signals. Multiplying by the module's scale factors gives volts and amps, and adding up current over time gives the mAh used, which tells you when to land or stop.
Unplug the LiPo when not in use and never short its leads.
Tick anything you already have and the total updates.
APM/Pixhawk power module with 5 V BEC
Follow the colours: red is power, dark grey is ground, blue is a signal.
The power module's own 5 V output powers the Nano.
pm_meter.inoVerify & upload in Electrolark#include <Adafruit_SSD1306.h>
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
float V_MULT = 10.1; // typical for these modules; calibrate
float A_PER_V = 17.0; // typical; calibrate
float mah = 0;
unsigned long last = 0;
void setup() { oled.begin(SSD1306_SWITCHCAPVCC, 0x3C); oled.setTextColor(WHITE); last = millis(); }
void loop() {
float vRaw = analogRead(A0) * 5.0 / 1023;
float iRaw = analogRead(A1) * 5.0 / 1023;
float volts = vRaw * V_MULT, amps = iRaw * A_PER_V;
unsigned long now = millis();
mah += amps * (now - last) / 3600.0; last = now;
oled.clearDisplay();
oled.setTextSize(2); oled.setCursor(0, 0); oled.print(volts, 2); oled.print("V");
oled.setCursor(0, 22); oled.print(amps, 1); oled.print("A");
oled.setTextSize(1); oled.setCursor(0, 50); oled.print((int)mah); oled.print(" mAh used");
oled.display();
delay(200);
}
Set V_MULT from your meter; modules differ.
Small offsets are normal; subtract the no-load reading.
Power the Nano from the module's 5 V, not from a long USB cable.
The module divides the voltage down and turns current into a small voltage; the factors undo that.
Check your module's limits; many handle up to 6S and around 90 A peaks.
Yes, it works on any battery-powered build with XT60 plugs.
6 parts: APM/Pixhawk Power Module w/ BEC 3A XT60 28V 90A, Bonka 2S 7.4V LiPo Battery Pack (1000 to 4200mAh, XT60), Generic Nano CH340 Development Board (Soldered), 0.96" OLED Display 128x64, Solderless Breadboard and Dupont Jumper Wires (40 pcs). Tools: Digital Multimeter. On this page you can tick the parts you already have and add only the rest to your cart.
It is a intermediate project and takes about 2 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (pm_meter.ino).
About ₹2,362 for the parts at the prices on this page, plus tools if you do not have them. Quantity price breaks lower the cost when you build several.
Analog voltage and current sensing; Calibration factors; Counting used capacity in mAh.
Unplug the LiPo when not in use and never short its leads.
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.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.