Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
Tagore.PDET

Tagore.PDE

@Tagore.PDE
About
Posts
16
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • DHT sensor for Mysensors V2
    Tagore.PDET Tagore.PDE

    Yes, thx. same issue.

    General Discussion

  • DHT sensor for Mysensors V2
    Tagore.PDET Tagore.PDE

    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)'
    
    
    General Discussion

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

    @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.

    Hardware

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

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

    Hardware

  • Temp Sensor and iobroker on rasPi3
    Tagore.PDET Tagore.PDE

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

    My Project

  • Library 2.0 - No Humidity sketch
    Tagore.PDET Tagore.PDE
    // 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);
               }
    
    
    Troubleshooting

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

    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);
    
    Development

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

    Hi @tlpeter , cna share one example?

    Regards.

    Development

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

    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;```
    Development

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

    @TheoL thx for your feedback.

    Development

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

    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

    Development

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

    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);
                }
    
    
    Development

  • Sensos in the Serial Gateway 2.0
    Tagore.PDET Tagore.PDE

    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.

    Troubleshooting

  • Arduino UNO + ESP8266
    Tagore.PDET Tagore.PDE

    @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.

    Troubleshooting

  • Arduino UNO + ESP8266
    Tagore.PDET Tagore.PDE

    Can please clarify more?
    I dont get it.

    Regards

    Troubleshooting

  • Arduino UNO + ESP8266
    Tagore.PDET Tagore.PDE

    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.

    Troubleshooting
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular