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.
  • gohanG gohan

    I was referring exactly to that topic. Maybe you could ask Flopp if he could measure his part for you. The tricky part will be to find the right brightness for the LED when it is crossing between 2 phototransistor, but I think it will be easier to adjust than changing a magnetic field :)
    About those parts, I can't say much, it is up to you: with 10 you still have 2 as spares just in case, 50 are quite a lot unless you plan to build more for your friends :)

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

    @gohan said in MySensors weather station:

    The tricky part will be to find the right brightness for the LED when it is crossing between 2 photo-transistor, but I think it will be easier to adjust than changing a magnetic field :)

    What I did for wind direction is that I "look" for the first photo-transistor that get light from the LED and use that direction. So I don't care if the light is crossing between 2 photo-transistor. I scan from first digital in until i scanned all of them.

    void readWindDirection()
    {
      //check in what direction the wind is. First sensor that have light will be the direction
      int i = 4;
      for (i; i < 9 ; i++){
        if (!digitalRead(i)){
          WD = WDarray[i-4];
          return;
        }
      }
      i = 14;
      for (i; i < 17 ; i++){
        if (!digitalRead(i)){
          WD = WDarray[i-9];
          return;
        }
      }
    }
    
    dbemowskD 1 Reply Last reply
    0
    • F flopp

      @gohan said in MySensors weather station:

      The tricky part will be to find the right brightness for the LED when it is crossing between 2 photo-transistor, but I think it will be easier to adjust than changing a magnetic field :)

      What I did for wind direction is that I "look" for the first photo-transistor that get light from the LED and use that direction. So I don't care if the light is crossing between 2 photo-transistor. I scan from first digital in until i scanned all of them.

      void readWindDirection()
      {
        //check in what direction the wind is. First sensor that have light will be the direction
        int i = 4;
        for (i; i < 9 ; i++){
          if (!digitalRead(i)){
            WD = WDarray[i-4];
            return;
          }
        }
        i = 14;
        for (i; i < 17 ; i++){
          if (!digitalRead(i)){
            WD = WDarray[i-9];
            return;
          }
        }
      }
      
      dbemowskD Offline
      dbemowskD Offline
      dbemowsk
      wrote on last edited by
      #32

      @flopp I am curious how you wired your electronics. I saw that as one of your original questions in your fody weather station post. so based on what you are saying, you really only use the 8 different directions, N, NE, E, SE, S, SW, W, NW, correct?

      I have the basic design of the one you had pictured in your post mostly done. I still have to plan for circuit board mounting and wire connections, but I don't think that should be too difficult.

      Here is my starting design done in OpenSCAD. I have the center hole threaded part way with a US 1/4 x 20 thread as that is what I used for the bolts to go through the wind vane.
      0_1493275410728_upload-206e872f-5ef5-4ef8-9c8b-5e4536d8fb31
      0_1493275543341_upload-febb1225-6256-4cc2-bee9-2c4d220d3238

      I shoud be getting the phototransistors by Monday, so I want to draw up a preliminary design for the circuit board before that.

      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 2 Replies Last reply
      1
      • dbemowskD dbemowsk

        @flopp I am curious how you wired your electronics. I saw that as one of your original questions in your fody weather station post. so based on what you are saying, you really only use the 8 different directions, N, NE, E, SE, S, SW, W, NW, correct?

        I have the basic design of the one you had pictured in your post mostly done. I still have to plan for circuit board mounting and wire connections, but I don't think that should be too difficult.

        Here is my starting design done in OpenSCAD. I have the center hole threaded part way with a US 1/4 x 20 thread as that is what I used for the bolts to go through the wind vane.
        0_1493275410728_upload-206e872f-5ef5-4ef8-9c8b-5e4536d8fb31
        0_1493275543341_upload-febb1225-6256-4cc2-bee9-2c4d220d3238

        I shoud be getting the phototransistors by Monday, so I want to draw up a preliminary design for the circuit board before that.

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

        @dbemowsk said in MySensors weather station:

        @flopp I am curious how you wired your electronics. I saw that as one of your original questions in your fody weather station post. so based on what you are saying, you really only use the 8 different directions, N, NE, E, SE, S, SW, W, NW, correct?

        Yes, correct. I have 8 receivers for the light.

        I want to know more about this product https://www.youtube.com/watch?v=-oQiJ50LcAc

        1 Reply Last reply
        0
        • dbemowskD dbemowsk

          @flopp I am curious how you wired your electronics. I saw that as one of your original questions in your fody weather station post. so based on what you are saying, you really only use the 8 different directions, N, NE, E, SE, S, SW, W, NW, correct?

          I have the basic design of the one you had pictured in your post mostly done. I still have to plan for circuit board mounting and wire connections, but I don't think that should be too difficult.

          Here is my starting design done in OpenSCAD. I have the center hole threaded part way with a US 1/4 x 20 thread as that is what I used for the bolts to go through the wind vane.
          0_1493275410728_upload-206e872f-5ef5-4ef8-9c8b-5e4536d8fb31
          0_1493275543341_upload-febb1225-6256-4cc2-bee9-2c4d220d3238

          I shoud be getting the phototransistors by Monday, so I want to draw up a preliminary design for the circuit board before that.

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

          @dbemowsk said in MySensors weather station:

          Here is my starting design done in OpenSCAD. I have the center hole threaded part way with a US 1/4 x 20 thread as that is what I used for the bolts to go through the wind vane.

          Your drawings look good.

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

            Here is possibly how it would be fitted into the wind vane body cap. It'll be a tight fit for the PCB, but I'm sure I can make it.
            0_1493290462764_upload-41341d20-831d-4331-9aba-56d34034fbb9

            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
            • wallyllamaW Offline
              wallyllamaW Offline
              wallyllama
              wrote on last edited by
              #36

              Some things about the direction sensor, your magnet/reed switch is exactly what is in the old dallas 1-wire weather station and it worked well giving 16 positions,

              the led/photodiode method mentioed by gohan is interesting, if you used analog inputs you could use the value across 3 of them at a time to interpolate a pretty high resolution answer, multiplexing could make it so you dont need 8 analog inputs.

              Another thing is a rotary encoder, ive seen them used to measure the angles of telescope mounts, i believe they can be had with good enough resolution for your needs.

              I didnt read the whole thread, apologies if i am repeating ideas, or if you have decided on a solution.

              dbemowskD 1 Reply Last reply
              1
              • wallyllamaW wallyllama

                Some things about the direction sensor, your magnet/reed switch is exactly what is in the old dallas 1-wire weather station and it worked well giving 16 positions,

                the led/photodiode method mentioed by gohan is interesting, if you used analog inputs you could use the value across 3 of them at a time to interpolate a pretty high resolution answer, multiplexing could make it so you dont need 8 analog inputs.

                Another thing is a rotary encoder, ive seen them used to measure the angles of telescope mounts, i believe they can be had with good enough resolution for your needs.

                I didnt read the whole thread, apologies if i am repeating ideas, or if you have decided on a solution.

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

                @wallyllama No problem, I appreciate the input.

                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 Offline
                  dbemowskD Offline
                  dbemowsk
                  wrote on last edited by
                  #38

                  So for the phototransistor method, I figured I could use a similar approach to what I was planning with the reed switches. Here is a proposed schematic:
                  0_1493356241919_upload-499fb8bd-e4c7-435b-a86a-114395356c60

                  The idea is to use two identical banks of 4 phototransistors and alternating these in the slots. This should allow me to get the increased resolution that I was figuring on getting with the reed switch design.

                  Does anyone see any issues with this design?

                  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

                    So for the phototransistor method, I figured I could use a similar approach to what I was planning with the reed switches. Here is a proposed schematic:
                    0_1493356241919_upload-499fb8bd-e4c7-435b-a86a-114395356c60

                    The idea is to use two identical banks of 4 phototransistors and alternating these in the slots. This should allow me to get the increased resolution that I was figuring on getting with the reed switch design.

                    Does anyone see any issues with this design?

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

                    @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 1 Reply Last reply
                    0
                    • 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
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          14

                                          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