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. OpenHardware.io
  3. 💬 Sensebender Micro

💬 Sensebender Micro

Scheduled Pinned Locked Moved OpenHardware.io
temperatureatmega328atsha204ahumidityflashmysensors
116 Posts 42 Posters 26.6k Views 38 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.
  • M Offline
    M Offline
    meddie
    wrote on last edited by
    #47

    Hey together,

    i have an problem, i had some troubles with the space on the sb micro, i have removed the #define my_debug that solved my space problem, but now i have observed that the node is starting and sends few times the temp and humidity but after the few times nothing happens anymore.
    i observed, when i hold the sensor in the fingers so that it will be worm, and start the node then it sends all minute the temp, but when the temp goes down to the room temperature then the node should send only when the humidity or temp changes over the threshhold, so in the room i dont have much changes and i think that when the node does not send about a longer time, that the the problem comes up.
    I tested it in some different distances, on another floor but in very short distance too. I dont think that is a radio problem.
    What do you think about?
    The Problem is, that i cant debug the node because i disabled it because of space problems.
    Thank you

    1 Reply Last reply
    0
    • M Offline
      M Offline
      meddie
      wrote on last edited by meddie
      #48

      i have just tried it again, it worked for 20 minutes. After them i get this output:

      Sensebender Micro FW 1.4 - Online!
      isMetric: 1
      TempDiff :122.28
      HumDiff  :154.00
      T: 22.28
      H: 54
      TempDiff :0.00
      HumDiff  :0.00
      TempDiff :0.10
      HumDiff  :0.50
      TempDiff :0.11
      HumDiff  :0.50
      TempDiff :0.12
      HumDiff  :0.00
      €€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
      
      

      ok one more thing i found, when i close the serial monitor and start it again, i get the correctly output again, and i see in fhem the new readings.

      but i cant understand what happens why stop the node to transmit the correct readings

      qqlapralineQ 1 Reply Last reply
      0
      • M meddie

        i have just tried it again, it worked for 20 minutes. After them i get this output:

        Sensebender Micro FW 1.4 - Online!
        isMetric: 1
        TempDiff :122.28
        HumDiff  :154.00
        T: 22.28
        H: 54
        TempDiff :0.00
        HumDiff  :0.00
        TempDiff :0.10
        HumDiff  :0.50
        TempDiff :0.11
        HumDiff  :0.50
        TempDiff :0.12
        HumDiff  :0.00
        €€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
        
        

        ok one more thing i found, when i close the serial monitor and start it again, i get the correctly output again, and i see in fhem the new readings.

        but i cant understand what happens why stop the node to transmit the correct readings

        qqlapralineQ Offline
        qqlapralineQ Offline
        qqlapraline
        wrote on last edited by
        #49

        @meddie, do you use the default sketch for sensebender ?
        If this is the case, please notice that after 5 measures, the clock speed is lowered to 1 Mhz. It means that the serial output won't work anymore using the default baud speed.
        And, when you restart the serial monitor, it starts all over again from measure number 1.
        Hope this helps.

        QQ.

        M 1 Reply Last reply
        0
        • qqlapralineQ qqlapraline

          @meddie, do you use the default sketch for sensebender ?
          If this is the case, please notice that after 5 measures, the clock speed is lowered to 1 Mhz. It means that the serial output won't work anymore using the default baud speed.
          And, when you restart the serial monitor, it starts all over again from measure number 1.
          Hope this helps.

          QQ.

          M Offline
          M Offline
          meddie
          wrote on last edited by meddie
          #50

          @qqlapraline
          oh yes it does! It explains why i get the € signs in the serial monitor. But why does the node not send to my FHEM Controller? Depends it also on it, that the node switch to 1 Mhz and cant send anymore?
          Thank you very much for your answer, its very helpfull.
          Greets Eddie

          1 Reply Last reply
          0
          • tbowmoT Offline
            tbowmoT Offline
            tbowmo
            Admin
            wrote on last edited by
            #51

            Hmm I actually thought that this feature with switching to 1mhz was removed, as my calculations show that it (in theory) will use more current, than running at 8mhz (due to the fact that it sleeps most of the time)

            1 Reply Last reply
            0
            • Michiel van der WulpM Offline
              Michiel van der WulpM Offline
              Michiel van der Wulp
              wrote on last edited by
              #52

              @tbowmo : The code to switch the frequency back to 1MHz is still there at https://www.mysensors.org/view/1/Sensebender-Micro.
              Should it be removed?

              M 1 Reply Last reply
              0
              • W Offline
                W Offline
                Wavemaker
                wrote on last edited by
                #53

                Is it possible to directly connect a RFM69* module to the Sensebender Micro? Or do I need the (rather costly) NRF2RFM69 to do that?

                mfalkviddM tbowmoT 2 Replies Last reply
                0
                • W Wavemaker

                  Is it possible to directly connect a RFM69* module to the Sensebender Micro? Or do I need the (rather costly) NRF2RFM69 to do that?

                  mfalkviddM Offline
                  mfalkviddM Offline
                  mfalkvidd
                  Mod
                  wrote on last edited by
                  #54

                  @Wavemaker welcome to the community!
                  You can spend your time instead of your money to do exactly what the adapter does, no need to buy it.

                  1 Reply Last reply
                  0
                  • W Wavemaker

                    Is it possible to directly connect a RFM69* module to the Sensebender Micro? Or do I need the (rather costly) NRF2RFM69 to do that?

                    tbowmoT Offline
                    tbowmoT Offline
                    tbowmo
                    Admin
                    wrote on last edited by
                    #55

                    @Wavemaker

                    What is costly? If you grab the gerbers for the nrf2rfm69, send them to dirtypcbs (or use the link provided in the thread and order the pre uploaded gerbers at dirtypcbs) you'll get around 30 modules for 12$..

                    W 1 Reply Last reply
                    1
                    • tbowmoT tbowmo

                      @Wavemaker

                      What is costly? If you grab the gerbers for the nrf2rfm69, send them to dirtypcbs (or use the link provided in the thread and order the pre uploaded gerbers at dirtypcbs) you'll get around 30 modules for 12$..

                      W Offline
                      W Offline
                      Wavemaker
                      wrote on last edited by
                      #56

                      @tbowmo Aha, yes, well I was looking at the cost of just one adapter to test. But you're right, in larger quantities it's not costly.

                      1 Reply Last reply
                      0
                      • Michiel van der WulpM Michiel van der Wulp

                        @tbowmo : The code to switch the frequency back to 1MHz is still there at https://www.mysensors.org/view/1/Sensebender-Micro.
                        Should it be removed?

                        M Offline
                        M Offline
                        meddie
                        wrote on last edited by
                        #57

                        @Michiel-van-der-Wulp
                        Can you tell me where in the code is the switch to 1 MHz? I still have the problems that my node dosnt send anymore. It works for several hours but after then it dont send anything.

                        In programming i am not good, and so i cant find the switch.
                        Thank you very much.
                        Greets Eddie

                        Michiel van der WulpM 1 Reply Last reply
                        0
                        • M meddie

                          @Michiel-van-der-Wulp
                          Can you tell me where in the code is the switch to 1 MHz? I still have the problems that my node dosnt send anymore. It works for several hours but after then it dont send anything.

                          In programming i am not good, and so i cant find the switch.
                          Thank you very much.
                          Greets Eddie

                          Michiel van der WulpM Offline
                          Michiel van der WulpM Offline
                          Michiel van der Wulp
                          wrote on last edited by
                          #58

                          @meddie : Sure, I can:

                          The following is an extract from the code shown at https://www.mysensors.org/view/1/Sensebender-Micro, from the "loop()" function:

                          #ifndef MY_OTA_FIRMWARE_FEATURE
                            if ((measureCount == 5) && highfreq) 
                            {
                              clock_prescale_set(clock_div_8); // Switch to 1Mhz for the reminder of the sketch, save power.
                              highfreq = false;
                            } 
                          #endif
                          

                          If you remove these lines, it will stay on 8MHz.
                          (I did not test this but I am quite sure)

                          M 1 Reply Last reply
                          0
                          • Michiel van der WulpM Michiel van der Wulp

                            @meddie : Sure, I can:

                            The following is an extract from the code shown at https://www.mysensors.org/view/1/Sensebender-Micro, from the "loop()" function:

                            #ifndef MY_OTA_FIRMWARE_FEATURE
                              if ((measureCount == 5) && highfreq) 
                              {
                                clock_prescale_set(clock_div_8); // Switch to 1Mhz for the reminder of the sketch, save power.
                                highfreq = false;
                              } 
                            #endif
                            

                            If you remove these lines, it will stay on 8MHz.
                            (I did not test this but I am quite sure)

                            M Offline
                            M Offline
                            meddie
                            wrote on last edited by
                            #59

                            @Michiel-van-der-Wulp
                            thank you i will test it the next few days

                            1 Reply Last reply
                            0
                            • D Offline
                              D Offline
                              Dominic Amann
                              wrote on last edited by
                              #60

                              I assume there is no exposure to the SPI bus on this board?

                              sundberg84S 1 Reply Last reply
                              0
                              • D Dominic Amann

                                I assume there is no exposure to the SPI bus on this board?

                                sundberg84S Offline
                                sundberg84S Offline
                                sundberg84
                                Hardware Contributor
                                wrote on last edited by
                                #61

                                @Dominic-Amann from the hardware site:

                                MYSx 2.6 with
                                Dedicated UART
                                Dedicated SPI
                                Dedicated Interrupts
                                I2C bus (shared with onboard eeprom)

                                Controller: Proxmox VM - Home Assistant
                                MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                                MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                                RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                                1 Reply Last reply
                                1
                                • D Offline
                                  D Offline
                                  Dominic Amann
                                  wrote on last edited by
                                  #62

                                  Ah - right, the radio connector uses SPI.

                                  1 Reply Last reply
                                  0
                                  • tbowmoT Offline
                                    tbowmoT Offline
                                    tbowmo
                                    Admin
                                    wrote on last edited by
                                    #63

                                    @Dominic-Amann

                                    There are multiple SPI ports in use, one of them is dedicated to the expansion header (which follows MYSx 2.6 standard)

                                    1 Reply Last reply
                                    0
                                    • R Offline
                                      R Offline
                                      RWoerz
                                      wrote on last edited by
                                      #64

                                      Can somebody please post what this boards current draw is at 8Mz w/wo a radio. Because it will live in a crawl space It's going to be plugged in. I've also added a very simple water detector.

                                      1 Reply Last reply
                                      0
                                      • tbowmoT Offline
                                        tbowmoT Offline
                                        tbowmo
                                        Admin
                                        wrote on last edited by
                                        #65

                                        @RWoerz

                                        normal operating frequency is 48Mhz (if I remember right).. If I remember right, then there is no options in arduino to switch the frequency to 8Mhz..

                                        1 Reply Last reply
                                        0
                                        • sburlotS Offline
                                          sburlotS Offline
                                          sburlot
                                          wrote on last edited by
                                          #66

                                          Beware that the Si7021 can return a RH value < 0 or > 100, and Domoticz will not store it. Clamp the humidity to a valid range to avoid losing values.

                                          Lately, my Sensebender reported values of 101-104 during the night. Took me some time to understand why Domoticz complained it didnt receive any values.
                                          It received these values, but didnt like them.

                                          See section 5.1.1 of the Si7021 datasheet says:
                                          Due to normal variations in RH accuracy of the device as described in Table 4, it is possible for the measured value of %RH to be slightly less than 0 when the actual RH level is close to or equal to 0. Similarly, the measured value of %RH may be slightly greater than 100 when the actual RH level is close to or equal to 100. This is expected behavior, and it is acceptable to limit the range of RH results to 0 to 100%RH in the host software by truncating values that are slightly outside of this range.

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


                                          16

                                          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