I have recently built a home power supply using a lm317 and wall-wart. I am now looking to add on to this project by displaying voltage/current measurements on an LCD.
My initial idea was just to add a very low valued resistor in series with the positive output of the supply. I could then measure the voltages using 2 pins and the ADC of the uC. Then solve for the current and use the latter value as the output voltage.
Would this work? Any suggestions/ideas are appreciated.
My initial idea was just to add a very low valued resistor in series with the positive output of the supply. I could then measure the voltages using 2 pins and the ADC of the uC. Then solve for the current and use the latter value as the output voltage.
Would this work? Any suggestions/ideas are appreciated.