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. Announcements
  3. Sensebender Micro

Sensebender Micro

Scheduled Pinned Locked Moved Announcements
584 Posts 84 Posters 401.8k Views 35 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.
  • 5546dug5 Offline
    5546dug5 Offline
    5546dug
    wrote on last edited by
    #233

    @hek interesting my 2aa alkaline batteries are down 15% in a month with sketch supplied on board.
    I will keep track. But to grAph I need the Ethernet gw am building it next.

    1 Reply Last reply
    0
    • M mvader

      @Moshe-Livne just FYI - i ordered all my NRF's from the same place i ordered the sensebender boards from.
      and they were all legit NRF's came in their own boxes and have worked great.
      http://imall.itead.cc/wireless/im120606002.html

      NeverDieN Offline
      NeverDieN Offline
      NeverDie
      Hero Member
      wrote on last edited by
      #234

      @mvader said:

      @Moshe-Livne just FYI - i ordered all my NRF's from the same place i ordered the sensebender boards from.
      and they were all legit NRF's came in their own boxes and have worked great.
      http://imall.itead.cc/wireless/im120606002.html

      Do they "just work out of the box" or do they benefit from the 10uF capacitor that some boards allegedly seem to need?

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

        @NeverDie

        I'm not using an extra capacitor on the 3 sensebenders (from itead) that I have in operation at the moment. and they are working without problems.

        1 Reply Last reply
        0
        • rvendrameR Offline
          rvendrameR Offline
          rvendrame
          Hero Member
          wrote on last edited by
          #236

          Batteries usually provide a 'clean' power supply. The capacitor is more useful when there is ripple from the AC adapter.

          Home Assistant / Vera Plus UI7
          ESP8266 GW + mySensors 2.3.2
          Alexa / Google Home

          1 Reply Last reply
          1
          • NeverDieN NeverDie

            @mvader said:

            @Moshe-Livne just FYI - i ordered all my NRF's from the same place i ordered the sensebender boards from.
            and they were all legit NRF's came in their own boxes and have worked great.
            http://imall.itead.cc/wireless/im120606002.html

            Do they "just work out of the box" or do they benefit from the 10uF capacitor that some boards allegedly seem to need?

            M Offline
            M Offline
            mvader
            wrote on last edited by
            #237

            @NeverDie said:

            @mvader said:

            @Moshe-Livne just FYI - i ordered all my NRF's from the same place i ordered the sensebender boards from.
            and they were all legit NRF's came in their own boxes and have worked great.
            http://imall.itead.cc/wireless/im120606002.html

            Do they "just work out of the box" or do they benefit from the 10uF capacitor that some boards allegedly seem to need?

            no cap needed.. just straight to the board.

            1 Reply Last reply
            0
            • G Offline
              G Offline
              gloob
              wrote on last edited by gloob
              #238

              I have just a question about the default sketch.

              Doesn't the following code influence the sleep time?

                // check if we can lower the speed
                if ((measureCount == 5) && highfreq)
                {
                  clock_prescale_set(clock_div_8); // Switch to 1Mhz for the reminder of the sketch, save power.
                  highfreq = false;
                }
              

              If i lower the clock speed I would expect a lower processing time.

              Also, the threshold for temperature and humidity is set to 0.5 and the humidity is read in percent as an integer. Doesn't this mean that even when the humidity changes by less than 1 percent I get an update of the values. I would expect that the noise of the humidity sensor is around 1%.

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

                @gloob said:

                I have just a question about the default sketch.

                Doesn't the following code influence the sleep time?

                It's the watchdog that is used for calculating the sleeptime, which is running independently from the CPU oscliator (which is lowered here).

                If i lower the clock speed I would expect a lower processing time.

                Also, the threshold for temperature and humidity is set to 0.5 and the humidity is read in percent as an integer. Doesn't this mean that even when the humidity changes by less than 1 percent I get an update of the values. I would expect that the noise of the humidity sensor is around 1%.

                Humidity is using a running average, it starts with taking average of the previous two measurements, put in the current measurement, and takes a new average (meaning this measurement, and the previous measurement). Then it takes the difference between those two averages, and this needs to be above 0.5.

                In theory it should lower the number of transmissions, if the humidity fluctuates, like: 50%, 51%, 50%.. without the running average, this would trigger 3 transmissions.

                You are welcome to suggest another method of limiting "spurious" transmissions :)

                Moshe LivneM 1 Reply Last reply
                0
                • tbowmoT tbowmo

                  @gloob said:

                  I have just a question about the default sketch.

                  Doesn't the following code influence the sleep time?

                  It's the watchdog that is used for calculating the sleeptime, which is running independently from the CPU oscliator (which is lowered here).

                  If i lower the clock speed I would expect a lower processing time.

                  Also, the threshold for temperature and humidity is set to 0.5 and the humidity is read in percent as an integer. Doesn't this mean that even when the humidity changes by less than 1 percent I get an update of the values. I would expect that the noise of the humidity sensor is around 1%.

                  Humidity is using a running average, it starts with taking average of the previous two measurements, put in the current measurement, and takes a new average (meaning this measurement, and the previous measurement). Then it takes the difference between those two averages, and this needs to be above 0.5.

                  In theory it should lower the number of transmissions, if the humidity fluctuates, like: 50%, 51%, 50%.. without the running average, this would trigger 3 transmissions.

                  You are welcome to suggest another method of limiting "spurious" transmissions :)

                  Moshe LivneM Offline
                  Moshe LivneM Offline
                  Moshe Livne
                  Hero Member
                  wrote on last edited by
                  #240

                  @tbowmo hmmm haven't looked at the details in the sketch but suppose we have 50, 50 , 51, 50, 51, 51, 51 wouldn't the results be:
                  50, 50 = 50
                  50, 50, 51 = 50.3
                  50, 51 = 50.50
                  50, 51, 50 = 50.50
                  51, 50 = 50.50
                  51, 50, 51 = 50.6
                  50, 51 = 50.50
                  50, 51, 51 = 50.6
                  51, 51 = 51
                  51, 51, 51 = 51

                  so no over 0.5 fluctuation?
                  I think a threshold would work better. can be by running average but from a fixed, last reported temp.

                  1 Reply Last reply
                  0
                  • epierreE Offline
                    epierreE Offline
                    epierre
                    Hero Member
                    wrote on last edited by epierre
                    #241

                    @hek

                    I started it plugged to a vinduino like schema, so I had this :

                    Sensebender Micro FW 1.2 - TestMode
                    Testing peripherals!
                    -> SI7021 : ok!
                    -> Flash : failed!
                    -> SHA204 : Ok (serial : 01232F36E159E8ADEE)
                    Test finished
                    ----> Selftest failed!
                    

                    I read your posts, replaces 1.4.1 libs by 1.5, reflashed it with the demo code and here is what I have:

                    Sensebender Micro FW 1.2radio init fail
                    

                    is that because I don't have a 1.5 serial gateway ?

                    I have the socket and the FTDI on the same side so I may avoid the above ?

                    z-wave - Vera -> Domoticz
                    rfx - Domoticz <- MyDomoAtHome <- Imperihome
                    mysensors -> mysensors-gw -> Domoticz

                    epierreE 1 Reply Last reply
                    0
                    • SparkmanS Offline
                      SparkmanS Offline
                      Sparkman
                      Hero Member
                      wrote on last edited by Sparkman
                      #242

                      Finally got around to hooking one of these up last night. I soldered in the socket for the radio and the wires for my battery pack and uploaded the latest version of the sketch by just holding the FTDI connections in place. The sensor is working great. Thanks to @hek and @tbowmo for making it available!

                      I'm capturing the data including battery percentage to track how long it will last. One thing is that the battery percentage is jumping around quite a bit. It started at around 93%, dropped below 90, jumped backup to 95, etc. so I'll need to do some investigation as to why. This is happening with brand-new Duracell copper-top batteries. Also, for any future enhancements to the board, I would love to see a couple of mounting holes.

                      Sensebender.PNG

                      Cheers
                      Al

                      RJ_MakeR 1 Reply Last reply
                      0
                      • SparkmanS Sparkman

                        Finally got around to hooking one of these up last night. I soldered in the socket for the radio and the wires for my battery pack and uploaded the latest version of the sketch by just holding the FTDI connections in place. The sensor is working great. Thanks to @hek and @tbowmo for making it available!

                        I'm capturing the data including battery percentage to track how long it will last. One thing is that the battery percentage is jumping around quite a bit. It started at around 93%, dropped below 90, jumped backup to 95, etc. so I'll need to do some investigation as to why. This is happening with brand-new Duracell copper-top batteries. Also, for any future enhancements to the board, I would love to see a couple of mounting holes.

                        Sensebender.PNG

                        Cheers
                        Al

                        RJ_MakeR Offline
                        RJ_MakeR Offline
                        RJ_Make
                        Hero Member
                        wrote on last edited by
                        #243

                        @Sparkman
                        I wounder if that is being caused by the loading of the battery and the moment the battery info is being calculated......

                        RJ_Make

                        SparkmanS 2 Replies Last reply
                        1
                        • RJ_MakeR RJ_Make

                          @Sparkman
                          I wounder if that is being caused by the loading of the battery and the moment the battery info is being calculated......

                          SparkmanS Offline
                          SparkmanS Offline
                          Sparkman
                          Hero Member
                          wrote on last edited by
                          #244

                          @ServiceXp Good point. Maybe for the low values it's transmitting the temp/humidity when it's calculating the battery level. I'll take a look at the sketch to see if that could be the case.

                          Cheers
                          Al

                          1 Reply Last reply
                          1
                          • G Offline
                            G Offline
                            gloob
                            wrote on last edited by gloob
                            #245

                            Hello

                            I found an error in the sensebender micro sketch in the latest release.

                            The calculation of the temperature change is wrong.

                            float diffTemp = abs(lastTemperature - (isMetric ? data.celsiusHundredths : data.fahrenheitHundredths) / 100);
                            

                            needs to be replaced with

                            float diffTemp = abs(lastTemperature - (isMetric ? data.celsiusHundredths : data.fahrenheitHundredths) / 100.0);
                            

                            The division with 100 needs to be 100.0 otherwise the result will be an integer instead of a float value and the difference will be the decimal places of the last temperature.

                            korttomaK 1 Reply Last reply
                            0
                            • AnticimexA Offline
                              AnticimexA Offline
                              Anticimex
                              Contest Winner
                              wrote on last edited by
                              #246

                              This should work as well and might be more clear:

                              float diffTemp = abs(lastTemperature - (isMetric ? data.celsiusHundredths : data.fahrenheitHundredths) / 100f);
                              

                              But I guess it is a matter of taste :)

                              Do you feel secure today? No? Start requiring some signatures and feel better tomorrow ;)

                              1 Reply Last reply
                              0
                              • Stephan NollerS Offline
                                Stephan NollerS Offline
                                Stephan Noller
                                wrote on last edited by
                                #247

                                Hi guys,
                                amazing board! But i have a question: The Arduino IDE offerst two options as destination - 8MHz and 1MHz. Which one should i chose? My board seems to work in general, but not very realiable...

                                SparkmanS 1 Reply Last reply
                                0
                                • Stephan NollerS Stephan Noller

                                  Hi guys,
                                  amazing board! But i have a question: The Arduino IDE offerst two options as destination - 8MHz and 1MHz. Which one should i chose? My board seems to work in general, but not very realiable...

                                  SparkmanS Offline
                                  SparkmanS Offline
                                  Sparkman
                                  Hero Member
                                  wrote on last edited by
                                  #248

                                  @Stephan-Noller Out of the box, I had to use the 8MHz option to upload the sketch to it.

                                  Cheers
                                  Al

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

                                    The sensebender is set up to run at 8Mhz. There is an option to build it for 1Mhz, but you have to switch the prescaler yourself in your sketch.

                                    However I think the current consumption saved by running on 1Mhz vs 8Mhz is very limited on the sensebender, as the oscillator is shut down the majority of time (when we are sleeping the MCU).
                                    . I have not made any measurements on this yet (busy with a 1000 of other projects)

                                    1 Reply Last reply
                                    0
                                    • RJ_MakeR RJ_Make

                                      @Sparkman
                                      I wounder if that is being caused by the loading of the battery and the moment the battery info is being calculated......

                                      SparkmanS Offline
                                      SparkmanS Offline
                                      Sparkman
                                      Hero Member
                                      wrote on last edited by Sparkman
                                      #250

                                      @ServiceXp Your hunch was correct. I built another Sensebender that only transmitted battery levels, and it's battery levels did not vary at all:

                                      sb1.PNG

                                      I then modified the sketch to put a short wait after the temp & humidity are sent to allow the voltage level to recover and the battery levels do not fluctuate so far. However, I'm thinking it would be better to always measure right after a transmit, but not sure if that's easy to do.

                                      Cheers
                                      Al

                                      RJ_MakeR 1 Reply Last reply
                                      1
                                      • SparkmanS Sparkman

                                        @ServiceXp Your hunch was correct. I built another Sensebender that only transmitted battery levels, and it's battery levels did not vary at all:

                                        sb1.PNG

                                        I then modified the sketch to put a short wait after the temp & humidity are sent to allow the voltage level to recover and the battery levels do not fluctuate so far. However, I'm thinking it would be better to always measure right after a transmit, but not sure if that's easy to do.

                                        Cheers
                                        Al

                                        RJ_MakeR Offline
                                        RJ_MakeR Offline
                                        RJ_Make
                                        Hero Member
                                        wrote on last edited by
                                        #251

                                        @Sparkman Thanks for the follow up.

                                        RJ_Make

                                        1 Reply Last reply
                                        0
                                        • epierreE epierre

                                          @hek

                                          I started it plugged to a vinduino like schema, so I had this :

                                          Sensebender Micro FW 1.2 - TestMode
                                          Testing peripherals!
                                          -> SI7021 : ok!
                                          -> Flash : failed!
                                          -> SHA204 : Ok (serial : 01232F36E159E8ADEE)
                                          Test finished
                                          ----> Selftest failed!
                                          

                                          I read your posts, replaces 1.4.1 libs by 1.5, reflashed it with the demo code and here is what I have:

                                          Sensebender Micro FW 1.2radio init fail
                                          

                                          is that because I don't have a 1.5 serial gateway ?

                                          I have the socket and the FTDI on the same side so I may avoid the above ?

                                          epierreE Offline
                                          epierreE Offline
                                          epierre
                                          Hero Member
                                          wrote on last edited by epierre
                                          #252

                                          @hek can anyone help me, no unit is functionnal so far...

                                          @epierre said:

                                          @hek

                                          I started it plugged to a vinduino like schema, so I had this :

                                          Sensebender Micro FW 1.2 - TestMode
                                          Testing peripherals!
                                          -> SI7021 : ok!
                                          -> Flash : failed!
                                          -> SHA204 : Ok (serial : 01232F36E159E8ADEE)
                                          Test finished
                                          ----> Selftest failed!
                                          

                                          I read your posts, replaces 1.4.1 libs by 1.5, reflashed it with the demo code and here is what I have:

                                          Sensebender Micro FW 1.2radio init fail
                                          

                                          is that because I don't have a 1.5 serial gateway ?

                                          I have the socket and the FTDI on the same side so I may avoid the above ?

                                          z-wave - Vera -> Domoticz
                                          rfx - Domoticz <- MyDomoAtHome <- Imperihome
                                          mysensors -> mysensors-gw -> Domoticz

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


                                          7

                                          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