Author Topic: ADC on an STM32 and high voltage inputs  (Read 934 times)

0 Members and 1 Guest are viewing this topic.

Offline roogadgetTopic starter

  • Contributor
  • Posts: 27
  • Country: au
ADC on an STM32 and high voltage inputs
« on: September 26, 2018, 04:32:17 am »
Hi,

I am designing a sensor device.

The sensor takes in a input voltage between 0 - 12 V. I need to do some magic in the middle to get it into the ADC pin (say >1V low, 2.5 High).

What is the typical way to do this?

 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11248
  • Country: us
    • Personal site
Re: ADC on an STM32 and high voltage inputs
« Reply #1 on: September 26, 2018, 04:48:37 am »
Not clear why you don't want to have the lower level to be 0 on the MCU side as well. This way a simple resistor divider may work.

If the signal is fast changing and you want to reduce noise, then opamp to buffer the divided signal before the MCU. This will ensure consistent impedance matching.
Alex
 
The following users thanked this post: roogadget


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf