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.
  • 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
    • D Offline
      D Offline
      dklinkman
      wrote on last edited by
      #67

      So cool that the micro as a node reports its battery level to the UI (I'm still on the FTDI power, hence > 100%)
      0_1517359445418_sbmicro.jpg

      -d

      1 Reply Last reply
      0
      • stefaanvS Offline
        stefaanvS Offline
        stefaanv
        wrote on last edited by
        #68

        Is there a board definition for sensebender micro for PlatformIO available ?

        martinhjelmareM 1 Reply Last reply
        0
        • stefaanvS stefaanv

          Is there a board definition for sensebender micro for PlatformIO available ?

          martinhjelmareM Offline
          martinhjelmareM Offline
          martinhjelmare
          Plugin Developer
          wrote on last edited by
          #69

          @stefaanv

          https://forum.mysensors.org/topic/2725/sensebender-micro/29

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

            Am I able to remote reboot the sensebender micro? I can send an OTA firmware if i manually press the reset button.
            but can i use the reboot command in MYScontroller? it doesn't seem to do anything when issued.

            tbowmoT 1 Reply Last reply
            0
            • M mvader

              Am I able to remote reboot the sensebender micro? I can send an OTA firmware if i manually press the reset button.
              but can i use the reboot command in MYScontroller? it doesn't seem to do anything when issued.

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

              @mvader

              Is it the default dualoptiboot bootloader? Then the bootloader itself does not support OTA FW. You need to put a sketch on it, that supports OTA. (Default sensebender micro sketches doesn't)

              M 1 Reply Last reply
              0
              • tbowmoT tbowmo

                @mvader

                Is it the default dualoptiboot bootloader? Then the bootloader itself does not support OTA FW. You need to put a sketch on it, that supports OTA. (Default sensebender micro sketches doesn't)

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

                @tbowmo said in 💬 Sensebender Micro:

                @mvader

                Is it the default dualoptiboot bootloader? Then the bootloader itself does not support OTA FW. You need to put a sketch on it, that supports OTA. (Default sensebender micro sketches doesn't)

                yes it's the default bootloader. yes i have OTA added to the sketch. it works if i reset the device via manual reset. but what i'd like to do is send the reboot command from myscontroller. but it seems to do nothing ever. does the bootloader support reboot? or is that something i also have to add to the sketch?

                situation: i have about 15 sensors all over the house. if i update, i'd like to be able to assign the firmware, and then issue the reboot command. so upon reboot, they take the assigned firmware. what i don't want to do is have to go to each one and manually press the reset button to get it to take the firmware. i'm sure it's healthier to run up and down 3 flights of stairs. but i'm lazy :)

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

                  @mvader

                  The sketch should support reboot, try sending I_REBOOT to one of your nodes (info can be found here, look under internal messages)

                  I haven't tried it myself yet, as I haven't touched my sensebender micros for ages..

                  1 Reply Last reply
                  0
                  • joaoabsJ Offline
                    joaoabsJ Offline
                    joaoabs
                    wrote on last edited by
                    #74

                    Hi,
                    Three questions regarding SenseBender Micro:

                    • What board should I configure in Arduino IDE in order to upload sketches? Would it be equivalent to Arduino mini pro, or is there any "board library" to load ?(Didn't find it, Woudn't it make sense to be included in the examples/Libraries pack?)...
                      (Found it: https://github.com/mysensors/ArduinoBoards . If you look between the photos above there is a simple link lost in the between)
                      MySensors Admins: Just a small suggestion: As it is now, - a simple link between photos is easily overlooked. Can't you place it near the specs where it should be more visible?

                    • It has an I2C bus for the SI7021, but it seems the ATSHA204A (which I believe its I2C also) is connected to another pin (a3). Does this mean it has two I2C buses?

                    • Can anyone confirm that the port that measures the battery voltage is A0?

                    Thanks,
                    Joaoabs

                    AnticimexA 1 Reply Last reply
                    0
                    • joaoabsJ joaoabs

                      Hi,
                      Three questions regarding SenseBender Micro:

                      • What board should I configure in Arduino IDE in order to upload sketches? Would it be equivalent to Arduino mini pro, or is there any "board library" to load ?(Didn't find it, Woudn't it make sense to be included in the examples/Libraries pack?)...
                        (Found it: https://github.com/mysensors/ArduinoBoards . If you look between the photos above there is a simple link lost in the between)
                        MySensors Admins: Just a small suggestion: As it is now, - a simple link between photos is easily overlooked. Can't you place it near the specs where it should be more visible?

                      • It has an I2C bus for the SI7021, but it seems the ATSHA204A (which I believe its I2C also) is connected to another pin (a3). Does this mean it has two I2C buses?

                      • Can anyone confirm that the port that measures the battery voltage is A0?

                      Thanks,
                      Joaoabs

                      AnticimexA Offline
                      AnticimexA Offline
                      Anticimex
                      Contest Winner
                      wrote on last edited by Anticimex
                      #75

                      @joaoabs we do not support I2C variant of atsha204a. Only single wire variant.

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

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

                        @joaoabs

                        It uses the internal vref to measure the battery voltage. Some of the theory is described here https://www.sciencetronics.com/greenphotons/?p=1521

                        1 Reply Last reply
                        0
                        • joaoabsJ Offline
                          joaoabsJ Offline
                          joaoabs
                          wrote on last edited by
                          #77

                          For the battery powering voltage measuring do you mean that this is not needed after all? (https://www.mysensors.org/build/battery#measuring-and-reporting-battery-level)
                          It would be just a matter of enabling the flag "#define BATT_SENSOR 199 " and no resistors needed?

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

                            @joaoabs

                            Yes, when you power it directly of f.ex. two AA batteries, then you can use the secret trick mentioned in that article that I linked to, for measuring battery voltage without external resistors.

                            1 Reply Last reply
                            0
                            • joaoabsJ Offline
                              joaoabsJ Offline
                              joaoabs
                              wrote on last edited by
                              #79

                              Sorry for the dummy question, but my SenseBender Micros came with a small white sticker on top of the Si7021 sensor (like in the pictures above). Is it supposed to be removed or to stay like that?

                              AnticimexA 1 Reply Last reply
                              0
                              • joaoabsJ joaoabs

                                Sorry for the dummy question, but my SenseBender Micros came with a small white sticker on top of the Si7021 sensor (like in the pictures above). Is it supposed to be removed or to stay like that?

                                AnticimexA Offline
                                AnticimexA Offline
                                Anticimex
                                Contest Winner
                                wrote on last edited by
                                #80

                                @joaoabs the datasheet for the device clarifies that I believe

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

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

                                  @joaoabs

                                  Just leave it on..

                                  1 Reply Last reply
                                  0
                                  • N Offline
                                    N Offline
                                    NailMan
                                    wrote on last edited by
                                    #82

                                    Hello!

                                    Help me understand why the sketches are not loaded in Sensebender Micro - there is a synchronization error:
                                    avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x82
                                    ....
                                    avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x82
                                    avrdude: stk500_recv(): programmer is not responding

                                    • FTDI connected via 3.3V jumper

                                    • Another device built on the SB Micro with SB bootloader is also not flashed with the same error, but on the PC of my friend, sketches successfully loaded into the device and on my PC are given the correct data when working sketch

                                    • device and serial port are selected correctly

                                    • mySensors Lib and device packs(AVR, SAMD) installed with standard lib and device managers(and also added path https://raw.githubusercontent.com/mysensors/ArduinoBoards/master/package_mysensors.org_index.json in the settings menu)

                                    • at the same time if I take a pure Pro Mini and load into it any sample sketch of mySensors package - it will successfully do it and will work.

                                    What am I doing wrong and how do I get the Sensebender Micro to take sketches?

                                    tbowmoT 1 Reply Last reply
                                    0
                                    • N NailMan

                                      Hello!

                                      Help me understand why the sketches are not loaded in Sensebender Micro - there is a synchronization error:
                                      avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x82
                                      ....
                                      avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x82
                                      avrdude: stk500_recv(): programmer is not responding

                                      • FTDI connected via 3.3V jumper

                                      • Another device built on the SB Micro with SB bootloader is also not flashed with the same error, but on the PC of my friend, sketches successfully loaded into the device and on my PC are given the correct data when working sketch

                                      • device and serial port are selected correctly

                                      • mySensors Lib and device packs(AVR, SAMD) installed with standard lib and device managers(and also added path https://raw.githubusercontent.com/mysensors/ArduinoBoards/master/package_mysensors.org_index.json in the settings menu)

                                      • at the same time if I take a pure Pro Mini and load into it any sample sketch of mySensors package - it will successfully do it and will work.

                                      What am I doing wrong and how do I get the Sensebender Micro to take sketches?

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

                                      @nailman

                                      Did you select the sensebender micro as target in Arduino? Is it the same FTDI device that is used on both computers?

                                      N 1 Reply Last reply
                                      0
                                      • tbowmoT tbowmo

                                        @nailman

                                        Did you select the sensebender micro as target in Arduino? Is it the same FTDI device that is used on both computers?

                                        N Offline
                                        N Offline
                                        NailMan
                                        wrote on last edited by
                                        #84

                                        @tbowmo
                                        Yes, of course, I chose the target device "Sensebender Micro -> "Atmega328p, 1mhz" and "Atmega328p, 8mhz"(for device (RGBW controller) based on SB Micro with 8Mhz quartz resonator).

                                        I tried three different FTDIs.

                                        With any other Arduino (with native loaders) there are no problems with these FTDI adapters.

                                        alexsh1A 1 Reply Last reply
                                        0
                                        • N NailMan

                                          @tbowmo
                                          Yes, of course, I chose the target device "Sensebender Micro -> "Atmega328p, 1mhz" and "Atmega328p, 8mhz"(for device (RGBW controller) based on SB Micro with 8Mhz quartz resonator).

                                          I tried three different FTDIs.

                                          With any other Arduino (with native loaders) there are no problems with these FTDI adapters.

                                          alexsh1A Offline
                                          alexsh1A Offline
                                          alexsh1
                                          wrote on last edited by
                                          #85

                                          @nailman At what Mhz does your RGBW Controller is running now?
                                          It seems to be the problem is in identifying the correct board.

                                          If I have a board running at 1Mhz and try to program it at 8Mhz, similar to your error would come up, i.e. not in sync

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


                                          11

                                          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