CYCLE PUMPE
-
void Pumpe(){ if(percentage < SystemLimens.setSoil_Limen) { digitalWrite(RelayPin,RelayOn);//on } if(totalMilliLitres>=SystemLimens.setVolume_Limen) { digitalWrite(RelayPin,RelayOff);//off } if(millis()-StartTime>=fivesMinutes)// temps d'absorption de l'eau par les racines { reset_Counter(); } }
ello I would like to add a second cycle of watering,
force On, stop the pump by totalMimimeters and reset counter.
someone would have an idea please.
-
@hohm First, it helps when posting code to put it in a code block. If you can edit your post and highlight your "Pumpe" block of code and click the </> icon. It helps too if your code is indented. That should make your code a bit easier to read. You may also want to post your full sketch so we can see what is going on.
Welcome to the forum...
-
Hello @hohm I added the code block to your message.
Is the "Pumpe()" function your attempt for the second cycle, or do you want to add a second cycle to the Pumpe() function ? Because from what I see it's doing what you ask ? If humidity percentage is below limit activate pump, when pumped volume is over specified volume stop the pump, and after "fiveMinutes" are passed, reset the counter.
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
Email notifications received twice
General Discussion • 6 Feb 2023, 16:15 • Jodaille 27 Mar 2025, 06:07 -
ESP-NOW
General Discussion • 22 Apr 2018, 05:58 • NeverDie 17 Feb 2025, 22:24 -
Why is the output of ACS712 current measurement module unchanged?
General Discussion • 19 Jul 2021, 09:09 • Tessie T 28 days ago -
What is actual status of MySensors?
General Discussion • 16 days ago • perfectom 8 days ago -
Which device I have to use to connect with accelerometer before connecting to my pc?
General Discussion • 24 Jan 2023, 17:16 • Yada Kijsathan 16 Mar 2025, 20:17