How To Send Text Long Range Distance Using Hc-12

About the project

In this tutorial we will learn how to send a text over a Long Distance Using a HC-12 module and Arduino.

Project info

Difficulty: Moderate

Platforms: AdafruitArduinoVisuino

Estimated time: 1 hour

License: GNU Lesser General Public License version 3 or later (LGPL3+)

Items used in this project

Hardware components

ElectroPeak 0.96" OLED 64x128 Display Module ElectroPeak 0.96" OLED 64x128 Display Module x 1
Jumper wires (generic) Jumper wires (generic) x 1
Adafruit HC-12 module Adafruit HC-12 module x 1
Arduino UNO Arduino UNO x 2

Software apps and online services

Visuino Visuino
Arduino IDE Arduino IDE

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!

https://www.youtube.com/watch?v=UCx9TmArP18

Step 1:

1 / 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 / 2

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

  • Add "Pulse Generator" component
  • Add "Text Value" component
  • Select "TextValue1" and in the properties window set Value to "TEST:"
  • Connect "PulseGenerator1" pin Out to "TextValue1" pin Clock
  • Connect "TextValue1" pin Out to Arduino Serial pin In

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

1 / 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, diagrams and documents

Visuino File-Sender

Visuino File-Receiver

Code

Visuino File

Credits

Photo of Ron

Ron

Arduino Developer

   

Leave your feedback...