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...


  • Hardware Contributor

    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.


 

243
Online

8.6k
Users

9.4k
Topics

99.0k
Posts