The lamp has switch to turn it on/off and encoder with button for interacting with its menus.

How it was made.

Just a plastic box, foam board plate, lamp holder, relay module, wire with switch, screws/nuts, some hot glue and electronic modules.

To create something we need to destroy something before...
I am not experienced electronic engineer for now, so I decided to use cast-off samsung charger for powering the electronics.
Some parts were printed from PETG or BFlex. And some were painted black for cooler look..
Foam board plate is mounted in the box on the printed parts.


The following diagram represents the state machine used in device's program.

Check out github repo for sources.