Twitter icon
Facebook icon
LinkedIn icon
Google icon
Reddit icon
StumbleUpon icon
Del.icio.us icon

How to Send Text Long Range Distance Using HC-12

Added to IoTplaybook or last updated on: 03/10/2021
How to Send Text Long Range Distance Using HC-12

Story

In this tutorial we will learn how to send a text over a Long Distance Using a HC-12 module and Arduino.We are going to make a Sender and a Receiver.

Watch the video!

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
 
× 2

Newark

 
Adafruit HC-12 module
 
× 1  
Jumper wires (generic)
Jumper wires (generic)
 
× 1

Newark

0.96" OLED 64x128 Display Module
ElectroPeak 0.96" OLED 64x128 Display Module
 
× 1

ElectroPeak

Software apps and online services

Arduino IDE
Arduino IDE
 
  Arduino.cc
 
Visuino
 
 

 

 

Step 1:


1 / 7


2 / 7


3 / 7


4 / 7


5 / 7


6 / 7


7 / 7

  • 2X HC-12 Module
  • OLED Display
  • 2X Arduino UNO (or any other Arduino)
  • Breadboard
  • Jumper wires
  • Visuino software: Download Visuino

Step 2: Circuit - Sender

  • Connect HC-12 pin [VCC] to Arduino pin [5V]
  • Connect HC-12 pin [GND] to Arduino pin [GND]
  • Connect HC-12 pin [TX] to Arduino pin [RX]
  • Connect HC-12 pin [RX] to Arduino pin [TX]

Step 3: Circuit - Receiver

  • Connect HC-12 pin [VCC] to Arduino pin [5V]
  • Connect HC-12 pin [GND] to Arduino pin [GND]
  • Connect HC-12 pin [TX] to Arduino pin [RX]
  • Connect HC-12 pin [RX] to Arduino pin [TX]
  • Connect OLED Display pin[VCC] to Arduino pin[5V]
  • Connect OLED Display pin[GND] to Arduino pin[GND]
  • Connect OLED Display pin[SDA] to Arduino pin[SDA]
  • Connect OLED Display pin[SCL] to Arduino pin[SCL]

Step 4: Start Visuino, and Select the Arduino UNO Board Type


1 / 7


2 / 7

The Visuino: https://www.visuino.eu also needs to be installed. Download Free version or register for a Free Trial.

Start Visuino as shown in the first picture Click on the "Tools" button on the Arduino component (Picture 1) in Visuino When the dialog appears, select "Arduino UNO" as shown on Picture 2

Step 5: Sender - in Visuino Add,Set & Connect Components


1 / 4

 


2 / 4


3 / 4


4 / 4

  • Add "SSD1306/SH1106 OLED Display (I2C)" component
  • Connect Arduino pin Serial Out to "DisplayOLED1" pin In
  • Connect "DisplayOLED1" pin I2C Out to Arduino pin I2C In

Step 7: Generate, Compile, and Upload the Arduino Code

For both Sender and Receiver:

In Visuino, at the bottom click on the "Build" Tab, make sure the correct port is selected, then click on the "Compile/Build and Upload" button.

Very Important! Make sure that while you are uploading the code that Pin RX on the Arduino is disconnected and after the uploading connect it back.

Step 8: Play

If you power both Arduino UNO modules, the OLED Display on the receiver will start to show the text that the Sender is sending.

Congratulations! You have completed your project with Visuino. Also attached is the Visuino project, that I created for this tutorial, you can download it and open it in Visuino: https://www.visuino.eu

Step 6: Receiver- in Visuino Add,Set & Connect Components


1 / 2


2 / 2

  • Add "SSD1306/SH1106 OLED Display (I2C)" component
  • Connect Arduino pin Serial Out to "DisplayOLED1" pin In
  • Connect "DisplayOLED1" pin I2C Out to Arduino pin I2C In

Step 7: Generate, Compile, and Upload the Arduino Code

For both Sender and Receiver:

In Visuino, at the bottom click on the "Build" Tab, make sure the correct port is selected, then click on the "Compile/Build and Upload" button.

Very Important! Make sure that while you are uploading the code that Pin RX on the Arduino is disconnected and after the uploading connect it back.

Step 8: Play

If you power both Arduino UNO modules, the OLED Display on the receiver will start to show the text that the Sender is sending.

Congratulations! You have completed your project with Visuino. Also attached is the Visuino project, that I created for this tutorial, you can download it and open it in Visuino: https://www.visuino.eu

Schematics

Visuino File-Sender

Visuino File-Receiver

Code

Visuino File - Arduino

Credits

ronfrtek

ronfrtek

 


 

 

 

 

 

 

 

Hackster.io

This content is provided by our content partner Hackster.io, an Avnet developer community for learning, programming, and building hardware. Visit them online for more great content like this.

This article was originally published at Hackster.io. It was added to IoTplaybook or last modified on 03/10/2021.