The Ice Tube Clock is a vacuum fluorescent display clock kit from Adafruit industries. I recently put one together and have been enjoying its calming blue glow. Unfortunately at night the calm blue glow is a little on the bright side. While there is a menu option to adjust the brightness it would be better if the clock dimmed automatically. Fortunately, the clock came with a few unused pins on the microcontroller and a space on the circuit board to add a sensor.
I added a resistor an a photocell to act as an automatic dimmer. The microcontroller provides power from one of its pins (which is turneed off if the clock is running on battery backup) and senses the voltage across the photoresistor using its analog to digital converter. I added a menu option to turn the dimmer on and off. Its operation is pretty simple. If the room is pretty dark, the display is at minimum brightness. If the room is light, the display is at the brightness set by the user. For extra credit I could add some sort of sensitivity option to the menu but I figured I would start simple and see how well it works. A modified firmware to enable the dimmer control (based off of Adafruit’s Sept 30th firmware) is available there.
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, or even use Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for MakeCode, CircuitPython, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.