Skip to main content
4 of 5
added 1 character in body; edited title
JRE
  • 73.6k
  • 10
  • 112
  • 195

How can I use 12 V devices with a 3.3 V microcontroller?

I have some Hall effect flowmeters that pulse their input voltage on their signal line appear to work more accurately at the top end of their input voltage range (5-12 V). The problem is my controller is a Raspberry Pi with 3.3 V GPIOs which reportedly will fry with a 12 V input.

I am a novice with electronics. It appears that a voltage divider would work if I can find an appropriate pair of resistors; 3.3 V from 12 V is the target, but I believe the Raspberry Pi will perceive anything above 2.2 V to be "High" and register the pulse. My main problem is finding room on my project board for four pairs of resistors.

Is a voltage divider "the" way to do this (reduce a potential 12 V PWM down to a 3.3 V PWM signal) or is there a better way?