Skip to content
  • 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. Atmega 328p memory
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

Atmega 328p memory

Scheduled Pinned Locked Moved Hardware
38 Posts 7 Posters 3.6k Views 7 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.
  • dbemowskD Offline
    dbemowskD Offline
    dbemowsk
    wrote on last edited by dbemowsk
    #1

    So, in trying to create my in-wall OLED scene controller board I ran into an issue that I thought I might run into. Memory. So I did my test sketch for the OLED display that had some sample graphics with some button controls for testing the keypad. As soon as I tried including the MySensors library into the equation and compiling, I naturally ran out of memory. My assumption is that is the program and variable space limitations of the Atmega 328P that are the main reason I cannot use this level of hardware. So, on to my thought. Is it possible to use an Atmega 644p or 1284p based controller for this? If so, are there any in the size range of a pro mini? If there are none in the size range of a pro mini, I may take a shot at creating a new board of my own. Would an nRF51822 be a better route to go with this? In the mean time, I may find a lighter text based library for the display and try that route with my existing pro-mini.

    Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
    Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

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

      in my opinion atmega is partly on it's way out, more powerful mcu's are available, and some are even cheaper than the aging atmega line of products.

      If you are using nrf24, then I would look towards nrf51/nrf52, as it will mean more compact nodes.

      1 Reply Last reply
      0
      • MiKaM Offline
        MiKaM Offline
        MiKa
        wrote on last edited by
        #3

        Im using now mainly NRF51 and SAMD21 MCU, both of them have lot of advantages FLASH, interrupt on all pins, consumption.....

        1 Reply Last reply
        1
        • dbemowskD dbemowsk

          So, in trying to create my in-wall OLED scene controller board I ran into an issue that I thought I might run into. Memory. So I did my test sketch for the OLED display that had some sample graphics with some button controls for testing the keypad. As soon as I tried including the MySensors library into the equation and compiling, I naturally ran out of memory. My assumption is that is the program and variable space limitations of the Atmega 328P that are the main reason I cannot use this level of hardware. So, on to my thought. Is it possible to use an Atmega 644p or 1284p based controller for this? If so, are there any in the size range of a pro mini? If there are none in the size range of a pro mini, I may take a shot at creating a new board of my own. Would an nRF51822 be a better route to go with this? In the mean time, I may find a lighter text based library for the display and try that route with my existing pro-mini.

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          @dbemowsk in case you missed it, there was a similar discussion earlier this week https://forum.mysensors.org/post/83419

          1 Reply Last reply
          2
          • dbemowskD Offline
            dbemowskD Offline
            dbemowsk
            wrote on last edited by
            #5

            So I have not done anything yet with the nRF51 or 52's. Can I just drop nRF51/52 nodes in to my nRF24 gateway setup and have them work? I am currently using MySensors 2.0. Have not yet upgraded to 2.1 or 2.2. 2.2 from the things I have seen seems a bit buggy right now, but I could upgrade my gateway to 2.1.
            0_1515757132585_a4b1a3e0-eab7-4a5c-9b69-92e452424cf8-image.png
            As can be seen in the image above, the outer header connections are what I would like to be able to mimic to be backwards compatible with my old board setups. If I was going to move to an nRF51 or 52 board, that is something that I would like to keep the same. I have not looked too much at these yet, but it is my understanding that the nRF51/52 boards contain the MCU and radio in one package. Can anyone that has used these recommend a good reasonably priced module that would work with my setup? I will look at designing a new board around these if things look good..

            Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
            Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

            mfalkviddM 1 Reply Last reply
            1
            • dbemowskD dbemowsk

              So I have not done anything yet with the nRF51 or 52's. Can I just drop nRF51/52 nodes in to my nRF24 gateway setup and have them work? I am currently using MySensors 2.0. Have not yet upgraded to 2.1 or 2.2. 2.2 from the things I have seen seems a bit buggy right now, but I could upgrade my gateway to 2.1.
              0_1515757132585_a4b1a3e0-eab7-4a5c-9b69-92e452424cf8-image.png
              As can be seen in the image above, the outer header connections are what I would like to be able to mimic to be backwards compatible with my old board setups. If I was going to move to an nRF51 or 52 board, that is something that I would like to keep the same. I have not looked too much at these yet, but it is my understanding that the nRF51/52 boards contain the MCU and radio in one package. Can anyone that has used these recommend a good reasonably priced module that would work with my setup? I will look at designing a new board around these if things look good..

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by mfalkvidd
              #6

              @dbemowsk I like this device because it has headers so no soldering strictly required. Note that the distance is smaller than the "standard" 2.4mm.

              https://www.aliexpress.com/item/NRF51822-2-4G-Wireless-Module-Wireless-Communication-Module-Bluetooth-module-zigbee-module-DMX512/32726191346.html

              rmtuckerR 1 Reply Last reply
              0
              • mfalkviddM mfalkvidd

                @dbemowsk I like this device because it has headers so no soldering strictly required. Note that the distance is smaller than the "standard" 2.4mm.

                https://www.aliexpress.com/item/NRF51822-2-4G-Wireless-Module-Wireless-Communication-Module-Bluetooth-module-zigbee-module-DMX512/32726191346.html

                rmtuckerR Offline
                rmtuckerR Offline
                rmtucker
                wrote on last edited by
                #7

                @mfalkvidd said in Atmega 328p memory:

                @dbemowsk I like this device because it has headers so no soldering strictly required. Note that the distance is smaller than the "standard" 2.4mm.

                https://www.aliexpress.com/item/NRF51822-2-4G-Wireless-Module-Wireless-Communication-Module-Bluetooth-module-zigbee-module-DMX512/32726191346.html

                The 2mm pitch is a pain if you do not use the BLE400 motherboard that goes with it.
                It took me ages to source a 2mm pitch protoboard then sockets to plug it into.
                But it is easy to use.:relaxed:

                dbemowskD 1 Reply Last reply
                0
                • rmtuckerR rmtucker

                  @mfalkvidd said in Atmega 328p memory:

                  @dbemowsk I like this device because it has headers so no soldering strictly required. Note that the distance is smaller than the "standard" 2.4mm.

                  https://www.aliexpress.com/item/NRF51822-2-4G-Wireless-Module-Wireless-Communication-Module-Bluetooth-module-zigbee-module-DMX512/32726191346.html

                  The 2mm pitch is a pain if you do not use the BLE400 motherboard that goes with it.
                  It took me ages to source a 2mm pitch protoboard then sockets to plug it into.
                  But it is easy to use.:relaxed:

                  dbemowskD Offline
                  dbemowskD Offline
                  dbemowsk
                  wrote on last edited by
                  #8

                  @rmtucker Even if I do design a new board, I would at least like to do a protoboard version first like I usually do, so you have a good point. Will the MySensors library work with a 52832 board like this one? I haven't read up on the differences between the nRF51 and the nRF52 series boards yet. I am going to do more research this weekend.

                  Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                  Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                  mfalkviddM Nca78N NeverDieN 3 Replies Last reply
                  0
                  • dbemowskD dbemowsk

                    @rmtucker Even if I do design a new board, I would at least like to do a protoboard version first like I usually do, so you have a good point. Will the MySensors library work with a 52832 board like this one? I haven't read up on the differences between the nRF51 and the nRF52 series boards yet. I am going to do more research this weekend.

                    mfalkviddM Offline
                    mfalkviddM Offline
                    mfalkvidd
                    Mod
                    wrote on last edited by
                    #9

                    @dbemowsk Very few people use MySensors on nrf5, so there are probably some problems that are yet to be discovered - as with any new technology. With that said, 51822, 51422, 52832 have been confirmed working at some point.

                    @scalz has had success with the 52840, but it seems there is not full support for all IO ports
                    @NeverDie has experimented with the 52810

                    1 Reply Last reply
                    0
                    • dbemowskD dbemowsk

                      @rmtucker Even if I do design a new board, I would at least like to do a protoboard version first like I usually do, so you have a good point. Will the MySensors library work with a 52832 board like this one? I haven't read up on the differences between the nRF51 and the nRF52 series boards yet. I am going to do more research this weekend.

                      Nca78N Offline
                      Nca78N Offline
                      Nca78
                      Hardware Contributor
                      wrote on last edited by
                      #10

                      @dbemowsk you can also consider the NRF52 DK it's more expensive (32$ at Arrow) but you have jlink included on it to program and debug the onboard nrf52 but also any external nrf51 and nrf52 chip (and also NFC antenna and interface, and 4 extra nrf52 chips if you like SMD soldering). It also has a few LEDs and buttons to quickly make some tests, as well as nice things like jumpers to let you measure current consumption when you want to optimize a battery powered sensor.

                      Nrf51 is a cortex M0 with 16K or 32K RAM and 256K flash.
                      Nrf52 is a cortex M4F with 64K RAM and 512K flash. Way more powerful and with more advanced features.

                      1 Reply Last reply
                      0
                      • dbemowskD dbemowsk

                        @rmtucker Even if I do design a new board, I would at least like to do a protoboard version first like I usually do, so you have a good point. Will the MySensors library work with a 52832 board like this one? I haven't read up on the differences between the nRF51 and the nRF52 series boards yet. I am going to do more research this weekend.

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

                        @dbemowsk If you're in the USA (which I seem to recall that you are), I recommend the Fanstel modules, because they have passed FCC: http://www.fanstel.com/bluenor-summaries/ Also, most of them share the same pinout, which makes them easy to upgrade.

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

                          Here's a breakout board that would get you started with most of the Fanstel's:
                          https://www.openhardware.io/view/489/BT832X-Power-Amplified-nRF52832-Remote-Control-with-LNA

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

                            If you just want to quickly get a feel for the nRF52, though, I'd recommend getting two nRF52 DK's (one for each end of a radio link). It's probably the least frustrating way to get started, and as @nca78 mentioned, you can use them more generally later as programmers if you take a liking to nRF5's.

                            dbemowskD 1 Reply Last reply
                            0
                            • NeverDieN NeverDie

                              If you just want to quickly get a feel for the nRF52, though, I'd recommend getting two nRF52 DK's (one for each end of a radio link). It's probably the least frustrating way to get started, and as @nca78 mentioned, you can use them more generally later as programmers if you take a liking to nRF5's.

                              dbemowskD Offline
                              dbemowskD Offline
                              dbemowsk
                              wrote on last edited by
                              #14

                              @neverdie Will the nRF52s work on my nRF24 network?

                              Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                              Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                              mfalkviddM NeverDieN 2 Replies Last reply
                              1
                              • dbemowskD dbemowsk

                                @neverdie Will the nRF52s work on my nRF24 network?

                                mfalkviddM Offline
                                mfalkviddM Offline
                                mfalkvidd
                                Mod
                                wrote on last edited by
                                #15

                                @dbemowsk yes

                                dbemowskD 1 Reply Last reply
                                0
                                • mfalkviddM mfalkvidd

                                  @dbemowsk yes

                                  dbemowskD Offline
                                  dbemowskD Offline
                                  dbemowsk
                                  wrote on last edited by
                                  #16

                                  @mfalkvidd Perfect. As I mentioned, I am going to look over the modules this weekend and see if I can find one that is suited for my board.. From there I will look at fabricating a new PCB.

                                  Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                  Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                                  1 Reply Last reply
                                  1
                                  • dbemowskD dbemowsk

                                    @neverdie Will the nRF52s work on my nRF24 network?

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

                                    @dbemowsk said in Atmega 328p memory:

                                    @neverdie Will the nRF52s work on my nRF24 network?

                                    You mean is it backward compatible? Yes, if you use the mysensors code base. You can thank @d00616 for that. :) Otherwise it wouldn't be.

                                    1 Reply Last reply
                                    1
                                    • dbemowskD Offline
                                      dbemowskD Offline
                                      dbemowsk
                                      wrote on last edited by
                                      #18

                                      So looking at a dev board like this one to test things, one thing that I do not see is any analog inputs. I am also wondering about an I2C connection. I am also assuming that the black connector is the programming header.

                                      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                                      NeverDieN 1 Reply Last reply
                                      0
                                      • dbemowskD dbemowsk

                                        So looking at a dev board like this one to test things, one thing that I do not see is any analog inputs. I am also wondering about an I2C connection. I am also assuming that the black connector is the programming header.

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

                                        @dbemowsk Most of the GPIO pins can be assigned to be whatever you want. For instance, only one pin can serve as RESET (pin 21), but it can be re-assigned to work as an analog pin if you prefer to use it that way. Likewise, pins can be re-assigned to serve as I2C if you prefer that. All this gives you more freedom in the trace layouts. i.e. it's a good thing.

                                        dbemowskD 1 Reply Last reply
                                        0
                                        • NeverDieN NeverDie

                                          @dbemowsk Most of the GPIO pins can be assigned to be whatever you want. For instance, only one pin can serve as RESET (pin 21), but it can be re-assigned to work as an analog pin if you prefer to use it that way. Likewise, pins can be re-assigned to serve as I2C if you prefer that. All this gives you more freedom in the trace layouts. i.e. it's a good thing.

                                          dbemowskD Offline
                                          dbemowskD Offline
                                          dbemowsk
                                          wrote on last edited by
                                          #20

                                          @neverdie So they are not strictly data lines... That is nice. So what you are saying is that if I wire them to the headers on my board, I can just wire the header pins to the closest GPIO lines and then just reference them to what they are in the sketch. Can any of them be SPI bus lines also?

                                          Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                          Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

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


                                          15

                                          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
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular