(The original Chinese version of this article was written by Jeremy Lee and published on MakerPRO)
With the popularity of IoT applications, the communication between humans and things has become more frequent. Information delivery technology is the key factor to influence IoT practice. In the past, high power consumption and short-range information delivery used to result in the incapability of breakthrough on IoT, while LoRa technology now solves these issues efficiently. This article will talk about basic applications of LoRa technology.
1. Arduino Uno Development Board x1
2. Breadboard x1
3. 10K-OHM Variable Resistor x1
4. Dupont Line Set Male to Male x several
5. GIoT GL6509 x1
6. Raspberry Pi with SD Card x1
7. Install the Arduino Integrated Development Environment
Part 1: Connect Arduino with GIoT Module
1. Hardware Installation: Follow the table below to have the wire connection.
2. Software Installation: Get the open source software from the link below, and open with Arduino IDE https://github.com/giot-tw/Arduino/raw/master/Lab00_software_to_native_serial/Lab00_software_to_native_serial.ino
3. Verification: As the picture shows below, click “Tools”, open “Serial Monitor”, then type “AT”. If it shows “OK”, it means that Arduino has successfully connected with G-IoT module.3. Verification: As the picture shows below, click “Tools”, open “Serial Monitor”, then type “AT”. If it shows “OK”, it means that Arduino has successfully connected with G-IoT module.
Part 2: Set Up Cloud and Gateway
1. Open GIoT MQTT Console (https://cust00-01.giotgateway.com/giot-mqtt/)
2. Log In (username:email@example.com; password:gemtek@1234)
3. Install Python for windows 2.7.13 (https://www.python.org/downloads/) and make sure that python.exe is in %PATH%, then add “$pip install paho-mqtt”.
4. Enter https://cust00-01.giotgateway.com/giot-mqtt/, and bind GIoT MQTT Console.
5. Change your topic, username and password on https://github.com/giot-tw/ServerPython/blob/master/Lab01_MQTT_sub.py
6. Type “AT+DTTX” on Serial Monitor, and verify whether any data has issued.
Part 3: Utilize Variable Resistor to Simulate Signal Input
1. Connect variable resistor to Arduino with the chart below:
2. Change topic, username and password in source code
We believe that you have successfully finished the testing and installation after following the instruction. IoT technology is the key to the development of future technology. LoRa’s low power consumption and long-range delivery could be applied diversely in daily life like smart agriculture, environment monitoring and air quality detector. If you have a great idea, please don’t hesitate to put into practice.