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.7k 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.
  • tbowmoT Offline
    tbowmoT Offline
    tbowmo
    Admin
    wrote on last edited by
    #17

    @Saimen

    External libraries (and examples depending on them) have been moved to a separate repository https://github.com/mysensors/MySensorsArduinoExamples.

    This was done because we can not have the external libraries in the main repository now that we are in the arduino library manager.

    1 Reply Last reply
    1
    • SaimenS Offline
      SaimenS Offline
      Saimen
      wrote on last edited by
      #18

      @tbowmo Thank you very much for your response and explaining.

      1 Reply Last reply
      0
      • fearoffishF Offline
        fearoffishF Offline
        fearoffish
        wrote on last edited by
        #19

        Anyone managed to get this working with PlatformIO (through Atom) yet? I'm struggling.

        marceltrapmanM 1 Reply Last reply
        0
        • phildeferP Offline
          phildeferP Offline
          phildefer
          wrote on last edited by
          #20

          @tbowmo

          I upgrade my sensebender firmware with the new one (V1.4), and i have a question.

          In the sketch (https://www.mysensors.org/hardware/micro) the line

          //#include <avr/power.h>
          

          is commented.

          Is it "normal" or is it a mistake ?

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

            @phildefer

            I think it's a leftover from a cleanup at some point in time. Not used anymore.. The MySensors core library is handling the sleep mechanism now.

            1 Reply Last reply
            0
            • denisvdbD Offline
              denisvdbD Offline
              denisvdb
              wrote on last edited by
              #22

              To reprogram the sketch in a sensbender micro, wich board must be selected in the arduino prg?
              I have problem with inclusion in jeedom, the command are not loaded.
              thx

              1 Reply Last reply
              0
              • fearoffishF fearoffish

                Anyone managed to get this working with PlatformIO (through Atom) yet? I'm struggling.

                marceltrapmanM Offline
                marceltrapmanM Offline
                marceltrapman
                Mod
                wrote on last edited by
                #23

                @fearoffish did you manage to get this working?
                And, if so, what was the issue?

                I am looking into changing to PlatformIO on Atom or even CLion...

                Fulltime Servoy Developer
                Parttime Moderator MySensors board

                I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
                I have a FABtotum to print cases.

                1 Reply Last reply
                0
                • loic13L Offline
                  loic13L Offline
                  loic13
                  wrote on last edited by
                  #24

                  Hi, I'm getting this error message when compiling the sketch with the 2.1.1 MySensors library:
                  SensebenderMicro:168: error: 'getConfig' was not declared in this scope
                  isMetric = getConfig().isMetric;

                  I just commented out the line as workaround, but not sure that its correct.

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

                    Hmm.. The api was recently changed to getControllerConfig().isMetric;

                    I'll update the example.

                    1 Reply Last reply
                    0
                    • loic13L Offline
                      loic13L Offline
                      loic13
                      wrote on last edited by
                      #26

                      Thank you.

                      1 Reply Last reply
                      0
                      • T Offline
                        T Offline
                        Toyman
                        wrote on last edited by
                        #27

                        How difficult is to replace 0402 components with 0603 or 0804 components in Eagle? I am too old for 0402 soldering :-)))

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

                          @Toyman

                          Not that hard, but you'll probably need to redesign the board, to get room for the larger components.

                          Another option is to order the board pre-assembled from our partner, itead studio

                          1 Reply Last reply
                          0
                          • martinhjelmareM Offline
                            martinhjelmareM Offline
                            martinhjelmare
                            Plugin Developer
                            wrote on last edited by
                            #29

                            I've tested to upload a sketch to the Sensebender Micro using platformio.

                            Put the following JSON into a json file in a folder named boards either in the MySensors library folder (your project in platformio), or somewhere else on the search path. Use the name of the json file in platformio.ini in the board setting. See for more info:
                            http://docs.platformio.org/en/latest/platforms/creating_board.html

                            • Create a folder named boards in MySensors project folder.
                            • Create a file in boards named sensebendermicro8MHz.json.
                            {
                              "build": {
                                "core": "arduino",
                                "extra_flags": "-DARDUINO_ARCH_AVR -DARDUINO_AVR_PRO",
                                "f_cpu": "8000000L",
                                "mcu": "atmega328p",
                                "variant": "standard"
                              },
                              "frameworks": [
                                "arduino"
                              ],
                              "fuses": {
                                "efuse": "0x06",
                                "hfuse": "0xD2",
                                "lfuse": "0xE2",
                                "lock": "0x3F"
                              },
                              "name": "Sensebender Micro (3.3V, 8 MHz)",
                              "upload": {
                                "maximum_ram_size": 2048,
                                "maximum_size": 30720,
                                "protocol": "arduino",
                                "require_upload_port": true,
                                "speed": 57600
                              },
                              "url": "https://github.com/mysensors/SensebenderMicro",
                              "vendor": "MySensors"
                            }
                            
                            • Add an env in platformio.ini.
                            [env:sensebendermicro8MHz]
                            platform = atmelavr
                            framework = arduino
                            board = sensebendermicro8MHz
                            lib_deps = MySensors
                            
                            • Compile sketch.
                            • Upload sketch.

                            I think I've got the settings correct, but it was the first time I did this. But it's tested and works as far as I can see.

                            Should we add a JSON file to one of the mysensors repos on github?

                            1 Reply Last reply
                            3
                            • openhardware.ioO openhardware.io

                              https://www.mysensors.org/view/1/Sensebender-Micro

                              marceltrapmanM Offline
                              marceltrapmanM Offline
                              marceltrapman
                              Mod
                              wrote on last edited by
                              #30

                              I have a bunch of W25X40CLSNIG-ND lying around.
                              They have the same size and same layout as far as I can see.

                              Is my thinking correct that I should be able to simply replace the AT25DF512C-SSHN-B, change the sketch and use it?

                              Fulltime Servoy Developer
                              Parttime Moderator MySensors board

                              I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
                              I have a FABtotum to print cases.

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

                                @marceltrapman

                                If it's a jedec compatible flash, then you should be able to swap.. But what is the usecase of a larger flash? You can't execute code in the external flash.. So for OTA you still only have a bit under 32Kbyte usefull space..

                                marceltrapmanM 1 Reply Last reply
                                0
                                • tbowmoT tbowmo

                                  @marceltrapman

                                  If it's a jedec compatible flash, then you should be able to swap.. But what is the usecase of a larger flash? You can't execute code in the external flash.. So for OTA you still only have a bit under 32Kbyte usefull space..

                                  marceltrapmanM Offline
                                  marceltrapmanM Offline
                                  marceltrapman
                                  Mod
                                  wrote on last edited by marceltrapman
                                  #32

                                  @tbowmo no case at all, just that I have them and otherwise probably won't use them..

                                  Fulltime Servoy Developer
                                  Parttime Moderator MySensors board

                                  I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
                                  I have a FABtotum to print cases.

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

                                    To reprogram the sketch in a sensbender micro, wich processor frequency do I choose?

                                    After choosing Board "Sensebender Micro", the menu in Arduino 1.6.12 has choice Processor "Atmega328 8MHz" and "Atmega328 1MHz".
                                    My code seems to be executed equally fine with both settings.
                                    But the Arduino Serial Monitor not:

                                    If I choose the 1MHz version, the Serial monitor only produces garbage, whatever setting I choose for baud (in the sketch and in the serial monitor UI).

                                    If I choose the 8MHz version, the serial monitor works fine.

                                    I am confused. The Sensebender is a 1MHz device, isn't it? Is it able to run on 8MHz too?

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

                                      @Michiel-van-der-Wulp

                                      No, it runs at 8Mhz. It is asleep most of the time, so running at 8Mhz is actually more battery conserving, than running at 1Mhz (in theory), as shown in calculations over in this post. This is due to the shorter time powered on, when running at 8Mhz, compared to running at 1Mhz.

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

                                        OK, I understand.
                                        My confusion was caused by the second sentence at https://www.mysensors.org/hardware/micro : "... it operates at 1Mhz ..."
                                        That's a mistake then?

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

                                          @Michiel-van-der-Wulp

                                          Yes, sorry that was a false statement. I have modified the description, so that it now states that the Micro is running at 8Mhz.

                                          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.1k

                                          Posts


                                          Copyright 2025 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