9 years, 6 months ago.

how to use sensor

hi, i am newbie on embedded world , most sensors like light sensor ,distance sensor give 0v to 5v output values but as i understood from datasheet of stm32L0 (M0 ) max input voltage is 3.6v . how can i use such sensors with my stm32L053R8 board. Thank you.

1 Answer

9 years, 6 months ago.

There are some circuits to change their voltage range, such as a resistive divider, or if that is not possible an opamp circuit, and sometimes just running it at 3.3V also works fine. However in general most sensors used these days for microcontrollers are digital ones with the AD conversion being done in the sensors.

Accepted Answer