https://github.com/boneskull/particle-dht22
Use a DHT22 temperature & humidity module w/ Particle Argon/Xenon/Boron
https://github.com/boneskull/particle-dht22
am2302 argon boron dht dht22 humidity mesh particle temperature xenon
Last synced: 6 months ago
JSON representation
Use a DHT22 temperature & humidity module w/ Particle Argon/Xenon/Boron
- Host: GitHub
- URL: https://github.com/boneskull/particle-dht22
- Owner: boneskull
- License: mit
- Created: 2019-06-18T05:13:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-23T03:48:06.000Z (almost 6 years ago)
- Last Synced: 2024-10-29T22:37:15.993Z (8 months ago)
- Topics: am2302, argon, boron, dht, dht22, humidity, mesh, particle, temperature, xenon
- Language: C++
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# particle-dht22
> Use a DHT22 temperature & humidity module w/ Particle Argon/Xenon/Boron
Yes, this again.
## Particle Cloud Functions
- `enable()` - Turns reading from module "on"
- `disable()` - Turns reading from module "off"
- `enableDeepSleep()` - Enables sleep, but not actually "deep" sleep
- `disableDeepSleep()` - Enables sleep, but not actually "deep" sleep
- `setDelay(short)` - Set update delay in ms> Note: Particle Cloud Functions accept a single `String` value; this code coerces any args into the proper data type.
## Particle Cloud Variables
- `settings` - `{String}`: All settings in a JSON object. Properties:
- `enabled` - `{bool}` (default `true`): Enabled or not
- `deepSleep` - `{bool}` (default `false`): Deep sleep enabled or not
- `delay` - `{short}` (default `900000`; 15 minutes): Delay between reads in milliseconds## Notes
- This code persists settings in EEPROM. Should I be doing this? I have no idea.
- Going to try to hook this up to a LiPo battery
- Might add a INA219 to check battery and/or an RTC module to do actual deep sleep.
- The enclosure for this project will probably be clingfilm.## License
Copyright © 2019 Christopher Hiller. Licensed MIT