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. Hardware
  3. atmega328p small (SMD) alternative with more memory?

atmega328p small (SMD) alternative with more memory?

Scheduled Pinned Locked Moved Hardware
37 Posts 8 Posters 4.1k Views 9 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.
  • alexsh1A Offline
    alexsh1A Offline
    alexsh1
    wrote on last edited by
    #1

    More and more, I come across that atmega328p loaded with mysensors, signing, encryption and a few sensors and libraries gives me this:

    Sketch uses 31924 bytes (103%) of program storage space. Maximum is 30720 bytes.
    
    Global variables use 2076 bytes (101%) of dynamic memory, leaving -28 bytes for local variables. Maximum is 2048 bytes.
    Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
    Error 
    

    Whereas I do have Moteino Mega, which is an excellent form factor, but a but a bit too large when it comes to a small node. Anyone can recommend a tiny form factor node like Sensebender Micro but with considerably more memory please?

    AnticimexA NeverDieN 2 Replies Last reply
    0
    • alexsh1A alexsh1

      More and more, I come across that atmega328p loaded with mysensors, signing, encryption and a few sensors and libraries gives me this:

      Sketch uses 31924 bytes (103%) of program storage space. Maximum is 30720 bytes.
      
      Global variables use 2076 bytes (101%) of dynamic memory, leaving -28 bytes for local variables. Maximum is 2048 bytes.
      Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
      Error 
      

      Whereas I do have Moteino Mega, which is an excellent form factor, but a but a bit too large when it comes to a small node. Anyone can recommend a tiny form factor node like Sensebender Micro but with considerably more memory please?

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

      @alexsh1 at some point I belive a SAMD based SenseBender might arrive.

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

      alexsh1A 1 Reply Last reply
      1
      • alexsh1A alexsh1

        More and more, I come across that atmega328p loaded with mysensors, signing, encryption and a few sensors and libraries gives me this:

        Sketch uses 31924 bytes (103%) of program storage space. Maximum is 30720 bytes.
        
        Global variables use 2076 bytes (101%) of dynamic memory, leaving -28 bytes for local variables. Maximum is 2048 bytes.
        Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
        Error 
        

        Whereas I do have Moteino Mega, which is an excellent form factor, but a but a bit too large when it comes to a small node. Anyone can recommend a tiny form factor node like Sensebender Micro but with considerably more memory please?

        NeverDieN Offline
        NeverDieN Offline
        NeverDie
        Hero Member
        wrote on last edited by NeverDie
        #3

        @alexsh1 said in atmega328p small (SMD) alternative with more memory?:

        Anyone can recommend a tiny form factor node like Sensebender Micro but with considerably more memory please?

        Well, the nRF52 series has more memory and is better in almost every way. And you can program it through the familiar Arduino IDE. Time to join the band wagon.

        AnticimexA 1 Reply Last reply
        0
        • NeverDieN NeverDie

          @alexsh1 said in atmega328p small (SMD) alternative with more memory?:

          Anyone can recommend a tiny form factor node like Sensebender Micro but with considerably more memory please?

          Well, the nRF52 series has more memory and is better in almost every way. And you can program it through the familiar Arduino IDE. Time to join the band wagon.

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

          @neverdie are you sure they always come with a bootloader, and one that's compatible with Arduino? Afaik you need a debugger. Not that it's a problem, but it isn't exactly plug and play either.

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

          NeverDieN 1 Reply Last reply
          0
          • AnticimexA Anticimex

            @neverdie are you sure they always come with a bootloader, and one that's compatible with Arduino? Afaik you need a debugger. Not that it's a problem, but it isn't exactly plug and play either.

            NeverDieN Offline
            NeverDieN Offline
            NeverDie
            Hero Member
            wrote on last edited by
            #5

            @anticimex said in atmega328p small (SMD) alternative with more memory?:

            everdie are you sure they always come with a bootloader,

            You just need a programmer. I use JTAG, but many here have reported success with the super cheap STM v2.

            AnticimexA 1 Reply Last reply
            0
            • NeverDieN NeverDie

              @anticimex said in atmega328p small (SMD) alternative with more memory?:

              everdie are you sure they always come with a bootloader,

              You just need a programmer. I use JTAG, but many here have reported success with the super cheap STM v2.

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

              @neverdie I know, but it is still a detail worth mentioning. It is not a drop in replacement unless you happen to sit on compatible debuggers or programmers already. And even then, I am unsure if the arduino IDE can be used to program a suitable bootloader in a user friendly way.
              That said, I agree that nrf52 is the future. Closely followed by SAMD.

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

              1 Reply Last reply
              1
              • NeverDieN Offline
                NeverDieN Offline
                NeverDie
                Hero Member
                wrote on last edited by
                #7

                There doesn't exist a drop in replacement.

                AnticimexA 1 Reply Last reply
                0
                • NeverDieN NeverDie

                  There doesn't exist a drop in replacement.

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

                  @neverdie a SenseBender mk2 based on samd would be a drop in replacement for SenseBender.

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

                  NeverDieN 1 Reply Last reply
                  0
                  • AnticimexA Anticimex

                    @alexsh1 at some point I belive a SAMD based SenseBender might arrive.

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

                    @anticimex it would be good, right Thomas @tbowmo? :)))
                    Given my experience, I'd rather go for SAMD - at least I do not have to start from zero.

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

                      Are there any similar size wise alternatives to SenseBender mk2 (SAMD), which are available right now?

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

                        @NeverDie Check out this one nRF52. Its not cheap though

                        https://www.tindie.com/products/onehorse/nrf52-add-on-for-butterfly-and-teensy/?pt=ac_prod_search

                        NeverDieN 1 Reply Last reply
                        1
                        • alexsh1A Offline
                          alexsh1A Offline
                          alexsh1
                          wrote on last edited by
                          #12

                          Alternatively, this is a good size for a node - https://www.sparkfun.com/products/13664

                          1 Reply Last reply
                          0
                          • alexsh1A alexsh1

                            @NeverDie Check out this one nRF52. Its not cheap though

                            https://www.tindie.com/products/onehorse/nrf52-add-on-for-butterfly-and-teensy/?pt=ac_prod_search

                            NeverDieN Offline
                            NeverDieN Offline
                            NeverDie
                            Hero Member
                            wrote on last edited by NeverDie
                            #13

                            @alexsh1 said in atmega328p small (SMD) alternative with more memory?:

                            @NeverDie Check out this one nRF52. Its not cheap though

                            https://www.tindie.com/products/onehorse/nrf52-add-on-for-butterfly-and-teensy/?pt=ac_prod_search

                            Yes, I would agree that's interesting. He uses it as a BLE device, albeit purely as a UART channel, which so far isn't something that we've managed to do here with the nRF52. @GertSanders might want to take notice, as he has been doing something similar for logging purposes, but with a different bluetooth.

                            1 Reply Last reply
                            0
                            • AnticimexA Anticimex

                              @neverdie a SenseBender mk2 based on samd would be a drop in replacement for SenseBender.

                              NeverDieN Offline
                              NeverDieN Offline
                              NeverDie
                              Hero Member
                              wrote on last edited by
                              #14

                              @anticimex said in atmega328p small (SMD) alternative with more memory?:

                              SenseBender mk2

                              If that's how you define drop-in replacement, I'll concede the point.

                              Actually, I suppose if you had a fast enough ARM, it could emulate an atmega328p (well, at least its software behavior), and thereby indirectly offer up additional memory. I actually own a board which, IIRC, does that, and it can run code even faster than the atmega328. Just don't expect low power performance out of it.

                              AnticimexA 1 Reply Last reply
                              0
                              • NeverDieN NeverDie

                                @anticimex said in atmega328p small (SMD) alternative with more memory?:

                                SenseBender mk2

                                If that's how you define drop-in replacement, I'll concede the point.

                                Actually, I suppose if you had a fast enough ARM, it could emulate an atmega328p (well, at least its software behavior), and thereby indirectly offer up additional memory. I actually own a board which, IIRC, does that, and it can run code even faster than the atmega328. Just don't expect low power performance out of it.

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

                                @neverdie I perhaps misread the thread title... I did not interpret the quest as something that should be binary identical to atmega328p.

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

                                NeverDieN alexsh1A 2 Replies Last reply
                                0
                                • AnticimexA Anticimex

                                  @neverdie I perhaps misread the thread title... I did not interpret the quest as something that should be binary identical to atmega328p.

                                  NeverDieN Offline
                                  NeverDieN Offline
                                  NeverDie
                                  Hero Member
                                  wrote on last edited by
                                  #16

                                  @anticimex Yeah, the title was ambiguous. Looking back, your interpretation is probably closer than mine as to what he meant though.

                                  1 Reply Last reply
                                  0
                                  • AnticimexA Anticimex

                                    @neverdie I perhaps misread the thread title... I did not interpret the quest as something that should be binary identical to atmega328p.

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

                                    @anticimex you are absolutely correct. It does not have to be binary identical to atmega328p. However, size wise, it has to be small enough.

                                    For now atmega1284p is a direct replacement for atmega328p as code is almost identical. I do not need much more processing power just memory. However, I did struggle to find a very small footprint.

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

                                      @alexsh1

                                      Hmm.. perhaps I should pick up on the SenseBender MK2 again.. I lost focus as I had a lot of other projects running at the same time..

                                      If I remember right, it had problems in it's bootup sequence when I left it alone last..

                                      1 Reply Last reply
                                      0
                                      • NeverDieN Offline
                                        NeverDieN Offline
                                        NeverDie
                                        Hero Member
                                        wrote on last edited by
                                        #19

                                        In terms of BOM cost, it would be cheaper to add a second atmega328p (or even multiple) than to use a 1284. Maybe worth considering if memory of just one is insufficient.

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

                                          @NeverDie

                                          You will then waste memory with "intercom" between the devices. As they have to speak together in some way..

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


                                          18

                                          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