Dear Expert:
Normally, the external supply is 12V. Now I need to read the real supply voltage in software, how to make it ?
Hi,
this is usually solved by simple resistor voltage divider which scales the voltage to range which can be read by the MCU (0-5V or 0-3.3V).
Regards,
Lukas