Categories
TUTORIALS

PLAY 315MHZ RF TRANSMITTER AND RECEIVER MODULES WITH ARDUINO

In this tutorial, we are going to create a wireless communication  with Arduino using RF transmitter and receiver modules.

RF Receiver on the Right and RF Transmitter on the Left

The RF Transmitter and Receiver Modules are very small in dimension and have a wide operating voltage range (3V-12V). They operate at 315Mhz and can be used to transmit signal up to 100 meters (the antenna design, working environment and supply voltage will seriously impact the effective distance). It is good for short distance, battery power device development. The wireless transmitter and receiver can easily fit into a breadboard and work well with microcontrollers to create a very simple wireless data link. There are some module parameters for the transmitter and the receiver.

Transmitter module parameters

  1. Product Model: MX-FS-03V
  2. Launch distance :20-200 meters (different voltage, different results)
  3. Operating voltage :3.5-12V
  4. Dimensions: 19 * 19mm
  5. Operating mode: AM
  6. Transfer rate: 4KB / S
  7. Transmitting power: 10mW
  8. Transmitting frequency: 433Mhz
  9. An external antenna: 25cm ordinary multi-core or single-core line
  10. Pinout from left → right: (DATA; VCC; GND)
 

Receiver module parameters

1. Product Model: MX-05V
2. Operating voltage: DC5V
3. Quiescent Current: 4mA
4. Receiving frequency: 433Mhz
5. Receiver sensitivity:-105DB
6. Size: 30 * 14 * 7mm
Material List

As we want to design a system in which two Arduinos can communicate with each other, we need:

  • 2 Arduino Uno boards
  • 2 Soderless Breadboards
  • One  315Mhz RF Transmitter
  • One  315Mhz RF Receiver
  • 6 Wires
Circuit Diagram

In this example, the RFreceiver and transmitter modules are connected separately to two Arduino boards. The transmitter data pin is connected to Pin 12 of Arduino and the receiver data pin is connected to Pin 11 of Arduino.

The circuit diagram(schematic) for the RF Transmitter part with Arduino is shown below.

The circuit diagram(schematic) for the RF Receiver part with Arduino is shown below.

There is also an image showing the actual wiring of the RF transmitter and receiver modules with Arduino.

Codes

To make the RF transmitter and receiver to communicate with Arduino, you need to download the VirtualWire library in your local Arduino library folder. Here is a link to download the VirtualWire  library.

Below is a sample code using the VirtualWire library in Arduino for the RF transmitter.

Below is a sample code using the VirtualWire library in Arduino for the RF receiver.

Now you can upload the codes to their corresponding Arduinos with transmitter and receiver connected;) , but BE CAREFUL that you may want to change the port when plugging with a different Arduino and make sure the two RF modules have their correct corresponding codes.

After finishing uploading the codes, now you need to plug the Arduino  with the RF receiver to your computer and give power to the Arduino with the RF transmitter(either plugging it to anther computer or to an external battery). Open the serial monitor for the receiver Arduino board and see how they can communicate!

Below is the sample text shown from the serial monitor of the Arduino with the RF receiver.

Thanks for reading!

Leave a Reply

Your email address will not be published. Required fields are marked *