{"id":21101171,"url":"https://github.com/crycode-de/attiny85-radiohead-dht22-weather-sensor","last_synced_at":"2026-04-23T12:33:22.592Z","repository":{"id":98972752,"uuid":"596069860","full_name":"crycode-de/attiny85-radiohead-dht22-weather-sensor","owner":"crycode-de","description":"Arduino sketch for using an ATtiny85 microprocessor and a DHT22 humidity/temperature sensor as a battery powered weather station.","archived":false,"fork":false,"pushed_at":"2023-02-01T12:03:49.000Z","size":1092,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-01T10:22:50.608Z","etag":null,"topics":["arduino-ide","attiny85"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crycode-de.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2023-02-01T12:03:22.000Z","updated_at":"2023-06-06T20:15:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"3418dea3-36fc-4667-ae7d-acbe20fc4f44","html_url":"https://github.com/crycode-de/attiny85-radiohead-dht22-weather-sensor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/crycode-de/attiny85-radiohead-dht22-weather-sensor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crycode-de%2Fattiny85-radiohead-dht22-weather-sensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crycode-de%2Fattiny85-radiohead-dht22-weather-sensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crycode-de%2Fattiny85-radiohead-dht22-weather-sensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crycode-de%2Fattiny85-radiohead-dht22-weather-sensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crycode-de","download_url":"https://codeload.github.com/crycode-de/attiny85-radiohead-dht22-weather-sensor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crycode-de%2Fattiny85-radiohead-dht22-weather-sensor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32181371,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T11:42:27.955Z","status":"ssl_error","status_checked_at":"2026-04-23T11:42:18.877Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-ide","attiny85"],"created_at":"2024-11-19T23:41:13.395Z","updated_at":"2026-04-23T12:33:22.573Z","avatar_url":"https://github.com/crycode-de.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ATtiny85 RadioHead DHT22 Weather Station\n\nArduino sketch for using an ATtiny85 microprocessor and a DHT22 humidity/temperature sensor as a battery powered weather station.\n\nThe measured values are transmitted using [RadioHead](http://www.airspayce.com/mikem/arduino/RadioHead/) and a 433MHz radio module.\n\n[![breadboard](https://cdn.cryhost.de/arduino/attiny85-radiohead-dht22-weather-sensor-breadboard.png)](https://cdn.cryhost.de/arduino/attiny85-radiohead-dht22-weather-sensor-breadboard.png)\n\n## Power supply\n\nThe power supply consists of 3 AA batteries and on DC boost converter.\nThe boost converter takes 0.6V to nearly 5V and gives a stable output of 5V.\n\n## Power saving\n\nThe ATtiny85 is sleeping most of the time in power down mode.\n\nThe watchdog wakes the controller up every 8 seconds.\nAfter 7 wake ups the temperature and humidity are measured and transmitted.\n\nAdditionally every 30 measurements the battery status is read using the ADC.\n\n## Transmitted RadioHead messages\n\nThere are four different types of transmitted messages.\n\n### Start message\n\nThis message is transmitted once if the controller starts.\n\nIt's one byte containing `0x00`.\n\n### Temperature and humidity\n\nThis is a 9 byte message starting with the code `0x01`, followed by 4 byte temperature and 4 byte humidity as float using the little-endian format.\n\n`0x01 t t t t h h h h`, e.g. `0x01 0xcd 0xcc 0xd0 0x41 0xcd 0xcc 0x4e 0x42`\n\n### Battery status\n\nThis is a 3 byte message starting with the code `0x02`, followed by one byte with the battery percentage (0 to 100) and one byte with the raw ADC value (0 to 255).\n\ne.g. `0x02 0x64 0xe7`\n\n### Error message\n\nIf an error occurred during temperature/humidity measuring this one byte error message containing `0xee` is sent.\n\n\n## ATtiny85 in ArduinoIDE\n\nTo be able to program an ATtiny microprocessor you need to add the following boards-manager URL and install the `attiny` package.\n\n`https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json`\n\n\n## License\n\nLicensed under GPL Version 2\n\nCopyright (c) 2017 Peter Müller \u003cpeter@crycode.de\u003e (https://crycode.de/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrycode-de%2Fattiny85-radiohead-dht22-weather-sensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrycode-de%2Fattiny85-radiohead-dht22-weather-sensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrycode-de%2Fattiny85-radiohead-dht22-weather-sensor/lists"}