i have put 4 led light with the receiver
i have coded in the receiver but i am not gave the address to the nrf24 module
Receiver
Arduino Nrf24
GND GND
3.3V VCC
D9 CE
D10 CSN
D13 SCK
D11 MOSI
D12 MISO
D8 LED
D7 LED
D6 LED
D5 LED
Transmitter side i have a arduino uno, nrf24 module one push button and connected to rx and tx of receiver side
and whenever push button is pressed i want to send address to the receiver side through serial communication and
receiver side gets address of transmitter via serial communication.that address will be used to establish
wireless communication
Then receiver received the address then i am remove the tx and rx cable
sagarvarshney17:
i do not want to give an address to the receiver
i want to send the address to the transmitter and receiver via serial communication through
I don't think I understand.
Communication between nRF24s requires addresses.
You don't have to hard-wire the address into your program code. You could send the address using a serial connection but you will have to give the address details to both the Tx and the Rx.
Get simple wireless communication working reliably before you try adding extra features.
I have two arduino boards(1. Transmitter, 2.reciever)... Both coonected with a seprate nrf module. On the transmitter arduino... I have given it the address of its nrf module... I want it to transmit it to the reciever arduino using Rx and Tx. Coonnections with a push button as a switch
sagarvarshney17:
I have two arduino boards(1. Transmitter, 2.reciever)... Both coonected with a seprate nrf module. On the transmitter arduino... I have given it the address of its nrf module... I want it to transmit it to the reciever arduino using Rx and Tx. Coonnections with a push button as a switch
Please post the programs for your two Arduinos.
Please also display your image(s) in your post so we can see it(them) without downloading it(them). See this Simple Image Upload Guide (I presume you have NOT posted pictures of text)
I can't imagine why you want to go to the trouble of having a wireless connection between two Arduinos that are already connected by wire.
I can not tell you why i am doing this.
It's secret
I want to control leds wirelessly using nrf24 module, but I would like to do it in different way.
normally nrf24 establishes wireless connection by setting a unique address on both side(transmitter and receiver).
What i would like to do is I will be setting address only on transmitter side.and i will send that address to receiver through
serial communication(spi or i2c) .and I want to save that address to some variable on receiver side(EEPROM )non volatile memory).
once the address has been sent the ,serial communication wires will be removed and in the receiver side program i will be using that
address for setting nrf24 address.Now as both addresses are same it is possible to establish wireless communication.
the idea is that i will not be setting address on receiver side .So even without setting address on receiver side
wireless connection can be established.
It is just an idea, I would like to know is it possible and what are the suggestion for this project?
sagarvarshney17:
I can not tell you why i am doing this.
It's secret
The Arduino is an Open Source system and I am not going to help with a secret project. For all I know it is completely illegal or seriously anti-social.
And if it is a legitimate money-making device then pay for professional help and don't expect to profit from me giving you free advice.
1. I have drawn a schematic view based on your first post (I hope that I have understood your post a little bit) about your connection between 2 Arduinos.
Figure-1: Connection diagram between 2 Arduinos using nrf Modulles and Software UART Ports
2. Now, you let us know giving points like (1), (2), .., what you want to achieve and then we may help you. You may forget me as my nrf modules never worked; anyway, this time I will make an attempt. The steps could be like this: (1) If K5 is pressed, LD5 will be ON.
(2) If K6 is pressed, the address of nrf24-2 will be sent to NANO using Software UART Port.
i do not want to give an address to the receiver
i want to send the address to the transmitter and receiver via serial communication through
I have two arduino boards(1. Transmitter, 2.reciever)... Both coonected with a seprate nrf module. On the transmitter arduino... I have given it the address of its nrf module... I want it to transmit it to the reciever arduino using Rx and Tx. Coonnections with a push button as a switch
Fine! Make a connection between UNO and NANO using SUART Port. What is the intended 64-bit address for the nrf24 module of NANO? Which switch of UNO (K5 or K6 or K7 or K8) do you want to press to send the address to the NANO?
Remember: Before the nrf modules start communication, the NANO must receive its address first from the UNO and then stores the address in a global variable.
d8,d7,d6,d5 these buttons are used for light on and off
d2 buttons i want to use digital pin2 to transmit the address from the transmitter to the receiver
1. OK! The revised connection diagram would appear as follows with internal pull-up enabled for DPin-2.
2. Do you know how to create a Software UART Port (SUART Port) with DPin-3 as SRX and DPin-4 as STX? Do you know how to send a 64-bit integer (the address of nrf-2 : 0x12345678ABCDEF12) from UNO to NANO using the SUART Port? Try to write few lines whatever it could be and post it here. We will help you to correct it. You may consult some of the threads/posts relating to UART/SUART Ports in the Arduino Forum to get help.