Navigation

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

    Posts made by alexsh1

    • Node is rebooted by waking up from a sleep

      Hi all,

      I have the following code which constantly reboots my node when Interrupted by PIR.
      Any idea why?

      //#define MY_DEBUG_VERBOSE_SIGNING
      //#define MY_SPLASH_SCREEN_DISABLED
      
      // Enable and select radio type attached
      #define MY_RADIO_RFM69
      #define MY_RFM69_NEW_DRIVER
      #define MY_RFM69_ATC_MODE_DISABLED
      #define MY_RFM69_FREQUENCY RFM69_868MHZ
      #define MY_PARENT_NODE_IS_STATIC
      #define MY_PARENT_NODE_ID 0
      #define MY_RFM69_NETWORKID (100)
      #define MY_NODE_ID 3
      
      #define INT_PIN 6
      #define INT_PINN 7
      #define SLEEP_TIME 9000000  // 15 min
      uint32_t sleepTime = SLEEP_TIME;
      int8_t wakeupReason = 0;
      
      #include <MySensors.h>
      
      void setup() {
        Serial.begin(115200);
        PCMSK2 |= bit(PCINT22);
        PCMSK2 |= bit(PCINT23);
        PCIFR |= bit(PCIF2);  // clear any outstanding interrupts
        PCICR |= bit(PCIE2);  // enable pin change interrupts for D0 to D7
        delay(2000);
        pinMode(INT_PIN, INPUT);
        pinMode(INT_PINN, INPUT);
      }
      
      
      void loop() {
        if (wakeupReason == digitalPinToInterrupt(INT_PIN) || wakeupReason == digitalPinToInterrupt(INT_PINN)) {
          Serial.println("Sleep Interrupted!");
          digitalWrite(9, HIGH);
          delay(20);
          digitalWrite(9, LOW);
          // Report sensor status here
        } else if (wakeupReason == MY_WAKE_UP_BY_TIMER) {
          Serial.println("MY_WAKE_UP_BY_TIMER");
          // Report battery level here
        }
        wakeupReason = sleep(digitalPinToInterrupt(INT_PIN), CHANGE, digitalPinToInterrupt(INT_PINN), CHANGE, sleepTime);
      }
      
      posted in Troubleshooting
      alexsh1
      alexsh1
    • RE: πŸ’¬ MyMultisensors

      @scalz I have just updated to MySensors 2.3.2 and the sketch with interrupts stopped working. Any changes in any lib?

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • error compiling

      Hi all,

      Latest MySensors 2.3.2 on Moteino USB is giving the following compile errors:

      "C:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\4.8.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10607 -DARDUINO_AVR_ATmega328 -DARDUINO_ARCH_AVR "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.4\\cores\\arduino" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\Moteino\\hardware\\avr\\1.6.1\\variants\\Moteino" "-Ic:\\Users\\ashes\\Documents\\Arduino\\libraries\\MySensors" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.4\\libraries\\SPI\\src" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.4\\libraries\\Wire\\src" "-Ic:\\Users\\ashes\\Documents\\Arduino\\libraries\\SparkFun_BME280\\src" "C:\\Users\\ashes\\AppData\\Local\\Temp\\arduino-sketch-9F678573572D7168587156F8AF298387\\sketch\\MotionSensor-lowlabs_v2_Nr2.ino.cpp" -o "C:\\Users\\ashes\\AppData\\Local\\Temp\\arduino-sketch-9F678573572D7168587156F8AF298387\\sketch\\MotionSensor-lowlabs_v2_Nr2.ino.cpp.o"
      In file included from c:\Users\ashes\Documents\Arduino\libraries\MySensors/hal/crypto/AVR/MyCryptoAVR.h:25:0,
                       from c:\Users\ashes\Documents\Arduino\libraries\MySensors/hal/crypto/AVR/MyCryptoAVR.cpp:21,
                       from c:\Users\ashes\Documents\Arduino\libraries\MySensors/MySensors.h:65,
                       from C:\Users\ashes\Documents\Arduino\MotionSensor-lowlabs_v2_Nr2\MotionSensor-lowlabs_v2_Nr2.ino:17:
      c:\Users\ashes\Documents\Arduino\libraries\MySensors/hal/crypto/AVR/drivers/AES/aes.cpp: In function 'AES_CBC_encrypt_buffer(AES_ctx*, unsigned char*, unsigned long)':
      c:\Users\ashes\Documents\Arduino\libraries\MySensors/hal/crypto/AVR/drivers/AES/aes.cpp:525:1: error: unable to find a register to spill in class 'POINTER_REGS'
       }
       ^
      c:\Users\ashes\Documents\Arduino\libraries\MySensors/hal/crypto/AVR/drivers/AES/aes.cpp:525:1: error: this is the insn:
      (insn 288 325 289 11 (set (reg:HI 26 r26)
              (reg/v/f:HI 67 [ buf ])) c:\Users\ashes\Documents\Arduino\libraries\MySensors/hal/crypto/AVR/drivers/AES/aes.cpp:524 82 {*movhi}
           (expr_list:REG_DEAD (reg/v/f:HI 67 [ buf ])
              (nil)))
      c:\Users\ashes\Documents\Arduino\libraries\MySensors/hal/crypto/AVR/drivers/AES/aes.cpp:525: confused by earlier errors, bailing out
      
      Using library MySensors at version 2.3.2 in folder: C:\Users\ashes\Documents\Arduino\libraries\MySensors 
      Using library SPI at version 1.0 in folder: C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.4\libraries\SPI 
      Using library Wire at version 1.0 in folder: C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.4\libraries\Wire 
      Using library SparkFun_BME280 at version 2.0.9 in folder: C:\Users\ashes\Documents\Arduino\libraries\SparkFun_BME280 
      exit status 1
      
      Compilation error: exit status 1
      

      Any idea how to fix it? Using latest Arduino IDE and libraries

      posted in Troubleshooting
      alexsh1
      alexsh1
    • RE: Sensebender micro failing with funny characters

      @flix I have seen these issues with some boards. Garbage is coming from the serial output and nothing is transmitted. Any sign of moisture ingress? You may try to re-solder the atmega328p with a hot gun but this most likely would required de-soldering all the wires from the board. Please check other things - bad soldering connection to VCC or GND may give a similar error. Maybe some bad soldering joints? You may want to try 9600 rate to make sure it works. On some boards to had to re-upload the boatloader (fake atmega328p IC).

      The last resort of nothing works - change atmega328p. If the power is fine and no probs with the transmitter and no bad joints, most likely it is the IC

      posted in Troubleshooting
      alexsh1
      alexsh1
    • RE: What happened to ceech?

      @mfalkvidd said in What happened to ceech?:

      I don't know, but according to https://forum.mysensors.org/user/ceech last time online in this forum was September 2017.

      His eBay shop is empty.
      Not a good sign...

      posted in Hardware
      alexsh1
      alexsh1
    • What happened to ceech?

      Hello,

      I have written several messages but looks like he is not replying. Anyone knows if he has gone out of business or ...?

      Thanks
      Alex

      posted in Hardware
      alexsh1
      alexsh1
    • RE: Multiple BME280 sensor for Domoticz

      @palmerfarmer said in Multiple BME280 sensor for Domoticz:

      Hi,
      I'm trying to build a node that uses x2 BME280 sensors for a whole house fan controller, one inside temp/hum and one outside. The BME280 has a selectable I2C address by grounding the SDO pin on the sensor. I have successfully tested this using the BlueDot_BME280.h library and sketches.
      Problem I am having is turning this sketch into a working Mysensors node I can use in domoticz. I think I'm almost there but cannot see why i am getting an 'invalid use of non-static member function' message.
      here is my hacked code...

      I thought i would try and get it working with one BME280 first..

      Check if you use } or { correctly.
      I can see one mistake:

      else
      {
      Serial.print(F("Temperature in Celsius from Sensor 1:\t\t"));
      Serial.println(F("Null"));
      Serial.print(F("Humidity in % from Sensor 1:\t\t\t"));
      Serial.println(F("Null"));
      Serial.print(F("Pressure in hPa from Sensor 1:\t\t\t"));
      Serial.println(F("Null"));
      { (This should be } )

      posted in Troubleshooting
      alexsh1
      alexsh1
    • RE: PMS7003 dust sensor battery powered

      What Chinese are doing with this sensor which is used in a handheld air quality meters like this:

      https://a.aliexpress.com/_UCY55

      is this -> Li-Ion battery 3000-4000mAh
      This would last hours. Not days.

      Unless you want to use a car battery, I do not think there is a portable pm25 monitor able to work days without recharging.

      posted in My Project
      alexsh1
      alexsh1
    • RE: πŸ’¬ Effective Solar Supercap Boost Charger for Small Solar Panel

      @neverdie It does work under very extreme conditions (dark or very cloudy days for weeks), but I have not tested it extensively with internal lightning. The solar panel is very close to a window. I may be mistaken by I do not think LTC3108 is designed for low current (< 1 mA) application. BQ25570 is absolutely brilliant.

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: πŸ’¬ Effective Solar Supercap Boost Charger for Small Solar Panel

      @neverdie said in πŸ’¬ Effective Solar Supercap Boost Charger for Small Solar Panel:

      @ncollins said in πŸ’¬ Effective Solar Supercap Boost Charger for Small Solar Panel:

      @neverdie they work super well. I've been testing them for a few months now, very reliable.

      Great! Nice to have your feedback. πŸ™‚

      I had high expectations for Ceech's LTC3108 design:
      https://www.ebay.com/i/331654685113?chn=ps&norover=1&mkevt=1&mkrid=711-117182-37290-0&mkcid=2&itemid=331654685113&targetid=809743845025&device=c&mktype=pla&googleloc=9028292&poi=&campaignid=6470262913&mkgroupid=80364172271&rlsatarget=pla-809743845025&abcId=1141166&merchantid=115344895&gclid=CjwKCAjw29vsBRAuEiwA9s-0B7exYA8yU9w--t63jcXP7QWO_f05DzJKNxw2XS6pwlLkPkfK1UYqkxoC084QAvD_BwE
      but when I tested it, it turns out it needs about 5ma of current to run, which is at least 10x+ more than most small solar panels will deliver under even quite bright indoor lighting. Basically, if a panel can produce 5ma of current, the voltage will also be fairly high, thereby completely defeating the purpose of a chip like the LTC3108, which can be powered from 20mv. In my testing it took a minimum of 50mv and 5ma of current to get it to actually harvest any energy. 50mv would still be impressive, but the 5ma minimum is what kills its usefulness.

      One of the best modules @ceech made was this one

      https://www.ebay.co.uk/itm/BQ25570-thermal-solar-energy-harvester/332071662285?_trkparms=aid%3D1110001%26algo%3DSPLICE.SIM%26ao%3D1%26asc%3D20131231084308%26meid%3D759b68bcf5834d74bfa46f9df6b8ae4d%26pid%3D100010%26rk%3D1%26rkt%3D6%26sd%3D332393146893%26itm%3D332071662285%26pmt%3D0%26noa%3D1%26pg%3D2047675&_trksid=p2047675.c100010.m2109

      It has been running non-stop for many months now

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: Sketch for Lightning Sensor

      @skywatch I have the same sensor for months working like a charm. Sadly I had to disable it as I had one node and several sensors interfering with each other.

      I will have to have the lightning sensor on a separate node

      posted in Development
      alexsh1
      alexsh1
    • RE: VEML6075 high sleep consumption

      @manutremo

      Activate a forced mode. I bet your sensor is in standby mode right now

      posted in Hardware
      alexsh1
      alexsh1
    • RE: Multiple Gateways

      @terence-faul this is not a fail prove design. Nodes are not typically moved even within one GW. Each GW must have each one channel and the same goes for nodes. Otherwise, in theory you may have a situation that the same node is reporting to one GW and then to the other GW. For controller this is going to be a chaos. A lot of data will be shared between two similar child IDs, i.e. for example two similar temperature child IDs for one node will have one measurement assigned through the first GW to the first temperature child ID and another measurement assigned to another child ID through another GW.

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: not working Ethernet Gateway (sensebender and/or nano gateway)

      @tbowmo said in not working Ethernet Gateway (sensebender and/or nano gateway):

      I haven't updated any of my SAMD21 boards the last year, so don't know if the latest arduino breaks something.

      I updated SAMD21 (Sensebender) with the latest Arduino and nothing has been broken.
      I have not tested it extensively though.

      posted in Hardware
      alexsh1
      alexsh1
    • RE: πŸ’¬ Sensebender Gateway

      @rolandow said in πŸ’¬ Sensebender Gateway:

      Forgive me if this isn't the right place to ask; but as a beginner, where do I start? How can I order this thing, or any other stuff from OpenHardware.io ? I see so many design files, I'm not sure what to do with them. Soldering the thing I can probably manage, but is there a guide available how to order the PCB, and maybe the parts as well?

      Sesnebender GW can be ordered from Itead:

      https://www.itead.cc/mysensors-gateway.html

      Other openhardware.io projects maybe ordered either (1) directly from a link; pcb only (2) you can download eagle files and upload them to pcb manufactures like oshpark.com (3) you can purchase the final product. So a generic answer to your question is it depends πŸ™‚

      I do not think there is a guide here, but if you go to oshpark.com there is a guide how to order a pcb. Parts (BOM) can be ordered from Aliexpress, eBay or more reputable supplies like digi-key or mouser

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: What did you build today (Pictures) ?

      @kalina scene controller? I have almost finished mine on Nextion, but do not have time to tidy things up.

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: What did you build today (Pictures) ?

      @acb Hot air has been used for soldering the board. I have not tried low power as I did not build this board for a battery sensor. My board has got two LEDs - power and another LED connected to D0 so clearly not very low power. I also have a 16Mhz firmware. I did not have any size limitation either. I have one particular node with a few sensors and with signing I cannot upload the sketch onto ATMEGA328P as it is marginally larger. Having said that I have not spent too much time optimising the sketch. I think that refactoring libraries, you are fine with ATMEGA328P in 98% of all MySensors applications.
      BTW - this is not my project. I have followed it https://github.com/peekpt/mightyduino

      Re cost. I stopped Ali shopping for ICs and other sensitive components some time ago after purchasing some fake ATMEGA328P and wasting so many hours trying to troubleshoot it. There is a post about it here on MySensors forum. Ever since I order all components on digi-key. 1284p is priced around $5 + 20% VAT. 328P is priced at $1.2 + VAT. However, I can also buy ATSAMD21 for $2.2 + VAT. Do you see my point? 1284p is extremely expensive and yet it is still 8 bit processor. That's why for me it was a one-off board.

      Re sleeping
      I am using TPL5110 which I built myself (similar to Adafruit one).
      Check out sleeping current:

      alt text

      Sadly, I struggled to get some sensors to sleep properly - probably lack of my programming skills - and with a sleeping current being hundreds of uA, I had to resort to this trick. Most of the time, the node sleeps is disconnected from power by TPL5110 then timer is up and it powers up, sends all sensors readings to the GW and then power gets disconnected to the node, only TPL5110 goes to nA sleep. Perfect!

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: What did you build today (Pictures) ?

      @acb I have built similar board.
      0_1549896894038_41B5EC1D-BA6B-4ADA-BE5D-9CB48359207D.jpeg

      The only downside is the cost and size of Atmega1284p is just so prohibitive. Yet it is 8 bits processor. I have only one fully conpleted board and a few blank pcbs.

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: What did you build today (Pictures) ?

      Finally finished building my dual precision voltage reference LTC6655:

      0_1549896394457_B2F58A87-E2DB-436B-ADFA-0514F43D2AAA.jpeg

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: Rocketscream Mini Ultra Pro V3 as gateway

      @robbie-deloose BTW, it works even with the following minimum settings:

      #define MY_RADIO_RFM95
      #define MY_RFM95_FREQUENCY RFM95_868MHZ
      #define MY_RFM95_CS_PIN 5
      

      given that SCK, MOSI, MISO are wired to standard pins for ATSAMD21

      posted in Hardware
      alexsh1
      alexsh1
    • RE: Rocketscream Mini Ultra Pro V3 as gateway

      @robbie-deloose Most likely you have a wiring or pin number issue.
      I have RFM95 hooked up to Mini Ultra Pro V3 and use the following setting:

      #define MY_RADIO_RFM95
      #define MY_DEBUG_VERBOSE_RFM95
      #define MY_RFM95_FREQUENCY RFM95_868MHZ
      #define MY_RFM95_CS_PIN 5
      #define MY_RFM95_ATC_MODE_DISABLED
      #if !defined(MY_W5100_SPI_EN) && !defined(ARDUINO_ARCH_SAMD)
      #define MY_SOFTSPI
      #define MY_SOFT_SPI_SCK_PIN 24
      #define MY_SOFT_SPI_MISO_PIN 22
      #define MY_SOFT_SPI_MOSI_PIN 23
      #endif
      

      It works like a charm. And this is from my log:

      0;255;3;0;9;20890 MCO:BGN:INIT GW,CP=RLNGS---,VER=2.3.0
      0;255;3;0;9;20900 TSF:LRT:OK
      0;255;3;0;9;20910 TSM:INIT
      0;255;3;0;9;20920 TSF:WUR:MS=0
      0;255;3;0;9;20930 RFM95:INIT
      0;255;3;0;9;20940 RFM95:INIT:PIN,CS=5,IQP=2,IQN=2
      0;255;3;0;9;20960 RFM95:PTX:LEVEL=13
      0;255;3;0;9;20970 TSM:INIT:TSP OK
      0;255;3;0;9;20980 TSM:INIT:GW MODE
      0;255;3;0;9;20990 TSM:READY:ID=0,PAR=0,DIS=0
      0;255;3;0;9;21000 MCO:REG:NOT NEEDED
      0;255;3;0;14;Gateway startup complete.
      0;255;0;0;18;2.3.0
      0;255;3;0;9;21010 MCO:BGN:STP
      0;255;3;0;9;21020 MCO:BGN:INIT OK,TSP=1
      
      posted in Hardware
      alexsh1
      alexsh1
    • RE: MY_GATEWAY_TINYGSM

      Is there a chance to reboot GSM modem / gateway on a regular basis?
      What I have discovered is that some operators cells stop communicating with the modem if the location is not changed for days. Therefore, modem has to be rebooted manually or on the timer, i.e. rebooting every day at 04:00 morning time.

      posted in Development
      alexsh1
      alexsh1
    • RE: Rocketscream Mini Ultra Pro V3 as gateway

      @robbie-deloose OK, success! I did not notice it, but before you define softSPI in SAMD, you have to have a line

      #if !defined(MY_W5100_SPI_EN) && !defined(ARDUINO_ARCH_SAMD)
      

      Otherwise, it does not compile.

      This sketch works fine for Arduino Zero (Native USB port):

      /**
       * The MySensors Arduino library handles the wireless radio link and protocol
       * between your home built sensors/actuators and HA controller of choice.
       * The sensors forms a self healing radio network with optional repeaters. Each
       * repeater and gateway builds a routing tables in EEPROM which keeps track of the
       * network topology allowing messages to be routed to nodes.
       *
       * Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
       * Copyright (C) 2013-2015 Sensnology AB
       * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
       *
       * Documentation: http://www.mysensors.org
       * Support Forum: http://forum.mysensors.org
       *
       * This program is free software; you can redistribute it and/or
       * modify it under the terms of the GNU General Public License
       * version 2 as published by the Free Software Foundation.
       *
       *******************************
       *
       * REVISION HISTORY
       * Version 1.0 - Rait LotamΓ΅is
       *
       * DESCRIPTION
       * The TinyGSM MQTT gateway sends radio network (or locally attached sensors) data to your MQTT broker using a GSM modem or optionally an ESP8266 as a WiFi modem.
       * The node also listens to MY_MQTT_TOPIC_PREFIX and sends out those messages to the radio network
       *
       * LED purposes:
       * - To use the feature, uncomment WITH_LEDS_BLINKING in MyConfig.h
       * - RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved
       * - TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly
       * - ERR (red) - fast blink on error during transmission error or recieve crc error
       */
      
      
      // Enable debug prints to serial monitor
      #define MY_DEBUG
      
      // Enables and select radio type (if attached)
      #define MY_RADIO_NRF24
      #define MY_RF24_CHANNEL 120
      #define MY_RF24_PA_LEVEL RF24_PA_LOW
      
      #define MY_RF24_CE_PIN 5
      #define MY_RF24_CS_PIN 6
      #if !defined(MY_W5100_SPI_EN) && !defined(ARDUINO_ARCH_SAMD)
      #define MY_SOFTSPI 
      #define MY_SOFT_SPI_SCK_PIN 14
      #define MY_SOFT_SPI_MISO_PIN 16
      #define MY_SOFT_SPI_MOSI_PIN 15
      #endif
      
      #define MY_GATEWAY_MQTT_CLIENT
      
      // Enable GSM modem support
      #define MY_GATEWAY_TINYGSM
      
      // Define your modem
      #define TINY_GSM_MODEM_SIM800
      // #define TINY_GSM_MODEM_SIM808
      // #define TINY_GSM_MODEM_SIM900
      // #define TINY_GSM_MODEM_A6
      // #define TINY_GSM_MODEM_A7
      // #define TINY_GSM_MODEM_M590
      // #define TINY_GSM_ESP8266
      
      // leave empty anything that does not apply
      #define MY_GSM_APN	"internet"
      //#define MY_GSM_PIN	"1234"
      #define MY_GSM_USR	""
      //If using a GSM modem, this stands for your GSM connection password. If using WiFi, it's your wireless password.
      #define MY_GSM_PSW	""
      //#define MY_GSM_SSID ""
      
      // Use Hardware Serial on Mega, Leonardo, Micro
      #define SerialAT Serial1
      // or Software Serial on Uno, Nano
      //#include <SoftwareSerial.h>
      //#define MY_GSM_RX 4
      //#define MY_GSM_TX 5
      
      // If your Mosquitto is old fashioned and does not support 3.1.1
      //#define MQTT_VERSION MQTT_VERSION_3_1
      
      // Set this node's subscribe and publish topic prefix
      #define MY_MQTT_PUBLISH_TOPIC_PREFIX "mygateway1-out"
      #define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX "mygateway1-in"
      
      // Set MQTT client id
      #define MY_MQTT_CLIENT_ID "mysensors-1"
      
      // Enable these if your MQTT broker requires usenrame/password
      //#define MY_MQTT_USER "username"
      //#define MY_MQTT_PASSWORD "password"
      
      // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP)
      //#define MY_IP_ADDRESS 192,168,32,220
      
      // If using static ip you can define Gateway and Subnet address as well
      //#define MY_IP_GATEWAY_ADDRESS 192,168,32,1
      //#define MY_IP_SUBNET_ADDRESS 255,255,255,0
      
      // MQTT broker ip address or url. Define one or the other.
      //#define MY_CONTROLLER_URL_ADDRESS "mymqttbroker.com"
      #define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 68
      
      // The MQTT broker port to to open
      #define MY_PORT 1883
      
      /*
      // Enable inclusion mode
      #define MY_INCLUSION_MODE_FEATURE
      // Enable Inclusion mode button on gateway
      //#define MY_INCLUSION_BUTTON_FEATURE
      // Set inclusion mode duration (in seconds)
      #define MY_INCLUSION_MODE_DURATION 60
      // Digital pin used for inclusion mode button
      //#define MY_INCLUSION_MODE_BUTTON_PIN  3
      
      // Set blinking period
      #define MY_DEFAULT_LED_BLINK_PERIOD 300
      
      // Flash leds on rx/tx/err
      // Uncomment to override default HW configurations
      //#define MY_DEFAULT_ERR_LED_PIN 16  // Error led pin
      //#define MY_DEFAULT_RX_LED_PIN  16  // Receive led pin
      //#define MY_DEFAULT_TX_LED_PIN  16  // the PCB, on board LED
      */
      
      #include <MySensors.h>
      
      void setup()
      {
          // Setup locally attached sensors
      }
      
      void presentation()
      {
          // Present locally attached sensors here
      }
      
      void loop()
      {
          // Send locally attached sensors data here
      }
      
      posted in Hardware
      alexsh1
      alexsh1
    • RE: Rocketscream Mini Ultra Pro V3 as gateway

      @robbie-deloose For whatever season, the compiler does not see the following directory:

      C:\Program Files (x86)\Arduino\hardware\tools\avr\avr\include\util
      

      Very strange. @hek - any ideas please?
      I am talking about this

      ...Arduino\libraries\MySensors/drivers/AVR/DigitalIO/DigitalPin.h
      
      

      There are several references to atomic.h, but the above location cannot be seen.

      posted in Hardware
      alexsh1
      alexsh1
    • RE: Rocketscream Mini Ultra Pro V3 as gateway

      @robbie-deloose I cannot compile your sketch under any board. There is a problem somewhere, perhaps MY_PORT and MY_CONTROLLER_URL_ADDRESS are not defined?
      Try to compile and upload this sketch:

      // Enable debug prints to serial monitor
      #define MY_DEBUG
      
      // Enables and select radio type (if attached)
      #define MY_RADIO_NRF24
      #define MY_RF24_CHANNEL 120
      #define MY_RF24_PA_LEVEL RF24_PA_LOW
      
      #define MY_RF24_CE_PIN 5
      #define MY_RF24_CS_PIN 6
      #define MY_SOFTSPI 
      #define MY_SOFT_SPI_SCK_PIN 14
      #define MY_SOFT_SPI_MISO_PIN 16
      #define MY_SOFT_SPI_MOSI_PIN 15
      
      #define MY_GATEWAY_MQTT_CLIENT
      
      // Enable GSM modem support
      #define MY_GATEWAY_TINYGSM
      
      // Define your modem
      #define TINY_GSM_MODEM_SIM800
      // #define TINY_GSM_MODEM_SIM808
      // #define TINY_GSM_MODEM_SIM900
      // #define TINY_GSM_MODEM_A6
      // #define TINY_GSM_MODEM_A7
      // #define TINY_GSM_MODEM_M590
      // #define TINY_GSM_ESP8266
      
      // leave empty anything that does not apply
      #define MY_GSM_APN	"internet"
      //#define MY_GSM_PIN	"1234"
      #define MY_GSM_USR	""
      //If using a GSM modem, this stands for your GSM connection password. If using WiFi, it's your wireless password.
      #define MY_GSM_PSW	""
      //#define MY_GSM_SSID ""
      
      // Use Hardware Serial on Mega, Leonardo, Micro
      //#define SerialAT Serial1
      // or Software Serial on Uno, Nano
      #include <SoftwareSerial.h>
      #define MY_GSM_RX 4
      #define MY_GSM_TX 5
      
      // If your Mosquitto is old fashioned and does not support 3.1.1
      //#define MQTT_VERSION MQTT_VERSION_3_1
      
      // Set this node's subscribe and publish topic prefix
      #define MY_MQTT_PUBLISH_TOPIC_PREFIX "mygateway1-out"
      #define MY_MQTT_SUBSCRIBE_TOPIC_PREFIX "mygateway1-in"
      
      // Set MQTT client id
      #define MY_MQTT_CLIENT_ID "mysensors-1"
      
      // Enable these if your MQTT broker requires usenrame/password
      //#define MY_MQTT_USER "username"
      //#define MY_MQTT_PASSWORD "password"
      
      // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP)
      //#define MY_IP_ADDRESS 192,168,32,220
      
      // If using static ip you can define Gateway and Subnet address as well
      //#define MY_IP_GATEWAY_ADDRESS 192,168,32,1
      //#define MY_IP_SUBNET_ADDRESS 255,255,255,0
      
      // MQTT broker ip address or url. Define one or the other.
      //#define MY_CONTROLLER_URL_ADDRESS "mymqttbroker.com"
      #define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 68
      
      // The MQTT broker port to to open
      #define MY_PORT 1883
      
      /*
      // Enable inclusion mode
      #define MY_INCLUSION_MODE_FEATURE
      // Enable Inclusion mode button on gateway
      //#define MY_INCLUSION_BUTTON_FEATURE
      // Set inclusion mode duration (in seconds)
      #define MY_INCLUSION_MODE_DURATION 60
      // Digital pin used for inclusion mode button
      //#define MY_INCLUSION_MODE_BUTTON_PIN  3
      
      // Set blinking period
      #define MY_DEFAULT_LED_BLINK_PERIOD 300
      
      // Flash leds on rx/tx/err
      // Uncomment to override default HW configurations
      //#define MY_DEFAULT_ERR_LED_PIN 16  // Error led pin
      //#define MY_DEFAULT_RX_LED_PIN  16  // Receive led pin
      //#define MY_DEFAULT_TX_LED_PIN  16  // the PCB, on board LED
      */
      
      #include <MySensors.h>
      
      void setup()
      {
          // Setup locally attached sensors
      }
      
      void presentation()
      {
          // Present locally attached sensors here
      }
      
      void loop()
      {
          // Send locally attached sensors data here
      }
      

      It does compile for mega2560, but does not for Arduino Zero. There is a problem with

       #include <util/atomic.h>
      

      Please see this -> https://forum.arduino.cc/index.php?topic=371122.0

      posted in Hardware
      alexsh1
      alexsh1
    • RE: Rocketscream Mini Ultra Pro V3 as gateway

      @robbie-deloose I have rocketscream mini ultra pro v3, but it has got rfm95 module, which I'd like to use as a gateway. I have not tried to connect it yet. I'll let you know, but I think your problem is soft spi or pins definition.

      posted in Hardware
      alexsh1
      alexsh1
    • RE: RFM69HW 868MHz working on 915MHz

      @kted Felix @ lowpowerlab sells only 915Mhz (and 433Mhz) as he says it is the same as 868Mhz variant. You may want to ask at lowpowerlab forum, but there is no downside at all.

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

      @gohan module? you mean the PCB? or total?

      posted in General Discussion
      alexsh1
      alexsh1
    • Sensebender does not compile with MY_DEBUG

      I cannot compile a sketch for Sensebender Micro with #include MY_DEBUG.
      Got the following error. If I comment it out , it works just fine. Any ideas please?

      Arduino: 1.8.7 (Windows 10), Board: "Sensebender Micro, Atmega328 8Mhz"
      
      C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\ashes\AppData\Local\Arduino15\packages -hardware C:\Users\ashes\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\ashes\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\ashes\Documents\Arduino\libraries -fqbn=MySensors:avr:MysensorsMicro:cpu=8Mhz -ide-version=10807 -build-path C:\Users\ashes\AppData\Local\Temp\arduino_build_137735 -warnings=none -build-cache C:\Users\ashes\AppData\Local\Temp\arduino_cache_571216 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -prefs=runtime.tools.arduinoOTA-1.1.1.path=C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -prefs=runtime.tools.avrdude.path=C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.avrdude-6.3.0-arduino9.path=C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.avr-gcc.path=C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.avr-gcc-4.9.2-atmel3.5.4-arduino2.path=C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -verbose C:\Users\ashes\Documents\Arduino\Sensebender-Micro-2.1.1-original\Sensebender-Micro-2.1.1-original.ino
      C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\ashes\AppData\Local\Arduino15\packages -hardware C:\Users\ashes\Documents\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\ashes\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\ashes\Documents\Arduino\libraries -fqbn=MySensors:avr:MysensorsMicro:cpu=8Mhz -ide-version=10807 -build-path C:\Users\ashes\AppData\Local\Temp\arduino_build_137735 -warnings=none -build-cache C:\Users\ashes\AppData\Local\Temp\arduino_cache_571216 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -prefs=runtime.tools.arduinoOTA-1.1.1.path=C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.1.1 -prefs=runtime.tools.avrdude.path=C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.avrdude-6.3.0-arduino9.path=C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9 -prefs=runtime.tools.avr-gcc.path=C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -prefs=runtime.tools.avr-gcc-4.9.2-atmel3.5.4-arduino2.path=C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2 -verbose C:\Users\ashes\Documents\Arduino\Sensebender-Micro-2.1.1-original\Sensebender-Micro-2.1.1-original.ino
      Using board 'MysensorsMicro' from platform in folder: C:\Users\ashes\Documents\Arduino\hardware\MySensors\avr
      Using core 'arduino' from platform in folder: C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21
      Warning: platform.txt from core 'MySensors AVR based boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
      Detecting libraries used...
      "C:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10807 -DARDUINO_AVR_MICRO8 -DARDUINO_ARCH_AVR "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\cores\\arduino" "-IC:\\Users\\ashes\\Documents\\Arduino\\hardware\\MySensors\\avr\\variants\\micro" "C:\\Users\\ashes\\AppData\\Local\\Temp\\arduino_build_137735\\sketch\\Sensebender-Micro-2.1.1-original.ino.cpp" -o nul
      "C:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10807 -DARDUINO_AVR_MICRO8 -DARDUINO_ARCH_AVR "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\cores\\arduino" "-IC:\\Users\\ashes\\Documents\\Arduino\\hardware\\MySensors\\avr\\variants\\micro" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\SPI\\src" "C:\\Users\\ashes\\AppData\\Local\\Temp\\arduino_build_137735\\sketch\\Sensebender-Micro-2.1.1-original.ino.cpp" -o nul
      "C:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10807 -DARDUINO_AVR_MICRO8 -DARDUINO_ARCH_AVR "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\cores\\arduino" "-IC:\\Users\\ashes\\Documents\\Arduino\\hardware\\MySensors\\avr\\variants\\micro" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\SPI\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\MySensors" "C:\\Users\\ashes\\AppData\\Local\\Temp\\arduino_build_137735\\sketch\\Sensebender-Micro-2.1.1-original.ino.cpp" -o nul
      "C:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10807 -DARDUINO_AVR_MICRO8 -DARDUINO_ARCH_AVR "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\cores\\arduino" "-IC:\\Users\\ashes\\Documents\\Arduino\\hardware\\MySensors\\avr\\variants\\micro" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\SPI\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\MySensors" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\Wire\\src" "C:\\Users\\ashes\\AppData\\Local\\Temp\\arduino_build_137735\\sketch\\Sensebender-Micro-2.1.1-original.ino.cpp" -o nul
      "C:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10807 -DARDUINO_AVR_MICRO8 -DARDUINO_ARCH_AVR "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\cores\\arduino" "-IC:\\Users\\ashes\\Documents\\Arduino\\hardware\\MySensors\\avr\\variants\\micro" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\SPI\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\MySensors" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\Wire\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\SI7021" "C:\\Users\\ashes\\AppData\\Local\\Temp\\arduino_build_137735\\sketch\\Sensebender-Micro-2.1.1-original.ino.cpp" -o nul
      "C:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10807 -DARDUINO_AVR_MICRO8 -DARDUINO_ARCH_AVR "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\cores\\arduino" "-IC:\\Users\\ashes\\Documents\\Arduino\\hardware\\MySensors\\avr\\variants\\micro" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\SPI\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\MySensors" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\Wire\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\SI7021" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\EEPROM\\src" "C:\\Users\\ashes\\AppData\\Local\\Temp\\arduino_build_137735\\sketch\\Sensebender-Micro-2.1.1-original.ino.cpp" -o nul
      "C:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10807 -DARDUINO_AVR_MICRO8 -DARDUINO_ARCH_AVR "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\cores\\arduino" "-IC:\\Users\\ashes\\Documents\\Arduino\\hardware\\MySensors\\avr\\variants\\micro" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\SPI\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\MySensors" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\Wire\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\SI7021" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\EEPROM\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\sha204" "C:\\Users\\ashes\\AppData\\Local\\Temp\\arduino_build_137735\\sketch\\Sensebender-Micro-2.1.1-original.ino.cpp" -o nul
      "C:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10807 -DARDUINO_AVR_MICRO8 -DARDUINO_ARCH_AVR "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\cores\\arduino" "-IC:\\Users\\ashes\\Documents\\Arduino\\hardware\\MySensors\\avr\\variants\\micro" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\SPI\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\MySensors" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\Wire\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\SI7021" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\EEPROM\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\sha204" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\RunningAverage" "C:\\Users\\ashes\\AppData\\Local\\Temp\\arduino_build_137735\\sketch\\Sensebender-Micro-2.1.1-original.ino.cpp" -o nul
      Using cached library dependencies for file: C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\libraries\SPI\src\SPI.cpp
      Using cached library dependencies for file: C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\Wire.cpp
      Using cached library dependencies for file: C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\libraries\Wire\src\utility\twi.c
      Using cached library dependencies for file: C:\Users\ashes\Documents\Arduino\libraries\SI7021\SI7021.cpp
      Using cached library dependencies for file: C:\Users\ashes\Documents\Arduino\libraries\sha204\sha204_library.cpp
      Using cached library dependencies for file: C:\Users\ashes\Documents\Arduino\libraries\RunningAverage\RunningAverage.cpp
      Generating function prototypes...
      "C:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10807 -DARDUINO_AVR_MICRO8 -DARDUINO_ARCH_AVR "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\cores\\arduino" "-IC:\\Users\\ashes\\Documents\\Arduino\\hardware\\MySensors\\avr\\variants\\micro" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\SPI\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\MySensors" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\Wire\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\SI7021" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\EEPROM\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\sha204" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\RunningAverage" "C:\\Users\\ashes\\AppData\\Local\\Temp\\arduino_build_137735\\sketch\\Sensebender-Micro-2.1.1-original.ino.cpp" -o "C:\\Users\\ashes\\AppData\\Local\\Temp\\arduino_build_137735\\preproc\\ctags_target_for_gcc_minus_e.cpp"
      "C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\ashes\\AppData\\Local\\Temp\\arduino_build_137735\\preproc\\ctags_target_for_gcc_minus_e.cpp"
      Compiling sketch...
      "C:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\4.9.2-atmel3.5.4-arduino2/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=8000000L -DARDUINO=10807 -DARDUINO_AVR_MICRO8 -DARDUINO_ARCH_AVR "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\cores\\arduino" "-IC:\\Users\\ashes\\Documents\\Arduino\\hardware\\MySensors\\avr\\variants\\micro" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\SPI\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\MySensors" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\Wire\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\SI7021" "-IC:\\Users\\ashes\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.6.21\\libraries\\EEPROM\\src" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\sha204" "-IC:\\Users\\ashes\\Documents\\Arduino\\libraries\\RunningAverage" "C:\\Users\\ashes\\AppData\\Local\\Temp\\arduino_build_137735\\sketch\\Sensebender-Micro-2.1.1-original.ino.cpp" -o "C:\\Users\\ashes\\AppData\\Local\\Temp\\arduino_build_137735\\sketch\\Sensebender-Micro-2.1.1-original.ino.cpp.o"
      In file included from C:\Users\ashes\Documents\Arduino\libraries\MySensors/MySensors.h:49:0,
      
                       from C:\Users\ashes\Documents\Arduino\Sensebender-Micro-2.1.1-original\Sensebender-Micro-2.1.1-original.ino:67:
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp: In function 'void stInitUpdate()':
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp:124:45: error: expected ')' before 'PRIu8'
      
          TRANSPORT_DEBUG(PSTR("TSM:INIT:STATID=%" PRIu8 "\n"),(uint8_t)MY_NODE_ID);
      
                                                   ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/MyConfig.h:2078:43: note: in definition of macro 'DEBUG_OUTPUT'
      
       #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
      
                                                 ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp:124:4: note: in expansion of macro 'TRANSPORT_DEBUG'
      
          TRANSPORT_DEBUG(PSTR("TSM:INIT:STATID=%" PRIu8 "\n"),(uint8_t)MY_NODE_ID);
      
          ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp: In function 'void stUplinkUpdate()':
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp:265:44: error: expected ')' before 'PRIu8'
      
          TRANSPORT_DEBUG(PSTR("TSM:UPL:DGWC,O=%" PRIu8 ",N=%" PRIu8 "\n"), _transportConfig.distanceGW,
      
                                                  ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/MyConfig.h:2078:43: note: in definition of macro 'DEBUG_OUTPUT'
      
       #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
      
                                                 ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp:265:4: note: in expansion of macro 'TRANSPORT_DEBUG'
      
          TRANSPORT_DEBUG(PSTR("TSM:UPL:DGWC,O=%" PRIu8 ",N=%" PRIu8 "\n"), _transportConfig.distanceGW,
      
          ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp: In function 'void stReadyTransition()':
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp:292:40: error: expected ')' before 'PRIu8'
      
        TRANSPORT_DEBUG(PSTR("TSM:READY:ID=%" PRIu8 ",PAR=%" PRIu8 ",DIS=%" PRIu8 "\n"),
      
                                              ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/MyConfig.h:2078:43: note: in definition of macro 'DEBUG_OUTPUT'
      
       #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
      
                                                 ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp:292:2: note: in expansion of macro 'TRANSPORT_DEBUG'
      
        TRANSPORT_DEBUG(PSTR("TSM:READY:ID=%" PRIu8 ",PAR=%" PRIu8 ",DIS=%" PRIu8 "\n"),
      
        ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp: In function 'void stFailureTransition()':
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp:342:40: error: expected ')' before 'PRIu8'
      
        TRANSPORT_DEBUG(PSTR("TSM:FAIL:CNT=%" PRIu8 "\n"),_transportSM.failureCounter);
      
                                              ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/MyConfig.h:2078:43: note: in definition of macro 'DEBUG_OUTPUT'
      
       #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
      
                                                 ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp:342:2: note: in expansion of macro 'TRANSPORT_DEBUG'
      
        TRANSPORT_DEBUG(PSTR("TSM:FAIL:CNT=%" PRIu8 "\n"),_transportSM.failureCounter);
      
        ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp: In function 'bool transportWaitUntilReady(uint32_t)':
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp:449:38: error: expected ')' before 'PRIu32'
      
        TRANSPORT_DEBUG(PSTR("TSF:WUR:MS=%" PRIu32 "\n"), waitingMS); // timeout
      
                                            ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/MyConfig.h:2078:43: note: in definition of macro 'DEBUG_OUTPUT'
      
       #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
      
                                                 ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp:449:2: note: in expansion of macro 'TRANSPORT_DEBUG'
      
        TRANSPORT_DEBUG(PSTR("TSF:WUR:MS=%" PRIu32 "\n"), waitingMS); // timeout
      
        ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp: In function 'bool transportCheckUplink(bool)':
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp:485:44: error: expected ')' before 'PRIu8'
      
          TRANSPORT_DEBUG(PSTR("TSF:CKU:DGWC,O=%" PRIu8 ",N=%" PRIu8 "\n"), _transportConfig.distanceGW,
      
                                                  ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/MyConfig.h:2078:43: note: in definition of macro 'DEBUG_OUTPUT'
      
       #define DEBUG_OUTPUT(x,...)  hwDebugPrint(x, ##__VA_ARGS__) //!< debug
      
                                                 ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp:485:4: note: in expansion of macro 'TRANSPORT_DEBUG'
      
          TRANSPORT_DEBUG(PSTR("TSF:CKU:DGWC,O=%" PRIu8 ",N=%" PRIu8 "\n"), _transportConfig.distanceGW,
      
          ^
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp: In function 'bool transportAssignNodeID(uint8_t)':
      
      C:\Users\ashes\Documents\Arduino\libraries\MySensors/core/MyTransport.cpp:504:42: error: expected ')' before 'PRIu8'
      
         TRANSPORT_DEBUG(PSTR("TSF:SID:OK,ID=%" PRIu8 "\n"),newNodeId); // Node ID assigned
      
                                                ^
      
                                                 ^
      
      
      Using library SPI at version 1.0 in folder: C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\libraries\SPI 
      Using library MySensors at version 2.3.0 in folder: C:\Users\ashes\Documents\Arduino\libraries\MySensors 
      Using library Wire at version 1.0 in folder: C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\libraries\Wire 
      Using library SI7021 in folder: C:\Users\ashes\Documents\Arduino\libraries\SI7021 (legacy)
      Using library EEPROM at version 2.0 in folder: C:\Users\ashes\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\libraries\EEPROM 
      Using library sha204 in folder: C:\Users\ashes\Documents\Arduino\libraries\sha204 (legacy)
      Using library RunningAverage in folder: C:\Users\ashes\Documents\Arduino\libraries\RunningAverage (legacy)
      exit status 1
      Error compiling for board Sensebender Micro.```
      posted in Bug Reports
      alexsh1
      alexsh1
    • RE: πŸ’¬ NRF2RFM69

      @tbowmo I wonder what would be an example of using it?!
      I knew it would be supported at a certain time in the future but I did not realise it it supported already.

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: πŸ’¬ NRF2RFM69

      @symos IRQ is not utilised for nrf24l01+ in MySensors. There is a provision for future, but just ignore IRQ for now.

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: What did you build today (Pictures) ?

      @nagelc try 0603 size first. I am sure you will manage it with 0402 with a good microscope ;-))

      I’m still using a magnifying glass which is an extra challenge. Eventually I will have to buy a good microscope

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: What did you build today (Pictures) ?

      @nca78 there many other aspects. I’m using a low temp melting solder paste. I have been using only a top quality (no AliExpress) one from Chipquick. It has to be stored property in the fridge.

      Using stencil may help. I’m not using it and have to doze the paste very precisely which is a challenge. This is why my soldering is not 100% consistent, but it works. With 0402 components it is not easy - the pad size is very small.

      However, I must admit, 0402 are far too small. In the process, unless your space / lab is very well organised many components are lost. And a good magnifying glass / microscope is a must too. In the future, i’ll try to stick to 0805 or larger - these are a bit larger and more visible.

      All in all, this is not as difficult as many people may think. With a little bit of practice, this can be done.

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: What did you build today (Pictures) ?

      Try this one.
      The smallest board I have ever assembled using just a hot fan. A solar battery charger based on BQ25504 from a solar panel. Almost all components are 0402. Far too small for my liking, but can go under the solar panel.

      0_1546964306401_FFE84E8C-991D-4342-8272-2180F79333A8.jpeg

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: πŸ’¬ Button size radionode with sensors swarm extension

      @bjornhallberg @Koresh That's what I wrote a few posts above - start with the capacitors πŸ™‚

      My suggestion - get a decent DMM. Brymen BM235 or 121GW or any Fluke.
      Measuring a sleeping current is challenging and some unexpansive Chinese DMM manage it just really well. BUT! You do not want to waist your time just because your meter is crap and was completely off on some readings.

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: πŸ’¬ Button size radionode with sensors swarm extension

      @bjornhallberg

      1. No - please double check the board. There are options for a few sensors. Which ones do you have. Sensors on board.

      2. Code really depends on sensors on board you have.

      3. This is not about counterfeit radio. Just radio NOT SLEEPING. That's it.

      4. OK.

      5. OK

      First thing first. Let's deal with your sleeping problem.
      Identify which sensors you have on board or post a good quality photo of the board.
      Try to use minimum sketch (see commends below - choose the correct Mhz band):
      and measure the current

      #define MY_DEBUG
      #define MY_RADIO_RFM69
      // Please use one!!!!!!
      //#define MY_RFM69_FREQUENCY   RF69_433MHZ
      //#define MY_RFM69_FREQUENCY   RF69_868MHZ
      //#define MY_RFM69_FREQUENCY   RF69_915MHZ
      #define MY_NODE_ID AUTO
      #define MY_TRANSPORT_UPLINK_CHECK_DISABLED
      #define MY_PARENT_NODE_IS_STATIC
      #define MY_PARENT_NODE_ID 0
      
      #include <Wire.h>
      #include <BH1750.h> //Make sure you are using this one https://github.com/claws/BH1750
      BH1750 lightMeter;
      #include "SparkFun_Si7021_Breakout_Library.h"
      Weather sensor;
      #include <MySensors.h>
      #define SPIFLASH_BLOCKERASE_32K   0xD8
      #define SPIFLASH_CHIPERASE        0x60
      
      
      void setup() {
      lightMeter.begin(BH1750::ONE_TIME_LOW_RES_MODE);
        noInterrupts();
        _flash.initialize();
        _flash.sleep();
        interrupts();
      }
      
      
      void loop() {
      lightMeter.begin(BH1750::ONE_TIME_LOW_RES_MODE);
      lux = lightMeter.readLightLevel();
      Serial.print("Lux="); Serial.println(lux);
      sleep(10000);
      }
      
      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: Very funny hobby electronics video

      @yveaux you are quicker than me ;-))

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: Very funny hobby electronics video

      You cannot beat this guy

      https://youtu.be/Tq-EpR-8R0w

      Funny accent, funny character and funny projects

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: πŸ’¬ Button size radionode with sensors swarm extension

      @bjornhallberg I have the same v1 board you have with a sleeping power consumption being 5uA. I also have Si1132 sensor soldered and had some issues with power consumption initially as the standard Si1132 lib did not implement sleep function for this sensor.

      1. what sensors do you have? Do they properly put to sleep? BH1760?
      2. can you share the sketch?
      3. removing the LDO will not help you to bring down consumption from 3mA. 3mA most likely mean your radio is not sleeping. Such consumption will kill CR2032 very quickly - no chance running the board on such consumption
      4. did you try a different multimeter?
      5. there could be a problem with one of the tantalum capacitor. @yury could you remind which one has to be removed please?

      I suggest you start with 5)

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: MySensors USB GW

      @rejoe2 Interesting. I'll try it

      posted in Domoticz
      alexsh1
      alexsh1
    • RE: MySensors USB GW

      @mfalkvidd Yes, I have gone through that. Domoticz does not recognise tty if it does not like it. I have

      /dev/ttyAMA0
      
      posted in Domoticz
      alexsh1
      alexsh1
    • MySensors USB GW

      Hello,

      I have several GWs in Domoticz. However, only one (MySensors Gateway USB
      Version: 2.1.1) never shows up its version in "Domoticz - Hardware" unless I press reset button on Moteino.

      This is a Moteino Mega with a trace antenna connected to Raspberry via TX/RX.

      All other GWs (ethernet ones) are working flawlessly. Just to summarise, when Domoticz is rebooted, only one USB GW shows "?" in the version section. When I press the reset button, the version comes up as 2.1.1. Upgrading to 2.3.0 does not help - any idea how this can be corrected please?

      posted in Domoticz
      alexsh1
      alexsh1
    • RE: GW with MY_RFM69_ENABLE_ENCRYPTION in Domoticz?

      I have abandoned an encryption idea for now as I do not have too much time to troubleshoot it.

      posted in Domoticz
      alexsh1
      alexsh1
    • RE: GW with MY_RFM69_ENABLE_ENCRYPTION in Domoticz?

      @mfalkvidd Let's put it this way, everything works smoothly without encryption. However, as soon as I upload the same GW sketch with encryption (both GW and the node have the same AES key). GW is seen by Domoticz and the node just becomes invisible. I can see there is a successful communication between the node and the GW (sadly I did not save the log). Something fails at the GW level, but you gave me a hint:

      he messages will be decrypted by the gateway before they are sent to the controller
      
      posted in Domoticz
      alexsh1
      alexsh1
    • RE: SSR 3-way relay suggestion

      @zboblamont I think the safety point is highly debatable these days. I can see why the isolators were installed in the 60s, but with modern bathroom fans, this is an obsolete. As I pointed out, it is not required to be installed by the Building Regulations (at least in the UK). Anyway, back to the topic, I'll have to check but I am sure the relay has to be placed behind the isolator socket box. The isolator itself will be buried behind a shelving unit

      posted in Hardware
      alexsh1
      alexsh1
    • RE: GW with MY_RFM69_ENABLE_ENCRYPTION in Domoticz?

      @nagelc No, this code is from a node.

      I do not see GW READY message as this is an ethernet GW. Domoticz though does recognise the GW and I can ping the GW's IP.

      posted in Domoticz
      alexsh1
      alexsh1
    • RE: SSR 3-way relay suggestion

      @zboblamont said in SSR 3-way relay suggestion:

      BAD

      the isolation switch is purely for isolating the fan for maintenance purposes if it is fed from a lighting circuit. That's it.
      BS7671 (Building Regulations in the UK) says nothing about it. Ultimately, it comes down to a fan manufacturer, a property developer or an electrician to install the isolator.

      :-))
      Cord switches? You are too old-fashioned!

      posted in Hardware
      alexsh1
      alexsh1
    • RE: SSR 3-way relay suggestion

      @alowhum The location is not in the bathroom. It is outside the bathroom. above the door leading to the bathroom. However, my idea is to use the SSR from the beginning.

      posted in Hardware
      alexsh1
      alexsh1
    • RE: SSR 3-way relay suggestion

      @skywatch Thank you for an excellent answer. Well, if I have a proper SSR replay, it would work exactly the same way as the isolator switch, right?
      The diagram was taken from the internet. Sorry - I just did not bother to draw mine.
      Yes, you are correct, there is a 30 secs or so time delay on the fan.

      You see building regulations in the UK are not clear about to isolator switch. They refer to the fan manufacturers. And these guys always suggest the to install the isolator switch.

      The relay will not be installed in the bathroom. It will be installed outside where the isolator switch is based (just outside the bathroom). Given that I have a new furniture - shelving units, which is not obstructing the isolator switch, the idea is to replace it with the SSR. Otherwise, it will be permanently obstructed and I won't be able to switch the fan on/off.

      posted in Hardware
      alexsh1
      alexsh1
    • GW with MY_RFM69_ENABLE_ENCRYPTION in Domoticz?

      Hello,

      I am setting up a new GW with Domoticz.

      The RF version of GW sketch contains:

      // Enable and select radio type attached
      #define MY_RADIO_RFM69
      #define MY_RFM69_NEW_DRIVER
      #define MY_RFM69_ATC_MODE_DISABLED
      //#define MY_DEBUG_VERBOSE_RFM69
      #define MY_RFM69_FREQUENCY RFM69_868MHZ
      #define MY_PARENT_NODE_IS_STATIC
      #define MY_PARENT_NODE_ID 0
      #define MY_RFM69_NETWORKID 90
      #define MY_NODE_ID 2
      #define MY_RFM69_ENABLE_ENCRYPTION
      

      However, despite Domoticz is seeing the GW, it fails to see the node. The node does contain

      #define MY_RFM69_ENABLE_ENCRYPTION
      

      and I have used the same AES key.
      In the Serial monitor I can see that both the sensor and the GW are talking, but the controller cannot understand it.

      Any ideas please?

      posted in Domoticz
      alexsh1
      alexsh1
    • RE: Arduino Uno with Ethernet Shield W5100 not working

      @kduino Did you manage so solve it please?

      posted in Troubleshooting
      alexsh1
      alexsh1
    • SSR 3-way relay suggestion

      Hello,

      Can anyone suggest ONE SSR 3-way relay? I need to "MySensorise" a fan in the bathroom and it is isolated, i.e. 3 different wires are switched on/off (L, N and other one, I guess a load (black colour)). I do not want to waist three different relays - I have a few 25-50A Croydom SSRs.

      Load - 10-15A and 240V AC.
      Input - 3V DC (to be managed by a node)
      So it must be DC controlled

      EDIT: I am replacing isolator fan switch in this diagram:

      0_1542655994398_iuWZLQ3JVY.jpg

      posted in Hardware
      alexsh1
      alexsh1
    • RE: V_LIGHT_LEVEL data not displayed in Domoticz

      @ricmail85 Every time after a major update I lose sensors in Domoticz. This is very annoying. The old sensors stop working and new ones appear and as I have lua scripts - they have to be updated as well.

      posted in Domoticz
      alexsh1
      alexsh1
    • RE: Which pro mini? 328? 328P? or 168?

      @johnrob I have similar experience to yours with the boards. Probably all pro mini boards I have a chinese made and they are working fine. I think this is due to the fact that they have past quality control. When you buy components, that's different issue - there is a very poor quality control in my experience.

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: atmega328p-au counterfeit

      @yveaux Yes, the problem has gone as soon as the new chip was soldered and the firmware burned. A lot of valuable time wasted and a lesson learnt - no more Aliexpress for components. Only a reliable source - Digi-key, mouser, allow, Farnell etc.

      posted in Troubleshooting
      alexsh1
      alexsh1
    • RE: Your best advice on buying components?

      @fredswed it depends. I have been using Aliexpress and eBay for many years, but they are (1) unreliable. Recently I ordered a i2c 0.96" OLED display from eBay which turned out to be SPI and the seller did not even know about it. It took another week of e-mail exchange and photos to prove my point (2) fake - all components I order now are coming only from digi-key, Farnell or allow.com. A few months ago I received a batch of fake atmega328p-au tqfp 32. It took me two-three evenings and a lot of soldering/dis-soldering and debugging work to figure it out. I have not even started taking about nrf24l01+. Now my time is valuable and I do not want to spend hours debugging a fake Chinese chip. (3) for small batches - say 5 resistors or caps - you may use a local supplier (they most likely would be on eBay). (4) you can also use a good chinese component suppliers like https://www.itead.cc/

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: FTDI No more?

      Interesting.
      Well, I have genuine FTDI chips and even two Adafruit Friend boards I am using (separate for 5V and for 3.3V) so sadly cannot really help. My Windows 10 likes them.
      I have ditched all few fake modules - they were working for some time and then just stopped working or other issues, but they just did not last.

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: Sonoff, how it works?

      @mhmd I never bothered to discover how original Sonoff firmware works. The whole idea that my home is managed via a remote Chinese server is just not appealing to me.
      Plus nobody in the DIY community using a native Sonoff app. The whole idea to buy Sonoff is to hack it.

      I have several Sonoff relays and I am using ESP Easy (Let's control it) firmware:

      https://rutg3r.com/sonoff-firmware-tutorial-to-esp-easy/

      posted in General Discussion
      alexsh1
      alexsh1
    • Setup for the fastest sensor startup time?

      Hello,

      I have a couple of sensors with MySensors 1.5.3 - they have a very short startup time compare to MySensors 2.3.0. How do I shorten the startup time? I have a node with a very power hungry sensors (mA and not sleeping) and I am using TPL5110 to power down the whole node. Every 10 minutes the timer (TPL5110) wakes up the board. Therefore, I have to make sure that the startup is very short. Quickly looking at API, I think the following has to be done:

      1. No signing - it takes time.
      2. MY_TRANSPORT_UPLINK_CHECK_DISABLED
      3. #define MY_SPLASH_SCREEN_DISABLED

      Anything else?
      Remember, I need the fastest start up time

      Thanks

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: πŸ’¬ Supercap solar charger

      I must admit that the choice of the LDO is perfect.
      I assembled one of these board and can use it with any solar panel up to 12V

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: Another nrf24l01+ fake or..?

      @yveaux SMD version has got a better assembly and better range in my view and generally speaking personally I never had issues with the SMD chips, but had various issues with a normal nrf24l01+.

      My concern is that the high consumption nrf24l01+ modules were perfectly working for a long time. What a setback....
      Do you know if this is repairable? Changing resonator, chip or both?
      Probably not worth spending time

      posted in Hardware
      alexsh1
      alexsh1
    • Another nrf24l01+ fake or..?

      Hi

      I have noticed higher than usual battery consumption on a few nodes. Further investigation discovered that several nrf24l01+, which were tested for mA/uA consumption and were fit in the beginning, were consuming 700uA and 1.8mA while sleeping (all sensors were disconnected and void loop () contained only sleep (60000); function).

      These nrf24l01+ were working fine for many months. RX/TX is working ok and the range is fine. Just sleeping consumption is way too high. I tried these modules with different nodes and similar current consumption.

      Anyone had such problem please?
      Is it curable or shall I just bin nrf24l01+?

      I feel like I’m going to ditch all nrf24l01+ in favour of its SMD version or rfm69.

      Thanks
      Alex

      posted in Hardware
      alexsh1
      alexsh1
    • RE: [SOLVED] BME280 power consumtion

      @mickecarlsson I believe BME280.writeMode(smSleep); is not necessary.
      Forced mode must be used. I think after taking the measurement the sensor goes back to sleep.

      BME280.writeMode(smForced); 
      
      posted in Hardware
      alexsh1
      alexsh1
    • RE: What did you build today (Pictures) ?

      @sundberg84

      Yes, you can downloads STLs from here: https://www.thingiverse.com/thing:2250644
      There another one https://www.thingiverse.com/thing:1816188

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: What did you build today (Pictures) ?

      @neverdie It is purely for logging and control. I did not require either so did not order it. If you add all extras, it does become considerably more expensive.

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: What did you build today (Pictures) ?

      @yveaux This is simple. The Aliexpress seller sent me these instead of black and red ones. So I have been creative - black and blue is negative and yellow and green is positive. Did not bothered waiting for a few weeks for replacement.

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: What did you build today (Pictures) ?

      This is my new PSU - 3D printed enclosure and a few components
      It is very precise.

      2_1540841375727_3.jpg 1_1540841375727_2.jpg 0_1540841375727_1.jpg

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: Which pro mini? 328? 328P? or 168?

      @skywatch Make sure you get atmega328P one. Once I ordered atmega328 and had some issues burning a bootloader. Needless to say that these are useless for battery nodes.

      A good source is digi-key or mouser.
      I ordered a few from aliexpress and they were fine, but last time I received a bunch of fake ones from an e-bay seller. Just watch out

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: 18650 / newbie board / boost??

      @crankycoder you can use a LiFePO4 18650 Rechargeable Cell. Its voltage is lower. Nominal voltage is 3.2V

      posted in My Project
      alexsh1
      alexsh1
    • RE: πŸ’¬ Supercap solar charger

      @neverdie That's good news. I am going to assemble one as I like the idea of disabling the harvester.

      FYG - I am using this small board to read solar panel voltage and disable / enable voltage divider:

      https://github.com/hallard/Battery-Voltage-Measure

      works really well and simple enough.

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: πŸ’¬ Supercap solar charger

      @NeverDie

      I am looking at schematic and I cannot understand why this does not work.
      May be a low quality solar panel? What's wattage of the solar panel you tested?

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: πŸ’¬ Micro (nano) ampere meter (double)

      I had some spare time and all parts so decided to assemble ampere meter.
      Firstly, the sketch has to be changed. The lib Button.h does not exist (it has been renamed). It has to be changed to JC_Button.h. This has to be added to setup {}:

      myBtn.begin();
      

      in order for the button to work.

      My question is this - reading are jumping like a yo-yo despite having a separate power supply (power bank). After calibration, reading maybe +30% or -30% off needless to say that its drifting dynamically. So constant current of 120uA is read +90 or +150 jumping up and down. Is this the way this meter is supposed to work?

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: πŸ’¬ Micro (nano) ampere meter (double)

      @nca78 Exactly the same pin of the IC can be connected to the next pin (VCC) to change the refresh rate.

      https://github.com/iforce2d/thrustTester/blob/master/README.md

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: Improvement Xiaomi smart kettle (I need help!)

      @vladimir If you do not see a problem, why not dismantling it and connecting a relay to simulate a button press?

      I have automated a coffee machine to switch on/off at a certain time to preheat, but I still fail to understand why would anyone need a smart kettle remote control.

      posted in Development
      alexsh1
      alexsh1
    • RE: Improvement Xiaomi smart kettle (I need help!)

      @vladimir I do not understand the purpose of switch a kittle remotely. If there is no water, what would you do?

      Additionally, I think you'd find very little in internet on your topic. It required hacking into existing Xiaomi electronics. If you want to do that, you need to dismantle the kettle and reverse engineer it.

      posted in Development
      alexsh1
      alexsh1
    • RE: atmega328p-au counterfeit

      Just to compare these are received today from digikey:

      0_1536175505733_0AFEB94F-07DE-48CE-803A-9354E015F717.jpeg

      posted in Troubleshooting
      alexsh1
      alexsh1
    • RE: atmega328p-au counterfeit

      Here I have an example of Chinese (AliExpress) sources atmega328p:

      0_1536175363127_CAC40750-4223-46E2-B139-7461188469D4.jpeg

      I have tried to solder a few of these, but none of them is working properly. I can upload the bootloader, but cannot upload any sketch.

      posted in Troubleshooting
      alexsh1
      alexsh1
    • RE: Bosch BME680 Sensor

      @neverdie this is my observation as well that the sensor is showing strange values in the beginning but gradually they become more and more accurate. I have not tinkered long enough to have good viable results.

      posted in My Project
      alexsh1
      alexsh1
    • RE: How to sleep the Moteino M0?

      @gbsmith said in How to sleep the Moteino M0?:

      https://github.com/gb53smith/Public/blob/master/MySensors_BME280/MySensors_BME280.ino

      You are using the latest Felix's addition to Moteino family. It is cutting edge and I do not think anyone here has got Moteino M0 yet. Excellent work-around for sleep. What kind of current are you getting while properly sleeping?

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

      @tbowmo Now I want to build one :-)))

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: What did you build today (Pictures) ?

      @mfalkvidd Just a tip. You may be better of buying this one:

      https://www.amazon.co.uk/KKmoon-Portable-Digital-Oscilloscope-Interface/dp/B07C4RTXF6/ref=sr_1_3?ie=UTF8&qid=1534094879&sr=8-3&keywords=oscilloscope+portable

      Much better spec and the price is the same. AND you can save tons of time as it does not require soldering.

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: 5v vs. 3.3v Pro Mini battery powered nodes

      @yveaux My suggestion is very simple. If there is a device which consumes more than > 5-50uA sleeping on a battery powered node, it has to be completely disconnected while sleeping. This is where TPL5110 comes in. Obviously if an interrupt is used it does not work

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: πŸ’¬ Sensebender Micro mk2

      @tbowmo ha ha ha - at least you are still married πŸ™‚

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: 5v vs. 3.3v Pro Mini battery powered nodes

      @mhkid Another option for you is using TPL5110 module:

      https://www.adafruit.com/product/3435

      I have just received one today and going to tinker with it.
      To me it seems like a good idea to have a powerful sensors with Arduino on batteries.

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: New Moteino M0 is out!

      @alowhum Not cheap, but Rocket Scream is equally priced ($34 for RFM95 radio and the module)

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: πŸ’¬ Sensebender Micro

      @nailman There are a lot of fake FTDI modules. Some are labelled FTDI other claim to be FTDI but are CH340. Some have DTR others RST and good ones like Adafruit Friend it is selectable.

      My recommendation is do not try to save a few bucks here. Spend money on a good quality FTDI adapter like Adafruit Friend.

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: 5v vs. 3.3v Pro Mini battery powered nodes

      @yveaux Maximum operating current - 500mA. It depends how often the pressure is going to change, but one can pretty much forget about batteries as the source of power.

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: 5v vs. 3.3v Pro Mini battery powered nodes

      @mhkid I cannot see the consumption. Do you have the datasheet?

      Most likely this is not a battery friendly sensor. In this case you stil can use it via a step up converter and TPL5110, which will switchit off completely while sleeping

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: 5v vs. 3.3v Pro Mini battery powered nodes

      @mhkid replace the sensor. If you cannot replace the sensor, you have several options:

      1. use 5v pro mini + 3xAA batteries + 5v sensor.
        This is going to be a very power hungry setup.

      2. use 3.3v pro mini + level shifter + 3xAA batteries + 5v sensor
        Again this setup now ideal - you have to drop voltage from 5v to 3.3v

      I still have several old 5v sensors I used with Arduino Uno. I am just not using them any longer with one exceptions when a node is powered from mains.

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: Bosch BME680 Sensor

      @heinz said in Bosch BME680 Sensor:

      @alexsh1
      No I am not using the BSEC library. I read the raw values of the resistance and calculate the first derivative for triggering the ventilation system. The ventilation system is turned on, when
      (delta resistance)/minute > threshold

      Sometimes the ventilation is also triggered when I open my fridge. Then the smell of food coming out of the fridge also fires the trigger.

      It is said that the sensor is very sensitive to any kind of silicone which is basically everywhere in the air wVErhen you have dishes created from silicone in your kitchen. Silicone poisens/blinds the sensor immediately for several hours.
      So be careful when making experiments with it.

      OK, so you are using the first derivative (rate of change/time). Clear
      This is amazing - it triggered when one opens the fridge? Must be very sensitive.

      Ok, let me tinker with the sensor and I'll post my feedback here.

      posted in My Project
      alexsh1
      alexsh1
    • RE: Bosch BME680 Sensor

      @heinz said in Bosch BME680 Sensor:

      I am using the sensor in my kitchen to detect when someone is cooking. In this case I am not interested in the absolute resistance, but in the change over time. If the air quality gets worse in a very short time (resistance change per minute), then I can activate the ventilation system. The same could be done on the toilet πŸ™‚

      Thank you for your excellent feedback. I actually have not been thinking about such an application. Modifying kitchen sounds like an excellent idea.
      Are you using BSEC Lib?

      posted in My Project
      alexsh1
      alexsh1
    • RE: Bosch BME680 Sensor

      @Nca78 Do you mean this software - https://github.com/BoschSensortec/BME680_driver ???

      posted in My Project
      alexsh1
      alexsh1
    • RE: πŸ’¬ Sensebender Micro mk2

      @tbowmo said in πŸ’¬ Sensebender Micro mk2:

      so still haven't got the first prototype up and run nok 😞

      Any luck with that at all? I really like they way the node is very small and with SAMD21

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: πŸ’¬ Button size radionode with sensors swarm extension

      @koresh said in [πŸ’¬ Button size radionode with sensors swarm extension]>

      Will try to share soon. Almost all elements are 0402.

      Wow! I have been struggling with 0603 size. You must have eagle's eyes πŸ‘€

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: 5v vs. 3.3v Pro Mini battery powered nodes

      There are no thoughts. Just get 3.3v pro mini.
      Generally speaking for any low consumption (battery driven nodes), try to get rid of 5v devices (chips or sensors). I have moved completely to 3.3v almost without regulators with exception of the solar /supercap node.

      posted in General Discussion
      alexsh1
      alexsh1
    • RE: πŸ’¬ Button size radionode with sensors swarm extension

      @pepson said in πŸ’¬ Button size radionode with sensors swarm extension:

      But for programming i dont need push/wire RST with GND ?

      Explaine me how works Programming is activated via DTR pin automatically ??

      No, no need to connect RST with GND.
      DTR works automatically - as soon as you press upload in your Arduino IDE, it starts uploading the sketch to the atmega328p. Simple

      posted in OpenHardware.io
      alexsh1
      alexsh1
    • RE: Battery life for Motion Sensor

      @popsyann said in Battery life for Motion Sensor:

      When I load the motion sensor sketch, it start properly, finding the right "parent" and immediately after this, there is a flow of info going out of the Arduino+sensor, sending 0s or 1s, constantly (like if there was an issue with the interrupt process).

      And what I do not understand is that this (these) sensor(s) has(have) been working well for a while.

      Please search for sleep() function - it has changed the way it works at some stage in MySensors 2.*

      https://forum.mysensors.org/topic/1088/battery-powered-pir
      https://forum.mysensors.org/topic/5807/interrupt-and-sleep/26
      https://forum.mysensors.org/topic/5552/pin-change-interrupt-not-firing-with-mysensors/28

      Another reason could you that your PIR is not settling properly - this is why it sends out 1s and 0s to the GW. Try to insert sleep(20000); into void setup() at the end to settle the PIR

      posted in Hardware
      alexsh1
      alexsh1
    • RE: Bosch BME680 Sensor

      @nca78 Damn! My node takes only 9uA (atmega328p based) and that’s including BME680. With SAMD I need to see what the sleeping consumption is. It has to last more than a year on 2xAA batteries

      posted in My Project
      alexsh1
      alexsh1
    • RE: Battery life for Motion Sensor

      @popsyann I de-soldered power LEDs and power regulators. You do not need them for battery powered nodes and this is reversible. Otherwise you wont get low uA.
      This is about power.

      Talking about voltage - did you measure it? How do you know if goes to 1V?
      Did you double-triple check all wires and everything is correct?

      FYG - HR-SR501 has to be modified as well for 3.3V (remove regulator)
      http://www.instructables.com/id/Convert-a-5v-PIR-Motion-Sensor-to-33v-for-ESP8266/

      posted in Hardware
      alexsh1
      alexsh1
    • RE: Battery life for Motion Sensor

      @popsyann

      1. https://www.mysensors.org/build/battery
      2. OK
      3. This is a standard sketch. Cannot see anything wrong.
      posted in Hardware
      alexsh1
      alexsh1