Two way rf-communication

Hey everybody,

I was wondering if it would by possible to set up a two way communication between two arduino's with rf.
So each Arduino will get a transmitter and a receiver. Each arduino can receive and transmit data to the other Arduino.
Would it work?

Yes. There are many different ways and levels of proficiency.

The easiest is probably XBee, but with a price tag.

The cheapest is probably nRF24L01; can be bought for under £2 each and do up to 2Mbs in the 2.4Ghz band.

You could also use bluetooth, but this is a master/slave set up so probably best to go with the Xbee of nRF.

Would it also be possible with simple rf-transmitters/receivers like these:

Yes, using virtual wire library.

Side A transmits, then waits for a response.

Side B receives, then sends a message back.

Both cannot send at the same.

So using the modules from the picture above to set up a two way communication is not possible?

It is two way communication if both modules can send data , just not full-duplex communication. Half-duplex is a turn based communication like walkie talkies.

Those modules are only one way. One is transmitter and the other is receivr.

You want transceivers, so that each can act as transmitter or receiver. As said above, if they can only act in one mode at a time then they are half duplex.

Take a look at nRF24L01+ modules and the RF24 and RF24Network libraries from maniacbug.

Maybe i'm using the wrong words, but what I want to do is that both arduinos are able to send and receive just one character. I thought it may be possible with a receiver and transmitter attatched to a single arduino. So you use 2 pairs of rf-modules. Maybe it's a bit difficult to understand but hopefully now you understand it. Would this be possible?

For sure you can have a transmitter & receiver pair on each arduino.
I would recommend using something like the NRF24l01(+) which is a cheapo and looks after a lot of transmission specifics.

Hi all,
I'm also trying to comunicate 2 arduinos with a transmitter and receiver attached to each one.
MaartenWoutTycho, could you please post the code for each arduino you used to achieve this?
Many thanks in advance.

Download this >>>> GitHub - maniacbug/RF24: Arduino driver for nRF24L01 open and study.

It is an excellent starting point with many WORKING examples using the NRF24L01 2.4ghz radios, these are TRANSCEIVERS which are capable of both TX/RX or transmitting and receiving .

Essef :sunglasses: