wedsamuel1230/arduino-skills/battery-selector
Claude Code and agent skill by wedsamuel1230/arduino-skills
- community
Checking that the SKILL.md file is still in the repository.
Helps choose the right battery type and charging solution for Arduino/ESP32/RP2040 projects. Use when user asks about battery options, charging circuits, power source selection, or says "what battery should I use". Covers chemistry selection, safety, voltage regulation, and charging circuits.
Install
npx vskill@latest install wedsamuel1230/arduino-skills/battery-selectorSKILL.md
Battery Selector
Guides battery chemistry and charging circuit selection for embedded projects.
Resources
This skill includes bundled tools and references:
- scripts/compare_batteries.py - Battery comparison calculator with 15+ battery types
- references/safety-guidelines.md - Comprehensive safety guide for all chemistries
Quick Start
Interactive selection:
Command line:
When to Use
- "What battery should I use?"
- "How do I charge this project?"
- "Lithium vs alkaline?"
- "Is this battery safe?"
- Planning portable/battery-powered projects
Decision Flowchart
Battery Chemistry Comparison
Quick Reference
| Chemistry | Voltage | Rechargeable | Energy Density | Cost | Safety | |
|---|---|---|---|---|---|---|
| Alkaline | 1.5V/cell | No | Medium | Low | Very safe | |
| Lithium Primary | 3V | No | High | Medium | Safe | |
| NiMH | 1.2V/cell | Yes | Medium | Medium | Safe | |
| LiPo/Li-ion | 3.7V | Yes | Very High | Medium | ⚠️ Needs care | |
| LiFePO4 | 3.2V | Yes | High | High | Safer than LiPo | |
| Lead-acid | 2V/cell | Yes | Low | Low | ⚠️ Acid hazard |
Alkaline (AA/AAA/9V)
Pros:
- Cheap, available everywhere
- No charging circuit needed
- Very safe
- Long shelf life (5-10 years)
Cons:
- Not rechargeable (e-waste!)
- Voltage drops as discharged
- Poor at high current
- Heavy for capacity
Best For:
- Low-power projects (<20mA average)
- Beginner projects
- Remote/deployment where charging impractical
- Backup power
Voltage Configurations:
NiMH (AA/AAA Rechargeable)
Pros:
- Rechargeable (500-1000 cycles)
- Same size as alkaline
- Safer than lithium
- No memory effect
Cons:
- Lower voltage (1.2V vs 1.5V)
- Self-discharge (~20%/month)
- Need proper charger
- Heavier than LiPo
Best For:
- Projects replacing disposable batteries
- Educational settings
- Where LiPo is too risky
- Budget rechargeable solution
Charging:
- Use dedicated NiMH charger
- Don't mix brands/capacities
- Eneloop/Eneloop Pro recommended
LiPo / Li-ion (3.7V)
Pros:
- High energy density (light + powerful)
- Rechargeable (300-500 cycles)
- Flat discharge curve
- Many form factors
Cons:
- ⚠️ Fire risk if abused
- Needs protection circuit
- Temperature sensitive
- Ages even unused
Best For:
- Most portable projects
- Weight-sensitive applications
- When you need runtime
- Professional builds
Critical Safety Rules:
LiFePO4 (3.2V)
Pros:
- Much safer than LiPo (no thermal runaway)
- Longer cycle life (2000+ cycles)
- Flat discharge curve
- Tolerates abuse better
Cons:
- Lower energy density
- Lower voltage (may need boost)
- More expensive
- Less common in small sizes
Best For:
- Safety-critical applications
- Outdoor/rugged deployments
- Long-term installations
- When LiPo risk unacceptable
CR2032 / Coin Cells
Pros:
- Tiny and light
- Long shelf life
- 3V output (direct to 3.3V MCU)
Cons:
- Very low capacity (220mAh)
- Poor high-current performance
- Not rechargeable
- ⚠️ Danger if swallowed
Best For:
- Ultra-low power only (<10µA average)
- RTC backup
- Tiny sensors
- Keyfobs, beacons
Current Limits:
Voltage Regulation
3.3V Systems (ESP32, RP2040)
Single LiPo → 3.3V:
5V Systems (Arduino UNO/Nano)
LiPo → 5V:
Charging Solutions
TP4056 Module (Most Popular)
⚠️ Get module WITH protection (6 pins, not 4 pins)
Adafruit PowerBoost 500C/1000C
Premium solution with:
- LiPo charging via USB
- 5V boost output (500mA or 1A)
- Low battery indicator
- Load sharing (charge while running)
DIY Charging Don'ts
Battery Sizing Calculator
Example:
Common Mistakes
1. Using Wrong Charger
2. No Low-Voltage Cutoff
3. Ignoring Inrush Current
4. No Reverse Polarity Protection
Recommended Setups by Project Type
Low-Power Sensor Node
Handheld Device
Robot/High Current
Ultra-Low Power Beacon
Quick Selection Table
| Project Type | Best Battery | Capacity | Charger | |
|---|---|---|---|---|
| Simple Arduino | 4x AA | 2500mAh | None | |
| ESP32 portable | 18650 | 2600mAh | TP4056 | |
| Wearable | Small LiPo | 500mAh | TP4056 | |
| Robot | 2S LiPo | 2200mAh | Balance | |
| Ultra-low power | CR2032 | 220mAh | None | |
| Solar project | LiFePO4 | 3200mAh | MPPT |
Shared Output Contract
Use the shared Arduino skill contract: state assumptions, required tools and versions, implementation steps, tests/evidence by proof stage, known limitations, and recovery/security notes.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/battery-selector/SKILL.md
Popularity
- Repository stars
- 13
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 25 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wedsamuel1230/arduino-skills/battery-selector)