Answer
Jul 18, 2025 - 03:38 AM
To wire up and program two Arduino boards with the WHADDA WPI322 2.4 GHz NRF24L01 Wireless Transceiver Modules to control an LED wirelessly, follow these steps:
1. **Wiring:**
- You will need two Arduino boards and at least two RF modules, one for transmitting and the other for receiving.
- Use the Arduino board's 3.3V pin (VDD3V3) to provide power to the NRF24L01 module (power supply: 1.9-3.6V).
- Do not use the 5V pin (VDD5V) to provide power as it may damage the module.
- Connect the pins of the RF module to the Arduino board as follows:
- GND to GND
- VCC to 3.3V
- CE to D9
- CSN to D10
- SCK to D13
- MOSI to D11
- MISO to D12
- Install a jumper wire between analog pin A4 and GND on the Arduino board that needs to act as the receiver.
2. **Programming:**
- Upload the provided example program to both the transmitting and receiving Arduino boards.
- The example program uses the RF24 library to control an LED wirelessly.
- Connect a button to digital pin 2 on one Arduino board and an LED (with a current-limiting resistor) to the other Arduino board.
- Upload the same sketch to both Arduino boards.
- Once the setup is completed and running, the LED on the receiving side should toggle on/off when pressing the button connected to the transmitting Arduino.
3. **Example Program:**
- The example program provided in the manual demonstrates how to use the RF24 library to wirelessly control an LED between two Arduino boards using the NRF24L01 modules.
- The program includes setup for roles (transmitter or receiver), configuring the RF radio, setting up button and LED pins, and handling button states for remote and LED roles.
4. **Testing:**
- Power on both Arduino boards and confirm proper connection of the RF modules by checking the RX and TX addresses in the serial monitor (set to 115200 baud).
- Pressing the button connected to the transmitting Arduino should toggle the LED connected to the receiving Arduino on/off wirelessly.
For more detailed information and troubleshooting, refer to the provided manual and the Arduino website for additional resources.
By following these steps and referring to the manual, you should be able to wire up and program the Arduino boards with the NRF24L01 modules successfully to control an LED wirelessly.
User Manual Q&A

Add New Comment