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. arduino Mega 2560 : radio init fail [solved]

arduino Mega 2560 : radio init fail [solved]

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

    Hello,
    I have an arduino mega 2560 Geekcreit, that seems to work well on basic sketches.
    uploaded the basic gateway sketch version 2.1.1 with nothing added.
    Connected a radio that has been tested on a uno and that works on this arduino uno.
    wiring double checked. capacitor added on 3.3V and GND.
    Voltage measurement on the radio : 3.29V and seeming stable.
    Below is my debug log.
    What else can I try to make it work, or find the fault?
    Thanks.

    Nicolas

    0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.1
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSF:WUR:MS=0
    0;255;3;0;9;RF24:write register, reg=0, value=14
    0;255;3;0;9;RF24:write register, reg=3, value=3
    0;255;3;0;9;RF24:write register, reg=4, value=95
    0;255;3;0;9;RF24:write register, reg=5, value=76
    0;255;3;0;9;RF24:write register, reg=6, value=35
    0;255;3;0;9;RF24:write register, reg=16, value=115
    0;255;3;0;9;RF24:write register, reg=29, value=6
    0;255;3;0;9;RF24:read register, reg=6, value=255
    0;255;3;0;9;RF24:read register, reg=5, value=255
    0;255;3;0;9;!RF24:INIT:SANCHK FAIL
    0;255;3;0;9;!TSM:INIT:TSP FAIL
    0;255;3;0;9;TSM:FAIL:CNT=1
    0;255;3;0;9;TSM:FAIL:PDT
    0;255;3;0;9;RF24:write register, reg=0, value=12
    0;255;3;0;9;RF24:PD

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

      Double check the wiring and if you used the right pins for the mega 2560

      1 Reply Last reply
      0
      • npiotN npiot

        Hello,
        I have an arduino mega 2560 Geekcreit, that seems to work well on basic sketches.
        uploaded the basic gateway sketch version 2.1.1 with nothing added.
        Connected a radio that has been tested on a uno and that works on this arduino uno.
        wiring double checked. capacitor added on 3.3V and GND.
        Voltage measurement on the radio : 3.29V and seeming stable.
        Below is my debug log.
        What else can I try to make it work, or find the fault?
        Thanks.

        Nicolas

        0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.1.1
        0;255;3;0;9;TSM:INIT
        0;255;3;0;9;TSF:WUR:MS=0
        0;255;3;0;9;RF24:write register, reg=0, value=14
        0;255;3;0;9;RF24:write register, reg=3, value=3
        0;255;3;0;9;RF24:write register, reg=4, value=95
        0;255;3;0;9;RF24:write register, reg=5, value=76
        0;255;3;0;9;RF24:write register, reg=6, value=35
        0;255;3;0;9;RF24:write register, reg=16, value=115
        0;255;3;0;9;RF24:write register, reg=29, value=6
        0;255;3;0;9;RF24:read register, reg=6, value=255
        0;255;3;0;9;RF24:read register, reg=5, value=255
        0;255;3;0;9;!RF24:INIT:SANCHK FAIL
        0;255;3;0;9;!TSM:INIT:TSP FAIL
        0;255;3;0;9;TSM:FAIL:CNT=1
        0;255;3;0;9;TSM:FAIL:PDT
        0;255;3;0;9;RF24:write register, reg=0, value=12
        0;255;3;0;9;RF24:PD

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

        @npiot also check that you've added the defines required for nrf24 on mega ( i structions are available at https://www.mysensors.org/build/connect_radio )

        1 Reply Last reply
        0
        • npiotN Offline
          npiotN Offline
          npiot
          wrote on last edited by
          #4

          Well, thanks a lot, it solved it. I saw the different wiring for mega2560, but not the star which added two lines to the sketch :
          #define MY_RF24_CE_PIN 49
          #define MY_RF24_CS_PIN 53

          It works now! thanks also for your reactivity;

          Nicolas

          mfalkviddM 1 Reply Last reply
          0
          • npiotN npiot

            Well, thanks a lot, it solved it. I saw the different wiring for mega2560, but not the star which added two lines to the sketch :
            #define MY_RF24_CE_PIN 49
            #define MY_RF24_CS_PIN 53

            It works now! thanks also for your reactivity;

            Nicolas

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

            @npiot great, thanks for reporting back. And the star wasn't there before, I added it when I suspected that the defines could be easily missed :) Thanks for helping make the documentation better.

            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


            12

            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