#rp2040 #am2301

no-std am2301

A crate to interface with an AM2301 humidity and temperature sensor

2 unstable releases

0.2.0 Jan 24, 2025
0.1.0 Nov 18, 2024

#1723 in Embedded development

Download history 114/week @ 2025-01-23 11/week @ 2025-01-30 7/week @ 2025-02-06 2/week @ 2025-02-20 10/week @ 2025-02-27 1/week @ 2025-03-13

176 downloads per month

MIT license

14KB
253 lines

Crates.io Version

am2301-rs

A crate to interface with an AM2301 humidity and temperature sensor using a Raspberry Pi Pico 1 (RP2040) microcontroller and the embassy framework.

Because the sensor uses a custom one-wire protocol with tight timings the measure is blocking and and expected to take around 5ms (the sensor cannot be pulled sooner than every 2s anyway, as per its datasheet).

A basic example can be found in the examples directory.

Dependencies

~14–23MB
~361K SLoC