Maker.io main logo

How to make Arduino LED Tester + Resistor Calculator

2023-11-28 | By Mirko Pavleski

License: General Public License Arduino

Light Emitting Diodes as an electronic component are very often used in electronic devices. There are many different types with specific characteristics such as forward voltage and maximum current. Most often it is necessary to connect them to a higher voltage where it is necessary to connect a series resistor with a certain value.

ghu

The device described in this video is a useful tool for testing, and determining characteristics of LEDs, as well as a calculator for calculating the series resistor depending on the connected voltage.

 

The idea for this project was taken from Dave Cook's model, processed with an Arduino, and I made some changes to the code which uses an I2C LCD display, and dedicated buttons to control the device, instead of an LCD keypad shield. The device is very simple to build and consists of several components: - Arduino Nano microcontroller - 16x2 LCD Display with I2C communication protocol - 7 Resistors - capacitor - and four Buttons.

jiouio

And now let's see how the tester works in real conditions. When the display is turned on, the previously defined values for the current and voltage to which the LED would be connected are shown. These values are 10mA for current and 14V for voltage. With no LED attached, it will not show a resistor value, and current value blinking.

kjljilji

The upper buttons can be used to set the current that will flow through the LED in the range from 1 to 20mA. These are values that in most cases cannot cause damage to the LED. The lower buttons set the value of the voltage to which the diode would be connected through a series resistor in the real circuit. This voltage can be set from 1 to 99 V, and the display then shows the required resistor value depending on the selected voltage and current. Also, on the lower right part of the display appears the code of that resistor. If the resistor dissipates more than half a watt, a P flashes on the top line to let you know you might need to choose a more powerful resistor. If by mistake we connect the diode with reverse polarity, the diode remains functional, it just won't light up.

jkolkiji

And finally, a short conclusion. The device presented in this project is very simple to build, but it is a really useful instrument in the laboratory, especially due to the fact that many different types of LEDs are used nowadays. The device is embedded in a suitable box made of PVC material and lined with self-adhesive colored wallpaper.

yijhuk

 

制造商零件编号 A000005
ARDUINO NANO ATMEGA328 EVAL BRD
Arduino
制造商零件编号 DFR0554
GRAVITY: I2C 16X2 ARDUINO LCD WI
DFRobot
Add all DigiKey Parts to Cart
TechForum

Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.

Visit TechForum