Navigation

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

    emc2

    @emc2

    Hardware Contributor

    39
    Reputation
    136
    Posts
    1759
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Website github.com/emc2cube

    emc2 Follow
    Hardware Contributor

    Best posts made by emc2

    • MyWeatherGatewayESP8266 (1.6 dev branch)

      Hi there.

      A couple of weeks ago I started to play with the 1.6 branch to hook up a sensor directly on the gateway, and decrease the clutter of cables and breadboards lying around.

      Here is the result, a ESP8266 gateway with weather station sketch allowing me to measure the atmospheric pressure, temperature and humidity (indoor). Because of the limited number of pins available I used a BME280 sensor instead of a BMP180 + dht. It may be a couple of dollar more expensive, but it's nicer to wire!

      A few drawbacks / limitations:

      • the CE pin is by default wired on the I2C bus. You will either need to move it, or to move the I2C bus pins. It can be easily done by commenting / uncommenting a few lines on top of the sketch.
      • BME280 is extremely sensitive. It's good right? Well not if you keep it too close of the ESP8266. Temperature will be up to 3°C higher than it really is! I still have to figure out how to resolve this issue. For now I'm back with having long wires between the BME module and the ESP 😕
      • I moved the I2C bus to GPIO 1 and 3. These are the TX and RX pins, close to the USB port. I2C and Serial communication are sort of interfering with each other if occurring in the same time. MY_DEBUG is off to prevent this. You may want to move SDA and SCL around, especially for debug purpose, but here it's close to a GND and 3.3V supply which is convenient. Maybe there is a way to do a nice PCB but I never tried before.

      Code updates, if any, will be available on https://github.com/emc2cube/MyWeatherGatewayESP8266

      /**
       * Important: I2C setup and NRF24L01 wiring
       * By default the NRF24 CE pin is wired on GPIO4. On ESP8266 default SDA and SCL pin are respectively GPIO4 and GPIO5.
       * Both CE pin and SDA (or even SCL) can be moved so depending of your setup you will have to move at least one of these.
       * Look for "#define MY_RF24_CE_PIN", "#define SDA" and "#define SCL" lines to adapt to your wiring.
       *
       * By default Adafruit BME280 library is looking for a BME280 sensor on the I2C bus at (0x77).
       * If your sensor is set with the low adress (0x76) you can uncomment the lines "#undef BME280_ADDRESS" and "#define BME280_ADDRESS (0x76)"
       * Or you can set it on high by changing the jumper/bridge setting on the PCB.
       *
       * Make sure to fill in your ssid and WiFi password below for ssid & pass.
       */
      
      // ----------------------------------------------------------------------------
      // MySensor ESP8266 Gateway configuration
      // ----------------------------------------------------------------------------
      #include <EEPROM.h>
      #include <SPI.h>
      
      // Enable debug prints to serial monitor
      //#define MY_DEBUG    // I2C devices may have a funky behaviour when serial communication is occuring and GPIO 1 and 3 are used for I2C bus (RX and TX ports).
      
      // Use a bit lower baudrate for serial prints on ESP8266 than default in MyConfig.h
      #define MY_BAUD_RATE 9600
      
      // Enables and select radio type (if attached)
      #define MY_RADIO_NRF24
      //#define MY_RADIO_RFM69
      
      // Gateway mode always enabled for ESP8266. But we add this anyway ;)
      #define MY_GATEWAY_ESP8266
      
      #define MY_ESP8266_SSID "MySSID"
      #define MY_ESP8266_PASSWORD "MyVerySecretPassword"
      
      // To use native I2C pins CE should be moved. Declare the new GPIO used here.
      // GPIO 3 is pin D9 (RX below D8)
      //#define MY_RF24_CE_PIN 3
      
      // Enable UDP communication
      //#define MY_USE_UDP
      
      // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP)
      //#define MY_IP_ADDRESS 192,168,178,87
      
      // If using static ip you need to define Gateway and Subnet address as well
      #define MY_IP_GATEWAY_ADDRESS 192,168,178,1
      #define MY_IP_SUBNET_ADDRESS 255,255,255,0
      
      // The port to keep open on node server mode 
      #define MY_PORT 5003
      
      // How many clients should be able to connect to this gateway (default 1)
      #define MY_GATEWAY_MAX_CLIENTS 2
      
      // Controller ip address. Enables client mode (default is "server" mode). 
      // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere. 
      //#define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 68
      
      // 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
      
       
      // Flash leds on rx/tx/err
      // #define MY_LEDS_BLINKING_FEATURE
      // Set blinking period
      // #define MY_DEFAULT_LED_BLINK_PERIOD 300
      
      // Led pins used if blinking feature is enabled above
      #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
      
      #if defined(MY_USE_UDP)
        #include <WiFiUDP.h>
      #else
        #include <ESP8266WiFi.h>
      #endif
      
      #include <MySensor.h>
      
      // ----------------------------------------------------------------------------
      // Child sensor ids
      // ----------------------------------------------------------------------------
      #define BARO_CHILD 0
      #define TEMP_CHILD 1
      #define HUM_CHILD 2
      
      // ----------------------------------------------------------------------------
      // I2C setup: SDA and SCL pin selection
      // ----------------------------------------------------------------------------
      #include <Wire.h>
      
      // If using the standard MySensor wiring direction we can't use default I2C ports. I2C ports moved next to the second GND and 3.3v ports for convenient wiring of I2c modules.
      #define SDA 3  //default to GPIO 4 (D2) but NRF24L01+ CE is plugged on D2 by default for the ESP gateway. SDA changed to GPIO 3 (RX)
      #define SCL 1  //default to GPIO 5 (D1). SDA changed to GPIO 1 (TX)
      
      // ----------------------------------------------------------------------------
      // BME280 libraries and variables
      // Written by Limor Fried & Kevin Townsend for Adafruit Industries.
      // https://github.com/adafruit/Adafruit_BME280_Library
      #include <Adafruit_Sensor.h>
      #include <Adafruit_BME280.h>
      
      //#undef BME280_ADDRESS         // Undef BME280_ADDRESS from the BME280 library to easily override I2C address
      //#define BME280_ADDRESS (0x76) // Low = 0x76 , High = 0x77 (default on adafruit and sparkfun BME280 modules, default for library)
      
      Adafruit_BME280 bme; // Use I2C
      
      // ----------------------------------------------------------------------------
      // Weather station variables and functions
      // ----------------------------------------------------------------------------
      // Adapt this constant: set it to the altitude above sealevel at your home location.
      const float ALTITUDE = 23; // meters above sea level. Use your smartphone GPS to get an accurate value!
      
      // Set this to true if you want to send values altough the values did not change.
      // This is only recommended when not running on batteries.
      const bool SEND_ALWAYS = true;
      
      //////////////////////////////////////////////////////////
      // You should not need to edit anything after this line //
      //////////////////////////////////////////////////////////
      
      // Constant for the world wide average pressure
      const float SEALEVEL_PRESSURE = 1013.25;
      
      // Sleep time between reads (in ms). Do not change this value as the forecast algorithm needs a sample every minute.
      const unsigned long SLEEP_TIME = 60000;
      unsigned long previousMillis = 0;
      
      const char *weatherStrings[] = { "stable", "sunny", "cloudy", "unstable", "thunderstorm", "unknown" };
      enum FORECAST
      {
        STABLE = 0,       // Stable weather
        SUNNY = 1,        // Slowly rising HP stable good weather
        CLOUDY = 2,       // Slowly falling Low Pressure System, stable rainy weather
        UNSTABLE = 3,     // Quickly rising HP, not stable weather
        THUNDERSTORM = 4, // Quickly falling LP, Thunderstorm, not stable
        UNKNOWN = 5       // Unknown, more time needed
      };
      
      const char *situationStrings[] = { "very low", "low", "normal", "high", "very high" };
      enum WEATHER_SITUATION
      {
        VERY_LOW_PRESSURE = 0,   // p > -7.5hPa
        LOW_PRESSURE = 1,        // p > -2.5hPa
        NORMAL_PRESSURE = 2,     // p < +/-2.5hPa  
        HIGH_PRESSURE = 3,       // p > +2.5hPa
        VERY_HIGH_PRESSURE = 4,  // p > +7.5hPa
      };
      
      float lastPressure = -1;
      float lastTemp = -1;
      float lastHum = -1;
      int lastForecast = -1;
      int lastSituation = NORMAL_PRESSURE;
      
      const int LAST_SAMPLES_COUNT = 5;
      float lastPressureSamples[LAST_SAMPLES_COUNT];
      
      // this CONVERSION_FACTOR is used to convert from Pa to kPa in the forecast algorithm
      // get kPa/h by dividing hPa by 10 
      #define CONVERSION_FACTOR (1.0/10.0)
      
      int minuteCount = 0;
      bool firstRound = true;
      // average value is used in forecast algorithm.
      float pressureAvg;
      // average after 2 hours is used as reference value for the next iteration.
      float pressureAvg2;
      
      float dP_dt;
      boolean metric;
      MyMessage tempMsg(TEMP_CHILD, V_TEMP);
      MyMessage humMsg(HUM_CHILD, V_HUM);
      MyMessage pressureMsg(BARO_CHILD, V_PRESSURE);
      MyMessage forecastMsg(BARO_CHILD, V_FORECAST);
      MyMessage situationMsg(BARO_CHILD, V_VAR1);
      MyMessage forecastMsg2(BARO_CHILD, V_VAR2);
      
      
      void initPressureSensor() {
        Serial.print(F("NRF24L01+ CE pin on GPIO"));
        Serial.println(MY_RF24_CE_PIN);
        #if defined(SDA) && defined(SCL)
          Serial.print(F("Using custom I2C pins: SDA on GPIO"));
          Serial.print(SDA);
          Serial.print(F(" and SCL on GPIO"));
          Serial.println(SCL);
          Wire.begin(SDA,SCL);
        #else
          Serial.println(F("Using default I2C pins: SDA on GPIO4 and SCL on GPIO5"));
          Wire.begin();
        #endif
        if (!bme.begin(BME280_ADDRESS)) {
          Serial.println(F("Could not find a valid BME280 sensor, check wiring or I2C address!"));
          while (1) {
            yield();
          }
        }
      }
      
      
      int getWeatherSituation(float pressure)
      {
        int situation = NORMAL_PRESSURE;
      
        float delta = pressure - SEALEVEL_PRESSURE;
        if (delta > 7.5)
        {
          situation = VERY_HIGH_PRESSURE;
        }
        else if (delta > 2.5)
        {
          situation = HIGH_PRESSURE;
        }
        else if (delta < -7.5)
        {
          situation = VERY_LOW_PRESSURE;
        }
        else if (delta < -2.5)
        {
          situation = LOW_PRESSURE;
        }
        else
        {
          situation = NORMAL_PRESSURE;
        }
      
        return situation;
      }
      
      
      float getLastPressureSamplesAverage()
      {
        float lastPressureSamplesAverage = 0;
        for (int i = 0; i < LAST_SAMPLES_COUNT; i++)
        {
          lastPressureSamplesAverage += lastPressureSamples[i];
        }
      
        lastPressureSamplesAverage /= LAST_SAMPLES_COUNT;
      
        // Uncomment when debugging
        Serial.print(F("### 5min-Average:"));
        Serial.print(lastPressureSamplesAverage);
        Serial.println(F(" hPa"));
      
        return lastPressureSamplesAverage;
      }
      
      
      // Algorithm found here
      // http://www.freescale.com/files/sensors/doc/app_note/AN3914.pdf
      // Pressure in hPa -->  forecast done by calculating kPa/h
      int sample(float pressure)
      {
        // Calculate the average of the last n minutes.
        int index = minuteCount % LAST_SAMPLES_COUNT;
        lastPressureSamples[index] = pressure;
      
        minuteCount++;
        if (minuteCount > 185)
        {
          minuteCount = 6;
        }
      
        if (minuteCount == 5)
        {
          pressureAvg = getLastPressureSamplesAverage();
        }
        else if (minuteCount == 35)
        {
          float lastPressureAvg = getLastPressureSamplesAverage();
          float change = (lastPressureAvg - pressureAvg) * CONVERSION_FACTOR;
          if (firstRound) // first time initial 3 hour
          {
            dP_dt = change * 2; // note this is for t = 0.5hour
          }
          else
          {
            dP_dt = change / 1.5; // divide by 1.5 as this is the difference in time from 0 value.
          }
        }
        else if (minuteCount == 65)
        {
          float lastPressureAvg = getLastPressureSamplesAverage();
          float change = (lastPressureAvg - pressureAvg) * CONVERSION_FACTOR;
          if (firstRound) //first time initial 3 hour
          {
            dP_dt = change; //note this is for t = 1 hour
          }
          else
          {
            dP_dt = change / 2; //divide by 2 as this is the difference in time from 0 value
          }
        }
        else if (minuteCount == 95)
        {
          float lastPressureAvg = getLastPressureSamplesAverage();
          float change = (lastPressureAvg - pressureAvg) * CONVERSION_FACTOR;
          if (firstRound) // first time initial 3 hour
          {
            dP_dt = change / 1.5; // note this is for t = 1.5 hour
          }
          else
          {
            dP_dt = change / 2.5; // divide by 2.5 as this is the difference in time from 0 value
          }
        }
        else if (minuteCount == 125)
        {
          float lastPressureAvg = getLastPressureSamplesAverage();
          pressureAvg2 = lastPressureAvg; // store for later use.
          float change = (lastPressureAvg - pressureAvg) * CONVERSION_FACTOR;
          if (firstRound) // first time initial 3 hour
          {
            dP_dt = change / 2; // note this is for t = 2 hour
          }
          else
          {
            dP_dt = change / 3; // divide by 3 as this is the difference in time from 0 value
          }
        }
        else if (minuteCount == 155)
        {
          float lastPressureAvg = getLastPressureSamplesAverage();
          float change = (lastPressureAvg - pressureAvg) * CONVERSION_FACTOR;
          if (firstRound) // first time initial 3 hour
          {
            dP_dt = change / 2.5; // note this is for t = 2.5 hour
          }
          else
          {
            dP_dt = change / 3.5; // divide by 3.5 as this is the difference in time from 0 value
          }
        }
        else if (minuteCount == 185)
        {
          float lastPressureAvg = getLastPressureSamplesAverage();
          float change = (lastPressureAvg - pressureAvg) * CONVERSION_FACTOR;
          if (firstRound) // first time initial 3 hour
          {
            dP_dt = change / 3; // note this is for t = 3 hour
          }
          else
          {
            dP_dt = change / 4; // divide by 4 as this is the difference in time from 0 value
          }
          pressureAvg = pressureAvg2; // Equating the pressure at 0 to the pressure at 2 hour after 3 hours have past.
          firstRound = false; // flag to let you know that this is on the past 3 hour mark. Initialized to 0 outside main loop.
        }
      
        int forecast = UNKNOWN;
        if (minuteCount < 35 && firstRound) //if time is less than 35 min on the first 3 hour interval.
        {
          forecast = UNKNOWN;
        }
        else if (dP_dt < (-0.25))
        {
          forecast = THUNDERSTORM;
        }
        else if (dP_dt > 0.25)
        {
          forecast = UNSTABLE;
        }
        else if ((dP_dt > (-0.25)) && (dP_dt < (-0.05)))
        {
          forecast = CLOUDY;
        }
        else if ((dP_dt > 0.05) && (dP_dt < 0.25))
        {
          forecast = SUNNY;
        }
        else if ((dP_dt >(-0.05)) && (dP_dt < 0.05))
        {
          forecast = STABLE;
        }
        else
        {
          forecast = UNKNOWN;
        }
      
        // Uncomment when dubugging
        Serial.print(F("Forecast at minute "));
        Serial.print(minuteCount);
        Serial.print(F(" dP/dt = "));
        Serial.print(dP_dt);
        Serial.print(F("kPa/h --> ")); 
        Serial.println(weatherStrings[forecast]);
      
        return forecast;
      }
      
      
      bool updatePressureSensor()
      {
        bool changed = false;
      
        float temperature = bme.readTemperature();
        float humidity = bme.readHumidity();
        float pressure_local = bme.readPressure() / 100.0; // Read atmospheric pressure at local altitude
        float pressure = ( pressure_local / pow((1.0 - ( ALTITUDE / 44330.0 )), 5.255)); // Local pressure adjusted to sea level pressure using user altitude
        
        if (!metric) 
        {
          // Convert to fahrenheit
          temperature = temperature * 9.0 / 5.0 + 32.0;
        }
      
        int forecast = sample(pressure);
        int situation = getWeatherSituation(pressure);
      
        if (SEND_ALWAYS || (temperature != lastTemp))
        {
          changed = true;
          lastTemp = temperature;
          Serial.print(F("Temperature = "));
          Serial.print(temperature);
          Serial.println(metric ? F(" *C") : F(" *F"));
          if (!send(tempMsg.set(lastTemp, 1)))
          {
            lastTemp = -1.0;
          }
        }
      
        if (SEND_ALWAYS || (humidity != lastHum))
        {
          lastHum = humidity;
          changed = true;
          Serial.print(F("Humidity = "));
          Serial.print(humidity);
          Serial.println(F(" %"));
          if (!send(humMsg.set(lastHum, 1)))
          {
            lastHum = -1.0;
          }
        }
      
        if (SEND_ALWAYS || (pressure != lastPressure))
        {
          changed = true;
          lastPressure = pressure;
          Serial.print(F("Sea level Pressure = "));
          Serial.print(pressure);
          Serial.println(F(" hPa"));
          if (!send(pressureMsg.set(lastPressure, 1)))
          {
            lastPressure = -1.0;
          }
        }
      
        if (SEND_ALWAYS || (forecast != lastForecast))
        {
          changed = true;
          lastForecast = forecast;
          Serial.print(F("Forecast = "));
          Serial.println(weatherStrings[forecast]);
          if (send(forecastMsg.set(weatherStrings[lastForecast])))
          {
            if (!send(forecastMsg2.set(lastForecast)))
            {
            }
          }
          else
          {
            lastForecast = -1.0;
          }
        }
      
        if (SEND_ALWAYS || (situation != lastSituation))
        {
          changed = true;
          lastSituation = situation;
          Serial.print(F("Situation = "));
          Serial.println(situationStrings[situation]);
          if (!send(situationMsg.set(lastSituation)))
          {
            lastSituation = -1.0;
          }
        }
        
        return changed;
      }
      
      
      void setup() {
        // Setup locally attached sensors
        initPressureSensor();
        metric = getConfig().isMetric;
      }
      
      
      void presentation() {
        // Present locally attached sensors
        
        // Send the sketch version information to the gateway and Controller
        sendSketchInfo("Weather Station Gateway", "1.6");
      
        // Register sensors to gw (they will be created as child devices)
        present(BARO_CHILD, S_BARO);
        present(TEMP_CHILD, S_TEMP);
        present(HUM_CHILD, S_HUM);
      }
      
      
      void loop() {
        // Send locally attached sensor data here
        updatePressureSensor();
        wait(SLEEP_TIME);   // do not use sleep() or delay(), it would prevent required TCP/IP and MySensor operations!
      }
      
      posted in Development
      emc2
      emc2
    • RE: Esp8266 with wifi off

      Make sure you include this in your sketch

      #include <ESP8266WiFi.h>
      

      Then add the following lines at the beginning of your setup()

        WiFi.disconnect();
        WiFi.mode(WIFI_OFF);
        WiFi.forceSleepBegin();
        delay(1);
      

      It should totally disable ESP WiFi functions and basically you end up with an arduino nano.

      posted in General Discussion
      emc2
      emc2
    • RE: 💬 Atmospheric Pressure Sensor

      BME280 is quite nice. I got one last year that I added to my gateway and it worked flawlessly since then.

      If you remove the gateway/esp8266 top part you should be able to directly use code from https://github.com/emc2cube/MyWeatherGatewayESP8266 (which was updated from this one anyway)

      posted in Announcements
      emc2
      emc2
    • RE: rewards for sharing

      I did.

      0_1482531193060_Capture d’écran 2016-12-23 à 14.12.37.png

      Thanks!

      posted in General Discussion
      emc2
      emc2
    • RE: Ultra low temperature (-80ºC) monitoring probes

      In case someone ends up on this topic using the search function, PCB and code for using a 4-20mA sensor is available on https://forum.mysensors.org/topic/5508/mysfreezer

      posted in Hardware
      emc2
      emc2
    • RE: Ultra low temperature (-80ºC) monitoring probes

      No I do not sell these assembled.
      I think the only option on openhardware is DIY kit, but with the included Gerber files and BOM you should be able to have it assembled at a local fab house.

      For notifications, mine is actually linked to IFTTT using a script in domoticz, but basically you can use any notification functions used in your controller.

      posted in Hardware
      emc2
      emc2
    • RE: BMP280 + I2C

      Are you using a BMP280 (temp + pressure) or as you linked a BME280 (temp + hum + pressure)?

      If you have a BME280 have a look at http://forum.mysensors.org/topic/2821/myweathergatewayesp8266-1-6-dev-branch for adding the humidity readings.

      posted in My Project
      emc2
      emc2
    • RE: Forum Banner on Screen

      For a dirty quick fix you can add the following custom filter in your adblock preferences (works on µBlock)

      forum.mysensors.org###header-menu > .visible-md-block.visible-lg-block.desktop-notification-permission

      posted in General Discussion
      emc2
      emc2
    • RE: Identifying Pro Mini 5v and 3.3v, Is this correct/safe ?

      If you have good eyes most of the time you can look at the onboard power regulator if it says 5, or 50 (5V) or 33 (3.3V)

      posted in Hardware
      emc2
      emc2
    • RE: [SOLVED] ESP8266 Gateway endless loop

      I have some problem as well with the last 2.1.0 ESP8266 board files.
      You may want to try by downgrading to 2.0.0, work in my case.

      posted in Troubleshooting
      emc2
      emc2

    Latest posts made by emc2

    • RE: 💬 Easy/Newbie PCB for MySensors

      Looks nice in red 😉

      posted in OpenHardware.io
      emc2
      emc2
    • RE: 💬 MySWeMosGWShield - WeMos Mini MySensors Gateway Shield

      Looks like a neat module indeed.
      Never tried these, but yes I guess if the external antenna and the wifi antenna are too close it may leat to some interferences.

      Would also need to check that the 3.3V is powerful enough to properly feed the esp and this chip at the same time, I guess it may depends on the antenna plugged to it too.

      posted in OpenHardware.io
      emc2
      emc2
    • RE: 💬 MySWeMosGWShield - WeMos Mini MySensors Gateway Shield

      @fabien Never heard of the "Ebyte NRF24 PA+LNA module", do you have a link for it somewhere?

      So far I've been using a few of these with the "regular no name" PA+LNA from Aliexpress and did not have any problems. What are the symptoms you are observing?

      posted in OpenHardware.io
      emc2
      emc2
    • RE: 💬 SMDnRF24_adapter

      Forgot about this guy... Updated the project a little, the PCB now have footprints for both normal and PA+LNA modules.
      The old boards are still available on the github repository if needed.

      Even with the extra length added to the PCB with the dual footprint, it is overall still smaller than a regular non SMD NRF24L01 module.

      posted in OpenHardware.io
      emc2
      emc2
    • RE: 💬 MySWeMosIRShield - IR blaster shield for WeMos D1

      Actually was not too bad to update.

      I pushed the updated example sketch to github and openhardware, compatible with IRremoteESP8266 v2.0 and up.
      I did a quick test here, no errors, and the vacuum cleaner already escaped to the bedroom, so good to go!

      As for the board, feel free to share any sketch here or on github.

      posted in OpenHardware.io
      emc2
      emc2
    • RE: 💬 MySWeMosIRShield - IR blaster shield for WeMos D1

      Short and not perfect answer, they changed everything when they updated the library to >2.0.

      For a quick way to test your board etc, you can compile the example sketch by reverting to version 1.2.0
      0_1503463968139_irremote.png

      Ideally you may want to upgrade your sketch to be compatible with version 2.0 according to this https://github.com/markszabo/IRremoteESP8266/wiki/Upgrading-to-v2.0

      I wanted to do it, but completely forgot about it... Will try to have a look at it tonight, but hopefully you can start testing everything using the old library version.

      May also ask what minor modifications you did? Always open to suggestions to improve the board.

      posted in OpenHardware.io
      emc2
      emc2
    • RE: 💬 MySWeMosGWShield - WeMos Mini MySensors Gateway Shield

      @Mynasru unfortunately the only other suitable pin would be D1, SCL.
      Wemos do not have enough pins to do gateway + I2C, you will need to switch to a nodeMCU or similar.

      Also keep in mind that D2 is a MySensor default for ESP8266, I tried to have it moved when support was added https://github.com/mysensors/MySensors/issues/408#issuecomment-191403862 but without success, meaning you will need to reassign CE in your code.

      posted in OpenHardware.io
      emc2
      emc2
    • RE: NRF24L01 SMD to DIP converter

      @bilbolodz Actually a PA+LNA version is on github (untested)
      https://github.com/emc2cube/SMDnRF24_adapter/tree/master/PA_LNA

      But yes, I did not update the openhardware part yet.

      posted in Hardware
      emc2
      emc2
    • RE: 💬 MySGrowLED - MySensors control for Grow Lights or Greenhouse

      The choice of MOSFET can be tricky. Seems that irlz44n was discontinued so you may need to find one adapted to the voltage and current you want to handle.
      In all the cases you need to get a logic MOSFET too, meaning that they are fully open usually around 1 to 3V.

      Also I'm sort of confused as it seems to me that L7812CV is a Voltage regulator, not a MOSFET. So if you are actually using that in the MOSFET spot it will definitively not work.

      Especially if you are handling high current or voltage I would recommend using one from a reputable source for your MOSFET, I recently switched from mouser / digikey / aliexpress to mostly use http://www.arrow.com as you get free regular shipping, event if you order a couple of components (no affiliation to them whatsoever).

      posted in OpenHardware.io
      emc2
      emc2
    • RE: 💬 MySRaspiGW - MySensors Raspberry Pi GPIO Gateway

      @reinhold I bet it's an IRQ issue:

      If you are using version 1.1 of the board, with IRQ support, you need to compile the software on the pi with the --my-rf24-irq-pin=18 option (see Install section on openhardware / github)

      By default IRQ is on pin 15 so my bet is that if it's working by following https://www.mysensors.org/build/raspberry you just need to recompile the software with this option and it should work

      posted in OpenHardware.io
      emc2
      emc2