I'm trying out various tutorials on the nRF24L01 transceivers but in 99% of them, how to hook up the pins are hardly ever explained. Being a newbie, I'm a bit lost. Is it assumed that all the pins on the nRF24L01 are hooked up to the same corresponding pins on the Arduino (e.g. MOSI, MISO, SCK) but what about the CSN, CE and IRQ pins across all libraries for this transceiver?
I'm currently trying to figure out the "LED-Remote" tutorial by Maniacbug here:
http://arduino-info.wikispaces.com/nRF24L01-RF24-Examples
I'm assuming MOSI goes > MOSI, MISO > MISO, SCK > SCK, but what about the other pins? In the setup, it specifies RF24 radio(9,10); are these for CSN and CE? If so, which pin is which?
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include "printf.h"//
// Hardware configuration
//// Set up nRF24L01 radio on SPI bus plus pins 9 & 10
RF24 radio(9,10);
// sets the role of this unit in hardware. Connect to GND to be the 'led' board receiver
// Leave open to be the 'remote' transmitter
const int role_pin = A4;// Pins on the remote for buttons
const uint8_t button_pins[] = { 2,3,4,5,6,7 };
const uint8_t num_button_pins = sizeof(button_pins);// Pins on the LED board for LED's
const uint8_t led_pins[] = { 2,3,4,5,6,7 };
const uint8_t num_led_pins = sizeof(led_pins);
Complete code here: http://maniacbug.github.com/RF24/led_remote_8pde-example.html