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. My Project
  3. Irrigation Controller (up to 16 valves with Shift Registers)

Irrigation Controller (up to 16 valves with Shift Registers)

Scheduled Pinned Locked Moved My Project
371 Posts 56 Posters 247.8k Views 52 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.
  • rechin304R Offline
    rechin304R Offline
    rechin304
    wrote on last edited by
    #135

    @rechin304 said:

    {
           updateRelays(0); //all outputs will be on
         }
    

    I did this so all relays on is ok now.
    What i miss is to start individual zones more than once at a time :).

    1 Reply Last reply
    0
    • rechin304R Offline
      rechin304R Offline
      rechin304
      wrote on last edited by rechin304
      #136

      Pictures of the case project and how is arranged inside. Not yet on the final location, still testing.
      5_1461396298101_IMG_3866.JPG 4_1461396298101_IMG_3865.JPG 3_1461396298101_IMG_3863.JPG 1_1461396298101_IMG_3861.JPG 0_1461396298101_IMG_3860.JPG

      k5mapK 1 Reply Last reply
      3
      • David MoraD Offline
        David MoraD Offline
        David Mora
        wrote on last edited by
        #137

        Hi I just finished building my first project in arduino ( this one) but the code is too large now for the arduino memory its 32748 bytes could you please share with me the older version of the code / libraries to run it in code bender ?

        mfalkviddM petewillP 2 Replies Last reply
        0
        • David MoraD David Mora

          Hi I just finished building my first project in arduino ( this one) but the code is too large now for the arduino memory its 32748 bytes could you please share with me the older version of the code / libraries to run it in code bender ?

          mfalkviddM Online
          mfalkviddM Online
          mfalkvidd
          Mod
          wrote on last edited by
          #138

          @David-Mora's question was double-posted. See https://forum.mysensors.org/topic/3921/code-grew-larger-dan-promini/ for the other thread.

          1 Reply Last reply
          0
          • David MoraD David Mora

            Hi I just finished building my first project in arduino ( this one) but the code is too large now for the arduino memory its 32748 bytes could you please share with me the older version of the code / libraries to run it in code bender ?

            petewillP Offline
            petewillP Offline
            petewill
            Admin
            wrote on last edited by
            #139

            @David-Mora I responded to your comment on the YouTube video but I'll respond here as well just in case people are reading this thread instead.

            This is probably because debug is enabled in the MyConfig.h file. Please comment out this line: #define DEBUG
            Make sure to save the .h file then recompile the Arduino code. It should be around 25,342 bytes.

            My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

            1 Reply Last reply
            0
            • David MoraD Offline
              David MoraD Offline
              David Mora
              wrote on last edited by David Mora
              #140

              Hi Pete thank you very much, I am using mysensors online editor , not sure if I should edit that code?0_1463751590886_mysensors.jpg

              1 Reply Last reply
              0
              • hekH Offline
                hekH Offline
                hek
                Admin
                wrote on last edited by
                #141

                It's not possible to disable this from codebender. You'll need to install the Arduino IDE onto your computer.

                David MoraD 1 Reply Last reply
                0
                • hekH hek

                  It's not possible to disable this from codebender. You'll need to install the Arduino IDE onto your computer.

                  David MoraD Offline
                  David MoraD Offline
                  David Mora
                  wrote on last edited by David Mora
                  #142

                  @hek in computer I get this:
                  C:\Program Files (x86)\Arduino\libraries\LiquidCrystal\I2CIO.cpp:35:26: fatal error: ../Wire/Wire.h: No such file or directory

                  #include <../Wire/Wire.h>

                                        ^
                  

                  compilation terminated.

                  exit status 1
                  Error compilación en tarjeta Arduino Pro or Pro Mini.

                  petewillP 1 Reply Last reply
                  0
                  • David MoraD David Mora

                    @hek in computer I get this:
                    C:\Program Files (x86)\Arduino\libraries\LiquidCrystal\I2CIO.cpp:35:26: fatal error: ../Wire/Wire.h: No such file or directory

                    #include <../Wire/Wire.h>

                                          ^
                    

                    compilation terminated.

                    exit status 1
                    Error compilación en tarjeta Arduino Pro or Pro Mini.

                    petewillP Offline
                    petewillP Offline
                    petewill
                    Admin
                    wrote on last edited by
                    #143

                    @David-Mora Maybe this will help:
                    https://www.youtube.com/watch?v=qUey_X9n2KI

                    My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                    1 Reply Last reply
                    0
                    • David MoraD Offline
                      David MoraD Offline
                      David Mora
                      wrote on last edited by David Mora
                      #144

                      thank you for your help ! I just reinstaled arduino and now I getthis ( I just downloaded the I.5 and copy and paste all libraries in the libraries folder:
                      TENCIÓN: Categoría '' en librería UIPEthernet no es válida. Configurando a 'Uncategorized'
                      C:\Users\David\Desktop\IrrigationController\IrrigationController.ino:92:31: fatal error: LiquidCrystal_I2C.h: No such file or directory

                      #include <LiquidCrystal_I2C.h>

                                                 ^
                      

                      compilation terminated.

                      exit status 1
                      Error compilación en tarjeta Arduino Pro or Pro Mini.0_1463753883896_liquid.jpg

                      David MoraD 1 Reply Last reply
                      0
                      • David MoraD David Mora

                        thank you for your help ! I just reinstaled arduino and now I getthis ( I just downloaded the I.5 and copy and paste all libraries in the libraries folder:
                        TENCIÓN: Categoría '' en librería UIPEthernet no es válida. Configurando a 'Uncategorized'
                        C:\Users\David\Desktop\IrrigationController\IrrigationController.ino:92:31: fatal error: LiquidCrystal_I2C.h: No such file or directory

                        #include <LiquidCrystal_I2C.h>

                                                   ^
                        

                        compilation terminated.

                        exit status 1
                        Error compilación en tarjeta Arduino Pro or Pro Mini.0_1463753883896_liquid.jpg

                        David MoraD Offline
                        David MoraD Offline
                        David Mora
                        wrote on last edited by
                        #145

                        @David-Mora quite sad I´ve spent two days now installing and uninstalling arduino and libraries and no luck

                        petewillP 1 Reply Last reply
                        0
                        • David MoraD David Mora

                          @David-Mora quite sad I´ve spent two days now installing and uninstalling arduino and libraries and no luck

                          petewillP Offline
                          petewillP Offline
                          petewill
                          Admin
                          wrote on last edited by
                          #146

                          @David-Mora Did you close all instances of Arduino and open again after you added the LiquidCrystal library? It looks like it can't find it.

                          My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                          David MoraD 1 Reply Last reply
                          0
                          • petewillP petewill

                            @David-Mora Did you close all instances of Arduino and open again after you added the LiquidCrystal library? It looks like it can't find it.

                            David MoraD Offline
                            David MoraD Offline
                            David Mora
                            wrote on last edited by
                            #147

                            @petewill Yes Pete it doesnt work at all

                            David MoraD 1 Reply Last reply
                            0
                            • David MoraD David Mora

                              @petewill Yes Pete it doesnt work at all

                              David MoraD Offline
                              David MoraD Offline
                              David Mora
                              wrote on last edited by
                              #148

                              @David-Mora hope this is the right way to post the code finally the only mistake is
                              Arduino:1.6.9 (Windows 7), Tarjeta:"Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"

                              El Sketch usa 30,808 bytes (100%) del espacio de almacenamiento de programa. El máximo es 30,720 bytes.
                              Las variables Globales usan 1,329 bytes (64%) de la memoria dinámica, dejando 719 bytes para las variables locales. El máximo es 2,048 bytes.
                              processing.app.debug.RunnerException: Programa muy grando: visite http://www.arduino.cc/en/Guide/Troubleshooting#size para ver cómo reducirlo.
                              at cc.arduino.Compiler.size(Compiler.java:315)
                              at cc.arduino.Compiler.build(Compiler.java:156)
                              at processing.app.Sketch.build(Sketch.java:1111)
                              at processing.app.Sketch.build(Sketch.java:1081)
                              at processing.app.Editor$BuildHandler.run(Editor.java:1988)
                              at java.lang.Thread.run(Thread.java:745)
                              Programa muy grando: visite http://www.arduino.cc/en/Guide/Troubleshooting#size para ver cómo reducirlo.
                              Tarjeta en COM4 no disponible

                              Este reporte podría tener más información con
                              "Mostrar salida detallada durante la compilación"
                              opción habilitada en Archivo -> Preferencias.

                              petewillP 1 Reply Last reply
                              0
                              • David MoraD David Mora

                                @David-Mora hope this is the right way to post the code finally the only mistake is
                                Arduino:1.6.9 (Windows 7), Tarjeta:"Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"

                                El Sketch usa 30,808 bytes (100%) del espacio de almacenamiento de programa. El máximo es 30,720 bytes.
                                Las variables Globales usan 1,329 bytes (64%) de la memoria dinámica, dejando 719 bytes para las variables locales. El máximo es 2,048 bytes.
                                processing.app.debug.RunnerException: Programa muy grando: visite http://www.arduino.cc/en/Guide/Troubleshooting#size para ver cómo reducirlo.
                                at cc.arduino.Compiler.size(Compiler.java:315)
                                at cc.arduino.Compiler.build(Compiler.java:156)
                                at processing.app.Sketch.build(Sketch.java:1111)
                                at processing.app.Sketch.build(Sketch.java:1081)
                                at processing.app.Editor$BuildHandler.run(Editor.java:1988)
                                at java.lang.Thread.run(Thread.java:745)
                                Programa muy grando: visite http://www.arduino.cc/en/Guide/Troubleshooting#size para ver cómo reducirlo.
                                Tarjeta en COM4 no disponible

                                Este reporte podría tener más información con
                                "Mostrar salida detallada durante la compilación"
                                opción habilitada en Archivo -> Preferencias.

                                petewillP Offline
                                petewillP Offline
                                petewill
                                Admin
                                wrote on last edited by
                                #149

                                @David-Mora Looks like you are almost there!

                                Did you disable debug? The sketch looks too big. To disable go to the MySensors library and open the MyConfig.h file in Notepad and change this line:

                                #define DEBUG
                                

                                to

                                //#define DEBUG
                                

                                Also, it looks like the Arduino IDE programmer isn't finding your Pro Mini. Did you select the correct Board and Port from the Tools menu? I don't have an Arduino next to me so my port isn't available to select but it should look similar to this (except you would choose your Port the Arduino is connected to):
                                0_1463835965285_upload-1dd27cba-b4e4-4543-980b-5ac59cc5da52

                                My "How To" home automation video channel: https://www.youtube.com/channel/UCq_Evyh5PQALx4m4CQuxqkA

                                1 Reply Last reply
                                0
                                • rechin304R Offline
                                  rechin304R Offline
                                  rechin304
                                  wrote on last edited by
                                  #150

                                  On my controller i use diffren LCD library and i was commented out this line

                                  //#include <LiquidCrystal_I2C.h>
                                  
                                  and
                                  
                                  //LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);  // Set the LCD I2C address to 0x27
                                  

                                  Sketch uses 27,916 bytes (90%) of program storage space. Maximum is 30,720 bytes.
                                  Global variables use 1,295 bytes (63%) of dynamic memory, leaving 753 bytes for local variables. Maximum is 2,048 bytes.

                                  1 Reply Last reply
                                  0
                                  • HuczasH Offline
                                    HuczasH Offline
                                    Huczas
                                    wrote on last edited by Huczas
                                    #151

                                    Is there a way to use domoticz to connect with it and on/off this irrigation system? How to achive this?

                                    My domoticz is running on raspberry pi 0.

                                    Mark JeffordM 1 Reply Last reply
                                    0
                                    • HuczasH Huczas

                                      Is there a way to use domoticz to connect with it and on/off this irrigation system? How to achive this?

                                      My domoticz is running on raspberry pi 0.

                                      Mark JeffordM Offline
                                      Mark JeffordM Offline
                                      Mark Jefford
                                      wrote on last edited by
                                      #152

                                      @Huczas

                                      Yes, i've had to manually set the valve runtimes on the ardunio code, because its not possible to pass the runtime variable etc, this is from the one i''ve got built. runtime is 1min, but you can edit as required.

                                      else if (message.type == V_VAR1)
                                            {
                                              int variable1 = 60000; // atoi(message.data);// RUN_ALL_ZONES time
                                              DEBUG_PRINT(F("Recieved variable1 valve:"));
                                              DEBUG_PRINT(i);
                                              DEBUG_PRINT(F(" = "));
                                              DEBUG_PRINTLN(variable1);
                                              if (variable1 != allZoneTime[i])
                                              {
                                                allZoneTime[i] = variable1;
                                      
                                                zoneTimeUpdate = true;
                                              }
                                            }
                                            else if (message.type == V_VAR2)
                                            {
                                              int variable2 = 60000; //atoi(message.data);// RUN_SINGLE_ZONE time
                                              DEBUG_PRINT(F("Recieved variable2 valve:"));
                                              DEBUG_PRINT(i);
                                              DEBUG_PRINT(F(" = "));
                                              DEBUG_PRINTLN(variable2);
                                              if (variable2 != valveSoloTime[i])
                                              {
                                                valveSoloTime[i] = variable2;
                                                zoneTimeUpdate = true;
                                              }
                                            }
                                      
                                      1 Reply Last reply
                                      0
                                      • Sergio RiusS Offline
                                        Sergio RiusS Offline
                                        Sergio Rius
                                        wrote on last edited by
                                        #153

                                        Thanks for posting, Mark. I was getting nuts figuring out what was the problem with my controller that was only activating 1sec each phase. I didn't implement it because that problem.

                                        Mark JeffordM 1 Reply Last reply
                                        0
                                        • Sergio RiusS Sergio Rius

                                          Thanks for posting, Mark. I was getting nuts figuring out what was the problem with my controller that was only activating 1sec each phase. I didn't implement it because that problem.

                                          Mark JeffordM Offline
                                          Mark JeffordM Offline
                                          Mark Jefford
                                          wrote on last edited by
                                          #154

                                          @Sergio-Rius no problem, i had plenty of issues trying to get this to work with openhab before i changed controller :)

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


                                          16

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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