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. arduino mega nrf wiring

arduino mega nrf wiring

Scheduled Pinned Locked Moved Hardware
8 Posts 5 Posters 5.0k 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.
  • Michel LallemandM Offline
    Michel LallemandM Offline
    Michel Lallemand
    wrote on last edited by
    #1

    I want to connect my nRF24L01 on my Arduino Mega created for a gateway Mysensors

    I do not know how to do ?

    thank you for your help cordially

    mfalkviddM 1 Reply Last reply
    0
    • Michel LallemandM Michel Lallemand

      I want to connect my nRF24L01 on my Arduino Mega created for a gateway Mysensors

      I do not know how to do ?

      thank you for your help cordially

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

      @Michel-Lallemand the Mega has different pins for SPI. I don't have a Mega myself, but this thread should cover what you need to do.

      Please post the result here. If the instructions work, I will add them to the radio page.

      1 Reply Last reply
      0
      • ayoA Offline
        ayoA Offline
        ayo
        wrote on last edited by
        #3

        Just connect it like this
        0_1474672146639_megaConnectioon.JPG
        alt text

        That should Work.

        In your arduino code add the following before the #include <SPI.h>
        #include <MySensors.h>

        // Pin Confuguration for Arduino Mega
        #define MY_RF24_CE_PIN 40
        #define MY_RF24_CS_PIN 53
        

        and you are good. :)

        Edoardo MacrìE 1 Reply Last reply
        4
        • Michel LallemandM Offline
          Michel LallemandM Offline
          Michel Lallemand
          wrote on last edited by
          #4

          thanks a lot @ayo this wiring run perfectly thanks

          1 Reply Last reply
          1
          • ayoA ayo

            Just connect it like this
            0_1474672146639_megaConnectioon.JPG
            alt text

            That should Work.

            In your arduino code add the following before the #include <SPI.h>
            #include <MySensors.h>

            // Pin Confuguration for Arduino Mega
            #define MY_RF24_CE_PIN 40
            #define MY_RF24_CS_PIN 53
            

            and you are good. :)

            Edoardo MacrìE Offline
            Edoardo MacrìE Offline
            Edoardo Macrì
            wrote on last edited by Edoardo Macrì
            #5

            @ayo for me didn't worked.. maybe because i have an updated mysensor library?

            mfalkviddM 1 Reply Last reply
            0
            • Edoardo MacrìE Edoardo Macrì

              @ayo for me didn't worked.. maybe because i have an updated mysensor library?

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

              @Edoardo-Macrì hour you describe "not working" in more detail?
              The MySensors library has not been updated since July and even if it had been updated it should work.

              1 Reply Last reply
              0
              • ayoA Offline
                ayoA Offline
                ayo
                wrote on last edited by
                #7

                @Edoardo-Macrì It should work irrespective of the library version. Cross check your connection again, don't forget about capacitors too and lastly make sure you add that #define part into your code.

                1 Reply Last reply
                1
                • E Offline
                  E Offline
                  emaddoost
                  wrote on last edited by
                  #8

                  @ayo I have this problem too, I can't get the radio modules work, the modules are nRF24L01 and I have tested with two arduino nano and two Arduino mega2560, but there is no result. The transmitter and receiver can not contact each other.

                  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