GlossaryBrown-out detection
Brown-out detection
Brown-out detection is a circuit that monitors a processor's supply voltage and holds or forces it into reset when the voltage drops below a safe threshold. It prevents the processor from running with too little voltage, where it executes instructions incorrectly, corrupts memory or writes bad data to flash.
How it works
Every digital chip has a minimum supply voltage for reliable operation. Below it, logic gates slow down and flip-flops capture wrong values, but the processor keeps running and produces unpredictable behavior. A brown-out detector compares the supply against a reference. When the supply falls below the trip threshold, it asserts reset. When the supply recovers above a slightly higher threshold, the difference called hysteresis, it releases reset after a delay so the supply settles first.
Most microcontrollers include a brown-out reset block with selectable thresholds. External voltage supervisors do the same job with tighter accuracy, and some monitor several rails at once. After reset, firmware reads a reset-cause register to learn whether a brown-out happened, which is useful for diagnosing field problems.
Brown-out detection vs watchdog timer
A watchdog timer resets the processor when firmware stops responding, whatever the cause. Brown-out detection resets it when the power supply is out of range. The two cover different failures: a watchdog catches a hung program, while brown-out detection catches a supply problem, which often leaves the program running wrongly instead of hanging. Robust designs use both.
Why it matters
Robots and drones draw large, sudden currents when motors accelerate, and that sags supply rails. A battery near empty, a loose connector or a regulator at its limit causes the same effect. Without brown-out protection, a controller runs through the sag in an undefined state, where it commands motors wrongly or corrupts configuration stored in flash. With it, the controller resets cleanly and logs why.
How to get it right
- Enable brown-out reset on every processor, and pick a threshold above the chip's minimum operating voltage.
- Use an external supervisor where internal threshold accuracy is not enough or several rails need monitoring.
- Read and log the reset cause at startup, and report it in telemetry.
- Protect flash writes: check supply voltage before writing, and design for interrupted writes.
- Decouple the processor's supply from motor current paths so sags do not reach it.
Brown-out detection in robotics and drone hardware
Flight controllers, ESCs and joint controllers all share supply paths with high-current motors. Field logs that show unexplained resets in flight or during fast motion often point to brown-outs. Board design reduces them with separate regulators, bulk capacitance and careful power distribution, while brown-out detection turns the ones that remain into clean, logged resets instead of silent corruption.