Serial communicate and wireless communicate

1 transmitter and second receiver

i have put 5 puch buttons with the transmiter
i have coded in the transmitter and gave the address to the nrf24 module

Transmitter pin
Arduino Nrf24
GND GND
3.3V VCC
D9 CE
D10 CSN
D13 SCK
D11 MOSI
D12 MISO
D8 PUSH BUTTON
D7 PUSH BUTTON
D6 PUSH BUTTON
D5 PUSH BUTTON

D2 BUTTON nrf24 ADDRESS TRANSFER

2 receiver

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

Please edit your Post and remove all the unnecessary blank lines. At the moment it is completely unreadable.

...R
Simple nRF24L01+ Tutorial
Serial Input Basics - simple reliable ways to receive data.

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

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.

...R

yes serial communication through i am sending the address to receiver

@sagarvarshney17 - please stop using the "report to moderator" control.

sagarvarshney17:
yes serial communication through i am sending the address to receiver

If you write a longer explanation that fully describes the project you are trying to implement it will be much easier to give useful advice.

The address must be sent to both the Tx and the Rx so the Tx knows where it is to send the message and the Rx knows the address it is to listen for.

...R

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.

...R

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.

...R

Robin sir
You do not understand me wrong, I do not want to misuse it. :frowning:

@Op

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.

(3) ........

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

AWOL:
@sagarvarshney17 - please stop using the "report to moderator" control.

I will not ask you again.

STOP IT.

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

Reported by sagarvarshney17 on 27-02-2019, 08:16:42. They left the following message:

okar sir i m edit

Reported by sagarvarshney17 on 27-02-2019, 09:07:53. They left the following message:

i m edit

Reported by sagarvarshney17 on 27-02-2019, 09:46:24. They left the following message:

yes serial communication through i am sending the address to receiver

Reported by sagarvarshney17 on Today at 11:34:24. They left the following message:

HAVE YOU MADE THE CIRCUIT DIGRAM PERFECT?

Reported by sagarvarshney17 on Today at 12:41:03. They left the following message:

What is your problem? I did not ask for any help from you?

You asked what's my problem?

Right there.

1. OK! The revised connection diagram would appear as follows with internal pull-up enabled for DPin-2.
nrf24-2.png

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.

nrf24-2.png

@sagarvarshney17 will be spending a short time away from the forum, to allow him/her to acquaint themselves better with how the forum works.