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. Enclosures / 3D Printing
  3. MySensors weather station

MySensors weather station

Scheduled Pinned Locked Moved Enclosures / 3D Printing
138 Posts 16 Posters 58.5k Views 15 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.
  • F flopp

    @dbemowsk
    On my(fody) wind direction they use GND instead of VCC. When light is hitting the receiver, GND is passing through and you get a shortcut. I think, in that way you don't need all the 3,3K resistors.

    About resolution, personally I wouldn't focus on that because the wind is never in the same direction more than a few second then it moves a little bit. Maybe it stays in same direction when you have strong winds?

    dbemowskD Offline
    dbemowskD Offline
    dbemowsk
    wrote on last edited by
    #40

    @flopp Are you only using 1 analog data line? The idea behind the resistors is to give varying degrees of 0 to 5 volts on the analog pin. Depending on which phototransistor is triggered, the value seen by the IO line is different for every one allowing you to differentiate which sensor is tripped.

    If you are saying not to worry as much about the resolution, then I should be able to drop to using only 1 analog line instead of two with a configuration like this:
    0_1493364799125_upload-a8f9c536-c440-4196-a5f6-060f6c6ce3f4

    Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
    Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

    F 1 Reply Last reply
    0
    • dbemowskD dbemowsk

      @flopp Are you only using 1 analog data line? The idea behind the resistors is to give varying degrees of 0 to 5 volts on the analog pin. Depending on which phototransistor is triggered, the value seen by the IO line is different for every one allowing you to differentiate which sensor is tripped.

      If you are saying not to worry as much about the resolution, then I should be able to drop to using only 1 analog line instead of two with a configuration like this:
      0_1493364799125_upload-a8f9c536-c440-4196-a5f6-060f6c6ce3f4

      F Offline
      F Offline
      flopp
      wrote on last edited by
      #41

      @dbemowsk
      I am using 8 digital inputs, with pinmode(x,INPUT_PULLUP) on all of them, A0, A1 and A2 i use as digital input because I am using UNO so all the digitals was occupied with NRf and Rain, Wind speed.

      dbemowskD 1 Reply Last reply
      0
      • F flopp

        @dbemowsk
        I am using 8 digital inputs, with pinmode(x,INPUT_PULLUP) on all of them, A0, A1 and A2 i use as digital input because I am using UNO so all the digitals was occupied with NRf and Rain, Wind speed.

        dbemowskD Offline
        dbemowskD Offline
        dbemowsk
        wrote on last edited by
        #42

        @flopp I just didn't want to use up all the IO lines if I didn't have to. The designs that I was showing with the resistors allows you to detect multiple switch triggers with 1 or 2 I/O lines depending how you want that detection done. I want to add a few other sensors to the setup, so I want to keep as many IO lines free as I can.

        Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
        Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

        1 Reply Last reply
        1
        • dbemowskD Offline
          dbemowskD Offline
          dbemowsk
          wrote on last edited by
          #43

          Just got my phototransistors. The ebay auction said that it was for 10 sensors. I got 15..... BONUS. :^)

          Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
          Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

          wallyllamaW 1 Reply Last reply
          0
          • dbemowskD Offline
            dbemowskD Offline
            dbemowsk
            wrote on last edited by
            #44

            OK, so I am doing some testing on the new wind direction sensor board I am building. My problem is that the infrared LED that I have, which was scavanged from an old remote, has good IR pointing forward. but when I try to direct it sideways to the IR sensors, I appear to not be getting enough IR light to trigger the sensors. If I shine a flashlight at each of the sensors, they register, but not when O Does anyone know of either a different IR diode, or a way that I can get the existing diode to shine more in a sideways direction? Here is what the board is looking like. I currently only have one set of 4 sensors connected for testing. You can kind of see that the IR LED is lit.
            0_1495063129068_upload-5fcf55ca-db4f-48c5-9d3a-721e5c0b9bb1

            This is the design of the IR rotor that directs the light which gets screwed to the end of the bolt that is the shaft of the wind direction vane. The majority of the IR light gets directed at the end of the bolt.
            0_1495063638749_upload-c72eb7e3-4af9-4742-bffe-20d565d4835b .

            I am up for any suggestions.

            Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
            Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

            wallyllamaW 2 Replies Last reply
            0
            • gohanG Offline
              gohanG Offline
              gohan
              Mod
              wrote on last edited by
              #45

              Something reflective that diffuses light?

              dbemowskD 1 Reply Last reply
              0
              • dbemowskD dbemowsk

                Just got my phototransistors. The ebay auction said that it was for 10 sensors. I got 15..... BONUS. :^)

                wallyllamaW Offline
                wallyllamaW Offline
                wallyllama
                wrote on last edited by
                #46

                @dbemowsk 15 is metric for 10.*

                • If you received 16, then I could have said you ordered in hex, and this would actually have been funny.
                dbemowskD 1 Reply Last reply
                0
                • dbemowskD dbemowsk

                  OK, so I am doing some testing on the new wind direction sensor board I am building. My problem is that the infrared LED that I have, which was scavanged from an old remote, has good IR pointing forward. but when I try to direct it sideways to the IR sensors, I appear to not be getting enough IR light to trigger the sensors. If I shine a flashlight at each of the sensors, they register, but not when O Does anyone know of either a different IR diode, or a way that I can get the existing diode to shine more in a sideways direction? Here is what the board is looking like. I currently only have one set of 4 sensors connected for testing. You can kind of see that the IR LED is lit.
                  0_1495063129068_upload-5fcf55ca-db4f-48c5-9d3a-721e5c0b9bb1

                  This is the design of the IR rotor that directs the light which gets screwed to the end of the bolt that is the shaft of the wind direction vane. The majority of the IR light gets directed at the end of the bolt.
                  0_1495063638749_upload-c72eb7e3-4af9-4742-bffe-20d565d4835b .

                  I am up for any suggestions.

                  wallyllamaW Offline
                  wallyllamaW Offline
                  wallyllama
                  wrote on last edited by wallyllama
                  #47

                  @dbemowsk i have an led flashlight in the shape of a lantern, it has a shape like cone that has been dehydrated, so there is a concave curve from the base to the tip. Sort of like a golf tee but different proportions.0_1495070004870_1495069978157-964853724.jpg

                  I guess it it like a regular flashlight reflector inside out

                  dbemowskD 1 Reply Last reply
                  0
                  • wallyllamaW wallyllama

                    @dbemowsk 15 is metric for 10.*

                    • If you received 16, then I could have said you ordered in hex, and this would actually have been funny.
                    dbemowskD Offline
                    dbemowskD Offline
                    dbemowsk
                    wrote on last edited by
                    #48

                    @wallyllama That would have been funny. There are 10 types of people in this world, Those that understand binary, and those that don't.

                    Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                    Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                    1 Reply Last reply
                    0
                    • wallyllamaW wallyllama

                      @dbemowsk i have an led flashlight in the shape of a lantern, it has a shape like cone that has been dehydrated, so there is a concave curve from the base to the tip. Sort of like a golf tee but different proportions.0_1495070004870_1495069978157-964853724.jpg

                      I guess it it like a regular flashlight reflector inside out

                      dbemowskD Offline
                      dbemowskD Offline
                      dbemowsk
                      wrote on last edited by
                      #49

                      @wallyllama My only problem with this is that the hole that the LED fits in is slightly larger than 5mm, so that cone would need to be tiny.

                      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                      1 Reply Last reply
                      0
                      • dbemowskD dbemowsk

                        OK, so I am doing some testing on the new wind direction sensor board I am building. My problem is that the infrared LED that I have, which was scavanged from an old remote, has good IR pointing forward. but when I try to direct it sideways to the IR sensors, I appear to not be getting enough IR light to trigger the sensors. If I shine a flashlight at each of the sensors, they register, but not when O Does anyone know of either a different IR diode, or a way that I can get the existing diode to shine more in a sideways direction? Here is what the board is looking like. I currently only have one set of 4 sensors connected for testing. You can kind of see that the IR LED is lit.
                        0_1495063129068_upload-5fcf55ca-db4f-48c5-9d3a-721e5c0b9bb1

                        This is the design of the IR rotor that directs the light which gets screwed to the end of the bolt that is the shaft of the wind direction vane. The majority of the IR light gets directed at the end of the bolt.
                        0_1495063638749_upload-c72eb7e3-4af9-4742-bffe-20d565d4835b .

                        I am up for any suggestions.

                        wallyllamaW Offline
                        wallyllamaW Offline
                        wallyllama
                        wrote on last edited by wallyllama
                        #50

                        @dbemowsk actually, you only have to illuminate the sensors that your slot faces, a 45° mirror or a reflector opposite the slot should help.

                        1 Reply Last reply
                        0
                        • gohanG gohan

                          Something reflective that diffuses light?

                          dbemowskD Offline
                          dbemowskD Offline
                          dbemowsk
                          wrote on last edited by
                          #51

                          @gohan I tried putting a piece of tin foil in the hole, but it must not have been at the right angle.

                          Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                          Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                          1 Reply Last reply
                          0
                          • gohanG Offline
                            gohanG Offline
                            gohan
                            Mod
                            wrote on last edited by
                            #52

                            Maybe a steel sphere? A white piece of plastic? Remember that you can use the smartphone camera to see the ir light coming from the led, in case you would like to see the result before assembling it

                            dbemowskD 1 Reply Last reply
                            0
                            • gohanG gohan

                              Maybe a steel sphere? A white piece of plastic? Remember that you can use the smartphone camera to see the ir light coming from the led, in case you would like to see the result before assembling it

                              dbemowskD Offline
                              dbemowskD Offline
                              dbemowsk
                              wrote on last edited by
                              #53

                              @gohan Yes, I have been using my smart phone camera. I use it all the time at work to test remotes. I have some other things to try later today. I will post my results.

                              Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                              Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                              1 Reply Last reply
                              0
                              • Luc3asL Offline
                                Luc3asL Offline
                                Luc3as
                                wrote on last edited by
                                #54

                                Hello all,
                                I'd like to add to this discussion my bit,
                                here is code from my older project of arduino based, battery operated, solar panel charged weather station
                                https://github.com/Luc3as/MySensors-WeatherStation
                                I must finish all documentation, I have PCBs ready and manufactured and tested, and models ready for 3d prints too.
                                I am not measuring wind so I am also interested in nice work above.
                                for now it is still work in progress, here is little teaser of overall look
                                0_1495694816412_IMG_20170519_171638.jpg

                                dbemowskD 1 Reply Last reply
                                0
                                • Luc3asL Luc3as

                                  Hello all,
                                  I'd like to add to this discussion my bit,
                                  here is code from my older project of arduino based, battery operated, solar panel charged weather station
                                  https://github.com/Luc3as/MySensors-WeatherStation
                                  I must finish all documentation, I have PCBs ready and manufactured and tested, and models ready for 3d prints too.
                                  I am not measuring wind so I am also interested in nice work above.
                                  for now it is still work in progress, here is little teaser of overall look
                                  0_1495694816412_IMG_20170519_171638.jpg

                                  dbemowskD Offline
                                  dbemowskD Offline
                                  dbemowsk
                                  wrote on last edited by
                                  #55

                                  @Luc3as Thanks for the contribution. I have been quite busy the past few weeks and haven't had a lot of time to work more on the wind direction sensor. There are still a few issues I am working through with that before I can start jumping into the code for it. I am hoping to get more done this weekend.

                                  As for your 3D files, do you have them on thingiverse or somewhere accessible for us to check them out? I am interested in the work you have done.

                                  Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                  Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                                  1 Reply Last reply
                                  0
                                  • gohanG Offline
                                    gohanG Offline
                                    gohan
                                    Mod
                                    wrote on last edited by
                                    #56

                                    Those are quite a lot of solar panels. Is it that power hungry?

                                    dbemowskD 1 Reply Last reply
                                    0
                                    • gohanG gohan

                                      Those are quite a lot of solar panels. Is it that power hungry?

                                      dbemowskD Offline
                                      dbemowskD Offline
                                      dbemowsk
                                      wrote on last edited by
                                      #57

                                      @gohan I can't see those small panels delivering that much. Plus, at certain parts of the day a number of the panels will most likely be shaded lowering their output.

                                      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                                      Luc3asL 1 Reply Last reply
                                      0
                                      • dbemowskD dbemowsk

                                        @gohan I can't see those small panels delivering that much. Plus, at certain parts of the day a number of the panels will most likely be shaded lowering their output.

                                        Luc3asL Offline
                                        Luc3asL Offline
                                        Luc3as
                                        wrote on last edited by
                                        #58

                                        @dbemowsk yup, actually there are 8 of them, each providing nominal 0,5 volts, so to power up the lipo charger for battery I need at least 4 volts, in direct sunlight I think this will not be problem, but as @dbemowsk says, it will not have ideal position to sun every day and for whole time. but there is big enough reserve at battery , providing power for few days to weeks even without solar panel.
                                        and I am also checking voltage on solar panel so if there would be some problem with charging I can set notifications or something from home automation system.

                                        gohanG 1 Reply Last reply
                                        0
                                        • G Offline
                                          G Offline
                                          GaryStofer
                                          wrote on last edited by
                                          #59

                                          I did some wind speed and direction sensor boards that I use in my own weather station design. All solid state and high resolution with analog signal readout, voltage for direction, 8 pulse per rev for speed. For inspiration see http://wws.us.to. Gary

                                          dbemowskD 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.1k

                                          Posts


                                          Copyright 2025 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