I am designing my very first DC motor driver circuit. Right at the start, I want to be able to measure the input voltage to the system. The system supposed to work with external DC power supply from 12 to 35 Volts. I think it is possible to directly measure this range with the ADC of the MCU (it is an STM32) with ADC ref voltage of 3.3V. Is the divider circuit below enough?
Do I need to do any protection for the MCU pin? Do I need to add a series resistor in the path between this (VSENSE_IN) point and the MCU pin?
For example, if the divider gives more than 5V...the MCU pin input limit is reached and damaged...how can I protect it from over voltage?
How can I improve this?