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
C

cheesepower

@cheesepower
Unfollow Follow
About
Posts
9
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Housing/Box for ESP8266Wlan Gateway
    C cheesepower
    Enclosures / 3D Printing

    Maybe i am late, i made this box a few weeks ago:
    https://www.thingiverse.com/thing:2339712


  • MySensors plugin : Cannot send command - communications error
    C cheesepower
    Troubleshooting ethernet gateway

    I had several times the same problem.

    Check the IP configuration in the mysensors plugin, the IP adress change for no reason, i have to investigate this.


  • Battery level don't show up
    C cheesepower
    Troubleshooting dht22 vera plugin 1.4 pro mini vera battery powered

    Yes i made several reset, exclusions, inclusions, vera reset and clear EPROM but nothing worked...

    I made a new sensor and it works perfectly

    Strange... I will try again when i will have more time.

    Thanks for the help :D


  • Battery level don't show up
    C cheesepower
    Troubleshooting dht22 vera plugin 1.4 pro mini vera battery powered

    I have this:

    http://img15.hostingpics.net/pics/796697vera.jpg


  • Battery level don't show up
    C cheesepower
    Troubleshooting dht22 vera plugin 1.4 pro mini vera battery powered

    My sensor runs for 2 weeks now.

    One more question : where did the battery level is supposed to be ? on the node under a variable or elsewhere ?


  • Battery level don't show up
    C cheesepower
    Troubleshooting dht22 vera plugin 1.4 pro mini vera battery powered

    Hello all,

    I encounter an issue with my battery powered sensor.
    It's based on an arduino pro mini 3,3 V, a DHT 22 and powered via a LiPo 3,7V battery.

    It runs on a Vera 3 with the 1.4 library.

    After inclusion, my vera see 1 node, 1 humidity sensor and 1 temperature sensor. The temperature and humidity are working fine, The problem is that the battery level don't show up :-(
    On th serial connection i can see my battery level.

    Here is my code:

    ''''
    #include <SPI.h>
    #include <MySensor.h>
    #include <DHT.h>

    #define CHILD_ID_HUM 0
    #define CHILD_ID_TEMP 1
    #define HUMIDITY_SENSOR_DIGITAL_PIN 3
    unsigned long SLEEP_TIME = 300000; // Sleep time between reads (in milliseconds)
    int BATTERY_SENSE_PIN = A0; // select the input pin for the battery sense point

    MySensor gw;
    DHT dht;
    float lastTemp;
    float lastHum;
    boolean metric = true;
    MyMessage msgHum(CHILD_ID_HUM, V_HUM);
    MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP);
    int oldBatteryPcnt = 0;

    void setup()
    {
    gw.begin();
    dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN);

    // Send the Sketch Version Information to the Gateway
    gw.sendSketchInfo("Humidity", "1.0");
    gw.sendSketchInfo("Battery Meter", "1.0");

    // Register all sensors to gw (they will be created as child devices)
    gw.present(CHILD_ID_HUM, S_HUM);
    gw.present(CHILD_ID_TEMP, S_TEMP);

    //metric = gw.getConfig().isMetric;
    }

    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;
    if (!metric) {
    temperature = dht.toFahrenheit(temperature);
    }
    gw.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;
    gw.send(msgHum.set(humidity, 1));
    Serial.print("H: ");
    Serial.println(humidity);
    }

    // get the battery Voltage
    int sensorValue = analogRead(BATTERY_SENSE_PIN);
    Serial.println(sensorValue);

    // 1M, 470K divider across battery and using internal ADC ref of 1.1V
    // Sense point is bypassed with 0.1 uF cap to reduce noise at that point
    // ((1e6+470e3)/470e3)*1.1 = Vmax = 3.44 Volts
    // 3.44/1023 = Volts per bit = 0.003363075
    float batteryV = sensorValue * 0.0041;
    int batteryPcnt = sensorValue / 10;

    Serial.print("Input Value: ");
    Serial.println(sensorValue);

    Serial.print("Battery Voltage: ");
    Serial.print(batteryV);
    Serial.println(" V");

    Serial.print("Battery percent: ");
    Serial.print(batteryPcnt);
    Serial.println(" %");

    if (oldBatteryPcnt != batteryPcnt) {
    // Power up radio after sleep
    gw.sendBatteryLevel(batteryPcnt);
    oldBatteryPcnt = batteryPcnt;
    }

    gw.sleep(SLEEP_TIME); //sleep a bit
    }

    ''''


  • Using both Zwave and NRF24L01+ ?
    C cheesepower
    Vera zwave arduino v

    Haaa this is a really good news :D

    Now i can start my winter project. Ho i think i will have to ask lots of questions because i know about arduinos but nothing about vera...


  • Using both Zwave and NRF24L01+ ?
    C cheesepower
    Vera zwave arduino v

    Hello there,

    I'm interested by vera and arduino. I would like to know if the boths networks (zwave and arduino) can be used at the same time on the same vera.

    In some applications, zwave devices are more convenient than home made sensors...

    I am french, sorry for my english, don't hesitate to correct me ;-)

  • Login

  • Don't have an account? Register

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