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] Trash in serial monitor when battery powering... (trying to troubleshoot a hang)

[SOLVED] Trash in serial monitor when battery powering... (trying to troubleshoot a hang)

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 6 Posters 2.8k Views 6 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.
  • stevebusS Offline
    stevebusS Offline
    stevebus
    wrote on last edited by Yveaux
    #1

    Hi all,

    I'm still trying to solve the hangs that I described in http://forum.mysensors.org/topic/2841/mysensor-hang-on-gw-send-and-possibly-roasting-radios

    however, I have a separate question. I'm trying to hook the Mini up to the serial monitor, while still powered by battery. so have I my FTDI USB cable plugged into the computer, and then just the Tx/Rx lines connected to the Tx/Rx lines on the mini. Then, separately, I hook my batteries (two AA's) to the GND and VCC pins on the Mini. I get gobblegook in the serial monitor. I know the settings are right (board type, baud rate, etc), because if I pull the battery, and run wires from the GND and VCC plugs on the FTDI cable (to GND and RAW), and don't change anything else, I get good data in the serial mon.

    I have cut the power LED as outlined on the "battery powering" page, but haven't disconnected the regulator yet.

    This is all with fresh batteries (3.19 V across them).

    So my questions:

    1. if battery powering, is the VCC pin the right place to connect the positive battery lead?
    2. any reason why I get the trash on the serial line vs. real data when powered via the VCC pin by battery vs. 5V into the raw pin?
    3. what is the lowest voltage the batteries can get to and this thing still work? (unrelated to this issue, but curious).

    Thanks,

    --Steve

    Vera Edge/UI7; mysensors; Arduino's and RPIs; data posted to Azure for an IoT 'dashboard' of my house

    Opinions expressed here are my own and do not necessarily reflect Microsoft's feelings on a given topic :-)

    1 Reply Last reply
    0
    • F Offline
      F Offline
      flopp
      wrote on last edited by flopp
      #2
      1. Correct
      2. Isn't the lowest voltage for a Mini 3.3V?
      3. See 2
      1 Reply Last reply
      0
      • L Offline
        L Offline
        LastSamurai
        Hardware Contributor
        wrote on last edited by
        #3

        Did you connect grounds? Otherwise you will only get garbage.
        Also the pro mini works with less than 3.3v (depending on the fuse settings) down to 1.8V as far as I remember. Take a look at the manual.

        1 Reply Last reply
        0
        • stevebusS Offline
          stevebusS Offline
          stevebus
          wrote on last edited by
          #4

          thanks for the reply... there are stories including the web site (http://www.mysensors.org/build/battery) of folks powering mysensors with Minis from two AAs, which will never reach 3.3V, so there has to be some tolerance below that in which everything still works (and even my sensor works, it just hangs after 12 hours or so).

          So 3.3V can't be the minimum. Must be something lower.

          Vera Edge/UI7; mysensors; Arduino's and RPIs; data posted to Azure for an IoT 'dashboard' of my house

          Opinions expressed here are my own and do not necessarily reflect Microsoft's feelings on a given topic :-)

          1 Reply Last reply
          0
          • stevebusS Offline
            stevebusS Offline
            stevebus
            wrote on last edited by
            #5

            good question, @LastSamurai .. I don't think I did. will check that when I get back to my machine.

            Vera Edge/UI7; mysensors; Arduino's and RPIs; data posted to Azure for an IoT 'dashboard' of my house

            Opinions expressed here are my own and do not necessarily reflect Microsoft's feelings on a given topic :-)

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

              I think the brown out detection will reset the pro mini 3.3 V at around 2.8 V, with "default" fuse settings. You can change the fuse settings to get around that. I'm no expert in these matters but there are plenty of posts in the forum about this and a couple of guides.

              1 Reply Last reply
              0
              • mfalkviddM Offline
                mfalkviddM Offline
                mfalkvidd
                Mod
                wrote on last edited by mfalkvidd
                #7

                @martinhjelmare is correct, 2.8V is where the brown out detection kicks in by default. The datasheet figure 35-2. ATmega328P: Active Supply Current vs. Frequency (1MHz - 20MHz) has information on which voltage levels different clock frequencies require (8MHz is only guaranteed to work down to 2.7V, at 4MHz it can be used down to 1.8V). The nrf is rated for minimum 1.9V.

                1 Reply Last reply
                0
                • stevebusS Offline
                  stevebusS Offline
                  stevebus
                  wrote on last edited by
                  #8

                  Thanks all,

                  @LastSamurai - good catch on bonding the grounds. totally missed that. brain fart on my part. Getting good data in serial mon now.

                  @martinhjelmare and @mfalkvidd - thanks. I thought it was something like that. While the hang described in the original thread occurs regardless of power source (even powered from PC) and appears to be a separate issue, I did see some different erratic behavior earlier and the batteries measured at 2.91V. So probably getting close to threshold or something. And maybe it gets drug down when the radio transmits or the DHT11 reads or something, resulting in erratic behavior.

                  Vera Edge/UI7; mysensors; Arduino's and RPIs; data posted to Azure for an IoT 'dashboard' of my house

                  Opinions expressed here are my own and do not necessarily reflect Microsoft's feelings on a given topic :-)

                  1 Reply Last reply
                  1
                  • T Offline
                    T Offline
                    ToniA
                    wrote on last edited by ToniA
                    #9

                    Are you using the 115200 baud rate (I guess you are)? Try lowering the baud rate down to 38400 if you are running on 8 MHz. On 1 MHz you may need to go down to 4800. Well, this doesn't explain why you get total garbage, but at 115200 you get corrupted characters every once and a while, frequently enough to make serial transfer from PC to Arduino a mess.

                    See these tables:
                    http://wormfood.net/avrbaudcalc.php?postclock=8&hidetables=1
                    http://wormfood.net/avrbaudcalc.php?postclock=1&hidetables=1

                    For the same reason you can't use Sensebender or Pro Mini 3.3V as the serial gateway, unless you set the baud rate down to something like 38400.

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


                    13

                    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