author2
2Instructables15,297Views2CommentsAustriaJoined August 13th, 2016
After reading this, you won't be more clever then before!

Achievements

10K+ Views Earned a bronze medal
  • Tedd'scherB commented on Tedd'scherB's instructable Arduino LiPo Battery Watcher1 year ago
    Arduino LiPo Battery Watcher

    Thank you for commenting, appriciate it!You're welcome!

    Hi @Raffi120,Thank you for your comment.It's a short answer:Let's say, You have a LiPo-battery that's fully charged @4.2v.In your code, remove the " / 197.0", so the Arduino won't divide through anything.Connect your battery to the Arduino, power it, and have a look on your serial monitor.You will see, that the Arduino will display a number that equals ~827.4.BUT: 827.4 divided by 197.0 is 4.2.There you have it, your 4.2v that the Arduino should read!This is, because the Arduino on the analog input pins gives out0 when the voltage on the analog pin is 0v, 1023 when the voltage on the analog pin is 5v.So, in order to get the voltage and not some "high" number, I divide it by 197.0.If your Arduino reads, for example, 3.8v, but the battery has 4.2v, just decrease the 19...

    see more »

    Hi @Raffi120,Thank you for your comment.It's a short answer:Let's say, You have a LiPo-battery that's fully charged @4.2v.In your code, remove the " / 197.0", so the Arduino won't divide through anything.Connect your battery to the Arduino, power it, and have a look on your serial monitor.You will see, that the Arduino will display a number that equals ~827.4.BUT: 827.4 divided by 197.0 is 4.2.There you have it, your 4.2v that the Arduino should read!This is, because the Arduino on the analog input pins gives out0 when the voltage on the analog pin is 0v, 1023 when the voltage on the analog pin is 5v.So, in order to get the voltage and not some "high" number, I divide it by 197.0.If your Arduino reads, for example, 3.8v, but the battery has 4.2v, just decrease the 197.0 to another value, until the Arduino reads the right voltage.

    View Instructable »
  • Tedd'scherB followed 3D Printing, Photography, Reuse, Websites and 13 others channel 1 year ago