![]() ![]() "So may be we have to add int the code : PinMode(53, OUTPUT) in the setup." Isn't it ?" Yes this my understanding also, the SPI lib, the example GettingStarted.pde and maniac's lib should be handling this? They did for the UNO and nano run, with no problems. "There is alsa an CE pin that must be set or unset considering TX or RX according the doc. ![]() Thanks for the link, I'll look at it later. Hopefully, someone can see where I when wrong. *** PRESS 'T' to begin transmitting to the other node MEGA status RF24/examples/GettingStarted/ Both were the same, both had config= 0x0C as the only differents from below status. I added a radio.printDetails() after the GettingStarted.pde'sīool ok = radio.write( &time, sizeof(unsigned long) ) įor both UNO and MEGA. Tried flashing leds on MEGA's 50-53 pins to make sure that they sort of worked and I was lining pins up right. Tried different (ce, csn) pins on MEGA (8,9), (4,5) and (9,53) for GettingStarted.pde RF24 radio(9,10) Swapped out the MEGA2560 with a different MEGA2560. UNO still worked and the MEGA still did not work. Swapped radios modules (with the wiring) from UNO to MEGA. Seems ok to me? I Checked to make sure the MEGA2560 was getting define as ( AVR_ATmega2560) it was. UNO/NANO had MOSI:11 MISO:12 SCK:13 SS:10 and MEGA had MOSI:51 MISO:50 SCK:52 SS:53. So I had the adruino 1.0's SPI.cpp Serial print the DEFINES pre pinMode() assigments. Some earlier forums reports were concern with SPI library and the MEGA. Tried ElecFreaks code (ElectFreakLIB(10-11)_SPI_rf24L01(1).zip) they said was for MEGA2560. So, I check my clock SCK wire, shorten it. Some of the ICSP header pins for awhile, which I believe has some resistor in line. The fault seems to be on pin 5 SCK when you use resistors / voltage dividers!" I've not used the resistors directly, I did try to connect some pins on rf24 with If you connect the nrf2410 direct to the MEGA 2560 problem seems to be fixed. "Had the same problem using the resistors / voltage dividers! Topic: Problem with Nrf24L01+ and arduino MEGA (Read 294 times) Tried different versions of maniacBug's lib. Tried different versions of arduino v22 and v23. That is NANO would recieve but MEGA would not Recieve. The Hardware wiring differents for UNO, NANO and MEGA: My first thoughts were wiring errors, but UNO worked fine. repeats Nothing more from MEGA's serial.īelow other attempts to solve the problem: / NANO transmitter with MEGA recieving ** CHANGING TO TRANSMIT ROLE - PRESS 'R' TO SWITCH BACK Reversing the TX and RX With NANO as the TX and Serial on NANO as RX: Got payload 5976.Sent response. ![]() Serial on MEGA as TX : ** CHANGING TO TRANSMIT ROLE - PRESS 'R' TO SWITCH BACK Would not get an ok ping back from GettingStarted.pde's ok = radio.write(.)Īnd then it would time out. The NANO would recieve the correct time, but the MEGA2560 They both worked fine as either RX or TX. I first had a working radio connection with the UNO board and the NANO. Used the same code for all the arduinos for testing GettingStarted.pde I'm using arduino 1.0 IDE and maniacbug-RF24-53cb579.zip (12/11/11) for the radio's library.įor code I'm Using the maniacbug's examples GettingStarted.pde. I'm having troubles getting a MEGA2560 (not r3) to connect with a NANO v3 using the rf24L01+ radio. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |