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. The new Atmega328PB

The new Atmega328PB

Scheduled Pinned Locked Moved Hardware
29 Posts 8 Posters 13.9k 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.
  • S Samuel235

    @GertSanders - I applied for a sample, got denied. :expressionless:

    G Offline
    G Offline
    GertSanders
    Hardware Contributor
    wrote on last edited by
    #17

    @samuel235
    I was thinking about the ports to expose. I believe a second SPI is preferrable over a second serial port.
    The second I2C port is also multiplexed with other pins. Does not seem like a good choice to add this to external headers if I want to keep external headers to a minimum.
    A pro mini layout already exists so I'm looking more at specialised sensor boards with minimal extension and trying to set priorities.
    Any thoughts on this ?

    S 1 Reply Last reply
    0
    • G GertSanders

      @samuel235
      I was thinking about the ports to expose. I believe a second SPI is preferrable over a second serial port.
      The second I2C port is also multiplexed with other pins. Does not seem like a good choice to add this to external headers if I want to keep external headers to a minimum.
      A pro mini layout already exists so I'm looking more at specialised sensor boards with minimal extension and trying to set priorities.
      Any thoughts on this ?

      S Offline
      S Offline
      Samuel235
      Hardware Contributor
      wrote on last edited by
      #18

      @GertSanders, from my research, I would have to show my interest on I2C simply due to it only requiring 2 connections to the slave/master device. I'm not 100% sure on your thoughts regarding the multiplexing with other pins, from my understanding of I2C, and the standout advantages, you can use multiple connections on the SCL/SDA lines that I2C require.

      Could you explain what you mean by the port is multiplexed with other pins please?
      Could you also elaborate on why you're thinking to have a second SPI connection instead?

      Sorry if i'm being slightly dumb about this, after-all, i have only just this second recieved my 'Hardware Contributor' title :flushed:

      MySensors 2.1.1
      Controller - OpenHAB (Virtual Machine)
      Gateway - Arduino Mega MQTT Gateway W5100

      G 1 Reply Last reply
      0
      • S Samuel235

        @GertSanders, from my research, I would have to show my interest on I2C simply due to it only requiring 2 connections to the slave/master device. I'm not 100% sure on your thoughts regarding the multiplexing with other pins, from my understanding of I2C, and the standout advantages, you can use multiple connections on the SCL/SDA lines that I2C require.

        Could you explain what you mean by the port is multiplexed with other pins please?
        Could you also elaborate on why you're thinking to have a second SPI connection instead?

        Sorry if i'm being slightly dumb about this, after-all, i have only just this second recieved my 'Hardware Contributor' title :flushed:

        G Offline
        G Offline
        GertSanders
        Hardware Contributor
        wrote on last edited by
        #19

        @Samuel235
        What I mean is that the pins for serial port 2 (RXD1 and TXD1 are also SPI ports MISO0 and MOSI0). So if I want to use two SPI ports, the second serial port can not be used.
        The second I2C port sits on pins PE0 and PE1, no real issue there, but SDA0 and SCL0 are actually A4 and A5.
        At the moment I think I will expose the second I2C port, not the first one (leave those pins to be analog inputs), and route both SPI ports to a seperate 6 pin header.

        S 1 Reply Last reply
        1
        • G GertSanders

          @Samuel235
          What I mean is that the pins for serial port 2 (RXD1 and TXD1 are also SPI ports MISO0 and MOSI0). So if I want to use two SPI ports, the second serial port can not be used.
          The second I2C port sits on pins PE0 and PE1, no real issue there, but SDA0 and SCL0 are actually A4 and A5.
          At the moment I think I will expose the second I2C port, not the first one (leave those pins to be analog inputs), and route both SPI ports to a seperate 6 pin header.

          S Offline
          S Offline
          Samuel235
          Hardware Contributor
          wrote on last edited by
          #20

          @GertSanders, I'm pretty sure there is a software serial port work-around. So if you wanted to have the SPI ports AND the two serial ports, you could use digital pins for serial2 and then enable the software serial port as serial port 2. That way, correct me if i'm wrong, you would end up with 2 serial ports and 2 SPI ports. Again, i'm not 100% certain on this topic though, I'm out of my depths, its given me some information and a lot of interest in learning about the ports even more now though, thank you!

          Not sure if this gives you any other possibilities, but this is the NewSoftSerial solution that enables you to have a software serial port. http://arduiniana.org/libraries/newsoftserial/

          MySensors 2.1.1
          Controller - OpenHAB (Virtual Machine)
          Gateway - Arduino Mega MQTT Gateway W5100

          G 1 Reply Last reply
          0
          • S Samuel235

            @GertSanders, I'm pretty sure there is a software serial port work-around. So if you wanted to have the SPI ports AND the two serial ports, you could use digital pins for serial2 and then enable the software serial port as serial port 2. That way, correct me if i'm wrong, you would end up with 2 serial ports and 2 SPI ports. Again, i'm not 100% certain on this topic though, I'm out of my depths, its given me some information and a lot of interest in learning about the ports even more now though, thank you!

            Not sure if this gives you any other possibilities, but this is the NewSoftSerial solution that enables you to have a software serial port. http://arduiniana.org/libraries/newsoftserial/

            G Offline
            G Offline
            GertSanders
            Hardware Contributor
            wrote on last edited by
            #21

            @Samuel235
            This library is actually part of Arduino IDE 1.x and can be used for the purpose of using other pins as serial ports. But the atmega328pb has two hardware serial ports possible. The question is if I need them. In my case I prefer an extra SPI port over all the ADC pins (4 analog inputs is more then enough im my case).

            The datasheet of the atmea328pb is quite an interesting read indeed.

            S 1 Reply Last reply
            0
            • G GertSanders

              @Samuel235
              This library is actually part of Arduino IDE 1.x and can be used for the purpose of using other pins as serial ports. But the atmega328pb has two hardware serial ports possible. The question is if I need them. In my case I prefer an extra SPI port over all the ADC pins (4 analog inputs is more then enough im my case).

              The datasheet of the atmea328pb is quite an interesting read indeed.

              S Offline
              S Offline
              Samuel235
              Hardware Contributor
              wrote on last edited by
              #22

              @GertSanders said:

              I In my case I prefer an extra SPI port over all the ADC pins (4 analog inputs is more then enough im my case).

              I think you have just answered your own question. If it suits your situation more, then go for the extra SPI port. I don't see where 2 seeial ports would be any use in any situation other than a gateway tbh. But thats my opinion :)

              I might make the datasheet my next morning read over my breakfast ;)

              MySensors 2.1.1
              Controller - OpenHAB (Virtual Machine)
              Gateway - Arduino Mega MQTT Gateway W5100

              1 Reply Last reply
              0
              • T Offline
                T Offline
                tbowmo
                Admin
                wrote on last edited by
                #23

                @Samuel235 @GertSanders

                Consider a RS485 network, with a node that needs to talk with a sensor / actuator via rs232.. Then dual UARTS is quite usable :)

                But I admit, it's a very rare situation..

                G 1 Reply Last reply
                0
                • T tbowmo

                  @Samuel235 @GertSanders

                  Consider a RS485 network, with a node that needs to talk with a sensor / actuator via rs232.. Then dual UARTS is quite usable :)

                  But I admit, it's a very rare situation..

                  G Offline
                  G Offline
                  GertSanders
                  Hardware Contributor
                  wrote on last edited by
                  #24

                  @tbowmo
                  It seems two SPI devices connected to the mcu is more common (ethernet and nrf24, or flash and nrf24).

                  S 1 Reply Last reply
                  0
                  • G GertSanders

                    @tbowmo
                    It seems two SPI devices connected to the mcu is more common (ethernet and nrf24, or flash and nrf24).

                    S Offline
                    S Offline
                    Samuel235
                    Hardware Contributor
                    wrote on last edited by
                    #25

                    @GertSanders talking about that, i may add some flash to my latest sensor board. Just a thought.

                    MySensors 2.1.1
                    Controller - OpenHAB (Virtual Machine)
                    Gateway - Arduino Mega MQTT Gateway W5100

                    1 Reply Last reply
                    1
                    • T Offline
                      T Offline
                      tbowmo
                      Admin
                      wrote on last edited by
                      #26

                      @GertSanders

                      You can always multiplex the spi bus, and have multiple devices share it (unless it's a buggy w5100 module..)

                      1 Reply Last reply
                      0
                      • N Offline
                        N Offline
                        Nca78
                        Hardware Contributor
                        wrote on last edited by
                        #27

                        Hello, did anyone happen to use this new chip in the end ?
                        Or did it arrive too late ?

                        Y 1 Reply Last reply
                        0
                        • N Nca78

                          Hello, did anyone happen to use this new chip in the end ?
                          Or did it arrive too late ?

                          Y Offline
                          Y Offline
                          Yveaux
                          Mod
                          wrote on last edited by
                          #28

                          @Nca78 I did test it for Atmega328p compatibility which looked just fine.
                          Not sure what the current state is regarding support for the extra peripherals though.

                          http://yveaux.blogspot.nl

                          N 1 Reply Last reply
                          0
                          • Y Yveaux

                            @Nca78 I did test it for Atmega328p compatibility which looked just fine.
                            Not sure what the current state is regarding support for the extra peripherals though.

                            N Offline
                            N Offline
                            Nca78
                            Hardware Contributor
                            wrote on last edited by
                            #29

                            @Yveaux ok thank you I will have a look at what is available in the arduino ports.

                            1 Reply Last reply
                            0

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            41

                            Online

                            12.0k

                            Users

                            11.2k

                            Topics

                            113.4k

                            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