LinkIT ONE Battery Tester

by jckelley in Circuits > Microcontrollers

794 Views, 1 Favorites, 0 Comments

LinkIT ONE Battery Tester

cover_photo.jpg

It's an age-old question: Is this battery dead? Sometimes it can be a real drag, and you would hate to throw out a perfectly good battery. Alas, you can worry no more! Today we'll create a simple project that will be able to tell us if a battery is properly charged or not!

Supplies

WP_20151115_001.jpg

We'll be creating a fairly basic circuit here, nothing too complicated. Hopefully these are all things most introductory kits would have on hand.

  • LinkIT ONE
  • 560 ohm resistors (3x)
  • Green LED
  • Blue LED (OK, this should really be Yellow, but my last yellow one burnt out!)
  • Red LED
  • Breadboard
  • Some Jumper Wires

Create the Circuit

Circuit.PNG
WP_20151115_002.jpg

Relatively basic circuit here, nothing a beginner shouldn't be able to create. The key here is to leave two jumper cables hanging off. We will do this so that we can put whatever size battery we want in between. Simply touching the ends of the jumper wires to our battery will complete our circuit, and give us a battery reading.

Follow the diagram above to create the circuit, then move on to the next step.

Deploying the Code

Our code mostly is composed of 3 if statements. We read the voltage from the battery and...

If it is greater than 1.6 volts, we say the battery is fully charged (GREEN LED)

If it is less then 1.6 but greater than 1.4 volts, we say it still has some juice left in it (BLUE LED)

And if we see less than 1.4 volts, we say it is dead (RED LED)

Go ahead and download the code attached and deploy it to your LinkIT ONE to complete the project.

Downloads

Test Those Batteries!

WP_20151115_003.jpg
WP_20151115_005.jpg

And there you have it! A fully functional battery tester! Now you don't have to worry and stress about throwing away perfectly good Batteries! Just throw them in your brand new battery charger and you're all good to go!