Загрузка...

Arduino nano NRF24 LoRa with press button control LED

Transmitter with Button (Arduino Nano): Sends a signal to toggle the LED on/off each time the button is pressed.
Receiver with LED (Arduino Nano): Listens for the signal and toggles the LED.

Power Supply

NRF24L01 modules can be sensitive to voltage. Arduino Nano's 3.3V output might not supply enough current.

I try adding a 10µF capacitor between VCC and GND on the NRF24L01 and it does help stabilize the power I eventually manage to place it 12 meters away and worked well.
Pin Connections

Double-check the wiring between your Arduino and NRF24L01.
Transmitter & Receiver Arduino:
CE to D9
CSN to D10
SCK to D13
MOSI to D11
MISO to D12
VCC to 3.3V (use an external 3.3V supply if possible)
GND to GND

Wiring Summary

Transmitter Arduino:
Button connected to D2 (with a pull-up resistor if not using INPUT_PULLUP).
NRF24L01 pins (CE to D9, CSN to D10).

Receiver Arduino:
LED connected to D2.
NRF24L01 pins (CE to D9, CSN to D10).

Each time you press the button on the transmitter, it will toggle the LED on the receiver.

Code:
https://github.com/ukkokalevala/NRF24_Button_LED.git

Видео Arduino nano NRF24 LoRa with press button control LED канала Electricum
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки