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. 986/5000 first steps with battery node

986/5000 first steps with battery node

Scheduled Pinned Locked Moved Troubleshooting
6 Posts 4 Posters 71 Views 4 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.
  • S Offline
    S Offline
    sindrome73
    wrote on last edited by
    #1

    As the title suggests, I am starting to take the first steps to develop some battery-powered nodes, and I started with some work already done found here on the forum.
    I have some Atmel 328P barebones on which following this:
    link text
    procedure and with an arduino Uno and Arduino IDE, I managed to burn an 8Mhz Bootloader with internal oscillator, and to load a simple scketch of a motion sensor, which should work on battery power, and during sleep, it has an absorption of 0 , 19mA (maybe a little high ???).

    At this point reading this discussion: link text

    it reads that I should set the fuses in order to disable the BOD, which if I understand correctly serves to make my circuit work even with lower voltages !!
    Someone tells me the precise setting that I have to give, so I modify my fuses with AVRDUDESS ???

    Then another thing, when I connect the serial monitor through my arduino Uno that I use to load the sketches I get this Why ???
    IMG_20200613_164614.jpg

    skywatchS 1 Reply Last reply
    0
    • S sindrome73

      As the title suggests, I am starting to take the first steps to develop some battery-powered nodes, and I started with some work already done found here on the forum.
      I have some Atmel 328P barebones on which following this:
      link text
      procedure and with an arduino Uno and Arduino IDE, I managed to burn an 8Mhz Bootloader with internal oscillator, and to load a simple scketch of a motion sensor, which should work on battery power, and during sleep, it has an absorption of 0 , 19mA (maybe a little high ???).

      At this point reading this discussion: link text

      it reads that I should set the fuses in order to disable the BOD, which if I understand correctly serves to make my circuit work even with lower voltages !!
      Someone tells me the precise setting that I have to give, so I modify my fuses with AVRDUDESS ???

      Then another thing, when I connect the serial monitor through my arduino Uno that I use to load the sketches I get this Why ???
      IMG_20200613_164614.jpg

      skywatchS Offline
      skywatchS Offline
      skywatch
      wrote on last edited by
      #2

      @sindrome73 said

      Then another thing, when I connect the serial monitor through my arduino Uno that I use to load the sketches I get this Why ???

      Probably you have not set the correct baud rate for the device you are connecting. If it is 5V then usually it is 115200 and if it is 3.3V then it should be 38400.

      1 Reply Last reply
      0
      • BearWithBeardB Offline
        BearWithBeardB Offline
        BearWithBeard
        wrote on last edited by
        #3

        Turning off BOD will save you ~25 µA. AFAIK, if you are going to use MySensors, this is automatically handled in software for you. It turns BOD off before it goes to sleep, which keeps the current consumption low, and reactivates it on wake, which ensures stability.

        I wouldn't recommend messing with the fuses manually right away, if it's not neccessary. If something goes wrong or you accidentally set the wrong bit, you risk "bricking" your MCU, which might only be recoverable using a high voltage programmer. Anyway, here's a fuse calculator in case you may need it.

        I recommend making yourself familiar with the megaAVR datasheet if you are diverting away from preconfigured Arduinos - it also includes expected current consumptions (see chapters 29, 35) . Nick Gammon has a great guide regarding power consumption, making the topic far more accessible for beginners.

        Regarding your serial issues: A baud rate of 115200 is rather high for an 8MHz ATmega328P. Try setting it to 57600, 38400 or even as low as 9600. Both in the code and the serial monitor - they have to match up!

        1 Reply Last reply
        1
        • N Offline
          N Offline
          niclas
          wrote on last edited by niclas
          #4

          For manipulating fuses I use the minicore board definitions by mcudude( Google for the GitHub) in Arduino IDE. It's really nice to be able to set the BOD level. It's also handy when writing to atmega 328pb if you try that in the future. One of the big things drawing current is the analog converter. Disabling it saved quite a lot if I remember correctly.

          What is the current draw of the sensor itself?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sindrome73
            wrote on last edited by
            #5

            @niclas said in 986/5000 first steps with battery node:

            le defi

            currently the node absorbs 19mA, it seems a bit high !!
            As a motion sensor I am using an sr501, without removing the voltage converter on board !!
            If you can give me some more info on Minicore and how to disable the analog converter ??

            N 1 Reply Last reply
            0
            • S sindrome73

              @niclas said in 986/5000 first steps with battery node:

              le defi

              currently the node absorbs 19mA, it seems a bit high !!
              As a motion sensor I am using an sr501, without removing the voltage converter on board !!
              If you can give me some more info on Minicore and how to disable the analog converter ??

              N Offline
              N Offline
              niclas
              wrote on last edited by niclas
              #6

              @sindrome73 Like @BearWithBeard wrote, reading Nick Gammons guide is a must! I read it and used most of the stuff in there when I was making my battery node. The analog converter is super easy to turn of, ADCSRA = 0 does it. It's also in the guide by Gammon.

              Regarding the Minicore definitions, see here: https://github.com/MCUdude/MiniCore
              Just follow the "how to install" and when it's added in Arduino IDE you select the relevant options in the Tools menu under "board". Then select your programmer (also in tools menu) and finally "Burn bootloader".

              Edit:
              Did a quick google on the sensor. Found this: https://www.iot-experiments.com/pir-sensors-hc-sr501/
              I just took a quick glance but it seems relevant.

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


              16

              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