## Introduction: LinkIT ONE Battery Tester

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!

## Step 1: Supplies

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

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

## Step 2: Create the Circuit

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.

## Step 3: 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)