![]() With the cap in place, noise at the power line really went down and it worked perfect! ![]() So what solved my problem: just solder a 100nF ceramic cap across the gnd and 3.3v pins direct on the nrf24l01+ modules! I looked at the voltage with a scope and found a lot of noise at the power line! (on both, but the UNO was really bad) It did not work on the UNO but on the homebuilt version (i used a 33uF elko cap as 3.3Voutput cap). Long story short, the problem was the 3.3V power supply. I tried the RF24 GetteingStarted sketch, it was possible to configure moudles, but sending did not work, had always "failed" to send, even though somtimes it received the correct values. I used an Arduino UNO r1 and a homebuilt minimalDuino107 clone (slightly modified). ![]() Hi, first, thanks for sharing all your problems and solutions, it helped me fixing my problem! Thanks!Īlthough i am not using an mega 2560 (yet) i could not get the nrf24l01+ modules to run for quit a time. On my Uno and Duemilanove I can use the internal 3,3V but not on the Mega 2560. When I removed the external power from the one connected to the Mega 2560 and used the 3,3V from the Mega it stopped working, switching back to the external power supply everything was back ok. I then removed the external power supply from the one connected to my Uno and that also worked. I then tried the 2 small ones using the same power supply and they suddenly worked like they should. After a lot of head scratching I thought that maybe I had a bad module so I connected the 2 big ones and used external power, they worked. I first tested the 2 small ones and ran in to the above problems. The big ones draw quite a lot of current and you must power them from a separate power supply. I found this out because I have 4 RF24 modules, 2 small ones with the antenna on the board and 2 big ones with preamp and amp and external antenna. My Mega 2560 is a Chinese clone, maybe it has bad 3,3 voltage circuit, I don't know. When I connect the RF24 module to my Mega 2560 and take the 3,3V from my lab power supply it works. Well I got it working after trying lots of things. Let me know if you come up with a solution. I'm thinking about connecting the different systems with just a SPI connection, thus elimating the rf24 factor to see which side the problem is on, RF24 lib or SPI lib. Some good docs for the arduino hardware SPI's stuff below. The MOSI(pin 51 mega), MISO (pin 50 mega) and SCK (clock pin 52 mega) are hardwired into the ATmel chip. This keeps the mega2560 from becoming a slave (LOW input). This tests out when using working the nano to nano configuration.Īlthough, if mega's SS pin 53 is not used for CSN, then the mega's SS pin 53 still needs to be output or at least HIGH input. My understanding is, in SPI that CE and CSN are both user assignable. I'm using radio(CE,CSN), RF24 radio(49,53) also, seems convenient. The mega2560 to nano has the mega2560 timing out still. The nano to nano (using a nano instead of the uno now) is still working fine in both RX and TX. Recently I've rewired the test circuits back to where I was when I gave up. That is, the MEGA2560 never gets an ok ping back from GettingStarted.pde's ok = radio.write(.) While my mega2560 has TX to the uno, the mega always times out and never received any TXs. Your 80% time outs with TX on the mega would be an improvement for me. The fault seems to be on pin 5 SCK when you use resistors / voltage dividers! " "Had the same problem using the resistors / voltage dividers! If you connect the nrf2410 direct to the mega 2560 problem seems to be fixed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |