# PID algorithm to control flowrate through a valve

**URL:** <https://forum.arduino.cc/t/pid-algorithm-to-control-flowrate-through-a-valve/1103390>\
**Category:** Motors, Mechanics, Power and CNC\
**Created:** [March 17, 2023, 9:25pm UTC](https://forum.arduino.cc/t/pid-algorithm-to-control-flowrate-through-a-valve/1103390 "2023-03-17T21:25:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aristidis](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@aristidis](https://forum.arduino.cc/u/aristidis)\
**Post date:** [March 17, 2023, 9:25pm UTC](https://forum.arduino.cc/t/pid-algorithm-to-control-flowrate-through-a-valve/1103390/1 "2023-03-17T21:25:47Z")

</div>

Hello, this is my first post here and I want to use Arduino to control the flow through a valve as in the photo  
 ![reel1](https://europe1.discourse-cdn.com/arduino/original/4X/d/a/2/da20d2b7df19d5964bdeeeada11b0b76d84ee83f.png)  
with a simple dc motor 12v (possible use L298N Dual H Bridge Stepper Motor Driver Board)  
The flow regulates the desired speed of the irrigation reel (set point) which is measured by an inductive sensor (feedback as PID input).  
Any idea on how to go about this?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![mrburnette](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/mrburnette/32/702556_2.png) [@mrburnette](https://forum.arduino.cc/u/mrburnette)\
**Post date:** [March 17, 2023, 10:02pm UTC](https://forum.arduino.cc/t/pid-algorithm-to-control-flowrate-through-a-valve/1103390/2 "2023-03-17T22:02:58Z")

</div>

> [@aristidis](#):
>
> Any idea on how to go about this?

1- search forum for similar

> [Irrigation hose reel project. - Using Arduino / Project Guidance - Arduino Forum](https://forum.arduino.cc/t/irrigation-hose-reel-project/544001/7)

2- expand search to Internet

> [Arduino PID flowrate "irrigation" reel at DuckDuckGo](https://duckduckgo.com/?q=Arduino+PID+flowrate+%22irrigation%22+reel&ia=web)

3- cobble results into something feasible  
4- identify control system parts  
5- research libraries that may assist  
6- build a test project (prototype) of reduced scale  
7- test code in the prototype

8- bring all the above to the forum with details and your questions, and specifics of issues & concerns for taking the prototype to full-scale.

Note: in the opening post, you give **no** specifics other than a picture of a white box and the term "irrigation reel (set point)" ... very poor start at showing anyone you are remotely serious.

---

<div class="post-metadata">

**Author:** ![Railroader](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/railroader/32/274550_2.png) [@Railroader](https://forum.arduino.cc/u/Railroader)\
**Post date:** [March 17, 2023, 10:19pm UTC](https://forum.arduino.cc/t/pid-algorithm-to-control-flowrate-through-a-valve/1103390/3 "2023-03-17T22:19:15Z")

</div>

The first idea is following this link: [How to get the best out of this forum - Using Arduino / Installation & Troubleshooting - Arduino Forum](https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum/679966)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [September 13, 2023, 10:19pm UTC](https://forum.arduino.cc/t/pid-algorithm-to-control-flowrate-through-a-valve/1103390/4 "2023-09-13T22:19:51Z")

</div>

Closed on September 13, 2023, 10:19pm UTC

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