![]() |
Attiny night light - Printable Version +- AyyWS Forum (https://forum.ayyws.com) +-- Forum: Technology (https://forum.ayyws.com/forumdisplay.php?fid=14) +--- Forum: Side Projects (https://forum.ayyws.com/forumdisplay.php?fid=16) +--- Thread: Attiny night light (/showthread.php?tid=26) |
Attiny night light - packocrayons - 08-15-2023 I've wanted to complete this project for many years now. Revision one worked, and just used the internal counters of the attiny to time, which was not very accurate. It got to the point where I was plugging it in every night and hardcoded a "start time" I've got a bunch of attiny22s and a RTC chip and I want to try to resurrect this project on a PCB with maybe a CMOS battery to keep time. Then eventually wire in TRIAC control and dim the entire room (or re-wire my already-LED room lights to DC and just use the (hopefully) built-in LED controller) The original source is here: https://github.com/packocrayons/attinyNightLight RE: Attiny night light - Ayydan - 08-15-2023 Sounds like fun! Might be a good idea to use an SSR instead of a triac? (It's just a triac with some helpful extras and heat sinking). I've been using these AC power modules I found on AliExpress lately for powering embedded devices from AC that have been awesome. They're reasonably small and galvanically isolated. https://www.aliexpress.com/item/32961741171.html?spm=a2g0o.order_list.order_list_main.62.5eab1802PECzDy |