{"id":20563383,"url":"https://github.com/pilotak/usb-temp-switch","last_synced_at":"2026-04-24T12:05:19.131Z","repository":{"id":91903494,"uuid":"280131801","full_name":"pilotak/usb-temp-switch","owner":"pilotak","description":"ATtiny85 temperature \u0026 humidity sensor + switch with USB serial control","archived":false,"fork":false,"pushed_at":"2020-07-23T20:27:55.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-10T12:49:16.880Z","etag":null,"topics":["arduino","attiny85","dht22","humidity-sensor","serialport","temperature-sensor","usb"],"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/pilotak.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-16T11:05:10.000Z","updated_at":"2020-07-23T20:27:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"c089ac20-8576-4d4b-8b2c-e18eb375feb7","html_url":"https://github.com/pilotak/usb-temp-switch","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pilotak/usb-temp-switch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2Fusb-temp-switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2Fusb-temp-switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2Fusb-temp-switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2Fusb-temp-switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pilotak","download_url":"https://codeload.github.com/pilotak/usb-temp-switch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2Fusb-temp-switch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261771193,"owners_count":23207223,"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","attiny85","dht22","humidity-sensor","serialport","temperature-sensor","usb"],"created_at":"2024-11-16T04:17:59.510Z","updated_at":"2026-04-24T12:05:14.091Z","avatar_url":"https://github.com/pilotak.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# USB temperature \u0026 switch\n![build](https://github.com/pilotak/usb-temp-switch/workflows/build/badge.svg)\n\nATtiny85 based USB temperature sensor \u0026 humidity (DHT22) and low side switch with serial control\n\n# Install\n\n## Version 1\nYou need an AVR programmer (ICSP), for how to make one please follow version 2 below (skip the \"Burn bootloader\")\n\nUpload directly via PlatformIO\n```sh\npio run -t upload -e usb_temp_switch_v1\n```\nor use compiled/downloaded FW with `AVRDUDE` _(don't forget to change the serial port number \u0026 fw path)_\n```sh\navrdude -v -p attiny85 -c arduino -b 19200 -P COM1 -e -D -U flash:w:firmware.hex:i\n```\n\n## Version 2\nThis HW revision uses an Optiboot bootloader which enables you to upload upgrades via USB.\n- install Arduino IDE\n- install (ATTinyCore)[https://github.com/SpenceKonde/ATTinyCore]\n- follow (this tutorial)[https://create.arduino.cc/projecthub/Oniichan_is_ded/learn-how-to-program-attiny85-and-attiny13a-167359] in order to make your Arduino UNO as an AVR programmer\n- connect the ATtiny85 to your programmer from above\n- \"Burn bootloader\" through Arduino IDE\n\nYou can now upload directly via PlatformIO\n```sh\npio run -t upload -e usb_temp_switch_v2\n```\nor use compiled/downloaded FW with `AVRDUDE` _(don't forget to change the serial port number \u0026 fw path)_\n```sh\navrdude -v -p attiny85 -c arduino -b 19200 -P COM1 -e -D -U flash:w:firmware.hex:i\n```\n\n# Usage\nOpen serial port with baud 9600, 8N1. All messages sent/recevied have a newline delimiter (`\\n`)\n\n## Switch\n- to turn ON the switch send **`d=1`**\n- to turn OFF the switch send **`d=0`**\n\nYou will always get a confirmation: same massage you sent\n\n## Temperature\nOnce per set interval you will get a temperature with one decimal place ie.: **`t=22.1`**\n\n## Humidity\nOnce per set interval you will get a humidity with one decimal place ie.: **`h=50.3`**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotak%2Fusb-temp-switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpilotak%2Fusb-temp-switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotak%2Fusb-temp-switch/lists"}