{"id":13581437,"url":"https://github.com/JChristensen/tinyTorch-fw","last_synced_at":"2025-04-09T20:31:46.481Z","repository":{"id":140629310,"uuid":"80561618","full_name":"JChristensen/tinyTorch-fw","owner":"JChristensen","description":"Firmware for a small LED flashlight powered by an ATtiny84A.","archived":false,"fork":false,"pushed_at":"2019-04-28T15:09:22.000Z","size":29,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-06T20:44:44.669Z","etag":null,"topics":["arduino","attiny","firmware","project"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JChristensen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-01-31T20:58:13.000Z","updated_at":"2023-10-13T21:02:27.000Z","dependencies_parsed_at":"2024-01-16T21:20:57.563Z","dependency_job_id":"4ff6c0bb-1faa-4148-8bf6-3877110cf09c","html_url":"https://github.com/JChristensen/tinyTorch-fw","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JChristensen%2FtinyTorch-fw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JChristensen%2FtinyTorch-fw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JChristensen%2FtinyTorch-fw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JChristensen%2FtinyTorch-fw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JChristensen","download_url":"https://codeload.github.com/JChristensen/tinyTorch-fw/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248107418,"owners_count":21048930,"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","attiny","firmware","project"],"created_at":"2024-08-01T15:02:01.719Z","updated_at":"2025-04-09T20:31:46.104Z","avatar_url":"https://github.com/JChristensen.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# tinyTorch #\nhttps://github.com/JChristensen/tinyTorch  \nhttps://github.com/JChristensen/tinyTorch-fw  \nREADME file  \nJack Christensen  \nJan-2017\n\n## License\ntinyTorch Copyright (C) 2018 Jack Christensen GNU GPL v3.0\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License v3.0 as published by the Free Software Foundation.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program. If not, see \u003chttps://www.gnu.org/licenses/gpl.html\u003e\n\n## Introduction ##\n\n**tinyTorch** is a small LED flashlight controlled by an [ATtiny84A](http://www.atmel.com/devices/ATTINY84A.aspx) microcontroller. Choose white light for best illumination, or red light to preserve night vision. Eight brightness levels are selectable. The circuit can be programmed to power off automatically; two power-off intervals are available.\n\n**tinyTorch** runs on two AA cells. Any type will work, including alkaline, standard carbon/zinc or rechargeable types (NiMH, NiCd). A boost regulator keeps the supply voltage and therefore the LED brightness constant as the batteries age. Because of the boost circuit, **tinyTorch** can run on batteries that will no longer power other devices, more nearly extracting all the energy available from the batteries. The microcontroller monitors the voltage and automatically shuts the circuit off when the batteries are exhausted to prevent leakage.\n\n[Hardware design](https://github.com/JChristensen/tinyTorch) and [firmware](https://github.com/JChristensen/tinyTorch-fw) are available on GitHub.  \nPC boards can be ordered from [OSH Park](https://www.oshpark.com/shared_projects/fUhQEilO).  \nA bill of materials is available at [Mouser Electronics](https://www.mouser.com/ProjectManager/ProjectDetail.aspx?AccessID=e556f7b439) and also in the [hardware repo](https://github.com/JChristensen/tinyTorch).\n\n## Operation ##\n\nPress either button to turn **tinyTorch** on. The last color and brightness are remembered.\nPress UP/COLOR to increase brightness; press DOWN/OFF to decrease.\nPress and hold UP/COLOR to change between the white and red LEDs.\nPress and hold DOWN/OFF to turn off.\n\nTo program **tinyTorch** to turn off automatically after one minute:\n- Remove one battery.\n- Press and hold the DOWN/OFF button.\n- Insert the battery.\n- Release DOWN/OFF.\n\nTo program **tinyTorch** to turn off automatically after five minutes, use the steps above but press and hold the UP/COLOR button instead.\n\nTo disable the automatic turn-off feature, use the steps above but press and hold both buttons instead.\n\nWhen the batteries are exhausted, **tinyTorch** will blink the red and white LEDs alternately and then turn off. The brightness levels will be set to the minimum values. This may allow **tinyTorch** to continue to operate at a lower brightness level for a limited time but it is advisable to replace the batteries soon to prevent leakage.\n\n![](https://raw.githubusercontent.com/JChristensen/tinyTorch/master/board-photo.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJChristensen%2FtinyTorch-fw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJChristensen%2FtinyTorch-fw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJChristensen%2FtinyTorch-fw/lists"}