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

dht21/22 #246

Closed
Closed

Conversation

darashenka
Copy link

dht21/dht22 for firmata

@soundanalogous
Copy link
Member

ConfigurableFirmata has it's own repo now: https://github.com/firmata/ConfigurableFirmata

Also the way I'd like to add DHT21/22 support is how Encoder was added, as a separate repo. See FirmataEncoder for an example: https://github.com/firmata/FirmataEncoder.

Users can then add DHT21 support using http://firmatabuilder.com.

@soundanalogous
Copy link
Member

Alternatively this could be a good case for a DHT humidity sensor backpack due to the timing requirements that I've seen in various implementation examples. Seems there are some delays that cannot be avoided and an i2c backpack would be a way to get around it.

https://github.com/ajfisher/nodebots-interchange.

@darashenka
Copy link
Author

Hey, Jeff!

nice, thanks!

I'll fix in https://github.com/firmata/ConfigurableFirmata.
I would like to have a common-confiurable instead of extra-repo. I would connect to arduino not only DHT things, but other as well.

@soundanalogous
Copy link
Member

There are 2 reasons I'd like it to be in a separate repo:

  1. This is a device as opposed to a capability (such as PWM, I2C, SPI, etc).
  2. It wraps a 3rd party dht library. Ideally OneWire and Stepper would be removed from the ConfigurableFirmata core since they also wrap 3rd party libraries but they have to remain for backwards compatibility.

Also look into including the Adafrult dht library instead since it covers a wider variety of dht sensors: https://github.com/adafruit/DHT-sensor-library and it also uses shorter fixed delays than the version that was previously included in the DHT firmata example.

@soundanalogous
Copy link
Member

The adafruit DHT library is also available via the Arduino Library manager.

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

Successfully merging this pull request may close these issues.

2 participants