#rp2040 #temperature-sensor #humidity #interface #measure

no-std am2301

A crate to interface with an AM2301 humidity and temperature sensor

2 unstable releases

new 0.2.0 Jan 24, 2025
0.1.0 Nov 18, 2024

#1889 in Embedded development

Download history 75/week @ 2024-11-12 74/week @ 2024-11-19 4/week @ 2024-11-26 4/week @ 2024-12-10 108/week @ 2025-01-21

108 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

~13–22MB
~339K SLoC