Single LED as Voltage Level Indicator

Introduction

In many circuits we need to display battery voltage level, most of the battery operated device need indication for battery level such as solar lamp, charger circuits. LEDs are most popular to show status of system such as power on/off, Level indication Low, High, Medium etc. LEDs are available in various sizes and colors, they are simple to use and offer design flexibility. Let’s start with our first example LED as voltage level indications. This can be useful in battery level indication applications.

What we learn?

  1. How to read battery voltage using arduino?
  2. How to display battery voltage level?
  3. How to operate single LED to show different voltage levels?

Problem Statement

We are using single led to indicate the voltage levels at three different conditions.

Voltage vs LED status

Voltage input LED state
No voltage (0V) Off
Voltage below 0.5V to 3.3V Slow Blink
Voltage above 3.3V to 4V Fast Blink
Voltage above 4V On

LED Connections with Arduino

            From problem statement we know that we have a LED on Arduino and Measurement of DC voltage from ADC channel, Let us consider we are using on board LED (pin 13) and we are applying onboard voltage to ADC channel A0 through a potentiometer.

Arduino Battery Level Indicator
Tutorial on how to use single led as voltage level indicator with arduino.

Arduino Code for Voltage Indicator

Result:

By turning the potentiometer generate different voltages conditions and observe LED status.

Leave a Reply

Your email address will not be published. Required fields are marked *