{"id":20989990,"url":"https://github.com/robtillaart/dht_simulator","last_synced_at":"2025-05-14T18:32:24.517Z","repository":{"id":46352931,"uuid":"277624485","full_name":"RobTillaart/DHT_Simulator","owner":"RobTillaart","description":"Arduino sketch to simulate a  DHT22","archived":false,"fork":false,"pushed_at":"2024-04-13T08:58:34.000Z","size":20,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T05:56:45.532Z","etag":null,"topics":["arduino","dht22","simulator"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RobTillaart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"RobTillaart","custom":"https://www.paypal.me/robtillaart"}},"created_at":"2020-07-06T18:56:51.000Z","updated_at":"2023-10-24T13:52:16.000Z","dependencies_parsed_at":"2024-04-13T09:52:29.006Z","dependency_job_id":"57eba9f4-246d-46ac-bd5f-f750c448d6a7","html_url":"https://github.com/RobTillaart/DHT_Simulator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobTillaart%2FDHT_Simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobTillaart%2FDHT_Simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobTillaart%2FDHT_Simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RobTillaart%2FDHT_Simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RobTillaart","download_url":"https://codeload.github.com/RobTillaart/DHT_Simulator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225305931,"owners_count":17453507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","dht22","simulator"],"created_at":"2024-11-19T06:27:16.877Z","updated_at":"2024-11-19T06:27:17.605Z","avatar_url":"https://github.com/RobTillaart.png","language":"C++","funding_links":["https://github.com/sponsors/RobTillaart","https://www.paypal.me/robtillaart"],"categories":[],"sub_categories":[],"readme":"\n[![Arduino CI](https://github.com/RobTillaart/DHT_Simulator/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)\n[![Arduino-lint](https://github.com/RobTillaart/DHT_Simulator/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/DHT_Simulator/actions/workflows/arduino-lint.yml)\n[![JSON check](https://github.com/RobTillaart/DHT_Simulator/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/DHT_Simulator/actions/workflows/jsoncheck.yml)\n[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/DHT_Simulator.svg)](https://github.com/RobTillaart/DHT_Simulator/issues)\n\n[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/DHT_Simulator/blob/master/LICENSE)\n[![GitHub release](https://img.shields.io/github/release/RobTillaart/DHT_Simulator.svg?maxAge=3600)](https://github.com/RobTillaart/DHT_Simulator/releases)\n\n```\nwhen converted to a simulation class\n[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/DHT_Simulator.svg)](https://registry.platformio.org/libraries/robtillaart/DHT_Simulator)\n```\n\n# DHT_Simulator\n\nArduino sketch to simulate a DHT22 temperature and humidity sensor.\n\n\n## Description\n\nThe DHT22 is an often used sensor and many libraries are written for it\nincluding my own https://github.com/RobTillaart/DHTNew library. \nTo better understand the protocol and to be able to debug my library \nI wrote a simulator for the DHT sensors in 2014.\n\nThe simulator can be used to test applications to that use a DHT sensor,\ne.g. to get high alarm temp or whatever.\n\nCurrently the code uses two analogue ports to get a value for temperature \nand humidity. Just connect two potentiometers to play and simulate increase and \ndecrease of the temperature and humidity.\n\n\nThe simulator is not tested extensively so please report bugs.\n\n#### Related\n\n- https://github.com/RobTillaart/DHTNew\n- https://github.com/RobTillaart/DHTStable\n- https://github.com/RobTillaart/DHT_Simulator\n\n\n## Operation\n\n- adjust the pins in the head of the program to meet your setup\n- compile, connect, run\n\nAnd have fun.\n\n\n## Future\n\n1) use the simulator-core as a bridge to other sensors.\nIdea is to use the code of the simulator in combination with a \nSensirion or two separate sensors (DS18B20 + ? ) to provide an \naccurate temperature and humidity. These could then be readable \nwith any DHT library with the performance of a DHT (~ 5ms).\n(when time permits)\n\n2) implement a recorder mode, to be able to replay a certain\nbehaviour time after time. \n\n3) make a SHT Simulator class?\n\n\n## Support\n\nIf you appreciate my libraries, you can support the development and maintenance.\nImprove the quality of the libraries by providing issues and Pull Requests, or\ndonate through PayPal or GitHub sponsors.\n\nThank you,\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobtillaart%2Fdht_simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobtillaart%2Fdht_simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobtillaart%2Fdht_simulator/lists"}