Variable Power Supply with LCD

Are you an electronic hobbyist? Then an adjustable power supply is a must for your various needs. This project explains how to make a LM317 based adjustable power supply unit with a digital display.
Variable Power Supply with LCD
Components Required
1.     LM317 IC
2.     Resistor – 240 Ohms
3.     Capacitors – 0.1uF, 10uF
4.     Potentiometer – 5k
5.     30V/1A Adapter (or a transformer + Bridge wave rectifier IC)
6.     ATMega16 Developments Board
7.     16 x 2 LCD Board
Variable Power Supply with LCD schematic
Circuit Design
Well the power supply circuit is very simple and can be found in the datasheet of LM317 itself.
What we need to design is the additional voltmeter kind of arrangements using a microcontroller in order to display the output voltage value accurately. For this, we use the ADC feature of the microcontroller.
But the problem is that ATmega16 can only take up to 5V. Input voltage more than that can fry up the controller.
Solution: A Voltage divider circuit!
Here R1 and R2 are the resistors and Vin is the input voltage. The output voltage Vout is given as:
Vout =  Vin X R2/(R1 + R2) .  .  .  .  .  .  .  .  .  .  .  .  .  .  . (1)
We choose the resistor values based on our requirements. Like say now our maximum voltage to be measured is 30V but we can only give up to 5V to our controller.
 
For more detail: Variable Power Supply with LCD


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

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

Scroll to Top