Wiring the NRF24L01 2.4GHz Radio as Remote Switching
In this illustration we will going to wire the Arduino Board to build a remote switching using the NORDIC NRF24l01 2.4GHz Transceiver. The NRF24l01 will act as a remote controller to other NRF24L01. Both the master and the slave will drive by the Arduino boards along with and the NORDIC NRF24l01 RF Module. The host/master controller will send a signal command to the slave device and the slave device will execute the code and send back the response if the command is HIGH or LOW.
As you can see the illustration below we use the bi-directional logic level converter as our power supply to provide 3.3v to the NRF4L01 Radio module.
Multiple I/O at the board? No, The NRF24l01 it is a communication device that works on 2.4Ghz, please refer to the documentations from the official Nordic Semiconductor,
but you can setup a multiple IO driven by the MCU from the MCU itself you can trigger any I/O which is transmitted from the NRF24l01 TX Role. Regards…
My Apologies, perhaps I was unclear. My goal would to be to have this exact setup but with maybe 3 push buttons on the transmitter and 3 leds on the receiver, and be able to use them all at the same time (being able to push 2 buttons at once and having 2 leds on at once, or 1 and 1, 3 and 3 etc.)
I just tried using the example and it had the weird effect that basically any pin on the TX could be driven high and send a signal over to the RX, I fixed this by setting the input pin high in the setup and having it check for the pin to be low for a transmission to start, this fixed the problem with that, But I would still like to be able to figure out how to have multiple buttons control multiple leds at the same time on the RX
pato amigo como vas,estoy tratando de hacer funcionar esto compadre,pero me sale un error en el sketh del receptor exactamente aqui
void loop(void){
if (radio.available()){
bool done = false;
while (!done){
radio.read(msg, 1);
Serial.println(msg[0]);
if (msg[1] == 111){delay(10);digitalWrite(Indicator, HIGH);}
else {digitalWrite(Indicator, LOW);}
delay(100);}}
else{Serial.println(“Error: No Radio Transmission”);}}
mira que la linea radio.read yo le quite el done=
y se quita el error pero me sale una lista de 0 en el monitor serial y 255 y asi sucesivamente,no se si lograstes solucionarlo estoy tambien empesando si puedes me escribes a mi correo aver si me echas una mano.. venta2016online@gmail.com
soy luiscarlos
We use cookie to provide you the best possible experience, this site uses cookies and by continuing to use the site you agree that we can save them on your device. Cookies are small text files which are placed on your computer and which remember your preference / some details of your visit. Our cookies don’t collect any personal information. For information, please read our Privacy Statement and Cookie Policy , which also explains how to disable this option in your browser. Cookie SettingsACCEPT
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are as essential for the working of basic functionalit...
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
Is there a way to make this with multiple inputs and multiple outputs? Forgive me I am a beginner at this
Multiple I/O at the board? No, The NRF24l01 it is a communication device that works on 2.4Ghz, please refer to the documentations from the official Nordic Semiconductor,
but you can setup a multiple IO driven by the MCU from the MCU itself you can trigger any I/O which is transmitted from the NRF24l01 TX Role. Regards…
My Apologies, perhaps I was unclear. My goal would to be to have this exact setup but with maybe 3 push buttons on the transmitter and 3 leds on the receiver, and be able to use them all at the same time (being able to push 2 buttons at once and having 2 leds on at once, or 1 and 1, 3 and 3 etc.)
I just tried using the example and it had the weird effect that basically any pin on the TX could be driven high and send a signal over to the RX, I fixed this by setting the input pin high in the setup and having it check for the pin to be low for a transmission to start, this fixed the problem with that, But I would still like to be able to figure out how to have multiple buttons control multiple leds at the same time on the RX
pato amigo como vas,estoy tratando de hacer funcionar esto compadre,pero me sale un error en el sketh del receptor exactamente aqui
void loop(void){
if (radio.available()){
bool done = false;
while (!done){
radio.read(msg, 1);
Serial.println(msg[0]);
if (msg[1] == 111){delay(10);digitalWrite(Indicator, HIGH);}
else {digitalWrite(Indicator, LOW);}
delay(100);}}
else{Serial.println(“Error: No Radio Transmission”);}}
mira que la linea radio.read yo le quite el done=
y se quita el error pero me sale una lista de 0 en el monitor serial y 255 y asi sucesivamente,no se si lograstes solucionarlo estoy tambien empesando si puedes me escribes a mi correo aver si me echas una mano..
venta2016online@gmail.com
soy luiscarlos
Can someone extend the code for 6 buttons and 6 leds because i dont know how to do it i just started with the programming ..