Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Huczas
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Huczas

    @Huczas

    0
    Reputation
    16
    Posts
    450
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Huczas Follow

    Best posts made by Huczas

    This user hasn't posted anything yet.

    Latest posts made by Huczas

    • RE: How to build raspberry gw 2.0.0

      @martinhjelmare don't know difference. Just have node using nrf24 and any configuration that will work would be ok for me.

      posted in Troubleshooting
      Huczas
      Huczas
    • RE: How to build raspberry gw 2.0.0

      @pansen

      ./configure --my-gateway=serial --my-serial-port=/dev/ttyAMA0 --my-serial-baudrate=115200 --my-transport=nrf24 --my-rf24-irq-pin=15
      

      Wiring was ok, and was working fine witch gw1.4 so - there is all ok, soldered well.
      0_1486372015325_upload-ed13d19f-5a9c-4daa-853b-08b80fe745d4

      Yesterday I connected gw2.1.1 on arduino uno - blue usb wire - it is working now, nodes are visible in my system, data is comming. If there well be no luck i will live in that way. It's just another thing behinde my speaker.

      posted in Troubleshooting
      Huczas
      Huczas
    • RE: How to build raspberry gw 2.0.0

      @mfalkvidd another thing, after changing version of gateway from 1.4 to 2.1.1:
      0_1486205151792_upload-3da97f77-7b96-4c77-a732-c2f831650525

      posted in Troubleshooting
      Huczas
      Huczas
    • RE: How to build raspberry gw 2.0.0

      @mfalkvidd libraries in Arduino IDE updatet to 2.1.1 sketch uploaded - no errors.
      in RPi3, latest version of gateway installed and when all is up I get this:

      pi@raspberrypi:~/MySensors $ sudo ./bin/mysgw -d
      mysgw: Starting gateway...
      mysgw: Protocol version - 2.1.1
      mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1
      mysgw: TSM:INIT
      mysgw: TSF:WUR:MS=0
      mysgw: !TSM:INIT:TSP FAIL
      mysgw: TSM:FAIL:CNT=1
      mysgw: TSM:FAIL:PDT
      mysgw: TSM:FAIL:RE-INIT
      mysgw: TSM:INIT
      mysgw: !TSM:INIT:TSP FAIL
      mysgw: TSM:FAIL:CNT=2
      mysgw: TSM:FAIL:PDT
      mysgw: TSM:FAIL:RE-INIT
      mysgw: TSM:INIT
      mysgw: !TSM:INIT:TSP FAIL
      mysgw: TSM:FAIL:CNT=3
      mysgw: TSM:FAIL:PDT
      ^Cmysgw: Received SIGINT
      

      Do you have any guess on it? For me it looks like nothing is transmitting from node.
      My node code: http://pastebin.com/LCjF5Cm1 maybe something is wrong with that code.

      posted in Troubleshooting
      Huczas
      Huczas
    • How to build raspberry gw 2.0.0

      Hi, just want to create using https://www.mysensors.org/build/raspberry - gateway on raspberry pi in version 2.0.0. I've done git clone then git checkout 2.0.0 - but there isn't .configure file and I don't know how to make it to work for me.
      Can anyone help me?
      Second way is to leave gw in newest version(2.1.1) and upgrade code in my node but I don't know how becouse my node is for version 2.0gw. I can post that code if anyone know how to upgrade it.

      posted in Troubleshooting
      Huczas
      Huczas
    • RE: Solar Powered Soil Moisture Sensor

      @flopp just release that @mrwomble was posting that updated code sorry. @mrwomble can you help?

      posted in My Project
      Huczas
      Huczas
    • RE: Solar Powered Soil Moisture Sensor

      @flopp is your code should work with new version of gateway 2.1.1?
      Just maked using this tutorial my gateway https://www.mysensors.org/build/raspberry and I'm getting nothing in debug...

      pi@raspberrypi:~/MySensors $ sudo ./bin/mysgw -d
      mysgw: Starting gateway...
      mysgw: Protocol version - 2.1.1
      mysgw: MCO:BGN:INIT GW,CP=RNNG---,VER=2.1.1
      mysgw: TSM:INIT
      mysgw: TSF:WUR:MS=0
      mysgw: !TSM:INIT:TSP FAIL
      mysgw: TSM:FAIL:CNT=1
      mysgw: TSM:FAIL:PDT
      mysgw: TSM:FAIL:RE-INIT
      

      In node I used your newest code for gw2.0 - is this because version mismatch or something different in my setup?
      Could you update your code to work with new version?

      posted in My Project
      Huczas
      Huczas
    • RE: Irrigation Controller (up to 16 valves with Shift Registers)

      @petewill as I sad before - pull up 1k resistor and wire it to Arduino pin 6 - I mean

      pull up - connect to power,
      so should be 1k resistor connected with power source(that make sence with pull up) and also with pin 6. Like below:
      0_1477751319151_Przechwytywanie.PNG

      posted in My Project
      Huczas
      Huczas
    • RE: Irrigation Controller (up to 16 valves with Shift Registers)

      @petewill
      Yes, I've tested this and it's working well!
      Link to the hackerspace - HackerSpace Warsaw, they are on irc - where I talk with them, #hackerspace-pl at freenode servers.

      posted in My Project
      Huczas
      Huczas
    • RE: Irrigation Controller (up to 16 valves with Shift Registers)

      ok, I just get back from Hackerspace. Some people fix this issue:
      SN74HC595 - 13 pin (OE from datascheet) - remove GND and then add pull up 1k resistor and wire it to Arduino pin 6

      and software, added three lines in code:

        const int outputEnablePin = 6;
      
        pinMode(outputEnablePin, OUTPUT);
        digitalWrite (outputEnablePin, LOW);
      
      

      put them after 190 line https://github.com/mysensors/MySensorsArduinoExamples/blob/master/examples/IrrigationController/IrrigationController.ino

      should be like that:

      <some code>
       //Setup Shift Register...
      const int latchPin = 8;
      const int clockPin = 4;
      const int dataPin  = 7;
      const int outputEnablePin = 6;
      //
      byte clock[8] = {0x0, 0xe, 0x15, 0x17, 0x11, 0xe, 0x0}; // fetching time indicator
      byte raindrop[8] = {0x4, 0x4, 0xA, 0xA, 0x11, 0xE, 0x0,}; // fetching Valve Data indicator
      // Set the pins on the I2C chip used for LCD connections:
      //                    addr, en,rw,rs,d4,d5,d6,d7,bl,blpol
      LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);  // Set the LCD I2C address to 0x27
      MySensor gw;
      //
      MyMessage msg1valve(CHILD_ID_SPRINKLER, V_LIGHT);
      MyMessage var1valve(CHILD_ID_SPRINKLER, V_VAR1);
      MyMessage var2valve(CHILD_ID_SPRINKLER, V_VAR2);
      //
      void setup()
      {
        SERIAL_START(115200);
        DEBUG_PRINTLN(F("Initialising..."));
        pinMode(latchPin, OUTPUT);
        pinMode(clockPin, OUTPUT);
        pinMode(dataPin, OUTPUT);
        pinMode(ledPin, OUTPUT);
        pinMode(waterButtonPin, INPUT_PULLUP);
        //pinMode(waterButtonPin, INPUT);
        attachInterrupt(1, PushButton, RISING); //May need to change for your Arduino model
        digitalWrite (ledPin, HIGH);
        DEBUG_PRINTLN(F("Turning All Valves Off..."));
        updateRelays(ALL_VALVES_OFF);
        pinMode(outputEnablePin, OUTPUT);
        digitalWrite (outputEnablePin, LOW);
      <some code>
      

      If somebody can update this project in github and that fritzling draw - would be super nice.

      posted in My Project
      Huczas
      Huczas