Skip to content
Logo

Hackaday

  • Home
  • Blog
  • Hackaday.io
  • Tindie
  • Contests
  • Submit
  • About

atmega

147 Articles

Arduino Measures Remaining Battery Power With Zero Components, No I/O Pin

December 21, 2023 by Donald Papp 22 Comments

[Trent M. Wyatt]’s CPUVolt library provides a fast way to measure voltage using no external components, and no I/O pin. It only applies to certain microcontrollers, but he provides example Arduino code showing how handy this can be for battery-powered projects.