Hello, im designing a switchmode power supply for my audio amplifier. Now, i want to put ATmega328 (from arduino uno) in my project to...do some stuff XD . One of them is to read voltage levels from PSU. Reading positive voltages will be ok, but im suspicious for negative (i dont have hardware yet, waiting to come) so i do some simulation. Is my project on shematic ok? Or i will blow my uno XD?
With an op-amp you can build an inverting amplifier.
Or you can use a bias/summing resistor network. i.e. The ADC might see +5V when the power supply is zero, and 0V when the negative supply voltage is fed-in. I think that could be done with 3 resistors but I haven't really thought-out the schematic or made any calculations.
The Arduino's ADC only reads 0 to +5V and it can be damaged if you go over that range.
