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
n3roN

n3ro

@n3ro
About
Posts
111
Topics
11
Shares
0
Groups
0
Followers
1
Following
0

Posts

Recent Best Controversial

  • Multisensor_PIR_DHT_LDR_Battery
    n3roN n3ro

    Hey Guys,
    Today I have completed my first multisensor.

    As base I used a cheap china fire detectors and the MYS PCB board.

    http://www.ebay.de/itm/like/Optisch-Feuermelder-Rauchmelder-Funkrauchmelder-Rauchdetektor-Rauchwarnmelder/141252448370?hlpht=true&ops=true&viphx=1&_trksid=p5197.c100068.m2280&_trkparms=ao%3D1%26asc%3D20140211130857%26meid%3D07bc95de38bb49768007aea7e82e859d%26pid%3D100068%26clkid%3D6724945852786999307&_qi=RTM2052467

    All components fits very well in the housing.

    Unfortunately, the modified HC-SR501 do not work well with <= 3V with the DHT (delay in the sketch). Now I use this:
    http://www.amazon.de/Niederspannung-PIR-Infrarot-Bewegungssensor-erkennt-Modul/dp/B008EGH3FM/ref=sr_1_1?ie=UTF8&qid=1433801387&sr=8-1&keywords=B008EGH3FM

    And it works very great!

    The used Sketch is this:

    https://github.com/n3roGit/MySensors_n3ro/blob/master/Multisensor_PIR_DHT_LDA_Battery/Multisensor_PIR_DHT_LDA_Battery.ino

    wiring diagram coming soon;)

    IMG_20150608_203950.jpg IMG_20150608_183116.jpg IMG_20150608_183138.jpg

    My Project

  • Mailbox/Postbox Alert
    n3roN n3ro

    it is fixed :) changed internal pullup to an external with 680k. now its 32uA with both opened and 47uA with both closed :)

    My Project

  • German speaking members
    n3roN n3ro

    :+1:

    me too

    General Discussion

  • Battery Sensor with stepup and on/off transistor
    n3roN n3ro

    Hey Guys,

    Today I had an idea how you can save some power on battery sensors.

    I simply connected a transistor before a StepUp converter. So the stepup and the connected sensors only supplied with power when they are needed.

    My stepup + DHT11 has power consumption at 90 uA when sleeping. By disabling with the transistor it goes against 0.

    Do you think that might help a little?

    Best Regards,
    n3ro

    #include <SPI.h>
    #include <MySensor.h>
    #include <DHT.h>
    
    #define CHILD_ID_HUM 0
    #define CHILD_ID_TEMP 1
    #define HUMIDITY_SENSOR_DIGITAL_PIN 4
    #define STEPUP_PIN 5                 // Transistor connected PIN   
    unsigned long SLEEP_TIME = 10000; // Sleep time between reads (in milliseconds)
    
    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);
    
    
    void setup()
    {
      gw.begin();
      dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN);
    
      // Send the Sketch Version Information to the Gateway
      gw.sendSketchInfo("Humidity", "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()
    {
      stepup(true);
      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);
      stepup(false);
      gw.sleep(SLEEP_TIME); //sleep a bit
    }
    
    void stepup(boolean onoff)
    {
      pinMode(STEPUP_PIN, OUTPUT);      // sets the pin as output
      Serial.print("---------- StepUp: ");
      if (onoff == true)
      {
        Serial.println("ON");
        digitalWrite(STEPUP_PIN, HIGH);      // turn on
      }
      else
      {
        Serial.println("OFF");
        digitalWrite(STEPUP_PIN, LOW);       // turn off
      }
    }
    
    Hardware

  • Bad range
    n3roN n3ro

    @Andreas-Maurer Cant play Video :(

    Troubleshooting

  • Mailbox/Postbox Alert
    n3roN n3ro

    Just finished my new project.

    I have added two magnetic switches to the front and the back of my postbox. Now i get a Mail if the postman was here :)

    You need:
    1x Arduino Mini Pro 3,3
    1x Battery Holder (2xaaa)
    1x NRF
    2x Reed switches (http://www.reichelt.de/KSK-1A663-2025/3/index.html?&ACTION=3&LA=446&ARTICLE=151700&artnr=KSK+1A663+2025&SEARCH=magnet+schlie�er)
    2x magnets (http://www.reichelt.de/MAGNET-M4/3/index.html?&ACTION=3&LA=446&ARTICLE=12483&artnr=MAGNET+M4&SEARCH=magnet)

    And this or a similar sketch: https://github.com/n3roGit/MySensors_n3ro/tree/master/Mailbox_Alert

    It works great =)

    My Project

  • Battery Sensor with stepup and on/off transistor
    n3roN n3ro

    @Suresh-Mali My sensor node is powered with two AAA Batts. Over the time the voltage drops down to 1,9v.

    The DHT only works with ~3v. so i need the stepup only to power the dht

    i use this setup with my multisensor nodes.
    http://forum.mysensors.org/topic/1514/multisensor_pir_dht_ldr_battery/3

    Without transistor the battery is drained in ~2 month (black line)
    with transistors in ~10 month

    drain.PNG

    Hardware
  • Login

  • Don't have an account? Register

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