just by using micro controller, can we determine a peak voltage ? no analog pls thank you guys
can you suggest one because i have know idea how it worksYes.
the atmega328pWhich microcontroller do you plan on using?
What do you mean by "no analog"?just by using micro controller, can we determine a peak voltage ? no analog pls thank you guys
oh so at first i intended to use the peak detector circuit but then i thought why not use micro controller insteadWhat do you mean by "no analog"?
Even digital is analog.![]()

You can use input potential divider to read in higher voltages.If the ATmega328 configured for 5V, then ADC will read maximum of 5V.
“Potential divider”You can use input potential divider to read in higher voltages.
Then what the heck is a potentiometer?“Potential divider”
I don’t mean to be too technical, but VOLTAGE IS NOT ELECTRIC POTENTIAL ENERGY! Potential energy is measured in joules (watt seconds). Electric potential is the ability to deliver power over time. While as a beginner, it can help you understand it, that’s completely wrong. There is an important distinction. Voltage is an electric field, but it may not be able to supply much current, power, or power over time (real potential). That’s the end of my rant.![]()
Regards, Dana.What is the source of this analog voltage, and what kind of accuracy do you want?
What range is it in, and is it AC or DC?