Reading PWM from 12v motor

I am working on a project right now. And i want to read PWM on a 12v DC circuit that is comming off of a controller to run a pump. The end goal is to read the commanded output to the pump and use a pressure sensor down line to ensure the system is working properly. Set limits and if the system pressure drops (or raises too high) to send a signal to cut power to another component using a servo.

What would you all recommend to:

-Reduce voltage to install the Arduio to an existing 12v system

  • Most importantly - read pwm off a wire running to a 12v pump.

Here is a simple circuit for that:


This one shows an analog input but you can configure it for digital input or use a digital pin.

2 Likes

If you mean "power the Ardiuno from the 12V supply" then a Buck Converter that outputs 7V can be used on the Vin pin or power jack. Shouldn't need to source more than 500 mA.

2 Likes

John,

I apologize for my ignorance on the subject. But i guess thats why i am here. My research has me a bit nervous here. Voltage spikes and drops seem to be a bit of a general concern. Would a simple buck converter be a safe option?

1 Like

You can use a 12V Power Filter to filter out noise if you think that might be causing problems in your circuit.

1 Like

For reading the PWM signal try using the PulseIn() function.
Arduino Reference: PulseIn()

Also, before connecting your signal to A1, you can use a voltmeter to ensure the voltage never spikes over 5V.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.