Home - gskidd/Arduino-RF24-Communication GitHub Wiki

About

Two Arduino Unos wirelessly communicate via 2 RF24 transceivers. Both have push buttons and a different frequency is emitted for each button.

Description

This project combines the Arduino Uno with a RF24 transceiver to wireless communicate with another Arduino Uno with a RF24 transceiver. Each Arduino has 3 buttons and a piezo speaker connected to it and whenever a button is pressed on the Arduino in the transmitter role, the other one in the receiver role should emit a tone from the speaker. The role is first determined by the A4 Analog pin in the Arduino. If the pin is grounded, the Arduino is set to the receiver role (role_led), but if the pin is set to 5V, the Arduino is set to the transmitter role (role_remote).

To get the Arduinos to communicate correctly, open up two instances of the Arduino IDE so two consoles can be opened up for both Arduinos. Don't open up one and click new to open up a second page. That does not work. Go to the Arduino shortcut and open up two Arduino IDE's.

Make sure to connect the RF24 to 3.3V, not the 5V. The 5V will fry the chip if you use it.

The explanation of the code is in the code page.

Schematic

Schematic is the same for both. The diagram to the right of the RF24 is corresponds to the 8 pins in the bottom right of the chip.

Below is a picture of what the layout looks like once wired up. Do the same for the second Arduino.