{"id":26793435,"url":"https://github.com/thozza/devduino-temp-hum-sensor","last_synced_at":"2025-03-29T16:31:21.116Z","repository":{"id":21851346,"uuid":"25174611","full_name":"thozza/devduino-temp-hum-sensor","owner":"thozza","description":"Sketch for Devduino Temperature \u0026 Humidity sensor based on MySensors library","archived":false,"fork":false,"pushed_at":"2018-12-26T19:00:18.000Z","size":20,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-05-03T07:12:41.768Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thozza.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-13T19:42:59.000Z","updated_at":"2018-12-26T19:00:19.000Z","dependencies_parsed_at":"2022-08-17T21:25:56.427Z","dependency_job_id":null,"html_url":"https://github.com/thozza/devduino-temp-hum-sensor","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thozza%2Fdevduino-temp-hum-sensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thozza%2Fdevduino-temp-hum-sensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thozza%2Fdevduino-temp-hum-sensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thozza%2Fdevduino-temp-hum-sensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thozza","download_url":"https://codeload.github.com/thozza/devduino-temp-hum-sensor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246213421,"owners_count":20741717,"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":[],"created_at":"2025-03-29T16:30:49.051Z","updated_at":"2025-03-29T16:31:21.096Z","avatar_url":"https://github.com/thozza.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/thozza/devduino-temp-hum-sensor.svg?branch=master)](https://travis-ci.org/thozza/devduino-temp-hum-sensor)\n# Temperature and Humidity sensor based on Devduino v2.0\n\nThis is a simple sketch for temperature and humidity wireless sensor\nbased on [MySensors library](http://www.mysensors.org/). For more info\nabout the requirements, please read on.\n\n## Hardware Prerequisites\n\nThe shetch is intended for Arduino compatible board [Devduino v2.0](http://www.seeedstudio.com/wiki/DevDuino_Sensor_Node_V2.0_(ATmega_328)). The board comes with MCP9700 chip, which is an analog temperature sensor. This sketch also uses digital temperature and humidity sensor [DHT22](https://www.sparkfun.com/datasheets/Sensors/Temperature/DHT22.pdf) and/or sensor [HTU21/SHU21](https://www.adafruit.com/product/1899)for maximum precision. The sensor node is wireless, and uses the [nRF24L01+ wireless module](https://www.sparkfun.com/datasheets/Wireless/Nordic/nRF24L01P_Product_Specification_1_0.pdf) for communication with sensor gateway.\n\n### Complete List\n\n* [Devduino v2.0 board](http://www.seeedstudio.com/wiki/DevDuino_Sensor_Node_V2.0_(ATmega_328))\n* [nRF24L01+ wireless module](https://www.sparkfun.com/datasheets/Wireless/Nordic/nRF24L01P_Product_Specification_1_0.pdf)\n* [DHT22 sensor](http://www.seeedstudio.com/depot/Grove-TemperatureHumidity-Sensor-Pro-p-838.html) [(datasheet)](https://www.sparkfun.com/datasheets/Sensors/Temperature/DHT22.pdf)\n* [HTU21/SHU21 sensor](https://www.adafruit.com/product/1899)\n\n## Software Prerequisites a.k.a. Libraries\n\nLibrary dependencies are handled by PlatformIO. For the complete list, please see **platformio.ini** file inside the repository.\n\n## How it works?\n\nThe sketch does not have the **node ID** set. Its assignment is left up to MySensors library. If you want to hardcode **node ID**, uncomment and define the ```MY_NODE_ID``` in the sketch. The shetch also uses the default settings of [MySensors library](http://www.mysensors.org/) for the **nRF24L01+** module (like channel, etc.). The sensor node wakes up from sleep every **5 minutes** after sending all values to the gateway. To change this, redefine the ```SLEEP_TIME``` to different value in **milliseconds**.\n\n### How to choose connected sensors\n\nTo choose connected sensors, just comment out one of the following lines in the sketch:\n\n```\n// Comment out if you don't want to use these sensors\n#define WITH_SENSOR_DHT22     // connected to the DIGITAL connector\n#define WITH_SENSOR_MCP9700   // on board\n#define WITH_SENSOR_HTU21     // connected to the I2C connector\n```\n\n### Sensor Setup and Presentation Phase\n1. Initialization of the sensor node\n2. Send the sketch info to the gateway\n3. Present all connected sensors\n  * Sensor ID **0** - DHT22 sensor humidity\n  * Sensor ID **1** - DHT22 sensor temperature\n  * Sensor ID **2** - MCP9700 sensor temperature\n  * Sensor ID **3** - HTU21 sensor humidity\n  * Sensor ID **4** - HTU21 sensor temperature\n\n### Sensor Execution Phase\n* Each **5 minutes** do the following:\n\n1. send battery level in percents\n2. send DHT22 sensor humidity\n3. send DHT22 sensor temperature\n4. send MCP9700 sensor temperature\n5. send HTU21 sensor humidity\n6. send HTU21 sensor temperature\n7. go to sleep\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthozza%2Fdevduino-temp-hum-sensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthozza%2Fdevduino-temp-hum-sensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthozza%2Fdevduino-temp-hum-sensor/lists"}