Skip to content

About

APM32E103 example for reading AHT10 temperature and humidity over I2C with serial output.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

APM32E103 AHT10 温湿度采集示例 / APM32E103 AHT10 Temperature and Humidity Example

中文 | English

中文说明

本项目演示 APM32E103 通过 I²C 读取 AHT10 温湿度传感器,并通过串口周期输出测量结果。

开发环境与功能

  • 目标板:APM32E103 MINI
  • 传感器:AHT10
  • 接口:I²C
  • 串口波特率:9600
  • 工程:Keil MDK-ARM
  • 示例版本:V1.0.1
  • 输出周期:约 500 ms

使用方法

  1. 按 iic.h 和板级配置连接 AHT10,并确认 I²C 上拉及供电电压。
  2. 打开 Examples/AHT10/Project/MDK/AHT10.uvprojx。
  3. 编译并下载至 APM32E103 MINI。
  4. 打开 9600 波特率串口,观察初始化状态、温度及湿度数据。

注意事项

若初始化失败,请检查器件地址、SDA/SCL 连接、上拉电阻和传感器上电等待时间。正式应用建议增加校验、超时和异常恢复。

技术支持

更多资料请访问:www.geehy.com。


English

This project demonstrates AHT10 temperature and humidity acquisition over I²C on the APM32E103, with periodic serial output.

Environment and features

  • 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

Usage

  1. Connect the AHT10 according to iic.h and the board configuration, including the required I²C pull-ups.
  2. Open Examples/AHT10/Project/MDK/AHT10.uvprojx.
  3. Build and program the APM32E103 MINI.
  4. Open a 9600-baud serial terminal to view initialization, temperature, and humidity output.

Notes

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.

Support

For more resources, visit www.geehy.com.

About

APM32E103 example for reading AHT10 temperature and humidity over I2C with serial output.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages