Monday, July 6, 2020

HC-12 433MHz Transceiver Interfacing with Arduino Uno By Engr.Habib Ur Rehman

HC-12 433MHz Transceiver 
Interfacing with Arduino Uno
By Engr.Habib Ur Rehman


Components/Equipment Required:

            Following Components/Equipment are required to perform task.

1.    Arduino Uno (https://piees.pk/product/arduino-uno-r3/)

2.    HC-12 433MHz Transceiver x 2 (https://piees.pk/product/hc-12-433mhz-transceiver/)

3.    Breadboard

4.    Jumper Wires (https://piees.pk/product-category/jumper-wires/)

Circuit Diagram:

Arduino Program:

#include <SoftwareSerial.h>

SoftwareSerial HC12(10, 11);

void setup() {

  Serial.begin(9600);            

  HC12.begin(9600);              

}

void loop() {

  while (HC12.available()) {       

    Serial.write(HC12.read());     

  }

  while (Serial.available()) {     

    HC12.write(Serial.read());     

  }

}   

Note:

Transmitter and receiver program is same

No comments:

Post a Comment