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
  1. Home
  2. My Project
  3. Solar Powered Mini-Weather Station

Solar Powered Mini-Weather Station

Scheduled Pinned Locked Moved My Project
111 Posts 39 Posters 119.3k Views 27 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • YveauxY Yveaux

    @hek tricky, as we seem to be the only ones having issues with the library included with MySensors. I only have one DHT22 so I cannot test with other sensors...

    ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #52

    I've build something like this that logs temperature to an SD card, so no radio or gateway involved. Been getting NaNs from my DHT22 every few readings since I switched from a 5v Pro Mini to a 3.3v one. This never happened on the 5v one, so I guess I'll try switching library as well!

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gbfromhb
      wrote on last edited by gbfromhb
      #53

      @hek I like the following library https://github.com/adafruit/DHT-sensor-library (ladyada).

      This seems to be working fine with the Arduino Pro Mini 8mhz.
      Here is a MySensors example using this library:

      /**
       * The MySensors Arduino library handles the wireless radio link and protocol
       * between your home built sensors/actuators and HA controller of choice.
       * The sensors forms a self healing radio network with optional repeaters. Each
       * repeater and gateway builds a routing tables in EEPROM which keeps track of the
       * network topology allowing messages to be routed to nodes.
       *
       * Created by Henrik Ekblad <henrik.ekblad@mysensors.org>
       * Copyright (C) 2013-2015 Sensnology AB
       * Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
       *
       * Documentation: http://www.mysensors.org
       * Support Forum: http://forum.mysensors.org
       *
       * This program is free software; you can redistribute it and/or
       * modify it under the terms of the GNU General Public License
       * version 2 as published by the Free Software Foundation.
       *
       *******************************
       *
       * REVISION HISTORY
       * Version 1.0 - Henrik EKblad
       * Version 1.1 - Glenn Byron - September 6, 2015 - Converted to new DHT library written by ladyada 
       * 
       * DESCRIPTION
       * This sketch provides an example how to implement a humidity/temperature
       * sensor using DHT11, DHT21, DHT-22 
       * http://www.mysensors.org/build/humidity
       */
       
      #include <SPI.h>
      #include <MySensor.h> 
      #include <DHT.h>  
      
      #define CHILD_ID_HUM 0
      #define CHILD_ID_TEMP 1
      #define HUMIDITY_SENSOR_DIGITAL_PIN 2
      #define DHTTYPE DHT22
      // DHTTYPE choices: DHT11, DHT21, DHT22
      
      unsigned long SLEEP_TIME = 30000; // Sleep time between reads (in milliseconds)
      
      MySensor gw;
      DHT dht(HUMIDITY_SENSOR_DIGITAL_PIN, DHTTYPE);
      float lastTemp;
      float lastHum;
      boolean metric = false; 
      MyMessage msgHum(CHILD_ID_HUM, V_HUM);
      MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP);
      
      void setup()  
      { 
        Serial.begin(115200);
        Serial.flush();
        Serial.println("MySensors: DHT example");
        
        gw.begin();
        dht.begin();
      
        // 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;
      
        delay(2000);
      }
      
      void loop()      
      {  
        float temperature = dht.readTemperature(!metric);
        if (isnan(temperature)) {
            Serial.println("Failed reading temperature from DHT");
        } else if (temperature != lastTemp) {
          lastTemp = temperature;
          gw.send(msgTemp.set(temperature, 1));
          Serial.print("Temperature: ");
          Serial.println(temperature);
        }
        
        float humidity = dht.readHumidity();
        if (isnan(humidity)) {
            Serial.println("Failed reading humidity from DHT");
        } else if (humidity != lastHum) {
            lastHum = humidity;
            gw.send(msgHum.set(humidity, 1));
            Serial.print("Humidity: ");
            Serial.println(humidity);
        }
      
        gw.sleep(SLEEP_TIME); //sleep a bit
      }
      
      1 Reply Last reply
      0
      • B Bazeman

        Please add an wiring diagram. Especially for the solar panel, battery and connection to the Nano.

        D Offline
        D Offline
        drock1985
        wrote on last edited by drock1985
        #54

        @Bazeman

        If i'm not mistaken, the solor panel is directly connected to the power input of the solar charger. @Salmoides wired a mini/microUSB to the power cables to make it easy connect/disconnect. It's this one, from what I can see in the pictures. http://www.aliexpress.com/item/5PCS-Micro-USB-5V-1A-18650-Lithium-Battery-Charger-Board-With-Protection-Module/1852341893.html

        From there, it's pretty straight forward. The battery is connected to the B+ and B- leads. The OUT+ and OUT- would be connected to the VIN/RAW and GND on your Nano, respectively.

        My Projects
        2 Door Chime Sensor
        Washing Machine Monitor

        1 Reply Last reply
        0
        • bisschopsrB Offline
          bisschopsrB Offline
          bisschopsr
          wrote on last edited by
          #55

          The lamp is not shipped to NL and many other countries :unamused: . Did anyone find it in Europe?

          Domoticz, P1 meter interface, MySensors and more to come!

          YveauxY 1 Reply Last reply
          0
          • R Offline
            R Offline
            RiVoW
            wrote on last edited by
            #56

            In The Netherlands they used to have it at Action .
            But haven't been there lately

            1 Reply Last reply
            0
            • korttomaK Offline
              korttomaK Offline
              korttoma
              Hero Member
              wrote on last edited by korttoma
              #57

              This One looks similar -> http://www.banggood.com/Solar-LED-Motion-Sensor-Waterproof-Wall-Light-For-Home-Garden-Outdoor-p-921885.html

              Maybe banggood ships to NL?

              • Tomas
              1 Reply Last reply
              0
              • R Offline
                R Offline
                RiVoW
                wrote on last edited by
                #58

                There seems to be a similar one for sale right now at groupdeal.nl
                but just for another 9 hours or so...

                1 Reply Last reply
                0
                • soifS Offline
                  soifS Offline
                  soif
                  Plugin Developer
                  wrote on last edited by soif
                  #59

                  I really liked this project (@Salmoides ThankYou for sharing it)
                  Expecially the solar powered box.

                  I've successully prototyped one, but would like to report something to pepople trying to also make this.

                  The solar panel included in the box, is outputting 6V, while the Charger board is sized to acced only 5V as input.
                  The consequence, is (at least on my prototype) that when there is enought sun, the charger board don't charge the battery (the blue led lights on, and the red seems to vibrate slighty : I guess this is a "protection mode" when VCCin is to high). If i remove the solar panel, and put a usb cable in the charger input, then the RED led lights on, and the barrety is being charged.

                  I guess that slighly modifying the charger board, would allow it to accept 6V as input, but this is too far from my electronic skills (Anyone?)

                  As a workaround, I've ordered a StepDown module to reduce the 6V provided by the solar panel to 5V for the charger input. I guess It will do the job. I will report back as soon as I get the StepUp module from china.

                  HTH those interested in this excellent project.

                  BTW @Salmoides , How did you solved it? Does your Solar panel outputs 5V, instead of 6V? Does your charger works with 6V input (might be slighly diffrent board or mine has an issue)? Did you modified the charger or added extra component to reduce the input voltage ?

                  Cheeers to evereyone !

                  YveauxY 1 Reply Last reply
                  0
                  • soifS soif

                    I really liked this project (@Salmoides ThankYou for sharing it)
                    Expecially the solar powered box.

                    I've successully prototyped one, but would like to report something to pepople trying to also make this.

                    The solar panel included in the box, is outputting 6V, while the Charger board is sized to acced only 5V as input.
                    The consequence, is (at least on my prototype) that when there is enought sun, the charger board don't charge the battery (the blue led lights on, and the red seems to vibrate slighty : I guess this is a "protection mode" when VCCin is to high). If i remove the solar panel, and put a usb cable in the charger input, then the RED led lights on, and the barrety is being charged.

                    I guess that slighly modifying the charger board, would allow it to accept 6V as input, but this is too far from my electronic skills (Anyone?)

                    As a workaround, I've ordered a StepDown module to reduce the 6V provided by the solar panel to 5V for the charger input. I guess It will do the job. I will report back as soon as I get the StepUp module from china.

                    HTH those interested in this excellent project.

                    BTW @Salmoides , How did you solved it? Does your Solar panel outputs 5V, instead of 6V? Does your charger works with 6V input (might be slighly diffrent board or mine has an issue)? Did you modified the charger or added extra component to reduce the input voltage ?

                    Cheeers to evereyone !

                    YveauxY Offline
                    YveauxY Offline
                    Yveaux
                    Mod
                    wrote on last edited by
                    #60

                    @soif said:

                    StepDown module to reduce the 6V provided by the solar panel to 5V for the charger input.

                    Put one or two silicon diodes in series with the solar panel. Each diode will lower the voltage by approx 0.7volts

                    http://yveaux.blogspot.nl

                    1 Reply Last reply
                    0
                    • soifS Offline
                      soifS Offline
                      soif
                      Plugin Developer
                      wrote on last edited by soif
                      #61

                      @Yveaux thank you for the amazing fast and really helpful answer.

                      Droping the voltage by 0.7v would certainly change the charger beahaviour to behave properly, and not be in "protection mode", Definitively better than inserting a stepDown module.
                      I assume that I put the diode in serie from the VCC+ out of the Solar panel TO the VCC+ IN of the charger (right?), ie:
                      Solar VCC out ------ --->| ---- Charger VCC in.

                      3 questions:

                      • Is there any diode reference recommendation, or any value do the job (1N400x) ?
                      • Will the diode "eat" some current, ot just drop the voltage -0,7v. ?
                      • BTW what is a "Silicon" diode?

                      thank you very much for your valuable support !

                      Berst regards,

                      YveauxY 1 Reply Last reply
                      0
                      • soifS soif

                        @Yveaux thank you for the amazing fast and really helpful answer.

                        Droping the voltage by 0.7v would certainly change the charger beahaviour to behave properly, and not be in "protection mode", Definitively better than inserting a stepDown module.
                        I assume that I put the diode in serie from the VCC+ out of the Solar panel TO the VCC+ IN of the charger (right?), ie:
                        Solar VCC out ------ --->| ---- Charger VCC in.

                        3 questions:

                        • Is there any diode reference recommendation, or any value do the job (1N400x) ?
                        • Will the diode "eat" some current, ot just drop the voltage -0,7v. ?
                        • BTW what is a "Silicon" diode?

                        thank you very much for your valuable support !

                        Berst regards,

                        YveauxY Offline
                        YveauxY Offline
                        Yveaux
                        Mod
                        wrote on last edited by
                        #62

                        @soif Your connection idea is correct. If you mount it in reverse, it simply won't work.
                        The actual voltage drop over the diode will depend on the amount of current flowing through it, so that's why you might require 2 in series.

                        An 1N400x will do just fine. The higher the x, the more current it can handle.
                        The diode will consume some current, but that will be less then a step-down converter.
                        Most diodes nowadays use silicon as semiconductor. Years ago Germanium diodes were used, which have a lower voltage drop.

                        As a reference: everything you need to know about diodes

                        http://yveaux.blogspot.nl

                        soifS 1 Reply Last reply
                        0
                        • YveauxY Yveaux

                          @soif Your connection idea is correct. If you mount it in reverse, it simply won't work.
                          The actual voltage drop over the diode will depend on the amount of current flowing through it, so that's why you might require 2 in series.

                          An 1N400x will do just fine. The higher the x, the more current it can handle.
                          The diode will consume some current, but that will be less then a step-down converter.
                          Most diodes nowadays use silicon as semiconductor. Years ago Germanium diodes were used, which have a lower voltage drop.

                          As a reference: everything you need to know about diodes

                          soifS Offline
                          soifS Offline
                          soif
                          Plugin Developer
                          wrote on last edited by
                          #63

                          @Yveaux Thank you very much for the diode explanation, as well as the very interesting diode tutorial.
                          Thanks to you, I've learned something more today.

                          I'm gonna test it very soon, and will report back.

                          1 Reply Last reply
                          0
                          • bisschopsrB bisschopsr

                            The lamp is not shipped to NL and many other countries :unamused: . Did anyone find it in Europe?

                            YveauxY Offline
                            YveauxY Offline
                            Yveaux
                            Mod
                            wrote on last edited by
                            #64

                            @bisschopsr @RiVoW @korttoma Accidentally ran into this one: http://www.aliexpress.com/store/product/1set-Garden-Security-Lamp-16-LED-Solar-Power-Motion-Sensor-Outdoor-Waterproof-Light/124364_32274407358.html
                            Looks identical, and free shipment to The Netherlands :+1:

                            http://yveaux.blogspot.nl

                            1 Reply Last reply
                            0
                            • soifS Offline
                              soifS Offline
                              soif
                              Plugin Developer
                              wrote on last edited by
                              #65

                              This is similar to the one I have also bought at aliexpress ;-)

                              1 Reply Last reply
                              0
                              • thmT Offline
                                thmT Offline
                                thm
                                wrote on last edited by
                                #66

                                Hello, thank you for this beautiful project.

                                I have recreated it with a DHT22, a BMP180 and a BH1750FVI on a breadboard. From there everything is transferred to Domoticz via WiFi gateway. Everything is working properly. Only the light sensor makes problems ...

                                The reading of the sensor gives correct values in Lux. These are sent right to the gateway. The Gateway appears to be wrong to interpret these values. It transmits incorrect values via WiFi.

                                What can I do against it? Did anyone have an idea?

                                I'm using MySensors 1.5 on Arduino 1.6.7.

                                Thomas

                                0_1454423311883_wrong_Lux.JPG

                                1 Reply Last reply
                                0
                                • SalmoidesS Salmoides

                                  @floris, Thank you for your kind words. The luxmeter faces down, so the light is indirectly collected through the diffuser. If I were to build V2.0, I would look into adding a light pipe to provide more direct lighting on the sensor.

                                  LightPipe.gif

                                  M Offline
                                  M Offline
                                  maciejka
                                  wrote on last edited by
                                  #67

                                  @Salmoides
                                  Hi, where i can find light pipe lie this?

                                  1 Reply Last reply
                                  0
                                  • C Offline
                                    C Offline
                                    chickey
                                    wrote on last edited by
                                    #68

                                    I have one of these lights and got it with the plan of dissembling it for this very project but it was too good lol so think I'll buy another to dissect. The only disappointing thing is how the light is always on at a dim level so drains the battery. I'd much rather have it only activate on motion detection with the PIR.

                                    1 Reply Last reply
                                    0
                                    • D Offline
                                      D Offline
                                      Dylano
                                      wrote on last edited by
                                      #69

                                      Dear...
                                      Great project...[ when i got my stuff i am going to build to...

                                      Only how do you use the motionsensor of this light...[ new one or do you use the build in one ]
                                      In the sketch is can not see this motionsensor?
                                      Only in our Vera controller is see arm and bypass?
                                      Can you set the level of the lights, in vera?
                                      Two times temperature?
                                      And how is your battery action in the winter-period?

                                      Domoticz, with a lot of working hardware, include mysensors :-)
                                      OpenPLI, RuneAudio, Solarmeter, etc......

                                      Not a great builder of software and hardware, more a user...
                                      Only i try to do my best :-(

                                      1 Reply Last reply
                                      0
                                      • E Offline
                                        E Offline
                                        Elfnoir
                                        wrote on last edited by Elfnoir
                                        #70

                                        Hi,

                                        Here is the fritzing shema ; could you please tell me if it is correct before I begin the building of the weather station ?

                                        Thanks for your support !

                                        0_1457780151323_Untitled Sketch_bb.jpg

                                        D 1 Reply Last reply
                                        0
                                        • E Elfnoir

                                          Hi,

                                          Here is the fritzing shema ; could you please tell me if it is correct before I begin the building of the weather station ?

                                          Thanks for your support !

                                          0_1457780151323_Untitled Sketch_bb.jpg

                                          D Offline
                                          D Offline
                                          Dylano
                                          wrote on last edited by
                                          #71

                                          @Elfnoir

                                          This is great.....[ and great for a dummy like me ]
                                          Would you please tell me all the hardware you use?
                                          Or the strength of the resistor etc etc

                                          Domoticz, with a lot of working hardware, include mysensors :-)
                                          OpenPLI, RuneAudio, Solarmeter, etc......

                                          Not a great builder of software and hardware, more a user...
                                          Only i try to do my best :-(

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          11

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

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