Hiii..
I want to give input (analog) to the arduino from output of a power electronics circuit (as voltage) and then that voltage will be compared with one reference voltage which will be send from computer and given to PI controller and then it'll generate PWM to control the switch of that circuit. But problem is that the voltage is mora than 20 volt.
So how can I give that voltage to arduino ?
Is there any other way to do this?
Put the voltage across 2 resistors.
Vin to R1, R2 to Gnd.
Junction of R1/R2 is Vout.
Vout = Vin*R2/(R1+R2)
But to do that you need to know the output impedance of that signal... Link to the "power electronics circuit" would be
useful information.