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. My Project
  3. My Slim 2AA Battery Node

My Slim 2AA Battery Node

Scheduled Pinned Locked Moved My Project
498 Posts 71 Posters 342.4k Views 69 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.
  • F Offline
    F Offline
    flopp
    wrote on last edited by
    #135

    There is no crystal?

    I haven't used Atmega328P as standalone but I have read that you need a crystal.

    m26872M 1 Reply Last reply
    0
    • F flopp

      There is no crystal?

      I haven't used Atmega328P as standalone but I have read that you need a crystal.

      m26872M Offline
      m26872M Offline
      m26872
      Hardware Contributor
      wrote on last edited by m26872
      #136

      @flopp There's an internal 8MHz xtal in the uC. Infact often default set to be used by factory "fuse" settings. It's not as ambient condition stable and accurate as an external crystal, but quite good enough for our application.

      F 1 Reply Last reply
      0
      • m26872M m26872

        @flopp There's an internal 8MHz xtal in the uC. Infact often default set to be used by factory "fuse" settings. It's not as ambient condition stable and accurate as an external crystal, but quite good enough for our application.

        F Offline
        F Offline
        flopp
        wrote on last edited by
        #137

        @m26872 thanks

        1 Reply Last reply
        0
        • F Offline
          F Offline
          flopp
          wrote on last edited by flopp
          #138

          What about these pF caps, why not use SMD tantalum instead of Solid electrolyte with legs?

          Or can I use ATmega without caps, since I dont have an external crystal?

          m26872M 2 Replies Last reply
          0
          • F flopp

            What about these pF caps, why not use SMD tantalum instead of Solid electrolyte with legs?

            Or can I use ATmega without caps, since I dont have an external crystal?

            m26872M Offline
            m26872M Offline
            m26872
            Hardware Contributor
            wrote on last edited by
            #139

            @flopp I doubt there are any electrolytes in the pF range seen here. If you mean the pF caps in the example pictures, they are not part of the Slim Node base concept and just a random choice I did for myself. If you mean all the 100nF caps in the base concept, it's a matter of the "smd free" design criteria I apply from time to time.

            F 1 Reply Last reply
            0
            • F flopp

              What about these pF caps, why not use SMD tantalum instead of Solid electrolyte with legs?

              Or can I use ATmega without caps, since I dont have an external crystal?

              m26872M Offline
              m26872M Offline
              m26872
              Hardware Contributor
              wrote on last edited by
              #140

              @flopp ... or if you refer to the standard pair of 22pF caps used when there is an external crystal - no, you wont need them.

              F 1 Reply Last reply
              0
              • m26872M m26872

                @flopp I doubt there are any electrolytes in the pF range seen here. If you mean the pF caps in the example pictures, they are not part of the Slim Node base concept and just a random choice I did for myself. If you mean all the 100nF caps in the base concept, it's a matter of the "smd free" design criteria I apply from time to time.

                F Offline
                F Offline
                flopp
                wrote on last edited by
                #141

                @m26872 said:

                @flopp I doubt there are any electrolytes in the pF range seen here. If you mean the pF caps in the example pictures, they are not part of the Slim Node base concept and just a random choice I did for myself. If you mean all the 100nF caps in the base concept, it's a matter of the "smd free" design criteria I apply from time to time.

                OK. Yes, I saw that there was cap in pictures.

                1 Reply Last reply
                0
                • m26872M m26872

                  @flopp ... or if you refer to the standard pair of 22pF caps used when there is an external crystal - no, you wont need them.

                  F Offline
                  F Offline
                  flopp
                  wrote on last edited by
                  #142

                  @m26872 said:

                  @flopp ... or if you refer to the standard pair of 22pF caps used when there is an external crystal - no, you wont need them.

                  OK, perfect

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    meddie
                    wrote on last edited by meddie
                    #143

                    Hi together,

                    as first i have to say, its a nice node, that you build.
                    So i tried to build one. I ordered an atmega 328p. Flashed the bootloader from the forum. This is the boards.txt:

                    atmega328_1mhz_4800baud.name=ATmega328 on a breadboard 1MHz internal clock, fast start, 1.8V BOD, 4800baud upload
                    
                    atmega328_1mhz_4800baud.upload.protocol=arduino
                    atmega328_1mhz_4800baud.upload.maximum_size=32256
                    atmega328_1mhz_4800baud.upload.speed=4800
                    
                    atmega328_1mhz_4800baud.bootloader.low_fuses=0x42
                    atmega328_1mhz_4800baud.bootloader.high_fuses=0xDE
                    atmega328_1mhz_4800baud.bootloader.extended_fuses=0x06
                    
                    atmega328_1mhz_4800baud.bootloader.file=atmega/atmega328_1b.hex
                    atmega328_1mhz_4800baud.bootloader.unlock_bits=0x3F
                    atmega328_1mhz_4800baud.bootloader.lock_bits=0x2F
                    
                    atmega328_1mhz_4800baud.build.mcu=atmega328p
                    atmega328_1mhz_4800baud.build.f_cpu=1000000L
                    atmega328_1mhz_4800baud.build.core=arduino:arduino
                    atmega328_1mhz_4800baud.build.variant=arduino:standard
                    
                    
                    atmega328_1mhz_4800baud.bootloader.tool=arduino:avrdude
                    atmega328_1mhz_4800baud.upload.tool=arduino:avrdude
                    

                    Now i have measured the current draw, and the arduino alone draws 6.8mA (without crystal, nrf ...)
                    I tried some sketches, (binaryswitchsleepsensor) but the current is not really gone down.
                    The only sketch is this:

                    // **** INCLUDES *****
                    #include "LowPower.h"
                    
                    void setup()
                    {
                        // No setup is required for this library
                    }
                    
                    void loop() 
                    {
                        // Enter power down state for 8 s with ADC and BOD module disabled
                        LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);  
                        
                        // Do something here
                        // Example: Read sensor, data logging, data transmission.
                    }
                    

                    With this sketch is the current 0.02mA

                    OK, 0.02mA is not bad, but when i read that some of you have few µa, i dont understand why the current on my atmega is so "high"

                    Can somebody tell me what bootloader is good, wich fuses are good. And maybe what i have to do to get the current so small as possble

                    Thank you very much
                    Greets Eddie

                    m26872M 1 Reply Last reply
                    0
                    • M meddie

                      Hi together,

                      as first i have to say, its a nice node, that you build.
                      So i tried to build one. I ordered an atmega 328p. Flashed the bootloader from the forum. This is the boards.txt:

                      atmega328_1mhz_4800baud.name=ATmega328 on a breadboard 1MHz internal clock, fast start, 1.8V BOD, 4800baud upload
                      
                      atmega328_1mhz_4800baud.upload.protocol=arduino
                      atmega328_1mhz_4800baud.upload.maximum_size=32256
                      atmega328_1mhz_4800baud.upload.speed=4800
                      
                      atmega328_1mhz_4800baud.bootloader.low_fuses=0x42
                      atmega328_1mhz_4800baud.bootloader.high_fuses=0xDE
                      atmega328_1mhz_4800baud.bootloader.extended_fuses=0x06
                      
                      atmega328_1mhz_4800baud.bootloader.file=atmega/atmega328_1b.hex
                      atmega328_1mhz_4800baud.bootloader.unlock_bits=0x3F
                      atmega328_1mhz_4800baud.bootloader.lock_bits=0x2F
                      
                      atmega328_1mhz_4800baud.build.mcu=atmega328p
                      atmega328_1mhz_4800baud.build.f_cpu=1000000L
                      atmega328_1mhz_4800baud.build.core=arduino:arduino
                      atmega328_1mhz_4800baud.build.variant=arduino:standard
                      
                      
                      atmega328_1mhz_4800baud.bootloader.tool=arduino:avrdude
                      atmega328_1mhz_4800baud.upload.tool=arduino:avrdude
                      

                      Now i have measured the current draw, and the arduino alone draws 6.8mA (without crystal, nrf ...)
                      I tried some sketches, (binaryswitchsleepsensor) but the current is not really gone down.
                      The only sketch is this:

                      // **** INCLUDES *****
                      #include "LowPower.h"
                      
                      void setup()
                      {
                          // No setup is required for this library
                      }
                      
                      void loop() 
                      {
                          // Enter power down state for 8 s with ADC and BOD module disabled
                          LowPower.powerDown(SLEEP_8S, ADC_OFF, BOD_OFF);  
                          
                          // Do something here
                          // Example: Read sensor, data logging, data transmission.
                      }
                      

                      With this sketch is the current 0.02mA

                      OK, 0.02mA is not bad, but when i read that some of you have few µa, i dont understand why the current on my atmega is so "high"

                      Can somebody tell me what bootloader is good, wich fuses are good. And maybe what i have to do to get the current so small as possble

                      Thank you very much
                      Greets Eddie

                      m26872M Offline
                      m26872M Offline
                      m26872
                      Hardware Contributor
                      wrote on last edited by
                      #144

                      @meddie I don't really get what you've ruled out in your troubleshooting. Do you "test the arduino alone" using MySensors lib and example sketches? Using Lowpower lib directly works ok as it seems. Next step would be to connect the nRF24L01+ and run some MySensors lib example.

                      Ext fuses 0x07 (BOD disabled) instead of 0x06 (BOD 1.8V) could save you a few uA.

                      1 Reply Last reply
                      0
                      • M Offline
                        M Offline
                        meddie
                        wrote on last edited by
                        #145

                        @m26872 said:

                        Do you "test the arduino alone" using MySensors lib and example sketches?

                        Yes, on the bredboard is only the atmega 328p. nothing else. Connected to 5v

                        Using Lowpower lib directly works ok as it seems.

                        Yes using the LowPower lib i came down to 0.01mA current draw.

                        Next step would be to connect the nRF24L01+ and run some MySensors lib example.

                        Ok, i will try it today evening.

                        Ext fuses 0x07 (BOD disabled) instead of 0x06 (BOD 1.8V) could save you a few uA.
                        OK, i try this too.

                        Thank you very much.
                        Greets Eddie

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          meddie
                          wrote on last edited by
                          #146

                          ok, i tried to burn with 0x07 Fuse. And i tried to power the atmega with 3.3 v and not 5v.
                          Now i came down to 4µA in sleep mode with the lowpower sketch.
                          When i try to flash a mysensors sketch the the atmega has a current draw 1mA.

                          m26872M A 2 Replies Last reply
                          0
                          • M meddie

                            ok, i tried to burn with 0x07 Fuse. And i tried to power the atmega with 3.3 v and not 5v.
                            Now i came down to 4µA in sleep mode with the lowpower sketch.
                            When i try to flash a mysensors sketch the the atmega has a current draw 1mA.

                            m26872M Offline
                            m26872M Offline
                            m26872
                            Hardware Contributor
                            wrote on last edited by
                            #147

                            @meddie It's still unclear whether you've got the nRF connected and the MySensors example and library fully working (sleeping) before you measure.

                            1 Reply Last reply
                            0
                            • M meddie

                              ok, i tried to burn with 0x07 Fuse. And i tried to power the atmega with 3.3 v and not 5v.
                              Now i came down to 4µA in sleep mode with the lowpower sketch.
                              When i try to flash a mysensors sketch the the atmega has a current draw 1mA.

                              A Offline
                              A Offline
                              ar91
                              wrote on last edited by
                              #148

                              @meddie If you have a extra nRF try using that, i had a similar issue and i tried replacing the nRF and it came from mA to uA.

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                meddie
                                wrote on last edited by
                                #149

                                yes of course, i just connected a nrf to the atmega an uploaded the binaryswitchsleepsensor sketch. Now i have a current draw 95.6µA
                                But when i take the door contact off the atmega draws only 1.3µA
                                When the door contact is closed (from 3 to GND) the the current is rising to 95.6µA

                                1 Reply Last reply
                                0
                                • GertSandersG Offline
                                  GertSandersG Offline
                                  GertSanders
                                  Hardware Contributor
                                  wrote on last edited by
                                  #150

                                  Makes sense to me. By closing the contact you get a path from 3V3 via the pullup resistor to ground.

                                  The current is (for a pullup resistor value around 30KOhm) around 100uA.

                                  Try NOT using the internal pullup resistor of pin D3, and using an external pullup resistor of 1MOhm or more.

                                  You will see lower current when the contact is closed.

                                  M 1 Reply Last reply
                                  1
                                  • M Offline
                                    M Offline
                                    meddie
                                    wrote on last edited by
                                    #151

                                    ok, i dont have 1mohm here. but i just ordered them. When i get them i will try out and will write here.
                                    Thynk you very much for your help.
                                    Great Forum! Great Projekt!
                                    Greets Eddie

                                    1 Reply Last reply
                                    0
                                    • Pierre PP Offline
                                      Pierre PP Offline
                                      Pierre P
                                      wrote on last edited by
                                      #152

                                      Hello,
                                      This board is GREAT. But why C5 ave to be different from C1 C2 C3 ?

                                      No quote, no forum notification (else, the mail box ring every minutes !). Thanks, and have a very good MySensors day !

                                      m26872M 1 Reply Last reply
                                      0
                                      • Pierre PP Pierre P

                                        Hello,
                                        This board is GREAT. But why C5 ave to be different from C1 C2 C3 ?

                                        m26872M Offline
                                        m26872M Offline
                                        m26872
                                        Hardware Contributor
                                        wrote on last edited by
                                        #153

                                        @Pierre-P I haven't verified the benefits of C5, so it's just theoretical. You could probably omit or replace without any significant difference.

                                        Anyway, the reasons behind are seen in the BOM. 1 - Package (under uC socket). 2 - RF performance (single layer).

                                        Pierre PP 1 Reply Last reply
                                        0
                                        • m26872M m26872

                                          @Pierre-P I haven't verified the benefits of C5, so it's just theoretical. You could probably omit or replace without any significant difference.

                                          Anyway, the reasons behind are seen in the BOM. 1 - Package (under uC socket). 2 - RF performance (single layer).

                                          Pierre PP Offline
                                          Pierre PP Offline
                                          Pierre P
                                          wrote on last edited by
                                          #154

                                          @m26872 I see it in the BOM. But now, i can't see where it goes (5 hours... I ask a question, and 5 hours later I can't see what i was talking about....)

                                          C4 is cool for the NRF pic of tension, but -just for information- it could be wherever between 0Vcc and 5Vcc, not necessarily near the NRF ?

                                          As an electrician, and not an electronician, I don't understand why so many 0.1uF capacitor are needed (but i put them too) as we can see in MySlimNode2-sch.pdf that they are virtually at the same place... :sweat_smile:

                                          Thanks for the answer !

                                          No quote, no forum notification (else, the mail box ring every minutes !). Thanks, and have a very good MySensors day !

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


                                          6

                                          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