GY-63_MS5611/libraries/DHT_Simulator
2023-10-24 15:56:14 +02:00
..
.github 0.2.1 DHT_Simulator + github actions 2023-02-09 11:41:06 +01:00
examples/DHT_Simulator 2021-01-29 2021-01-29 12:31:58 +01:00
test 2021-01-29 2021-01-29 12:31:58 +01:00
.arduino-ci.yml add rp2040 to build-ci 2022-11-01 21:08:53 +01:00
DHT_Simulator.ino 0.2.1 DHT_Simulator 2023-10-24 15:56:14 +02:00
LICENSE 0.2.1 DHT_Simulator + github actions 2023-02-09 11:41:06 +01:00
README.md 0.2.1 DHT_Simulator 2023-10-24 15:56:14 +02:00

Arduino CI Arduino-lint JSON check GitHub issues

License: MIT GitHub release

when converted to a simulation class
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/DHT_Simulator.svg)](https://registry.platformio.org/libraries/robtillaart/DHT_Simulator)

DHT_Simulator

Arduino sketch to simulate a DHT22 temperature and humidity sensor.

Description

The DHT22 is an often used sensor and many libraries are written for it including my own https://github.com/RobTillaart/DHTNew library. To better understand the protocol and to be able to debug my library I wrote a simulator for the DHT sensors in 2014.

The simulator can be used to test applications to that use a DHT sensor, e.g. to get high alarm temp or whatever.

Currently the code uses two analogue ports to get a value for temperature and humidity. Just connect two potentiometers to play and simulate increase and decrease of the temperature and humidity.

The simulator is not tested extensively so please report bugs.

Operation

  • adjust the pins in the head of the program to meet your setup
  • compile, connect, run

And have fun.

Future

  1. use the simulator-core as a bridge to other sensors. Idea is to use the code of the simulator in combination with a Sensirion or two separate sensors (DS18B20 + ? ) to provide an accurate temperature and humidity. These could then be readable with any DHT library with the performance of a DHT (~ 5ms). (when time permits)

  2. implement a recorder mode, to be able to replay a certain behaviour time after time.

  3. make a SHT Simulator class?

Support

If you appreciate my libraries, you can support the development and maintenance. Improve the quality of the libraries by providing issues and Pull Requests, or donate through PayPal or GitHub sponsors.

Thank you,