Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. General Discussion
  3. CYCLE PUMPE

CYCLE PUMPE

Scheduled Pinned Locked Moved General Discussion
3 Posts 3 Posters 442 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hohm
    wrote on last edited by Nca78
    #1
    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.

    dbemowskD 1 Reply Last reply
    0
    • H hohm
      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.

      dbemowskD Offline
      dbemowskD Offline
      dbemowsk
      wrote on last edited by
      #2

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

      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

      1 Reply Last reply
      1
      • Nca78N Offline
        Nca78N Offline
        Nca78
        Hardware Contributor
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        31

        Online

        11.7k

        Users

        11.2k

        Topics

        113.1k

        Posts


        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • MySensors
        • OpenHardware.io
        • Categories
        • Recent
        • Tags
        • Popular