Difference between revisions of "Lora Relay"

From MakerFabsWiki
Jump to: navigation, search
(Created page with "== Introduction == 500px<br> <br> : The Lora Relay, with Lora communication, suit for applications for smart-farm, irrigation, agriculture, etc.<br...")
 
(Introduction)
Line 27: Line 27:
 
[[File:Lora_Soil_01A.jpg|500px]]<br>
 
[[File:Lora_Soil_01A.jpg|500px]]<br>
 
Free ISM bands world Wide(come from TI)<br>
 
Free ISM bands world Wide(come from TI)<br>
Lora Soil Moisture Sensor based on the Arduino, users can program it with Arduino IDE, which is very easy especially suit for the none-programmers. There are also guide for users to learn how to create the first IoT project with this board, with which the starters can learn the hardware and programming skill quickly.<br>
+
Lora Relay based on the Arduino, users can program it with Arduino IDE, which is very easy especially suit for the none-programmers. There are also guide for users to learn how to create the first IoT project with this board, with which the starters can learn the hardware and programming skill quickly.<br>
  
This guide help you the basic usage of Lora Soil Moisture Sensor. <br>
+
This guide help you the basic usage of Lora Relay. <br>
 
 
This Moisture Sensor can be used to detect the moisture of soil or judge if there is water around the sensor. They can be very easy to use, just insert it into the soil and then analog read it. With help of this module, it will be realizable to make the plant reminds you : Hey, I am thirsty now, I need some water.<br>
 
This design is based on a capacitive principle. We integrated the 555 oscillator capacitive measurement, which will give you a reading ranging from about 500 (very wet) to 1000 (very dry).<br>
 
  
 
== Features ==
 
== Features ==

Revision as of 01:53, 24 June 2020

Introduction

Lora Relay 01.jpg

The Lora Relay, with Lora communication, suit for applications for smart-farm, irrigation, agriculture, etc.

Lora Relay offers bandwidth options ranging from 7.8125kHz to 500 kHz with spreading factors ranging from 6 to 12, there are three choices of the working frequency.

Item Lora Module working frequency
Lora Soil Moisture Sensor 433M RFM98W-433MHz/SX1278 433MHz
Lora Soil Moisture Sensor 868M RFM95W-868MHz 433MHzcommunication is established.
Lora Soil Moisture Sensor 915M RFM95W-915MHz 915MHz

Lora Soil 01A.jpg
Free ISM bands world Wide(come from TI)
Lora Relay based on the Arduino, users can program it with Arduino IDE, which is very easy especially suit for the none-programmers. There are also guide for users to learn how to create the first IoT project with this board, with which the starters can learn the hardware and programming skill quickly.

This guide help you the basic usage of Lora Relay.

Features

• ATMEL Atmega328P: High Performance, Low Power Atmel®AVR® 8-Bit Microcontroller
• RAM: 2KBytes.
• Flash:32Kbytes.
• EEPROM: 1Kbytes.
• Clock Speed: 8 MHz.
• Interface: UART.
• DC12V powered • Default baud rate: 115200bps.
• Working Temperature: -20 ~ +85℃.

Interface Function

Lora Soil 2.jpg
①U1:LTC555
②J1:UART interface
③U2:Atmega328P
④ISP: used for download bootloader
⑤RST:Reset button
⑥Lora Module

⑧Antenna interface

Usage

Required Materials

1. Lora Soil Moisture Sensor
2. Maduino Lora Radio
3. USB-to-UART tool
4. 2*AAA battery
5. microUSB Cable
6. PC

Lora Soil 03.jpg
System diagram
Notice: Maduino Lora Radio and the Lora Soil Moisture Sensor must have the same work frequency. Otherwise, it receive nothing from another.

Lora Soil Moisture Sensor requires a USB-to-UART tool to upload firmware to it, you can get it from:
https://www.makerfabs.com/usb-uart-convertor-cp2102.html
Install the CP2102 driver from:
https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers

Hardware Connections

Lora Soil Moisture Sensor USB-to-UART Tool
3V3 3V3
GND GND
RX TXD
TX RXD

Lora Soil 05.jpg

After a Arduino IDE installed, there is a default package to support Lora Soil Moisture Sensor(Arduino Zero ), From the top Arduino IDE menu, select Tools-> Board-> Arduino Pro or Pro Mini

Lora Soil 06.jpg

From the top Arduino IDE menu, select Tools-> Processor->Atmega328P(3.3V,8Mhz)
Lora Soil 07.jpg

After inserted the USB-to-UART tool to you PC, select the related Port. In my PC, there is COM7 that may different in your PC.
Lora Soil 08.jpg

Download the RadioHead file, click Add.ZIP.Library, select RadioHead.
https://github.com/Makerfabs/MaduinoLoraRadio
Lora Soil 09.jpg


Open LoraTransmitterADCAHT10.ino, verify and upload the firmware to Lora Soil Moisture.
Modify the frequency macro according to your board is 433Mhz or 868Mhz or 915Mhz.
If your Lora board is 433MHz:

#define RF95_FREQ 433.0

If your Lora board is 868MHz:

#define RF95_FREQ 868.0

If your Lora board is 915MHz:

#define RF95_FREQ 915.0


Tips: Lora Soil Moisture designed as a product, so it not integrates the USB-to-UART on board. If you upload the firmware fails, press and hold the Reset button before upload the firmware. When the IDE shows below, then release the button that may helped to upload the firmware success. That’s we need a reset the MCU when upload the firmware.
Lora Soil 10A.jpg

Install the AAA*2 batteries and put the Lora Soil Moisture aside, now we need to make the Lora Radio Receiver.

2. Lora Radio Receiver.
Plug the Maduino Lora Radio to PC via microUSB cable.
Lora Soil 11A.jpg

Open the code LoraReceiver.ino
Select the Arduino Pro or Pro mini

Lora Soil 12A.jpg

Select ATmega328P(3.3V,8Mhz)

Lora Soil 13A.jpg

Verify and upload the firmware.


Lora Soil 14A.jpg

Lora Soil 15A.jpg

Result:

The Lora Soil Moisture will send messages via Lora Radio frequency. And the Maduino Lora Radio will receive the result and print them in the Serial Monitor.
Lora Soil 16.jpg

We can see it gets the air humidity and temperature and soil moisture from the Lora Soil Moisture Sensor.
Lora Soil 17.jpg


FAQ

You can list your questions here or contact with support@makerfabs.com for technology support.

Resources