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
Mark JeffordM

Mark Jefford

@Mark Jefford
About
Posts
12
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Irrigation Controller (up to 16 valves with Shift Registers)
    Mark JeffordM Mark Jefford

    domoticz i don't think have plans to support this, they took out the ability to use free text variables.

    I plan on doing 1 minute cycles for irrigation and using a moisture sensor to evaluate how much longer the cycles need to run for.

    My Project

  • PIR faceplate
    Mark JeffordM Mark Jefford

    https://www.openhardware.io/view/4/EasyNewbie-PCB-for-MySensors

    Made up in China for about £10 Inc shipping I think

    Dirtypcbs is an awesome website :)

    My Project

  • PIR faceplate
    Mark JeffordM Mark Jefford

    Hi Jason.

    Got it into the wall. the screws that came with the faceplate are too short so had to fudge it with some longer ones which have rounded heads which don't let me mount the faceplate properly..

    But seems to work, sees all landing motion without any issues.

    Just trying to get the controller to handle retriggers to keep the light on :)

    0_1466537357365_IMAG1335.jpg

    2_1466537180022_IMAG1334.jpg 1_1466537180022_IMAG1333.jpg 0_1466537180021_IMAG1332.jpg

    My Project

  • Irrigation Controller (up to 16 valves with Shift Registers)
    Mark JeffordM Mark Jefford

    I'm going down the diodes route... another channel to trigger it is tricky to deal with unless you use normally off relays and use the code earlier in this thread. I tried to use it but use normally on relays so going for diodes.

    K.I.S.S - keep it simple stupid ;) no point making it harder for you if you have a workaround on the table :)

    My Project

  • Irrigation Controller (up to 16 valves with Shift Registers)
    Mark JeffordM Mark Jefford

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

    My Project

  • Irrigation Controller (up to 16 valves with Shift Registers)
    Mark JeffordM Mark Jefford

    @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;
            }
          }
    
    My Project

  • PIR faceplate
    Mark JeffordM Mark Jefford

    Building a mysensors PIR/Temp/Light sensor for the top of my stairs, got the first part of the build done (the other sensors will be exposed through the faceplate spacer side/top.

    http://imgur.com/a/0CV9I

    Feel free to give me your opinions, can share the STL if required, it is a super simple shape though.. it was my first 3D printed design :D

    My Project

  • Irrigation Controller (up to 16 valves with Shift Registers)
    Mark JeffordM Mark Jefford

    @BulldogLowell

    Oh, well this is strange, if i disconnect the pin to the relay, it does not activate when unpowered.

    but from the shift register it is +5 when the zone is not active, and 0V when active, so i assume its an active low not active high by your example... surely removing the 5V feed to the relay pin should make it activate.. not sure whats going on there, some sort of black magic :P

    My reading of shift registers has made my brain hurt.. do i need to reverse the 0000000010000000 for 1111111101111111?

    My Project

  • Irrigation Controller (up to 16 valves with Shift Registers)
    Mark JeffordM Mark Jefford

    @BulldogLowell
    Hi! :)

    Rather than using valve 8, i am using only a block of 4, but currently have a 2 channel for testing.

    My reading into shift registers showed 0b0000000010000000 is 2x 8 bit outputs, B0-B7

    tried configuing B0 and B7 to try and activate relay 1, was still seeing 5V on all pins apart from the output pin for the zone in use (EG zone 2 expecting Zone1 to alway be on)

    or am i doing this completely wrong? :)

    My Project

  • Irrigation Controller (up to 16 valves with Shift Registers)
    Mark JeffordM Mark Jefford

    @BulldogLowell

    Gave up with using openhab now using domoticz which is a lot nicer, forced it to hard coded run times by doing this:

    else if (message.type == V_VAR1)
    {
    int variable1 = 5; // 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 = 5; //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;
        }```
    

    one thing to note the shift register 0b0000000010000000 does not seem to work, will work out a plan around this as i need to run a 12 pump off the relay bank to draw water from the water butt.

    My Project

  • Irrigation Controller (up to 16 valves with Shift Registers)
    Mark JeffordM Mark Jefford

    Quick question, semi also referenced on the openhab binding.

    Looking to use this with Openhab, I have managed to get it to work with the serial gateway, however i don't see a way i can pass out any configuration of a valve time, i can however trigger valves with a runtime of 0 seconds.

    Any ideas how i can amend this to either use a fixed runtime in the project (happy to run it in 1min increments trigged from openhab hydro sensor results)

    My Project

  • openHAB binding
    Mark JeffordM Mark Jefford

    Hi,

    Quick question, trying to integrate the mysprinkler project into openhab.

    getting stuck using V_VAR1-3 i need to somehow export out a runtime variable to the remote ardunio... any idea how i can get the V_VAR1-3 to output something that is not binary? i.e a runtime of 5 min for sprinklers...

    i have the triggering working, just can't configure the runtime.

    any help appreciated.. will do a guide if it get it working :)

    OpenHAB
  • Login

  • Don't have an account? Register

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