Navigation

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

    Posts made by Tagore.PDE

    • RE: DHT sensor for Mysensors V2

      Yes, thx. same issue.

      posted in General Discussion
      Tagore.PDE
      Tagore.PDE
    • RE: DHT sensor for Mysensors V2

      Anyone tried that?
      i m getting error with dht.readSensor.

      Arduino: 1.6.9 (Windows 7), Board: "Arduino/Genuino Uno"
      
      WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
      C:\Users\Usuario\Documents\Arduino\GW Serial 2.0\GwSerial.v.0.3\GwSerial.v.0.3.ino: In function 'void loop()':
      
      GwSerial.v.0.3:198: error: no matching function for call to 'DHT::readSensor(bool)'
      
         dht.readSensor(true);
      
                            ^
      
      C:\Users\Usuario\Documents\Arduino\GW Serial 2.0\GwSerial.v.0.3\GwSerial.v.0.3.ino:198:22: note: candidate is:
      
      In file included from C:\Users\Usuario\Documents\Arduino\GW Serial 2.0\GwSerial.v.0.3\GwSerial.v.0.3.ino:38:0:
      
      C:\Program Files (x86)\Arduino\libraries\DHT/DHT.h:83:8: note: void DHT::readSensor()
      
         void readSensor();
      
              ^
      
      C:\Program Files (x86)\Arduino\libraries\DHT/DHT.h:83:8: note:   candidate expects 0 arguments, 1 provided
      
      Multiple libraries were found for "DHT.h"
       Used: C:\Program Files (x86)\Arduino\libraries\DHT
       Not used: C:\Users\Usuario\Documents\Arduino\libraries\DHT_sensor_library
      exit status 1
      no matching function for call to 'DHT::readSensor(bool)'
      
      
      posted in General Discussion
      Tagore.PDE
      Tagore.PDE
    • RE: Adafruit Feather M0 RFM69 Packet Radio (433 or 900 MHz)

      @hek said:

      The upcoming MySensors gateway runs on SAMD so I guess feather works.

      Hi @hek , thx for the reply, any eta on this?
      Regards.

      Hi @scalz , can please help me out to get some feathers running? that would be really helpfull 🙂
      Regards.

      posted in Hardware
      Tagore.PDE
      Tagore.PDE
    • Adafruit Feather M0 RFM69 Packet Radio (433 or 900 MHz)

      Hi Guys, any of you tried to use this hardware?
      Its possible to run Mysensors using that?
      Best regards.

      posted in Hardware
      Tagore.PDE
      Tagore.PDE
    • RE: Temp Sensor and iobroker on rasPi3

      not yet, but in some days i will get that running.
      regards.

      posted in My Project
      Tagore.PDE
      Tagore.PDE
    • RE: Library 2.0 - No Humidity sketch
      // Enable debug prints to serial monitor
      #define MY_DEBUG 
      
      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      //#define MY_RADIO_RFM69
      
      //Including nescessary libraries
      #include <SPI.h>
      #include <MySensors.h> 
      #include <DHT.h>  
      #define HUMIDITY 1
      #define TEMPERATURE 2
      
      #define HUMIDITY_SENSOR_DIGITAL_PIN 3
      DHT dht;
      
      float lastTempValue;
      float lastHumValue;
      boolean metric = true; 
      
      unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds)(30 seconds)
      #define MESSAGEWAIT 500
      
      MyMessage msgHum(HUMIDITY, V_HUM);
      MyMessage msgTemp(TEMPERATURE, V_TEMP);
      
      void presentation()  {
        // Send the sketch version information to the gateway and Controller
        sendSketchInfo("XXXX", "XX");
        wait(MESSAGEWAIT);
      
        // Register all sensors to gateway (they will be created as child devices)
        present(HUMIDITY, S_HUM);
        wait(MESSAGEWAIT);
        present(TEMPERATURE, S_TEMP);
        wait(MESSAGEWAIT);
      }
      
      void setup() {
         dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN);
      }
      
      void loop() {
                  delay(dht.getMinimumSamplingPeriod());
                  float temperature = dht.getTemperature();
                  if (isnan(temperature)) {
                                          Serial.println("Failed reading temperature from DHT");
                                          } else if (temperature != lastTempValue) {
                                                                                send(msgTemp.set(temperature, 1));
                                                                                lastTempValue = temperature;
                                                                                Serial.print("Temp: ");
                                                                                Serial.println(temperature);
                                                                              }
                  float humidity = dht.getHumidity();
                   if (isnan(humidity)) {
                                        Serial.println("Failed reading humidity from DHT");
                                        } else if (humidity != lastHumValue) {
                                                                         send(msgHum.set(humidity, 1));
                                                                         lastHumValue = humidity;
                                                                         Serial.print("Hum: ");
                                                                         Serial.println(humidity);
                                                                        } 
      
                  sleep(SLEEP_TIME);
                 }
      
      
      posted in Troubleshooting
      Tagore.PDE
      Tagore.PDE
    • RE: Skech using DHT11/LDR and SoilMoisture from itead. (Solved solution inside)

      I think i get it, @tlpeter :

      MyMessage msgHumSoil(SOILHUMDITY, V_LEVEL); 
      
      void presentation()  {
        // Send the sketch version information to the gateway and Controller
        sendSketchInfo("Sensor POT", "1.1");
        wait(MESSAGEWAIT);
      
        // Register all sensors to gateway (they will be created as child devices)
        present(SOILHUMDITY, S_MOISTURE);
      
      posted in Development
      Tagore.PDE
      Tagore.PDE
    • RE: Skech using DHT11/LDR and SoilMoisture from itead. (Solved solution inside)

      Hi @tlpeter , cna share one example?

      Regards.

      posted in Development
      Tagore.PDE
      Tagore.PDE
    • RE: Skech using DHT11/LDR and SoilMoisture from itead. (Solved solution inside)

      For the record, to send in %, next code:

       int soilValue = analogRead(ANALOG_INPUT_SOIL_SENSOR); 
        soilValue = constrain(soilValue, 420, 1023); 
        soil = map(soilValue, 420, 1023, 100, 0);
        if (soil != lastSoilValue) {
          send(msgHumSoil.set(soil)); // Send in percent
          lastSoilValue = soil;```
      posted in Development
      Tagore.PDE
      Tagore.PDE
    • RE: Skech using DHT11/LDR and SoilMoisture from itead. (Solved solution inside)

      @TheoL thx for your feedback.

      posted in Development
      Tagore.PDE
      Tagore.PDE
    • RE: Skech using DHT11/LDR and SoilMoisture from itead. (Solved solution inside)

      Sorry about that, maybe the Controller ( Domoticz ) is not taking the soilmoisture correctly.
      I see that he send 3 digits number, like this:

      0_1471456262327_domoticz capture 2.PNG

      But domoticz show me like this:

      0_1471456192724_domoticz capture.PNG

      So maybe is confused? or ai m confused?

      Regards

      posted in Development
      Tagore.PDE
      Tagore.PDE
    • Skech using DHT11/LDR and SoilMoisture from itead. (Solved solution inside)

      This is good? i think is not, maybe someone can check?
      Regards.

      // Enable debug prints to serial monitor
      #define MY_DEBUG 
      
      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      //#define MY_RADIO_RFM69
      
      //Including nescessary libraries
      #include <SPI.h>
      #include <MySensors.h> 
      #include <DHT.h>  
      
      //Defining child ID's and sensor pins
      //#define MY_NODE_ID 2
      #define LIGHTLEVEL 0
      #define HUMIDITY 1
      #define TEMPERATURE 2
      #define SOILHUMDITY 3 //agregado soil
      #define HUMIDITY_SENSOR_DIGITAL_PIN 3
      #define LIGHT_SENSOR_ANALOG_PIN A0
      #define ANALOG_INPUT_SOIL_SENSOR A1 // agregado soil
      DHT dht;
      
      //Defining values to store sensor information
      int LightLevel = 0;
      int lastLightLevel;
      int lastSoilValue = -1; // agregado soil
      float lastTemp;
      float lastHum;
      boolean metric = true; 
      
      
      //Defining sleep and wait times
      unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds)(30 seconds)
      #define MESSAGEWAIT 500
      
      MyMessage LightMsg(LIGHTLEVEL, V_LIGHT_LEVEL);
      MyMessage msgHum(HUMIDITY, V_HUM);
      MyMessage msgTemp(TEMPERATURE, V_TEMP);
      MyMessage sHum(SOILHUMDITY, V_HUM); //agregado soil
      
      void presentation()  {
        // Send the sketch version information to the gateway and Controller
        sendSketchInfo("Sensor Pot", "1.0");
        wait(MESSAGEWAIT);
      
        // Register all sensors to gateway (they will be created as child devices)
        present(LIGHTLEVEL, S_LIGHT_LEVEL);
        wait(MESSAGEWAIT);
        present(HUMIDITY, S_HUM);
        wait(MESSAGEWAIT);
        present(TEMPERATURE, S_TEMP);
        wait(MESSAGEWAIT);
        present(SOILHUMDITY, S_HUM);
      }
      
      void setup() {
         dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN);
         pinMode(ANALOG_INPUT_SOIL_SENSOR, INPUT);
      }
      
      void loop() {
                  delay(dht.getMinimumSamplingPeriod());
                  float temperature = dht.getTemperature();
                  if (isnan(temperature)) {
                                          Serial.println("Failed reading temperature from DHT");
                                          } else if (temperature != lastTemp) {
                                                                                lastTemp = temperature;
                                                                                send(msgTemp.set(temperature, 1));
                                                                                Serial.print("T: ");
                                                                                Serial.println(temperature);
                                                                              }
                                          float humidity = dht.getHumidity();
                                          if (isnan(humidity)) {
                                                                Serial.println("Failed reading humidity from DHT");
                                                                } else if (humidity != lastHum) {
                                                                                                lastHum = humidity;
                                                                                                send(msgHum.set(humidity, 1));
                                                                                                Serial.print("H: ");
                                                                                                Serial.println(humidity);
                                                                                                }
      
                                                      int lightLevel = (1023-analogRead(LIGHT_SENSOR_ANALOG_PIN))/10.23; 
                                                      Serial.println(lightLevel);
                                                      if (lightLevel != lastLightLevel) {
                                                                                        send(LightMsg.set(lightLevel));
                                                                                        lastLightLevel = lightLevel;
                                                                                        }
      
                                                                                          // Read analog soil value
                                            int soilValue = analogRead(ANALOG_INPUT_SOIL_SENSOR);
      
                                            if (soilValue != lastSoilValue) {
                                             Serial.print("Soil Value: ");
                                             Serial.println(soilValue);
                                             send(sHum.set(soilValue));
                                              }
                  sleep(SLEEP_TIME);
                  }
      
      
      posted in Development
      Tagore.PDE
      Tagore.PDE
    • Sensos in the Serial Gateway 2.0

      Hi all, i see in the 2.0 version can add sensors to the gateway, anyone have a sample how to add for example a DHT11?

      Regards.

      posted in Troubleshooting
      Tagore.PDE
      Tagore.PDE
    • RE: Arduino UNO + ESP8266

      @mfalkvidd Thx for your answer, but i think maybe not are talking about the same hardware?

      Im refering for this: https://www.sparkfun.com/products/13678
      And maybe you talk about this: https://www.adafruit.com/products/2471?&main_page=product_info&products_id=2471

      But what i m really asking here, is, can have a arduino uno, with the WiFi Module - ESP8266 from sparkfun ? acting like a Serial Gateway?

      And also, the ESP8266 Breakout from adafruit can be used as a node?

      If the answer are yes, how?
      And when i say "radio" i reefer to RF radios, 2.4 Ghz for example, like the ESP8266 have.

      Best regards.

      posted in Troubleshooting
      Tagore.PDE
      Tagore.PDE
    • RE: Arduino UNO + ESP8266

      Can please clarify more?
      I dont get it.

      Regards

      posted in Troubleshooting
      Tagore.PDE
      Tagore.PDE
    • Arduino UNO + ESP8266

      Hi all.

      i'm new to this and also to Arduino.

      I have a Ardunio UNO, also have a Ethernet shield, and a ESP8266.

      If i understand correct, to have a gateway working i need to have the Arduino with the RF board to communicate to sensors?

      So, using the Ethernet, Mysensors will communicate with the controller, and using the radio to the sensors? is this correct?

      Can have a arduino uno with the ether shield and a ESP8266 to work with sensors?

      Can anyone give me some advice ?
      Best regards.

      posted in Troubleshooting
      Tagore.PDE
      Tagore.PDE