Introduction: LED Tester (20ma Constant Current Source)

Picture of LED Tester (20ma Constant Current Source)

Are you tired of having to change the resistor every time you change the voltage to power your LED??

Here is your solution! a constant current source. Built with only two transistors, fits in a 3 by 5 perfboard.

Step 1: Materials

Picture of Materials

You are going to need:

  • NPN Transistors (2)
  • 1kΩ Resistor (1)
  • 220Ω Resistor (1)
  • 9v Battery Snap / Power (1)
  • LED / Header (1)
  • Breadboard / Perboard (1)

Step 2: Schematic / Plan

Picture of Schematic / Plan

This is the circuit diagram, very simple only two transistors.

Step 3: Get Ya Breadboard/perfboard

Picture of Get Ya Breadboard/perfboard

just get it.....

Step 4: Place Your First Transistor

Picture of Place Your First Transistor

Just look at the picture, by the way my transistor have a CBE pinout.

Step 5: Place Your Second Transistor

Picture of Place Your Second Transistor

one row down from the first.

Step 6: Place Your 220Ω Resistor

Picture of Place Your 220Ω Resistor

just like in the picture....

Step 7: Place Your 1kΩ Resistor

Picture of Place Your 1kΩ Resistor

pictures are worth 1000 words

Step 8: Place Your LED

Picture of Place Your LED

Place your led or your header.

Step 9: Apply Power

Picture of Apply Power

Plug in your power wires/battery snap and you get 10-20ma.

Step 10: Done

Picture of Done

Now you have a 20ma led tester. Run it off USB, car battery, 9v it will light your leds!


Eric Brouwer (author)2016-11-20

Thanks for sharing. It is always nice to see an Instructable using just basic components.

Although your circuit does work as a current limiter, variance in the transistor gains will greatly affect the current flowing through the LED.

You can experiment with the attached circuit, which will reduce your component count to only 2 components, using a LM317 voltage regulator and single resistor.

Have a look here for more details:

Ploopy (author)Eric Brouwer2016-11-21

I did know about the LM317 as a constant current source but I did not happen to have any laying around and wanted an instant solution, no waiting for shipping.....

I do agree that that would make a good led tester but if you only have basic parts then I think this is the closest you can get.

Eric Brouwer (author)Ploopy2016-11-21

I agree - use whatever components you have available.

In fact, I only use my LED Tester to verify the LED colors. The actual mA is not that important to me.

Ploopy (author)Eric Brouwer2016-11-21

Ultimately you can just use a 9v Battery and a resistor....

Eric Brouwer (author)Ploopy2016-11-22


But a constant current source is still useful to determine which LED will work best in your application. Some applications require a bright LED, others dim. Nice to see the difference at a constant current.

Omnivent (author)Eric Brouwer2016-11-20

Did something very close to this some months back (same exorbitant component selection and all), but decided that it wouldn't really be "meaty" enough for an instructable, but perhaps I should reconsider :)

Just have to edit a truckload of pics from back then first (oh and fix the X-mas lights so they can be put on a timer without going berserk each time they're switched on - note to Chinese manufacturers: Just because it's got a microcontroller doesn't mean that the customers want a lot of flashing programs, that takes 8 button presses to settle to a stable light :-/)

Have a nice day :)

gm280 (author)2016-11-20

So looking at your circuit and setup, It looks more like a .010 ~ ma circuit then a .020 ma. via your pictures from the power supply readings. Did you actually measure the current to see how much it varied and if so what were the readings. But it is a nice circuit seeing the changing voltages and LEDs it worked with. Just imagine if you used SMD for this how small it could be. Thumbs Up!

Ploopy (author)gm2802016-11-20

I tried measuring the current but accidentally blew my 200ma multimeter fuse.....

I did not have proper resistors and so I played around until I got something decent. The current changes a bit with voltage it goes from 10-20mA.

If you want a more accurate current then you can calculate a resistor value and use a slightly modified circuit...

Ploopy (author)Ploopy2016-11-20

You cant see it in the photos but my power supply amp meter keeps switching to 0.001A to 0.002A in the video

About This Instructable




Bio: I like eletronics, AVR's and 555timers. Mini Pumpkins! I also love jerky & ☕️.
More by Ploopy:Neon Stick (USB Neon Inverter) [And Flash Drive...]LED Tester (20ma Constant Current Source)Cool Spinning Top from Old Motor
Add instructable to: