Reduce firmware power draw with sleep modes, clock gating, and peripheral management
Scanned 9/3/2026
Install to Claude Code
npx -y skills add black141312/ada --skill low-power --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Low Power?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/black141312-low-power)More formats (shields.io, HTML) on the badges page.
---
name: low-power
description: Reduce firmware power draw with sleep modes, clock gating, and peripheral management
category: gamedev
---
# Low Power
Use when a battery-powered device must extend run time: cut active current, sleep aggressively, and wake only on events.
1. Measure baseline current first (bench supply or coulomb counter) so every change is verified against real numbers.
2. Restructure to event-driven: do work, then enter the deepest sleep mode that still allows the needed wake source.
3. Wake from interrupts/RTC/peripheral events rather than polling; remove busy-wait and fixed delay loops.
4. Gate clocks and power down unused peripherals, and configure idle GPIOs (pull or drive) to stop leakage current.
5. Lower the active clock to the slowest rate that meets the deadline; run fast-then-sleep ("race to idle") when bursty.
6. Re-measure after each change and check average current over a full duty cycle, not just the peak.
## Rules
- Floating input pins leak current — set every unused GPIO to a defined pull or output level before sleeping.
- Confirm your chosen sleep mode retains the RAM/registers and wake sources you actually need before relying on it.
- Disable or reconfigure debug/SWD, brown-out, and watchdog peripherals that quietly keep current high in sleep.
- Average current over the whole duty cycle drives battery life; a low sleep current is moot if wakeups are too frequent.
- Always re-measure on hardware; datasheet sleep figures assume an ideal configuration you probably have not matched.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!