arduino Mega 2560 : radio init fail [solved]
-
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
-
Double check the wiring and if you used the right pins for the mega 2560
-
@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 )
-
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 53It works now! thanks also for your reactivity;
Nicolas
-
@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.