Coding for a automatic pressure control system

Hey there,

I m trying to develop a automatic pressure control system using an Arduino Uno, 12 v 3 amp DC motor , pressure sensor and motor controller. The control of motor RPM is based off of an analog signal from a water pressure sensor that is sent to an analog input on the Arduino.

The DC motor is coupled to a small pump which gives a discharge of water. The pressure sensor receives a water pressure depending on the flow of water through the system. Id like the Arduino and motor controller to maintain a constant output from the pressure sensor. Therefore, if water flow and pressure increase, the output of the pressure sensor increases then pressure sensor gives a signal to the arduino and it reduces the rpm of DC motor so that pressure will be reduced in the system.If the water flow and pressure decrease, the output of the pressure sensor decreases and at this time arduino increases rpm of motor to get desired pressure in the system. plz suggest me programming for this system.

Any help would be greatly appreciated!

Thanks everyone

Do not hijack. Thread split.

That sounds like a suitable application for the Arduino PID library

Have you written any code yet? If so post your program and tell us what it does and what you want it to do differently?

...R