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.
  • J Offline
    J Offline
    johnr
    wrote on last edited by
    #263

    Upgrading repeater to 1.5 solved this issue. Thanks for the quick help. 1.4 sensors communicate OK with the 1.5 repeater as far as I can see right now.

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Fabien
      wrote on last edited by
      #264

      I try to make a 3D box for SenseBender Micro with CR123 battery.
      Screenchot :
      Boitier.png

      1 Reply Last reply
      2
      • F Offline
        F Offline
        Fabien
        wrote on last edited by
        #265

        first print test : IMG_20150921_230740.jpg
        IMG_20150921_230820.jpg

        1 Reply Last reply
        2
        • tbowmoT Offline
          tbowmoT Offline
          tbowmo
          Admin
          wrote on last edited by
          #266

          @Fabien

          Nice work, what is the dimensions of the enclosure?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mvader
            wrote on last edited by
            #267

            @mvader said:
            question about the default sketch for this board.
            if i read correctly

            
            // How many milli seconds between each measurement
            #define MEASURE_INTERVAL 60000
            
            // How many milli seconds should we wait for OTA?
            #define OTA_WAIT_PERIOD 300
            
            // FORCE_TRANSMIT_INTERVAL, this number of times of wakeup, the sensor is forced to report all values to the controller
            #define FORCE_TRANSMIT_INTERVAL 30 
            
            // When MEASURE_INTERVAL is 60000 and FORCE_TRANSMIT_INTERVAL is 30, we force a transmission every 30 minutes.
            // Between the forced transmissions a tranmission will only occur if the measured value differs from the previous measurement
            
            // HUMI_TRANSMIT_THRESHOLD tells how much the humidity should have changed since last time it was transmitted. Likewise with
            // TEMP_TRANSMIT_THRESHOLD for temperature threshold.
            #define HUMI_TRANSMIT_THRESHOLD 0.5
            #define TEMP_TRANSMIT_THRESHOLD 0.5
            

            if temps don't change more than .5 i shouldn't see a transmit but once every 30 minutes
            i have 2 running right now
            and both send temp and humidity every 1-2 minutes and the numbers are the same or in some cases only different by .1
            i have it set to .5 so the question is

            1. why does it transmit every minutes when the temp and humidity are the same
            2. why is it transmitting even with as little as .1 change
              1 board is running 1.2 and the other is running the 1.3 sketch from git
              Battery however does transmit every 60 minutes as it's supposed to.,
              thx
            1 Reply Last reply
            0
            • tbowmoT Offline
              tbowmoT Offline
              tbowmo
              Admin
              wrote on last edited by
              #268

              @mvader

              Have you tried to hook up a serial connection to your sensebender? It writes the difference from the last transmitted measurement, everytime a new measurement is taken (every minute).

              M 1 Reply Last reply
              0
              • F Offline
                F Offline
                Fabien
                wrote on last edited by
                #269

                @tbowmo 47x37 height : 27
                I will make some improvment (can not test, my printer is in maintenance mode !) and post files for others.

                1 Reply Last reply
                0
                • tbowmoT tbowmo

                  @mvader

                  Have you tried to hook up a serial connection to your sensebender? It writes the difference from the last transmitted measurement, everytime a new measurement is taken (every minute).

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

                  @tbowmo said:

                  @mvader

                  Have you tried to hook up a serial connection to your sensebender? It writes the difference from the last transmitted measurement, everytime a new measurement is taken (every minute).

                  so if i want it to transmit less frequently (save battery?) i would increase the measure interval. correct?
                  I have some situations where i want frequent measuring (1 minute), and some where 15 minutes or 30 minutes would do fine.

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

                    @mvader

                    Yes, you could save battery, by changing to 10/15 minute check interval..

                    But still, the interesting thing is why it transmits every minute.. That's why I would suggest to check the serial output..

                    1 Reply Last reply
                    0
                    • G gloob

                      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 Offline
                      korttomaK Offline
                      korttoma
                      Hero Member
                      wrote on last edited by korttoma
                      #272

                      There is an explanation to the problem further up in the thread:

                      @gloob said:

                      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.

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

                        @korttoma

                        thanks for helping my memory :)

                        1 Reply Last reply
                        0
                        • korttomaK korttoma

                          There is an explanation to the problem further up in the thread:

                          @gloob said:

                          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.

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

                          @korttoma i did see that. but your saying that is what is causing it to transmit every 1 minute?

                          korttomaK 1 Reply Last reply
                          0
                          • M mvader

                            @korttoma i did see that. but your saying that is what is causing it to transmit every 1 minute?

                            korttomaK Offline
                            korttomaK Offline
                            korttoma
                            Hero Member
                            wrote on last edited by
                            #275

                            @mvader yes, it is rounding the temperature difference to the nearest degree so the difference is almost always more then the 0.5.

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

                              Just a hint, itead studio is starting a sale with 10% off on all imall items.. So maybe it's time to buy some Christmas presents for the inner geek :)

                              1 Reply Last reply
                              0
                              • A Offline
                                A Offline
                                akbooer
                                wrote on last edited by
                                #277

                                Oh no! Lousy timing, I just bought some...
                                ... in fact, they arrived today.

                                Speaking of which, whilst I got them to run the default sketch, do I actually need a programmer to do anything different, or can this be done OTA (from a Mac) ?

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

                                  @akbooer

                                  The default sketch doesn't support OTA, as it wasn't available in the stable branch at the time of launch

                                  1 Reply Last reply
                                  0
                                  • 5546dug5 Offline
                                    5546dug5 Offline
                                    5546dug
                                    wrote on last edited by
                                    #279

                                    @tbowmo Good sales but did not see the Sensebender too bad .

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

                                      @akbooer

                                      It's here http://www.itead.cc/mysensors-micro.html

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

                                        @hek I've soldered a second unit to compare, same error, I flashed back the sensebender version from the examples and on both I am stuck here: "Sensebender Micro FW 1.2radio init fail"

                                        Gateway is 1.5 BTW, one radio is from itead the other not.

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

                                        1 Reply Last reply
                                        0
                                        • SparkmanS Sparkman

                                          @epierre Can you confirm the settings you used in the IDE to program it? Are you sure there are no solder bridges where you soldered the radio or socket for the radio? Have you tried powering it with a couple of AA batteries after you uploaded the sketch?

                                          Cheers
                                          Al

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

                                          @Sparkman said:

                                          @epierre Can you confirm the settings you used in the IDE to program it?

                                          1.6.5 version

                                          Are you sure there are no solder bridges where you soldered the radio or socket for the radio?

                                          same behavior on two units

                                          Have you tried powering it with a couple of AA batteries after you uploaded the sketch?

                                          not yet but why should that change anything ?

                                          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


                                          14

                                          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