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. Troubleshooting
  3. [SOLVED] Sensebender Micro Baud Rate Issue.

[SOLVED] Sensebender Micro Baud Rate Issue.

Scheduled Pinned Locked Moved Troubleshooting
13 Posts 3 Posters 2.1k Views 3 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.
  • R Offline
    R Offline
    RWoerz
    wrote on last edited by
    #3

    Sorry that's 115200.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      RWoerz
      wrote on last edited by
      #4

      No matter what I do I can't change the baud rate it must be set in the bootloader. Not sure why but now I'm getting 3 extra lines on bootup and not the trash at the end of the pag but so far I can't get beyond the startup page.

      Final 3 lines.

      4392 MCO:BGN:STP
      Sensebender Micro FW 1.4 - Online!
      isMetric: 0

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RWoerz
        wrote on last edited by
        #5

        So lets forget about the baud rate issue for now. At this point it looks like the program stops before it gets to the Setup routine. How about a little help please.

        YveauxY 1 Reply Last reply
        0
        • R RWoerz

          So lets forget about the baud rate issue for now. At this point it looks like the program stops before it gets to the Setup routine. How about a little help please.

          YveauxY Offline
          YveauxY Offline
          Yveaux
          Mod
          wrote on last edited by
          #6

          @RWoerz forget about baud rates higher than 115200. Your board is running from internal oscillator, which is not very stable compared to crystal oscillator.
          What arduino board do you select when programming?
          I would remove the serial.begin() from your code and see if it continues to run. There is already some radio traffic with the gateway in your logging so that part (the hardest) seems to work fine :+1:

          http://yveaux.blogspot.nl

          1 Reply Last reply
          0
          • R Offline
            R Offline
            RWoerz
            wrote on last edited by
            #7

            Yes I have several other sensors working. My solar heating and 2 stage evaporative cooling system has 20 sensors on one Mega and it works fine. I just wished my Vera worked as well as my sensors. It goes down one or more times a day and sometimes it doesn't come back. I've had it replaced so who knows.

            Yes it worked without the serial.begin(). The board I pick in the Arduino IDE was a Sensebender Micro with the Atmega328 8MHz. There's no baud rate to chose from. Sometimes I get the last three line and sometimes I get junk. Might be because on the lack of the crystal on the CPU. Should I be looking into the bootloader (BIOS for us old folks) to try and change the baud rate?

            It doesn't appear to get as far as the setup routine and because I haven't figured out how to do a Serial.println before that it's hard to figure out where it gets lost. I'm used to having breakpoints and other tools to watch programs run. If I should be using something other than the Arduino IDE (that's free) please let me know. Back in another life I wrote a lot of drivers in assemble to go with I/O cards I was designing.

            BTW thanks for the help!!! I get tired of only talking to that other guy in my head.

            YveauxY 1 Reply Last reply
            0
            • R RWoerz

              Yes I have several other sensors working. My solar heating and 2 stage evaporative cooling system has 20 sensors on one Mega and it works fine. I just wished my Vera worked as well as my sensors. It goes down one or more times a day and sometimes it doesn't come back. I've had it replaced so who knows.

              Yes it worked without the serial.begin(). The board I pick in the Arduino IDE was a Sensebender Micro with the Atmega328 8MHz. There's no baud rate to chose from. Sometimes I get the last three line and sometimes I get junk. Might be because on the lack of the crystal on the CPU. Should I be looking into the bootloader (BIOS for us old folks) to try and change the baud rate?

              It doesn't appear to get as far as the setup routine and because I haven't figured out how to do a Serial.println before that it's hard to figure out where it gets lost. I'm used to having breakpoints and other tools to watch programs run. If I should be using something other than the Arduino IDE (that's free) please let me know. Back in another life I wrote a lot of drivers in assemble to go with I/O cards I was designing.

              BTW thanks for the help!!! I get tired of only talking to that other guy in my head.

              YveauxY Offline
              YveauxY Offline
              Yveaux
              Mod
              wrote on last edited by
              #8

              @RWoerz said in Sensebender Micro Baud Rate Issue.:

              I get tired of only talking to that other guy in my head.

              Well, at least it keeps you busy ;-)

              If you paster the serial log in the log parser, you can see the library finishes setup and then enters the setup() function:
              see here

              After that the output gets garbled, due to the new baudrate. This baudrate is set in the setup(), so it definately gets there!

              If you get no output anymore on the serial console, you could also try toggling a LED or so, to get some feedback on the state of the Arduino.

              Debugging on Arduino is rather oldskool indeed...

              http://yveaux.blogspot.nl

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

                @RWoerz

                Have you chosen the Sensebender Micro (8Mhz) variant when compiling for the sensebender?

                1 Reply Last reply
                0
                • R Offline
                  R Offline
                  RWoerz
                  wrote on last edited by
                  #10

                  My grandfather told me not to get old you forget stuff. Sorry to say I lead you on a wild goose chase. Thanks for the help ends up I had an Arduino Micro hooked up on my bench I'd forgotten about. Looks like if you define it as a Sensebender Micro it will only talk to you at 230400, go figure.

                  Thanks again. I know this will cost me some cred points but I hope I won't lose my secret handshake.

                  Thanks again guys.

                  1 Reply Last reply
                  0
                  • R Offline
                    R Offline
                    RWoerz
                    wrote on last edited by
                    #11

                    Sorry that was a Nano.

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

                      The nano is running at 16Mhz, while the sensebender micro is running at 8MHZ.
                      So when you program the nano when you have chosen the sensebender as target, everything runs twice as fast as expected, hence 230.4k instead of 115.2k for the serial port.

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        RWoerz
                        wrote on last edited by
                        #13

                        Thanks for the explanation. Makes perfect sense. In the past if there was a processor mismatch the programs would not download.

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


                        23

                        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