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.


    Log in to reply
     


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


Log in to reply
 

1 out of 3

Suggested Topics


  • Bug Reports   24 Mar 2014, 22:52

    4

  • General Discussion   27 Mar 2025, 06:07

    3
  • 23
  • 4
  • 2
  • 5

12
Online

11.5k
Users

11.1k
Topics

112.8k
Posts