Navigation

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

    Posts made by Spanners

    • RE: Arduino Uno with Ethernet Shield W5100 not working

      @yveaux - unfortunately not that much of a difference that the two Uno's started working..

      0 MCO:BGN:INIT GW,CP=RNNGA---,REL=255,VER=2.3.1
      16:26:38.766 -> 10006 TSM:INIT
      16:26:38.766 -> 10008 TSF:WUR:MS=0
      16:26:38.766 -> 10015 TSM:INIT:TSP OK
      16:26:38.766 -> 10017 TSM:INIT:GW MODE
      16:26:38.766 -> 10019 TSM:READY:ID=0,PAR=0,DIS=0
      16:26:38.766 -> 10022 MCO:REG:NOT NEEDED
      16:26:39.349 -> 10586 GWT:TIN:IP=10.0.0.244
      16:26:40.337 -> 11589 MCO:BGN:STP
      16:26:42.372 -> 13596 MCO:BGN:INIT OK,TSP=1
      16:26:42.372 -> 13603 TSM:READY:NWD REQ
      16:26:42.399 -> 13641 TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK:
      
      

      Then they just sit there.

      With verbose NRF debug on:

      20777 RF24:RBR:REG=23,VAL=17
      20780 RF24:RBR:REG=23,VAL=17
      20783 RF24:RBR:REG=23,VAL=17
      20786 RF24:RBR:REG=23,VAL=17
      20788 RF24:RBR:REG=23,VAL=17
      20791 RF24:RBR:REG=23,VAL=17
      20794 RF24:RBR:REG=23,VAL=17
      20796 RF24:RBR:REG=23,VAL=17
      20799 RF24:RBR:REG=23,VAL=17
      

      Goes on forever

      Edit:

      /epic_facepalm Tried everything including downgrading the IDE to 1.8.5, all the libraries etc..

      Out of desperation I thought I'd try the Uno Gateways on the same MY_RF24_CHANNEL/MY_RF24_BASE_RADIO_ID as my production MyS network and they started picking up transmits.

      Focus now changed to the test sensor. I started replacing hardware and discovered a flaky Dupont pin for the GND connection on my NRF radio... on the sensor I was using to test with.. of course... So between validating that my test sensor worked on the other gateways and then testing the upgraded gateways, the sensor ceased transmitting reliably.

      That my friends, is Murphy's law as applied to MySensors builds.

      posted in Troubleshooting
      Spanners
      Spanners
    • RE: Arduino Uno with Ethernet Shield W5100 not working

      I'm experiencing the same issue with 2x Uno+NRF24+W5100 Shields that I tried to upgrade from 2.2.0 to 2.3.1 yesterday with Arduino IDE 1.8.8

      I didn't modify the sketch. It does nothing funky like run other sensors, use signing or encryption.
      I have the code to disable the the SD reader in setup() already. Haven't tried in before() yet.
      The devices had been working fine previously.
      I have upgraded 2 other W5100 Ethernet gateways based on FreeTronics EtherTen and EtherMega to 2.3.1 with no issues.
      I have upgraded a Nano based Repeater with 2.3.1 with no issues.
      I have upgraded an Energy Monitoring Sensor with 2.3.1 and it works fine with the FreeTronics gateways but not with the Uno gateways.

      On the Uno Gateways:

      I have tried downgrading to MyS 2.2.0
      I have tried downgrading Ethernet library from 2.0 to 1.x (can't remember exact version)
      Tried downgrading the AVR boards definition in the IDE

      Thus far have not been able to get them working on any combination of older code. Any suggestions on how to troubleshoot further would be most welcome.

      posted in Troubleshooting
      Spanners
      Spanners
    • RE: First NRF Project (Ebyte nRF52832) device seems to hang after programming

      @neverdie

      It's a new J-link but I did update it to the latest version when I unboxed it.

      Like you say - I must be close, but something is definitely wrong.

      For my next test I'll try connecting wires directly to a naked NRF module. I do have some NRF Prototype modules and some different modules other than the Ebytes. At least if they all give me the same result I know the problem has got to be at the PC/Programmer end.

      I do also have an ST-Link V2 which I may as well have a try with.

      posted in Hardware
      Spanners
      Spanners
    • RE: First NRF Project (Ebyte nRF52832) device seems to hang after programming

      @neverdie and @Omemanti thanks for taking the time to give me some ideas.

      I tried loading the FORTH hex file to two of the nrf modules using nrfjprog, all I got from the serial output though was a single line of square characters that kept repeating. Not the desired outcome, but at least it's consistent.

      More worrying is neither of the two modules are doing anything with the LED's unlike yesterday.

      Did some more testing with the Arduino IDE, using the RC Oscillator and Reset:Enable - same result, no serial, no LED's at all anymore but the upload seems successful.

      I will run some tests with the multimeter to see if any of the pins are showing the LED blink.

      posted in Hardware
      Spanners
      Spanners
    • First NRF Project (Ebyte nRF52832) device seems to hang after programming

      Hi All,

      I'm hoping some of you can help me out, I've trawled the internet for the past week and the 1700 posts in the NRF Action thread. I've managed to at least get my NRF to program (I think), but when I load sketches on I don't get any action.

      The setup:

      • Ebyte nRF52832 E73-2G4M04S module - have 5, tried 2 so far

      • @NeverDie Small Breakout board (with the SMD components) https://www.openhardware.io/view/471/Ebyte-nRF52832-Small-Breakout-Board

      • Segger J-Link EDU (real one), JTAG to ARM cable adaptor

      • Windows 10, Arduino IDE 1.8.5

      • Installed board managers and NRF-y things as outlined https://www.openhardware.io/view/376/MySensors-NRF5-Platform AND https://forum.mysensors.org/topic/9266/guide-nrf5-nrf51-nrf52-for-beginners

      • IDE settings MyboardNRF5 nRF52832, None, Crystal Oscillator, Reset:Don't Enable

      Ok, first thing I was unable to do was burn the bootloader or upload any sketches like the erase_all example. I ended up using Nordic's nrfjprog to unlock the chip via $ nrfjprog -f NRF52 --recover, but this requires the use of a JLink debugger with the JLink driver (not WinUSB).

      After doing that, success... have been able to upload sketches, and on @NeverDie 's board, the LED lights up. If I wipe the NRF again, LED is off.

      My test sketch is the Blink_Serial_Demo_v001 which was posted with the board schematics. It needed some modification, but it compiles and I believe is faithful to the pinouts for the breakout board.

      /*
       * This example sketch shows how you can manage the nRF5 pin mapping as part of your code.
       * You can use the method for any nRF51822 or nRF52832 board or module.
       * 
       * Most components, like UART, SPI, Wire Bus, of the nRF5 series chips don't
       * have a fixed pin mapping. There are some pins with restrictions like analog
       * inputs, NFC or pins near the radio module. Please refer the latest
       * documentation about pin restrictions at http://infocenter.nordicsemi.com 
       * 
       * To use the custom pin mapping you have to do following steps:
       * 
       * 1. Install "arduino-nrf5" like described at
       *    https://github.com/sandeepmistry/arduino-nRF5/
       * 2. Install the "My Sensors nRF5 Boards" with the board manager like
       *    explained at https://github.com/mysensors/ArduinoBoards
       * 3. Copy the files "MyNRF5Board.cpp" and "MyNRF5Board.h" from
       *    "MyNRF5Board" example into your sketch.
       * 4. Modify pin mappings in "MyNRF5Board.cpp" and "MyNRF5Board.h" to fit
       *    your requirements.
       * 5. Select "MyNRF5Board nrf52832" or "MyNRF5Board nrf52822" as your board.
       *    Choose the correct parameters and programmer in the Tools menu.
       */
      
      //Simple program to demonstrate that both the LED and Serial are working correctly on the breakout board:
      // https://www.openhardware.io/view/471/Ebyte-nRF52832-Small-Breakout-Board
      //Note: Compile and upload from Arduino IDE using "MyNRF5Board nRF52832" as the board.
      //
      // Many thanks to d00616 for this framework!
      
      //#define MY_GATEWAY_SERIAL
      #define MY_RADIO_NRF5_ESB
      #define MY_DEBUG
      #define MY_NODE_ID 254
      
      
      #include <nrf.h>
      #include <MySensors.h>
      
      void setup() {
        Serial.begin(115200);
        hwPinMode(LED_BUILTIN,OUTPUT_H0H1);
      }
      
      void presentation()
      {
        
      }
      
      void loop() {
        Serial.println("HIGH");
        digitalWrite(LED_BUILTIN,HIGH);
        delay(1000);
        Serial.println("LOW");
        digitalWrite(LED_BUILTIN,LOW);
        delay(1000);
      }
      
      /*
        If you don't use an nRF5 board, you can ignore this file.
      
        This file was part of the "My Sensors nRF5 Boards" board repository
        available at https://github.com/mysensors/ArduinoBoards If you have
        questions, please refer the documentation at
        https://github.com/mysensors/ArduinoHwNRF5 first.
      
        This file is compatible with ArduinoHwNRF5 >= 0.2.0
      
        This file allows you to change the pins of internal hardware, like the
        serial port, SPI bus or Wire bus.
      
        All pins referenced here are mapped via the "g_ADigitalPinMap" Array
        defined in "MyBoardNRF5.cpp" to pins of the MCU.
        
        As an example, if you have at the third position in "g_ADigitalPinMap" the
        12, then all ports referenced in Arduino with 2 are mapped to P0.12. If you
        don't change the "g_ADigitalPinMap" Array, the Arduino pins 0..31 are
        translated to P0.00..P0..31.
         
        ###########################################################################
       
        This file is compatible with ArduinoHwNRF5 > 0.1.0
        Copyright (c) 2014-2015 Arduino LLC.  All right reserved.
        Copyright (c) 2016 Sandeep Mistry. All right reserved.
        Copyright (c) 2017 Sensnology AB. All right reserved.
      
        This library is free software; you can redistribute it and/or
        modify it under the terms of the GNU Lesser General Public
        License as published by the Free Software Foundation; either
        version 2.1 of the License, or (at your option) any later version.
        This library is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
        See the GNU Lesser General Public License for more details.
        You should have received a copy of the GNU Lesser General Public
        License along with this library; if not, write to the Free Software
        Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
      */
      
      #ifndef _MYBOARDNRF5_H_
      #define _MYBOARDNRF5_H_
      
      #ifdef __cplusplus
      extern "C"
      {
      #endif // __cplusplus
      
      // Number of pins defined in PinDescription array
      #define PINS_COUNT           (32u)
      #define NUM_DIGITAL_PINS     (32u)
      #define NUM_ANALOG_INPUTS    (8u)
      #define NUM_ANALOG_OUTPUTS   (8u)
      
      /* 
       *  LEDs
       *  
       *  This is optional
       *  
       *  With My Sensors, you can use
       *  hwPinMode() instead of pinMode()
       *  hwPinMode() allows to use advanced modes like OUTPUT_H0H1 to drive LEDs.
       *  https://github.com/mysensors/MySensors/blob/development/drivers/NRF5/nrf5_wiring_constants.h
       *
       */
      #define PIN_LED1                (11)
      //#define PIN_LED1                (8)
      // #define PIN_LED2                (25)
      // #define PIN_LED3                (26)
      // #define PIN_LED4                (27)
      // #define PIN_LED5                (12)
      // #define PIN_LED6                (14)
      // #define PIN_LED7                (15)
      // #define PIN_LED8                (16)
      // #define USER_LED             	 (PIN_LED2)
      // #define RED_LED                 (PIN_LED3)
      // #define GREEN_LED            	 (PIN_LED4)
      // #define BLUE_LED			           (PIN_LED1)
      // #define BLE_LED                 BLUE_LED
      #define LED_BUILTIN          PIN_LED1
      
      /* 
       *  Buttons
       *  
       *  This is optional
       */
      // #define PIN_BUTTON1             (3)
      // #define PIN_BUTTON2             (4)
      // #define PIN_BUTTON3             (5)
      // #define PIN_BUTTON4             (6)
      // #define PIN_BUTTON5             (7)
      // #define PIN_BUTTON6             (8)
      // #define PIN_BUTTON7             (9)
      // #define PIN_BUTTON8             (10)
      
      /* 
       * Analog ports
       *  
       * If you change g_APinDescription, replace PIN_AIN0 with
       * port numbers mapped by the g_APinDescription Array.
       * You can add PIN_AIN0 to the g_APinDescription Array if
       * you want provide analog ports MCU independed, you can add
       * PIN_AIN0..PIN_AIN7 to your custom g_APinDescription Array
       * defined in MyBoardNRF5.cpp
       */
      static const uint8_t A0  = ADC_A0;
      static const uint8_t A1  = ADC_A1;
      static const uint8_t A2  = ADC_A2;
      static const uint8_t A3  = ADC_A3;
      static const uint8_t A4  = ADC_A4;
      static const uint8_t A5  = ADC_A5;
      static const uint8_t A6  = ADC_A6;
      static const uint8_t A7  = ADC_A7;
      
      /*
       * Serial interfaces
       * 
       * RX and TX are required.
       * If you have no serial port, use unused pins
       * CTS and RTS are optional.
       */
      #define PIN_SERIAL_RX       (8)
      #define PIN_SERIAL_TX       (6)
      //#define PIN_SERIAL_RX       (12)
      //#define PIN_SERIAL_TX       (11)
      // #define PIN_SERIAL_CTS      (13)
      // #define PIN_SERIAL_RTS      (14)
      
      /*
       * SPI Interfaces
       * 
       * This is optional
       * 
       * If SPI is defined MISO, MOSI, SCK are required
       * SS is optional and can be used in your sketch.
       */
      #define SPI_INTERFACES_COUNT 1
      
      #define PIN_SPI_MISO         (2)
      #define PIN_SPI_MOSI         (3)
      #define PIN_SPI_SCK          (4)
      #define PIN_SPI_SS           (5)
      //#define PIN_SPI_MISO         (22)
      //#define PIN_SPI_MOSI         (23)
      //#define PIN_SPI_SCK          (24)
      //#define PIN_SPI_SS           (21)
      
      static const uint8_t SS   = PIN_SPI_SS;
      static const uint8_t MOSI = PIN_SPI_MOSI;
      static const uint8_t MISO = PIN_SPI_MISO;
      static const uint8_t SCK  = PIN_SPI_SCK;
      
      /*
       * Wire Interfaces
       *
       * This is optional
       */
      #define WIRE_INTERFACES_COUNT 2
      
      #define PIN_WIRE_SDA         (13u)
      #define PIN_WIRE_SCL         (14u)
      
      #define PIN_WIRE_SDA1        (15u)
      #define PIN_WIRE_SCL1        (16u)
      
      //#define WIRE_INTERFACES_COUNT 1
      
      //#define PIN_WIRE_SDA         (20u)
      //#define PIN_WIRE_SCL         (21u)
      
      
      static const uint8_t SDA = PIN_WIRE_SDA;
      static const uint8_t SCL = PIN_WIRE_SCL;
      
      #ifdef __cplusplus
      }
      #endif
      
      #endif
      

      When uploading the sketch, I get the following messages - I assume this is in some way working, as with this sketch loaded I get a permanently on LED. When the board is erased, the LED is off.

      Sketch uses 24796 bytes (4%) of program storage space. Maximum is 524288 bytes.
      Open On-Chip Debugger 0.10.0-dev-00254-g696fc0a (2016-04-10-10:13)
      Licensed under GNU GPL v2
      For bug reports, read
         http://openocd.org/doc/doxygen/bugs.html
      debug_level: 0
      0
      adapter speed: 10000 kHz
      cortex_m reset_config sysresetreq
      nrf52.cpu: target state: halted
      target halted due to debug-request, current mode: Thread 
      xPSR: 0x01000000 pc: 0x00002290 msp: 0x20010000
      ** Programming Started **
      auto erase enabled
      wrote 28672 bytes from file C:\Users\Antony\AppData\Local\Temp\arduino_build_265035/Blink_Serial_Demo_v001.ino.hex in 4.123537s (6.790 KiB/s)
      ** Programming Finished **
      ** Verify Started **
      verified 25040 bytes in 0.064402s (379.695 KiB/s)
      ** Verified OK **
      ** Resetting Target **
      shutdown command invoked
      

      Unfortunately from this point, I have a board with an LED that should be flashing, but isn't and when connecting a FTDI to the board there's no serial output either. It seems to be 'hung'.

      I can only assume I've got something wrong somewhere, but after staring at it for a week now I'm so desperate for clues I'm swallowing my pride and asking for help. πŸ™‚

      posted in Hardware
      Spanners
      Spanners
    • RE: What did you build today (Pictures) ?

      Today I built a new Ethernet Gateway.

      Using a Freetrionics Ethermega - Fixed SPI bus, so no soft SPI and I can use MY_RX_MESSAGE_BUFFER_FEATURE. PoE, improved voltage regulator design so I can run the amplified NRF24 with MY_RF24_PA_LEVEL RF24_PA_HIGH.

      Under the radio is a small prototyping area with capacitor for the radio and an ATSHA204A - because one day I swear I will implement signing.

      Slightly modified Gateway sketch that writes successful DHCP IP addresses to EEPROM. I assign a static address on my router. If there's a power failure, the gateway will start up with last address - router takes ages to come online.

      Fired up the X-carve to cut the aluminium chassis, which has added benefit of shielding the NRF radio as well. The complicated cutout on the front was to allow air intake for the fan. Was supposed to just be a grille, but after a couple of beers I got too cute for my own good. Took 2 hours to cut that. πŸ™‚

      0_1522406220035_IMG_5814.JPG
      1_1522406220036_IMG_5816.JPG
      2_1522406220036_IMG_5817.JPG

      posted in General Discussion
      Spanners
      Spanners
    • RE: πŸ’¬ FOTA (Wireless Programming)

      Can I add a +1 for Mega2560 support in the MYSBootloader please?

      I have 3 Mega based nodes (Irrigation and Pool Controllers). 2 of which are in spider infested, confined spaces in the garden. OTA would be a joy.

      posted in Announcements
      Spanners
      Spanners
    • RE: PLEG newbie question

      @dbemowsk did you reload Lua after making the changes? On the PLEG menu as well. πŸ™‚

      They don’t take effect until a restart.

      posted in Vera
      Spanners
      Spanners
    • RE: PLEG newbie question

      @dbemowsk On PLEG's editor menu there's a logic report/status report option that gives you debug information. Use those instead of screenshots.

      But anyway, my recommendation is change the Off Type for your schedule to Interval 00:00:01.

      Your condition should be boolean, as you're using a trigger not a property. Try: sTimerTest AND tGarageDoorOpen

      posted in Vera
      Spanners
      Spanners
    • RE: PLEG newbie question

      @dbemowsk - Yes it's per instance of PLEG. You can do everything in a single instance. Or as @korttoma says you can have multiple to separate things into logical groupings.

      The downside of multiple instances is Vera memory use - whether that is an issue will depend on which Vera you have and how much 'stuff' you have running on it.

      To register, just go into the PLEG editor and there's a "Register" entry on the Editor Options menu. Then hit the button for Registration Portal. Registration is online, pay by paypal.

      posted in Vera
      Spanners
      Spanners
    • RE: PLEG newbie question

      @dbemowsk - nope, a trigger maintains state until it changes state again. So tGarage_Door_Open will be TRUE until it closes, when it then reads as FALSE.

      posted in Vera
      Spanners
      Spanners
    • RE: PLEG newbie question

      @dbemowsk PLEG registration is less than $10 US. It's the best money you can spend on your Vera.

      Using a property is fundamentally no different. PLEG works on TRUE/FALSE comparisons. So you're comparing a value of 0 and 1 (pGarageDoorPosition == 1). Perform an AND with the schedule and you're looking for TRUE and TRUE. The trigger will read the same TRUE if it's open, but it also has an associated timestamp when it became TRUE. This can then be used in a time comparison say if the garage door is open, and has been open for more than 10 minutes - tGarage_Door_Open AND (tGarage_Door_Open; NOW > 00:10:00)

      Properties are best used for numerical value (say dimmer value or light level) or text comparisons. For open/close/on /off triggers are the usual choice..

      posted in Vera
      Spanners
      Spanners
    • RE: PLEG newbie question

      Set up a schedule called sDoorCheck that starts every day at 23:00:00 with an end type interval, 00:00:01 secs.

      You need a trigger for the doors (eg tGarage_Door_Open - whenever device is opened).

      Now have a condition that basically says:

      sDoorCheck AND tGarage_Door_Open

      That condition should only be true at 11:00pm every night if the door is open. Set the appropriate action on the condition to close the door/send alerts or whatever.

      posted in Vera
      Spanners
      Spanners
    • RE: Repeater Node - Must Sensors use ACK to detect "3 failed" messages?

      Thanks @mfalkvidd

      Unfortunately that ruins my theory as to what I’m observing. I will keep experimenting.

      posted in Troubleshooting
      Spanners
      Spanners
    • Repeater Node - Must Sensors use ACK to detect "3 failed" messages?

      I have a clarification question on this text in "The Sensor Network".

      If the sensor node later loses contact with the gateway or a repeater-sensor node, it will automatically repeat this procedure to determine the best path to the gateway - a sensor node considers contact with the gateway to be lost if it fails to send 3 consecutive messages.

      For messages to be detected as failed (and therefore the sensor tries to find a new gateway/repeater) must messages be sent with ACK requested as true?

      eg: send(msg1valve.setSensor(i).set(true), true);

      This question is for NRF24 radio in case that's significant.

      posted in Troubleshooting
      Spanners
      Spanners
    • RE: Irrigation Controller (up to 16 valves with Shift Registers)

      @dbemowsk - you da man. Thanks for the help.

      I was using the internal pull up on the Arduino and it wasn't enough to deal with the interference from the 24VAC. Added a 4.7k resistor to the switch with connection to Vcc as per your diagram and it's now working reliably.

      Also needed to add a repeater node as the rear retic controller sits inside a garden feature that is made from 250mm thick limestone blocks. Comms were a little hit and miss.

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

      @dbemowsk

      The 24VAC is completely isolated - it connects to the relays to power solenoids only, common wire like @petewill shows in his video. The other connection for the 24VAC is to the common wire on the solenoids. There's no path from the 24VAC to the Arduino.

      24VAC is only under load when a relay is active and powering a solenoid. It's when a relay opens or closes that the external button interrupt is triggered (about 80% of the time).

      The brown wire is PIN 21 to the external button, the other side of the button is connected to GND. If that wire is disconnected, I don't see the issue - so it's like the start/stop of 24VAC current flow is creating enough magnetic action/induced current or something on the wire and PIN 21 to trigger the interrupt.

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

      Ok, found my issue - hopefully you guys can give me a suggestion on how to fix it.

      It basically is the external button being triggered (immediate irrigation halt or starts running all zones after shutdown). And it's caused by the 24VAC power running through the relays.

      If I shut down the 24VAC power it works great. If I unplug the external button (brown wire in picture just above the LED), I have no issues either.

      I'm not using an external resistor for that switch (PIN 21 to GND) - do you think that would solve the issue with interference from the 24VAC? Or is there another solution to these types of issues?

        pinMode(waterButtonPin, INPUT_PULLUP);																			
        attachInterrupt(digitalPinToInterrupt(waterButtonPin), PushButton, LOW); //May need to change for your Arduino model    
      

      It seems a bit counterintuitive, because how would the 24VAC which is presumably creating a magnetic field and inductive current in brown wire result in it reading LOW?

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

      @dbemowsk yep, I left out the shift register and just used additional IO pins.

      The case was AU$28 at a local electronics supplier, or AU$10 from ebay. IP66 rated, should keep the Arduino's safe from the elements.

      The LCD keypad has a reset button (handy for reloading all valve changes) and a select button which I'm using to do the same thing as the external button in the original design (I still have the exterior button as well). The other buttons could be used for a local menu system or for dialling in a custom manual run time or something, but I haven't pursued it as I don't intend to physically touch them very often. πŸ™‚

      I've got a problem that'd developed with the front controller - almost like the button/interrupt is triggering whenever the relays are energised/de-energised. It's not consistent though and I'm betting its power related.

      The whole unit is powered by a 12VDC adaptor. The relays are powered by a separate DC-DC 5V supply off that 12V, and the Mega takes 12V on VIN and powers the LCD and the radio.

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

      @dbemowsk Thanks, that clears it up.

      I ended up going with a Mega with LCD Shield and used additional digital pins for the relays. I wanted to enable the IRQ buffering for the NRF radio and some LCDText devices to report back to Vera some status information. Sadly I had to use Strings as I struggled to get char[] arrays to work. Got a bit hard to fit onto the memory of the Pro Mini.

      I needed 2 controllers for front and back, one with Master Valve setup. The back reticulation is an extension of front zone - so Vera makes sure the front controller supplies water when the back controller is active.

      alt text

      If there's interest I'll post the code, maybe someone with better skills than me could rewrite the String section - I don't know if I'll have issues with memory fragmentation yet. Only installed them today.

      A big thank you to @petewill and @BulldogLowell for sharing their code and design.

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

      Hi All,

      Does anyone have a schematic/wiring diagram for this (especially the shift register)?

      I may be too old, but the Fritzing image on the build page isn't clear to me.

      posted in My Project
      Spanners
      Spanners
    • RE: πŸ’¬ Touch Display Scene Controller

      Hi All,

      Does anyone know how to get the text to wrap on the buttons (or have multiple lines of text on the buttons)? UTFT_Buttons doesn't automatically word wrap, is there a way to put a CR/LF or something in the button string?

      So using Hek's original exmaple sketch, having:
      Good
      Morning

      Instead of:

      Good Morning

      posted in Announcements
      Spanners
      Spanners
    • RE: RF24_BASE_RADIO_ID

      Hi Hek,

      Thanks for the info - just to clarify when you say there's no way to change it doing runtime - do you mean it wouldn't be possible to include something in the before() function that reads in the Radio ID from EEPROM, and then pass it to Mysensors during initialization?

      My use case is to not have to track the Radio ID/Channel etc in sketches - I have multiple sensor networks and I'm regularly loading new sketches. Would make life much easier if the nodes just remembered those settings.

      posted in General Discussion
      Spanners
      Spanners
    • RE: RF24_BASE_RADIO_ID

      I'd also like a bit more information on how this works - in particular I'd like to use it in a variable and be able to change it on startup (either via console or controller variable). Would need to store it in EEPROM presumably, but I'm wondering if Mysensors uses the ID in it's EEPROM routing tables or anything.

      Also, are there any restrictions on what it can be changed to? Is it a bunch of bytes we can randomly choose or are there a selection of values?

      posted in General Discussion
      Spanners
      Spanners