cancel
Showing results for 
Search instead for 
Did you mean: 

5V input to STM32 ADC ?

antonius
Senior

Dear Member,

I have a sensor with 5V output,

Does STM32 work with it ?

Thanks

5 REPLIES 5

Hi. STM32 ADC does not work with 5V. Maximal voltage for ADC you can find in datasheet (Vref or Vdda depends of uC). In most cases it is 3.6 V.

How can I use this sensor

https://www.sparkfun.com/datasheets/Sensors/MQ-3.pdf

with STM32 ?

thanks

S.Ma
Principal

https://download.mikroe.com/documents/add-on-boards/click/alcohol/alcohol-click-schematic-v100.pdf

Remember that most resistor type sensor are heated alloy base which typically need 100mA. Cheap and high power...

You can use resistor voltage divider.

put voltage divider 5V to 3.3V on analog output to STM32 ADC input ? good idea, what value do you suggest ? 10K and 20K ? 2/3*5V=3.3V

thanks