Leonardo Micro Pro and NRF24

My radio modules work great with Arduino uno. But the same sketches don’t work on the atmega32u4 micro. The weird thing is that I tried an rfid reader which uses spi as well and it worked.....I’m absolutely befuddled

The micro probably uses different pins for SPI compared to the Uno - have you made the necessary changes?

I know that an nRF24 works with a Leonardo.

If you want more help please post the program that works on the Uno and not on the micro

...R
Simple nRF24L01+ Tutorial

So I did use different pins. And spent all day quadruple checking I had it right and trying compiling using Leonardo, then Leonardo eth, then micro, then back to leonardo. Weird thing was everything except the nrf24 radio worked. Finally at the end of the day I ran across a post somewhere about SparkFun’s driver for the micro pro 5ghz atmega32u4. It worked! Basically it wasn’t compiling correctly until I used sparkfun’s micro pro driver which I add to the boards through preferences pane.

1 Like