AS32-100 LoRa Wireless Communication Module
Module Source
Purchase Link:
https://item.taobao.com/item.htm?spm=a1z09.2.0.0.a2882e8dnsJF7e&id=623781851754&_u=72t4uge5cec9
Resource Download Link:
AS32-TTL-100 433MHz LoRa扩频 无线收发模块
Upper computer Download Link:
http://www.ashining.com.cn/relatedsoftware/soft_asds.zip
Specifications
Operating Voltage:2.0V-5.5V
Operating Current:52mA~104mA
Default Frequency: 433MHz
Transmission Power: 20dBm
Reference Communication Range: 3km
Control Method: Serial Interface
Instructions for Use
Set the operating mode using MD0 and MD1.
MD0 | MD1 | Operating Mode |
---|---|---|
0 | 0 | Normal Mode |
0 | 1 | Power-Saving Mode |
1 | 0 | Wake-Up Mode |
1 | 1 | Sleep Mode |
For multiple modules to communicate, their configuration parameters must be identical. This includes: air data rate, module address, and communication channel.
These parameters can be modified via the host computer interface. For detailed steps, read the Quick Start Guide. Once configuration is complete, set the mode to Normal Mode to begin transparent data transmission.
Hardware Interface
The AUX Pin is used to indicate wireless transmission/reception buffer status and module self-check status. It signals whether the module still has data to be transmitted wirelessly, whether received data has been fully sent out via the serial port, or whether the module is undergoing initialization and self-checking.
AUX pin timing during state transitions: Before switching operating modes, the AUX pin status should be checked. When AUX is at a low level, it indicates that the module is busy; when AUX outputs a high level for approximately 2ms, this indicates the module is idle and ready for a mode change. The low-latency MD0 and MD1 pins can then start toggling, and AUX continues outputting a high level for approximately 3ms as the module switches modes. When AUX returns to low, it signals that the mode is being changed, and after AUX outputs high for around 2ms, the transition is complete.
For this example, no mode switching is needed; we use the Normal Mode (MD0=0, MD1=0) permanently, so AUX can remain unconnected.
Connect the module's MD0, MD1, and GND pins to the GND pin on the development board.
Connect the module's VCC pin to the 5V pin on the development board.
Connect the module's RXD pin to pin 2 on the development board.
Connect the module's TXD pin to pin 3 on the development board.
Usage Method
/******************************************************************************
* Test Hardware: LCSC ColorEasyDuino Development Board
* Version Number: V1.0
* Modified By: www.lckfb.com
* Modification Date: April 19, 2024
* Function Overview:
*****************************************************************************
* Open-source development board hardware and software information and related projects hardware and software information on official website
* Development board official website: www.lckfb.com
* Technical support resident forum, any technical problems are welcome at any time to exchange learning
* LCSC Forum: club.szlcsc.com
* Follow our Bilibili account: [立创开发板], stay toned to our latest news!
* We focus on cultivating Chinese engineers rather than profiting from board sales.
******************************************************************************/
#include <SoftwareSerial.h>
#define SEND_MODE 1
// 放弃以下针脚用于软件串口
#define RX_PIN 2 // 开发板的RX(连接到EC01G的TX)
#define TX_PIN 3 // 开发板的TX(连接到EC01G的RX)
SoftwareSerial LORA(TX_PIN,RX_PIN);
void setup() {
// // 开始串口通讯
Serial.begin(9600); // 硬件串口与计算机通信
Serial.println("start");
LORA.begin(9600);
}
void loop() {
#if SEND_MODE
Serial.print("send data:LCKFB\r\n");//串口提示要发送的数据
LORA.print("send data:LCKFB\r\n");//模块发送数据
delay(1000);
#else
//将发送端发送过来的数据发送串口调试助手
if (LORA.available()) {
val = LORA.read();
Serial.print(val);
}
#endif
}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54