This article describes how I built an internet-capable lamp. The housing and mechanical parts were made with wood working tools, a 3D printer and a laser cutter. The electrical control unit is realised with a Sonoff Basic IoT module that can be controlled through an app.
The build process in pictures
In the following, you can find pictures that document the build process in a top-down approach: the finished product is shown at first and the steps backward in time to arrive at the final product are documented subsequently. The last picture shows the final lamp again.
Since pictures say more than words, here we go with the pictures:
Additional information of the build
The Sonoff Basic is a WiFi-enabled device that is connected in series to the actuator to control. The Sonoff unit comes at a very competitive price point of around $4 and is, if desired, easy to hack to one’s needs by flasing a custom firmware. Here, however, I decided to stick to the stock firmware for the time being. While that might change later, the firmware it comes with is sufficient for me at this time and it would be easy to change it later on.
Hence, the whole exercise of this project is to construct a housing for the Sonoff Basic and to attach a lamp to it.
I designed the lamp in CAD and incorporated parts made from solid wood, 3D printed plastic parts and laser cut wooden parts. Solid wood is used for the outer box to provide sufficient stability for the lamp. 3D printed plastic parts are used for mechanical parts and mountings of the electronics. Laser cut wooden parts are used as decoration and mechanical parts. Last but not least, the electronics is wired to mains voltage.
The CAD model is shown below in two visualisations.
The actual construction is documented above in the preceding section by means of pictures.
A wooden lamp around an existing IoT component has been built here. The main features of the lamp are:
- The lamp is not only controllable through an app but there is also a physical switch to trigger it. I made that a key requirement for this lamp project as I wanted to be able to control it by hand as well. The physical switch consists of a 3D printed switch mechanism and a toggle switch.
- The lamp comes with a standard E27 thread for the light bulb. The E27 thread is very popular in Germany as it is used for ceiling lamps so that corresponding light bulbs are easy and cheap to get. I decided to use a LED light bulb for energy and cost efficiency.
- The lamp can be disassembled easily. This way it is easy to, e.g., replace the Sonoff Basic unit or to flash a custom firmware onto it. Furthermore, it is possible to ensure that the mains voltage cable wiring is correct.
- I mounted a ring with 6 holes to be able to modularly attach a lampshade later on.
The build process was good fun and I am very happy with the final outcome. It’s been in use for three weeks now and works reliably: It is a great comfort to be able to control the light from all over the world as well as to control it through the physical switch. In particular, the 3D printed mechanical switch mechanism turns out to work very well.
Last but not least, the following picture shows the lamp in its new habitat: