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 johnr

    Hi,

    I wonder if anyone modified the original sensebender sketch to include a door sensor?
    Do you need a pullup? If you have a sketch somewhere I would be happy if you could send/post it, as I have problem finding time to code right now.

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

    @johnr

    Here's one for a button, but shouldn't matter:

    https://forum.mysensors.org/topic/2887/sensebender-micro-button/2

    1 Reply Last reply
    0
    • J johnr

      Hi,

      I wonder if anyone modified the original sensebender sketch to include a door sensor?
      Do you need a pullup? If you have a sketch somewhere I would be happy if you could send/post it, as I have problem finding time to code right now.

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

      @johnr This is easy.

      // PIN = 2 or 3 only
       
      void setup {
        pinMode(PIN,INPUT);
        digitalWrite(PIN,HIGH);
      }
      

      This activates internal pull-up.
      The sensebender has got pinout of Pro Mini

      1 Reply Last reply
      0
      • T Offline
        T Offline
        timropp
        wrote on last edited by
        #506

        Well that didn't go well... assembling my first micro. Soldered on some pins for the FTDI connection, added power (2xAA holder), and soldered on the radio with cap. Then I put in batteries and brought up my domoticz page to see if it showed up. Started to smell something, looked down, and there's smoke coming from the battery holder. Grabbed the whole thing and yanked the wire free then dropped it in the sink. Not sure where I screwed up, but I sure shorted something!

        VeraEdge UI7 with Mysensors ethernet gateway

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

          :scream: Did you find the problem?

          1 Reply Last reply
          0
          • T timropp

            Well that didn't go well... assembling my first micro. Soldered on some pins for the FTDI connection, added power (2xAA holder), and soldered on the radio with cap. Then I put in batteries and brought up my domoticz page to see if it showed up. Started to smell something, looked down, and there's smoke coming from the battery holder. Grabbed the whole thing and yanked the wire free then dropped it in the sink. Not sure where I screwed up, but I sure shorted something!

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

            @timropp sounds like you shorted batteries somewhere

            1 Reply Last reply
            0
            • T Offline
              T Offline
              timropp
              wrote on last edited by
              #509

              Nope, didn't find the problem. Must be some solder that shorted the batteries out but I don't see it. Oh well... main problem is that was my only 2AA holder on hand, and it melted right through the end of it, so now I have to wait on more before I can try again. Bummer :)

              VeraEdge UI7 with Mysensors ethernet gateway

              1 Reply Last reply
              0
              • alexsh1A Offline
                alexsh1A Offline
                alexsh1
                wrote on last edited by
                #510

                You can feed it with just two wires connected to the USB FTDI TTL converter / programmer - have a look at this https://www.mysensors.org/hardware/micro
                Available Pins - GND, GND, VCC (on the right)

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

                  I am having an odd issue with one of my sensebender boards.
                  I have flashed 5 in a row, same sketch, same everything.
                  all look fine (and in english) in the serial monitor. but this one board displays different.
                  it does seem to work. but i can't figure out why it's showing up different in the monitor.
                  any ideas?

                  Óåîóåâåîäåò Íéãòï Æ× 1.5óåîä: 2-2-0-0 ó=255,ã=0,ô=17,ðô=0,ì=3,óç=0,óô=ïë:1.5
                  óåîä: 2-2-0-0 ó=255,ã=3,ô=6,ðô=1,ì=1,óç=0,óô=ïë:0
                  óåîóïò óôáòôåä, éä=2, ðáòåîô=0, äéóôáîãå=1
                   - Ïîìéîå!
                  óåîä: 2-2-0-0 ó=255,ã=3,ô=11,ðô=0,ì=17,óç=0,óô=ïë:Óåîóåâåîäåò Íéãòï
                  óåîä: 2-2-0-0 ó=255,ã=3,ô=12,ðô=0,ì=3,óç=0,óô=ïë:1.5
                  óåîä: 2-2-0-0 ó=1,ã=0,ô=6,ðô=0,ì=0,óç=0,óô=ïë:
                  óåîä: 2-2-0-0 ó=2,ã=0,ô=7,ðô=0,ì=0,óç=0,óô=ïë:
                  óåîä: 2-2-0-0 ó=3,ã=0,ô=1,ðô=0,ì=0,óç=0,óô=ïë:
                  óåîä: 2-2-0-0 ó=4,ã=0,ô=16,ðô=0,ì=0,óç=0,óô=ïë:
                  éóÍåôòéã: 0
                  ÔåíðÄéææ :174.85
                  ÈõíÄéææ  :154.00
                  Ô: 74.85
                  È: 54
                  óåîä: 2-2-0-0 ó=1,ã=1,ô=0,ðô=7,ì=5,óç=0,óô=ïë:74.8
                  óåîä: 2-2-0-0 ó=2,ã=1,ô=1,ðô=2,ì=2,óç=0,óô=ïë:54
                  óåîä: 2-2-0-0 ó=255,ã=3,ô=0,ðô=1,ì=1,óç=0,óô=ïë:97
                  ÏÔÁ Æ× õðäáôå åîáâìåä
                  óåîä: 2-2-0-0 ó=4,ã=1,ô=23,ðô=2,ì=2,óç=0,óô=ïë:99
                  Ìéçèô: 99
                  ÔåíðÄéææ :0.01
                  ˆõíÄéææ  :0.00
                  Ìéçèô: 99
                  
                  
                  tbowmoT 1 Reply Last reply
                  0
                  • M mvader

                    I am having an odd issue with one of my sensebender boards.
                    I have flashed 5 in a row, same sketch, same everything.
                    all look fine (and in english) in the serial monitor. but this one board displays different.
                    it does seem to work. but i can't figure out why it's showing up different in the monitor.
                    any ideas?

                    Óåîóåâåîäåò Íéãòï Æ× 1.5óåîä: 2-2-0-0 ó=255,ã=0,ô=17,ðô=0,ì=3,óç=0,óô=ïë:1.5
                    óåîä: 2-2-0-0 ó=255,ã=3,ô=6,ðô=1,ì=1,óç=0,óô=ïë:0
                    óåîóïò óôáòôåä, éä=2, ðáòåîô=0, äéóôáîãå=1
                     - Ïîìéîå!
                    óåîä: 2-2-0-0 ó=255,ã=3,ô=11,ðô=0,ì=17,óç=0,óô=ïë:Óåîóåâåîäåò Íéãòï
                    óåîä: 2-2-0-0 ó=255,ã=3,ô=12,ðô=0,ì=3,óç=0,óô=ïë:1.5
                    óåîä: 2-2-0-0 ó=1,ã=0,ô=6,ðô=0,ì=0,óç=0,óô=ïë:
                    óåîä: 2-2-0-0 ó=2,ã=0,ô=7,ðô=0,ì=0,óç=0,óô=ïë:
                    óåîä: 2-2-0-0 ó=3,ã=0,ô=1,ðô=0,ì=0,óç=0,óô=ïë:
                    óåîä: 2-2-0-0 ó=4,ã=0,ô=16,ðô=0,ì=0,óç=0,óô=ïë:
                    éóÍåôòéã: 0
                    ÔåíðÄéææ :174.85
                    ÈõíÄéææ  :154.00
                    Ô: 74.85
                    È: 54
                    óåîä: 2-2-0-0 ó=1,ã=1,ô=0,ðô=7,ì=5,óç=0,óô=ïë:74.8
                    óåîä: 2-2-0-0 ó=2,ã=1,ô=1,ðô=2,ì=2,óç=0,óô=ïë:54
                    óåîä: 2-2-0-0 ó=255,ã=3,ô=0,ðô=1,ì=1,óç=0,óô=ïë:97
                    ÏÔÁ Æ× õðäáôå åîáâìåä
                    óåîä: 2-2-0-0 ó=4,ã=1,ô=23,ðô=2,ì=2,óç=0,óô=ïë:99
                    Ìéçèô: 99
                    ÔåíðÄéææ :0.01
                    ˆõíÄéææ  :0.00
                    Ìéçèô: 99
                    
                    
                    tbowmoT Offline
                    tbowmoT Offline
                    tbowmo
                    Admin
                    wrote on last edited by
                    #512

                    @mvader

                    What baudrate are you using? It seems like it's to much off, for the ftdi to decode it correctly. Have you tried to lower it to, let's say 9600 baud? And does it still do this?

                    M 1 Reply Last reply
                    0
                    • tbowmoT tbowmo

                      @mvader

                      What baudrate are you using? It seems like it's to much off, for the ftdi to decode it correctly. Have you tried to lower it to, let's say 9600 baud? And does it still do this?

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

                      @tbowmo said:

                      @mvader

                      What baudrate are you using? It seems like it's to much off, for the ftdi to decode it correctly. Have you tried to lower it to, let's say 9600 baud? And does it still do this?

                      Serial.begin(115200);
                      I have not tried 9600, but i've done 5 today all the same code.. no problems.
                      i have 4 others deployed from when i first bought these (when they came out) same code for them as well..
                      could be a bum board..idk. when i fired it up, i could see it in the controller software though. so it does seem to work. it just gives me that in the serial monitor.. strange for sure :) I'll let you know how 9600 works out.

                      AnticimexA 1 Reply Last reply
                      0
                      • M mvader

                        @tbowmo said:

                        @mvader

                        What baudrate are you using? It seems like it's to much off, for the ftdi to decode it correctly. Have you tried to lower it to, let's say 9600 baud? And does it still do this?

                        Serial.begin(115200);
                        I have not tried 9600, but i've done 5 today all the same code.. no problems.
                        i have 4 others deployed from when i first bought these (when they came out) same code for them as well..
                        could be a bum board..idk. when i fired it up, i could see it in the controller software though. so it does seem to work. it just gives me that in the serial monitor.. strange for sure :) I'll let you know how 9600 works out.

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

                        @mvader what baffles me is that numbers seem to encode ok but alphabetical characters do not. You don't use some exotic ascii encoding in your terminal? (not likely if you can switch to a different SenseBender and get sane output I suppose)

                        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
                          #515

                          @mvader

                          115200 is on the edge of what is possible with the 8Mhz that the sensebender is using. And it's a uncalibrated RC oscillator that's in use. So this one might be a bit off to the lower side (run 7.5Mhz for example) which could throw off your serial port a bit.

                          (But as @Anticimex mentions, it does look weird that the numbers are readable..)

                          AnticimexA 1 Reply Last reply
                          0
                          • tbowmoT tbowmo

                            @mvader

                            115200 is on the edge of what is possible with the 8Mhz that the sensebender is using. And it's a uncalibrated RC oscillator that's in use. So this one might be a bit off to the lower side (run 7.5Mhz for example) which could throw off your serial port a bit.

                            (But as @Anticimex mentions, it does look weird that the numbers are readable..)

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

                            @tbowmo @mvader it can still be a timing problem. Numbers in the ascii table have the most significant bits zero (they are in the range 0x3x and below) and since regular UART protocols transmit lsb first, the first bits may be within legal timing while the later bits are not, so the higher the ascii value, the higher the risk for corruption.

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

                            1 Reply Last reply
                            1
                            • FotoFieberF Offline
                              FotoFieberF Offline
                              FotoFieber
                              Hardware Contributor
                              wrote on last edited by
                              #517

                              Playing with 2.0 I wanted to upgrade my sensebenders but I didn't find the sketch (neither in the main distribution nor in the examples folder).

                              Is there a version 2.0 compatible sketch?

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

                                Yep, it was moved to the Sensebender repo during the 2.0 release:

                                https://github.com/mysensors/SensebenderMicro/blob/master/Arduino/SensebenderMicro/SensebenderMicro.ino

                                1 Reply Last reply
                                0
                                • FotoFieberF FotoFieber

                                  Playing with 2.0 I wanted to upgrade my sensebenders but I didn't find the sketch (neither in the main distribution nor in the examples folder).

                                  Is there a version 2.0 compatible sketch?

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

                                  @FotoFieber it is low located in the SenseBender repo in GitHub

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

                                  FotoFieberF 1 Reply Last reply
                                  0
                                  • AnticimexA Anticimex

                                    @FotoFieber it is low located in the SenseBender repo in GitHub

                                    FotoFieberF Offline
                                    FotoFieberF Offline
                                    FotoFieber
                                    Hardware Contributor
                                    wrote on last edited by
                                    #520

                                    @Anticimex
                                    Thx. This is an old version. I found a newer on my hard drive (old development branch). As I do only need temp/hum, I reduced the sketch and it is working fine.

                                    AnticimexA 1 Reply Last reply
                                    0
                                    • FotoFieberF FotoFieber

                                      @Anticimex
                                      Thx. This is an old version. I found a newer on my hard drive (old development branch). As I do only need temp/hum, I reduced the sketch and it is working fine.

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

                                      @FotoFieber @tbowmo isn't the one in the SenseBender repo supposed to be the latest&greatest?

                                      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
                                        #522

                                        @Anticimex @FotoFieber

                                        Yup, it was moved over from development branch on the release night. So should be the latest and greatest

                                        1 Reply Last reply
                                        0
                                        • J Offline
                                          J Offline
                                          jovo
                                          wrote on last edited by
                                          #523

                                          Hi!
                                          I am in process of upgrading my Sensebenders to V2.0 and like to enable the OTA function.

                                          Who can give me some pointers on the capabilities of OTA for this Sensebender Micro board?
                                          I know that has external flash for this purpose, but i am stuggling a bit finding how to use it.
                                          So I am keen to read information on dependencies of the Sensebender sketch as well as the controller options.
                                          My environment:
                                          6x Sensebender
                                          Wifi based Gateway
                                          Domoticz as controller

                                          Things I like to know:

                                          • Is my sensebender shipped with optiboot bootloader? (have them about 1 year now)?
                                          • do i require special Gateway software? (i noticed a sketch called something like GatewayESP8266OTA)
                                          • what can i expect from Domoticz? probably not much, so do i need to connect to another controller (e.g. MYSController) to perform an update?
                                          • What controller is advised for the standard bootloader (optiboot bootloader)?

                                          I am sure those things are discussed in the past, but I was unable to find it.
                                          Would be great if somebody can share a howto or wiki on this topic.

                                          thanks in advance

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


                                          8

                                          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