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. ATMega32u4 + RFM69 + MySensors = Working!?

ATMega32u4 + RFM69 + MySensors = Working!?

Scheduled Pinned Locked Moved Hardware
32u4
7 Posts 6 Posters 3.4k Views 5 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.
  • D Offline
    D Offline
    den2k
    wrote on last edited by
    #1

    I designed a ATMega32u4 + RFM69 radio PCB for my own use and I wonder if the 32u4 chip has been used or tested with MySensors.

    I started a thread many, many months ago where I was testing a Pro Micro board with MySensors, and never got it to work. Pro Minis worked just fine.

    I see everyone using Nanos and Micro with the ATMega328p chip, but almost nothing at all with the ATMega32u4. and I wonder why?

    Before I start down that road, I figured I'd ask.

    1 Reply Last reply
    0
    • greglG Offline
      greglG Offline
      gregl
      Hero Member
      wrote on last edited by
      #2

      Im by no means an expert...but...
      isn't the key difference of the two that one 32u4 has a built in USB controller, whereas the 328p doesn't and relies on an external USB controller (FTDI usually.)
      All other pins are the same
      So assuming the available arduino memory space etc is the same ( or more) then I cant see why it wouldn't work.

      Personally I use Nano's are they are real cheap, or boards that require an external FTDI programmer ( Rboard/RBoardMini/Sensbender ).

      I do have some Leonardo's which use the 32u4 chip, but never tried them with MySensors....

      Didn't answer your question eh!.... Perhaps someone else is using them? ;-)

      Z 1 Reply Last reply
      1
      • Cliff KarlssonC Offline
        Cliff KarlssonC Offline
        Cliff Karlsson
        wrote on last edited by
        #3

        Just a question, why do you use the 32u4 ? from my newbie perspective when comparing it to the mini pro it costs 2-3 times more but have the advantage of adding the usb function.

        But if I want also usb I could buy the nano witch has more GPIOs and is around 50% of the price.

        Or have I missed something?

        1 Reply Last reply
        1
        • D Offline
          D Offline
          den2k
          wrote on last edited by
          #4

          A 32u4 based Arduino board will be more expensive vs a 328p board. That is for sure. But I find some advantages with going the 32u4 route.

          1. a big one on my list is support for an attached rechargeable Lipo battery and the recharging of that battery through the onboard microUSB port. If rechargable bty support is not required, this may not matter. Of course you can always detach the LiPo and charge separately, but I like the convenience, especially when nodes are installed and a pain to move.

          2. back to cheaper. to me its a toss up. By itself the 32u4 chip is more expensive vs the 328p but if the number of nodes is low you need to factor, you paid for a separate FTDI programmer. In large networks, the extra costs savings per node will be significant but with smaller networks negligible.

          Also, I just like the simplicity of one connector for charging/programming. Plus, no ugly FTDI pin headers on my nodes.

          Not sure if this compelling for everyone, but I like it.

          So back to the original question. Does a 32u4 Arduino board work WELL with MySensors? I know the RFM69 library that I plan to use supports 32u4 MCUs.\

          thanks.

          1 Reply Last reply
          0
          • hekH Offline
            hekH Offline
            hek
            Admin
            wrote on last edited by
            #5

            Someone seems to run 32u4... took in a PR which fixed some problem in January.

            https://github.com/mysensors/Arduino/pull/378

            1 Reply Last reply
            0
            • ch3b7C Offline
              ch3b7C Offline
              ch3b7
              wrote on last edited by
              #6

              You can use a cheap usb to rs232 like "CH340G"

              1 Reply Last reply
              0
              • greglG gregl

                Im by no means an expert...but...
                isn't the key difference of the two that one 32u4 has a built in USB controller, whereas the 328p doesn't and relies on an external USB controller (FTDI usually.)
                All other pins are the same
                So assuming the available arduino memory space etc is the same ( or more) then I cant see why it wouldn't work.

                Personally I use Nano's are they are real cheap, or boards that require an external FTDI programmer ( Rboard/RBoardMini/Sensbender ).

                I do have some Leonardo's which use the 32u4 chip, but never tried them with MySensors....

                Didn't answer your question eh!.... Perhaps someone else is using them? ;-)

                Z Offline
                Z Offline
                Zeph
                Hero Member
                wrote on last edited by Zeph
                #7

                @gregl said:

                isn't the key difference of the two that one 32u4 has a built in USB controller, whereas the 328p doesn't and relies on an external USB controller (FTDI usually.)

                That's important, but there are many other differences vs ATMega328p. Offhand, there's an extra 0.5K RAM. Second 16 bit timer (Timer3) instead of 8 bit Timer2; plus high speed 10 bit Timer 4. SPI and TWI on different pin #'s (as seen by Arduino). More ADC pins, and a 10x/200x differential amplifier; different voltage ref (2.56v vs 1.1v). And various changes to interrupts or registers based on these. So some less-used libraries need porting, as well as changes to example code. Not sure how these differences affect the core of MySensors; you might have to try it out. There's a good chance that it would work, or that the changes needed would be minor.

                The Leonardo is gone from the Arduino.cc product line, but the Micro is still sold so presumably the chip continues to be supported.

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


                21

                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