Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DHT22 and open-drain output pin #22

Closed
holotrack opened this issue May 5, 2022 · 2 comments
Closed

DHT22 and open-drain output pin #22

holotrack opened this issue May 5, 2022 · 2 comments

Comments

@holotrack
Copy link

Im trying to use HiFive rev b board with DHT22 sensor. It needs "open-drain" output option to work. I asked on Matrix - Rust Embedded channel and what i get from there its not supported by this chip or library. As solution for this they gave me as example this link:

https://github.com/rp-rs/rp-hal/blob/main/rp2040-hal/examples/dht11.rs#L55-L88

"At a lower level, you could set input_en=1, output_val=0, pue=1 and then set output_en=1 to actively pull the line down, output_en=0 to pull it up using the weak pull-up resistor, and read input_val to read back the DHT response. But it seems like that mode is not implemented by the HAL. (Same situation as with the RP2040 and its HAL)"

Please could you update your library with such feature? To make it more useful for others.

@almindor
Copy link
Collaborator

almindor commented Sep 6, 2022

NOTE: this is an issue with the e310x-hal. As a first step could you please move/copy this issue there? I'm currently out of country but can have a look later in September. @Disasm might also have ideas on this as I'm not too familiar with this area.

@almindor
Copy link
Collaborator

almindor commented Sep 6, 2022

closing in favour of the hal issue

@almindor almindor closed this as completed Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants