433 arduino wireless communication

[Fix] Wireless Communication 433MHz FS1000A Arduino

Posted on

The 433MHz FS1000A Arduino module is one of the wireless modules that can be used. This Wireless consists of two separate modules that is Transmitter and Receiver. Transmitter is a data sender module. Receiver is a data receiver module.

Applications of this wireless module such as electric door remote, led wireless control, garage door, remote controller for mp3, car security, wireless wall clock control and etc.

Before using this module, based on my experience, we should make an antenna for the tranceiver and receiver.  I have tried using this module without an antenna, the results are not good. then I looked for various articles and I got a way to make an antenna for this model I got this antenna model here. For the image that I have added the antenna please look at the image below.

Schematic

After creating the antenna as in the picture above, please connect the modules to Arduino as shown above:

433 FS1000A Arduino schematic

Library

To be able to send and receive data, there are several methods. Some use libraries and some don’t use them. There are two libraries available to access this module, Radio Head and Virtual Wire. I think using a virtual wire library is the best. Please download the Virtual Wire library below:

Download VirtualWire Library

After downloading, please add the library to Arduino :

  • Open Arduino ID Click Sketch> Include Libary> Add. ZIP Libary
  • Select VirtualWire-1.27.zip> Click OK

Program

Below I have provided two programs for Transceiver and Receiver. I have tried these two programs and succeeded. Please use the following program.

Transceiver Code:

#include <VirtualWire.h>

void message(char *text) {
  Serial.println(text);
  vw_send((uint8_t *)text, strlen(text));
  vw_wait_tx();
  delay(100);
}

void setup() {
  vw_set_ptt_inverted(true);
  vw_set_tx_pin(12);
  vw_setup(4000);
  Serial.begin(9600);
}

void loop() {
  message("Test");

  message("Hello World");

  message("Welcome to Hambo Elektronik");
}


Receiver Code:

#include <VirtualWire.h>

byte numArray [VW_MAX_MESSAGE_LEN];
byte message = VW_MAX_MESSAGE_LEN;

void setup() {
  vw_set_ptt_inverted(true);
  vw_set_rx_pin(11);
  vw_setup(4000);

  vw_rx_start();

  Serial.begin(9600);
}

void loop() {
  if (vw_get_message(numArray, &message))
  {
    for (int i = 0; i < message; i++) {
      Serial.write(numArray[i]);
    }

    Serial.println();
    message = VW_MAX_MESSAGE_LEN;
  }

}

Result:

Read other articles  Arduino RC522 RFID TUTORIAL

433MHz Communication Arduino

Hopefully this 433MHz FS1000A Arduino article is useful for everyone.

Leave a Reply

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