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. Troubleshooting
  3. Mega 2560 as Serial Gateway

Mega 2560 as Serial Gateway

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 3 Posters 1.7k Views 3 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.
  • M Offline
    M Offline
    maxdor
    wrote on last edited by
    #1

    Hello,

    I've tried to use a Mega 2560 and a NRF24 as a Serial Gateway. I took the sketch from this page and connected the Gateway to a raspberry PI with ioBroker on it. Therere no errors in ioBroker and the adapter say, that the Gateway is connected succesfully.

    But I get no connection to a Sensor. I have noticed the pin assignment for a Mega instead to a Nano. Is there something I have to change?

    I made this with a Arduino Nano a hole time ago. This worked perfect, but I can't find the Nano right now. Or can I took a Pro Mini like a Nano without changes?

    Thanks 4 help!

    1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      well yes, the Mega has a different pin assignment you need to use that. I was able to make it work months ago, but I moved to RPI gateway as it makes easier with cabling

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maxdor
        wrote on last edited by
        #3

        Hi,

        thanks for the answer.

        Yes, I have see the different assignment and checked the cable many many times. It is correct.

        Boots33B 1 Reply Last reply
        0
        • M maxdor

          Hi,

          thanks for the answer.

          Yes, I have see the different assignment and checked the cable many many times. It is correct.

          Boots33B Offline
          Boots33B Offline
          Boots33
          Hero Member
          wrote on last edited by
          #4

          @maxdor yes you can use a pro mini but be aware that a 5v pro mini does not have a 3v output to power the NRF. So you will need to either use a 3v pro mini or add a 3v reg to power the NRF if using a 5v. You will also need to keep your ftdi adaptor connected to maintain the serial connection.

          The NRF will use the same wiring as the nano, similar to this post

          You should be able to use your mega though, others have without issue.

          Maybe this post will help

          1 Reply Last reply
          0
          • M Offline
            M Offline
            maxdor
            wrote on last edited by
            #5

            Hi,

            I found the failure. I haven't seen the Pin changeing to :

            #define MY_RF24_CE_PIN 49
            #define MY_RF24_CS_PIN 53
            

            Now, the debug looks good.
            Thank U!

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


            12

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