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

Adding DHT11 or DHT22 sensor support #19

Closed
piotrfalba opened this issue Apr 14, 2013 · 6 comments
Closed

Adding DHT11 or DHT22 sensor support #19

piotrfalba opened this issue Apr 14, 2013 · 6 comments

Comments

@piotrfalba
Copy link

It would be great to have DHT11 or DHT22 humidity, temperature sensor support.

@jgautier
Copy link
Member

jgautier commented Jul 3, 2013

I think a feature like this would belong in Johnny-Five.

@jgautier jgautier closed this as completed Jul 3, 2013
@rwaldron
Copy link
Collaborator

rwaldron commented Jul 3, 2013

@jgautier I agree, unfortunately, reading from these is completely insane.

https://github.com/adafruit/DHT-sensor-library/blob/master/DHT.cpp#L78-L139

Unfortunately, this isn't in scope for either Johnny-Five or Firmata

@kenchris
Copy link

kenchris commented Jul 1, 2016

It is actually not that bad :-)

https://github.com/01org/webbluetooth-edison-demo/blob/master/zephyr/sensor_core/src/main.c#L119-L227

And most of the treatment of the data is not timing sensitive and can easily be done in JavaScript

@soundanalogous
Copy link
Member

The way to do this going forward will likely be to use the new DeviceFirmata feature once that gets merged into ConfigurableFirmata: firmata/ConfigurableFirmata#52

@arthurlutz
Copy link

I would have like use DHT11 or DHT22 from johnny-five but it seems that this is not a use case for it, or for firmata, am I missing something ? Trying to figure out if a more "low level" approach such as https://www.espruino.com/DHT11 can be used in conjunction with firmata and js...

@reimertz
Copy link

Hi there, I just want to flag that this feature is added in the Configurable Firmware: https://github.com/firmata/protocol/blob/master/dhtsensor.md.

But it seems the appropriate DHTSENSOR_DATA = 0x74 hasn't been added to this project.

Would the addition of this constant + appropriate response handling enable for us to interact with the DHT sensors?

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

7 participants