Navigation

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

    n3ro

    @n3ro

    10
    Reputation
    111
    Posts
    972
    Profile views
    1
    Followers
    0
    Following
    Joined Last Online
    Email info@chbu.org

    n3ro Follow

    Best posts made by n3ro

    • Multisensor_PIR_DHT_LDR_Battery

      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

      posted in My Project
      n3ro
      n3ro
    • RE: Mailbox/Postbox Alert

      it is fixed πŸ™‚ changed internal pullup to an external with 680k. now its 32uA with both opened and 47uA with both closed πŸ™‚

      posted in My Project
      n3ro
      n3ro
    • RE: German speaking members

      πŸ‘

      me too

      posted in General Discussion
      n3ro
      n3ro
    • Battery Sensor with stepup and on/off transistor

      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
        }
      }
      
      posted in Hardware
      n3ro
      n3ro
    • RE: Bad range

      @Andreas-Maurer Cant play Video 😞

      posted in Troubleshooting
      n3ro
      n3ro
    • Mailbox/Postbox Alert

      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 πŸ˜ƒ

      posted in My Project
      n3ro
      n3ro
    • RE: Battery Sensor with stepup and on/off transistor

      @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

      posted in Hardware
      n3ro
      n3ro

    Latest posts made by n3ro

    • RE: Multisensor_PIR_DHT_LDR_Battery

      @Dylano

      you cold try to modify this sketch:
      https://github.com/n3roGit/MySensors_n3ro/tree/master/in_process/Multisensor_PIR_DHT_light_switch_battery
      its not finished but there is all you need πŸ˜‰

      posted in My Project
      n3ro
      n3ro
    • RE: Multisensor_PIR_DHT_LDR_Battery

      @Dylano the sketch send the battery percentage everytime the voltage is changed

      posted in My Project
      n3ro
      n3ro
    • RE: Multisensor_PIR_DHT_LDR_Battery

      @Dylano what do you mean with long readVcc?

      The battery life is different because of the frequency of triggering from the pir.

      Some nodes works for 2 month. Other ones for 6..

      posted in My Project
      n3ro
      n3ro
    • RE: Multisensor_PIR_DHT_LDR_Battery

      @Dylano

      But I don't use the dht anymore.
      https://github.com/n3roGit/MySensors_n3ro/tree/master/Multisensor_PIR_SI7021_LDA_Battery

      This works much better!

      posted in My Project
      n3ro
      n3ro
    • RE: Multisensor_PIR_DHT_LDR_Battery

      @Dylano
      Hey,
      Yes it works very good with 2 aaa Batts.

      You can find the read library here

      https://github.com/sweebee/Arduino-home-automation/tree/master/libraries/readVcc

      posted in My Project
      n3ro
      n3ro
    • RE: Gui for H/A?

      @hek whats this?? 😍

      posted in General Discussion
      n3ro
      n3ro
    • how to use repeater nodes

      Hey folks,

      what's the correct way to use repeating nodes?

      I have build 3 usb powered LED-Lights and one of them is out of range...

      Is it a good idea to enable repeating on every USB-powered node?

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

      gw.begin(incomingMessage, NODE_ID, true);
      

      Regards,
      n3ro

      posted in General Discussion
      n3ro
      n3ro
    • RE: MySensors 1.5.2 Released

      @Anticimex like homeduino with:

      sudo apt-get install arduino-core avr-libc avrdude binutils-avr gcc-avr libconfig-yaml-perl libftdi1 libyaml-perl screen python-serial
      git clone --recursive https://github.com/pimatic/homeduino.git
      make upload
      
      posted in Announcements
      n3ro
      n3ro
    • RE: MySensors 1.5.2 Released

      yeah!

      is it possible to update the gateway via shell?

      posted in Announcements
      n3ro
      n3ro
    • RE: SI7021 Multisensor - first try

      @dakky Yes, this is because of the multiple sensors on my board. maybe somebody have more tuning tipps.

      posted in Development
      n3ro
      n3ro