本项目演示 APM32E103 通过 I²C 读取 AHT10 温湿度传感器,并通过串口周期输出测量结果。
- 目标板:APM32E103 MINI
- 传感器:AHT10
- 接口:I²C
- 串口波特率:9600
- 工程:Keil MDK-ARM
- 示例版本:V1.0.1
- 输出周期:约 500 ms
- 按
iic.h和板级配置连接 AHT10,并确认 I²C 上拉及供电电压。 - 打开
Examples/AHT10/Project/MDK/AHT10.uvprojx。 - 编译并下载至 APM32E103 MINI。
- 打开 9600 波特率串口,观察初始化状态、温度及湿度数据。
若初始化失败,请检查器件地址、SDA/SCL 连接、上拉电阻和传感器上电等待时间。正式应用建议增加校验、超时和异常恢复。
更多资料请访问:www.geehy.com。
This project demonstrates AHT10 temperature and humidity acquisition over I²C on the APM32E103, with periodic serial output.
- Target board: APM32E103 MINI
- Sensor: AHT10
- Interface: I²C
- Serial baud rate: 9600
- Project: Keil MDK-ARM
- Example version: V1.0.1
- Output interval: approximately 500 ms
- Connect the AHT10 according to
iic.hand the board configuration, including the required I²C pull-ups. - Open
Examples/AHT10/Project/MDK/AHT10.uvprojx. - Build and program the APM32E103 MINI.
- Open a 9600-baud serial terminal to view initialization, temperature, and humidity output.
If initialization fails, check the device address, SDA/SCL wiring, pull-up resistors, and sensor power-up delay. Production applications should add validation, timeouts, and recovery handling.
For more resources, visit www.geehy.com.