Make Your Own Smart Bulb

by ssiddharth in Circuits > Assistive Tech

655 Views, 2 Favorites, 0 Comments

Make Your Own Smart Bulb

IMG_20200127_125218.jpg

This instructable contains the details you need to build your own Google Assistant compatible smart bulb both on software and hardware fronts.

Parts Needed

IMG_20200127_105459.jpg
IMG_20200127_105818.jpg

Here is all that you need to build the bulb by yourselves.

Electronics parts:
1. 1- Bulb socket (model varies from country to county, pick the one used in your place).
2. 1- 230-5V 3A 15W AC-DC converter module (you can use a lower wattage converter depending on the number of Neopixels).
3. 1- Nodemcu (wemos mini versions are preferable due to their size).
4. 1- Neopixel ring.
5. Bunch of connector wires.
6. 1- 10000 microfarad 25v electrolytic capacitor.
7. 1- 1 nanofarad ceramic capacitor.

Tools required:
1. 1- Soldering iron with flux and solder.
2. 1- Hot glue gun.

Making the Connections

IMG_20200127_124148.jpg

1. Solder the live and neutral terminals of the AC-DC converter to the female receptacles of the bulb socket.

2. Solder the electrolytic and ceramic capacitors to the 5V terminals of the AC-DC converter. Mind the polarity of the electrolytic capacitor. Dashed lines on the capacitor denote the -ve leg.

3. Solder the 5V and Ground of the AC-DC converter to the 5V and Ground terminal of the Nodemcu and also to the Vcc/Supply and Ground of the Neopixel ring.

4. Solder the Data input pin on the Neopixel ring to pin D6 on the Nodemcu.

Software for the Bulb

IMG_20200127_132125.jpg

To interface the bulb with Google Assistant, first we need to create a Smart home environment using Google Actions.

I have already made my own repo detailing all the steps.
https://github.com/shivasiddharth/google-actions-smarthome



The repo also contains the code for the Nodemcu. Choose the NodeMCU-Wemos-RGB-LEDs Arduino file.

I have made my best effort to replicate the characteristics of an off-the-shelf commercial bulb. It can remember the last set values, includes temperature based color setting, etc.

Putting It All Together

IMG_20200127_125218.jpg
IMG_20200127_125208.jpg

Using hot glue gun put everything together. Try and make the footprint as small as you can. You can start to see a rough shape of a bulb now.

Final Touch and Demo

IMG_20200127_131717.jpg
I placed the built structure in a plastic bottle casing, cut the bottom and stuck a privacy film sheet to get a diffused effect.

Finally, have my own smart bulb.