We’ve probably all checked out a easy drawback in our lives and thought that it will be a straightforward repair, solely to comprehend that the challenge is enormously extra sophisticated than we first realized. Whether or not that’s beginning a house enchancment challenge, doing a fast restore to a bicycle or automotive, or attempting to put in an obscure piece of software program on a Linux machine, the period of time we price range for these duties typically finally ends up woefully underestimated. []’s evening gentle must have its brightness set each evening, and it appears simple sufficient to get a microcontroller to automate that, proper?
Properly, upon opening the small machine, the primary difficulty is that there isn’t any labeling on any of the components, so merely including a jumper on to present microcontroller pins with out damaging something wouldn’t simply be doable. Including a secondary microcontroller is the subsequent logical step, however the energy provide within the evening gentle is extraordinarily underpowered so utilizing even the smallest Raspberry Pi or off-the-shelf Arduino was out of the query too. [Oscar] as an alternative selected an ATtiny85, which solves the facility requirement difficulty, however these are a bit extra of a problem to program and not using a USB machine. From there, it wants a transistor wired in to the circuit to truly push the button for him, plus a couple of help resistors, so [Oscar] really had a PCB custom-built to carry all of those parts.
Even in spite of everything of that, the house inside the evening gentle enclosure made putting in the PCB a problem, however in the long run he has a tool which, when his house automation system powers on the plug for the nightlight, mechanically boots up and pushes the swap the required variety of instances after which places itself to sleep. We’d name {that a} success even after the colossal effort getting this cheap, small gentle working the way in which he needed. There are another low-powered options for issues like these too, so long as being battery-powered isn’t a dealbreaker.






