i have a project for my microcontroller lab for making voltage regulator using arduino. Can anyone help me with this.
closed as too broad by JRE, Transistor, Olin Lathrop, Leon Heller, Dmitry Grigoryev Jul 2 '18 at 9:26
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
You can make a voltage regulator from an Arduino Nano simply by applying a voltage of 6.5V to the Vin pin vs. GND.
- +5V will be available on the 5V pin
- +3.3V will be available on the 3V3 pin
You can leave the other pins and the USB jack disconnected. No need for any programming. Read the datasheets for the AMS1117 and CH340 to determine the maximum current available.
Take a look at how an analog voltage regulator works. Part of the circuit is a feedback path that observes what the actual output voltage is, compares that to the desired output voltage, and adjusts something to keep the two voltages the same. Now, replace everything in the analog feedback path with your Arduino.
You can use a LM317/LM350 and a digital potentiometer wired to your arduino. By adjusting the potentiometer’s resistance, you can adjust the output voltage from ~33V to 1.25V. Remember that P_dissipate = ( Vin - Vout ) * I_load. Note that you shouldn’t expose any pin on your arduino to more than 3.5V for 3V3 boards, and 5.5V for 5V boards like nano, uno. You can measure the voltage from this device simply with just a resistor in series with a zener diode, though that is a bit of a hack.