4-Channel Lora Relay-10A
Introduce
This Lora relay helps to extend the Lora networks to control actuators/ lights/ motors, to create automatic applications such as farming, aquaculture, and pasture. There 4 channels of the relay on the board, with max current 10A@277V AC. The main controller Atmega328P is Arduino Uno bootloader pre-loaded, which allows the users to program it with Arduino IDE directly.
Modul: LORA4REL
4-Channel Lora Relay 10A offers bandwidth options ranging from 7.8125kHz to 500 kHz with spreading factors ranging from 6 to 12, there are three choices of working frequency.
Item | Lora Module | working frequency |
---|---|---|
4-Channel Lora Relay 10A 433M | RFM98W-433MHz/SX1278 | 433MHz |
4-Channel Lora Relay 10A 868M | RFM95W-868MHz | 868MHz |
4-Channel Lora Relay 10A 915M | RFM95W-915MHz | 915MHz |
Feature
- ATMEL Atmega328P: High Performance, Low Power Atmel®AVR® Classic Microcontroller
- Speed Grade: 20Mhz
- Flash: 32KBytes
- RAM: 2KBytes
- EEPROM: 1Kbytes
- Relay Type: General Purpose
- Rated Current of Relay Contact: 10A
- Coil Type of Relay: Non Latching
- Coil Voltage of Relay: 5V
- Switching Voltage of Relay: (277VAC, 28VDC) Max
- Lora Distance: >2 km
- DC 5V or DC 12V
Diagram
- Pins connection:
Atmega328P | Relay |
---|---|
D4 | K1 |
D3 | K2 |
A3 | K3 |
A2 | K4 |
- The following table lists all of the relay's pins and their functionality.
Pin | Description |
---|---|
NC | Normally Closed |
NO | Normally Opened |
COM | Switch Common |
Normally, when the Atmega328P Pin output LOW the relay is not triggered, COM connects to NC. Contrarily, when the Atmega328P Pin output HIGH the relay is triggered, COM connects to NO.
Usage
Hardware connection
The USB TO UART TOOL is needed to connect the module and PC. The pins connections are:
4-Channel Lora Relay-10A | 4-Channel Lora Relay-10A |
---|---|
3V3 | 3V3 |
GND | GND |
RX | TXD |
TX | RXD |
DTR | DTR |
Software setup
- Install the RadioLib.h library(4.0.6) to support the Lora module working.
- Open the Arduino, select the Tools menu, and set the parameter, as the figure:
Lora gateway
- You can get the code from Github.
- Upload the file Lora-Relay-4Channel/Example/Lora gateway cantrol--arduino/LoraRelay-receive/LoraRelay-receive.ino.
- The 4-Channel Lora Relay-10A module can be connected to the gateway and controlled by it.
For detailed information about the gateway, please check [the Wiki of the Makepython Lora module](https://www.makerfabs.com/wiki/index.php?title=MakePython_Lora).
Prepare the Makepython ESP32 module and the Makepython Lora module.
Modify the wifi information in the code Lora-Relay-4Channel/Example/Lora gateway cantrol--arduino/ESP32_lora/ESP32_lora.ino.
SX1278 radio = new Module(LORA_CS, DIO0, LORA_RST, DIO1); //If users buy LORA Relay, which the communication frequency is 433MHz can choose the **SX1278**, and **SX1276** can using in 415-1050MHz
const char *ssid = "Makerfabs";
const char *password = "20160704";
Verify and Upload the code for the Makepython ESP32 module.
Assemble Makepython ESP32 module and the Makepython Lora, and power on.
Open the address displayed on the screen of the Makepython ESP32 module on the browser. Before opening the browser, please make sure your electronic device is connected to the same WiFi. You can see the control interface of the relay.
F&Q
You can list your question here or contact techsupport@makerfabs.com for technology support. Detailed descriptions of your question will be helped to solve your question.