3 ms·
My kid likes to sleep with a nightlight. But commercial nightlights all have problems: either they are too dark, or too bright, or in the wrong spot, etc. So w
by foobarian 5y ago
My kid likes to sleep with a nightlight. But commercial nightlights all have problems: either they are too dark, or too bright, or in the wrong spot, etc. So we made her one out of a LED light string and a colored glass flower vase on the nightstand, and ran a control cable to the headboard where she can easily reach a potentiometer with a nice satisfyingly heavy metal knob.
For v2 of this I was thinking of using the Arduino PWM pins and make the mapping function from potentiometer to brightness a little more linear to the human eye. I have a prototype that works pretty well. Could probably add a little segment display to make a clock or thermometer (she likes to know the temps). Our own StavrosK's project here was super inspiring: https://www.stavros.io/posts/do-not-be-alarmed-clock/ https://www.stavros.io/posts/do-not-be-alarmed-clock/
For v3 I was wondering how to implement the transfer function in analog components because I hate the PWM flicker. Even when I use the high frequency modes I can still see it. But I'm not very good at analog design yet. :-)