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.
  • 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
                  • hekH Offline
                    hekH Offline
                    hek
                    Admin
                    wrote on last edited by
                    #253

                    @epierre said:

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

                    Gateway version shouldn't matter if you get this message at startup of node.

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

                    I don't understand what you mean.

                    epierreE 1 Reply Last reply
                    0
                    • hekH hek

                      @epierre said:

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

                      Gateway version shouldn't matter if you get this message at startup of node.

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

                      I don't understand what you mean.

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

                      @hek said:

                      @epierre said:

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

                      Gateway version shouldn't matter if you get this message at startup of node.

                      what should I do from there ?

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

                      I don't understand what you mean.

                      this was related to the electric perturbation with headers close to the radio

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

                      SparkmanS 1 Reply Last reply
                      0
                      • epierreE epierre

                        @hek said:

                        @epierre said:

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

                        Gateway version shouldn't matter if you get this message at startup of node.

                        what should I do from there ?

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

                        I don't understand what you mean.

                        this was related to the electric perturbation with headers close to the radio

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

                        @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 1 Reply Last reply
                        0
                        • HeinzH Offline
                          HeinzH Offline
                          Heinz
                          Hero Member
                          wrote on last edited by
                          #256

                          Today I integrated my first 2 sensebender micros into my homeautomation and they almost worked out of the box. I like this board really much! Good work, I will order more!

                          Pitfall:
                          When updating the mysensors lib from 1.4.x to 1.5 the sensor failed to get an id from the controller which btw was still running on 1.4.x.
                          After having done all the things like "clearing eeprom", "soldering a capacitor to the radio" and so on... I noticed that I changed the RF_CHANNEL from the default 76 to some other value in MyConfig.h some months ago (probably for some paranoia reason).
                          When updating to lib 1.5 the sensor sketch got the 76 while the gateway still used the other one and so the communication between both failed. After changing the radio channel to the one the controller uses, everything worked very quickly!

                          Probably this post helps someother guy who fell into the same trap.

                          1 Reply Last reply
                          0
                          • J Offline
                            J Offline
                            johnr
                            wrote on last edited by
                            #257

                            Hi,

                            My sense bender works perfect when sending directly data directly to serial gateway (vera 5), however when I move it out of range to the serial gateway and want it to connect to my repeater node it does not want to discover the repeater node. Anyone else had this problem?

                            DwaltD 1 Reply Last reply
                            0
                            • hekH Offline
                              hekH Offline
                              hek
                              Admin
                              wrote on last edited by
                              #258

                              Remember that it takes a few ( ~5) failed transmits until it searches for a new parent node.

                              1 Reply Last reply
                              1
                              • J johnr

                                Hi,

                                My sense bender works perfect when sending directly data directly to serial gateway (vera 5), however when I move it out of range to the serial gateway and want it to connect to my repeater node it does not want to discover the repeater node. Anyone else had this problem?

                                DwaltD Offline
                                DwaltD Offline
                                Dwalt
                                wrote on last edited by
                                #259

                                @johnr

                                Is your repeater node still on MySensors 1.4? I had a similar problem and upgrading to 1.5 solved it.

                                Veralite UI5 :: IBoard Ethernet GW :: MyS 1.5

                                1 Reply Last reply
                                0
                                • J Offline
                                  J Offline
                                  johnr
                                  wrote on last edited by
                                  #260

                                  You are probably right. I did not realise sense bender was pre loaded with 1.5

                                  I think easiest for me would be to downgrade sense bender to 1.4 is it possible?

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

                                    Sensebender is still on 1.4, as we haven't prepared new firmware for it yet.

                                    Mysensors 1.4 and 1.5 should be compatible with each other, right @hek ?

                                    1 Reply Last reply
                                    0
                                    • hekH Offline
                                      hekH Offline
                                      hek
                                      Admin
                                      wrote on last edited by
                                      #262

                                      Yes, it should.

                                      But as @Dewalt says, there was a bug in repeater functionality. So upgrading the repeater is a good tip.

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


                                          6

                                          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