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. -
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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login