Disclaimer and Social

This page may contain affiliate links. As an Amazon Associate I earn from qualifying purchases.

Saturday, November 23, 2019

Lamp Adapter for USB Arduino Projects

How can I power an Arduino from a light socket? Can I retrofit an old lamp for a USB power supply? And can I adapt exiting screw-in fixtures to power my NeoPixel light shows without rewiring the lamp?

I thought this would be a simple, inexpensive purchase so I looked online for an existing solution. They have all kinds of plug-in USB adapters for wall outlets so surely they must make a version that screws into a light bulb socket. Something that I could just replace the bulb with, then plug my Arduino with NeoPixels into the shiny new USB port and have instant power for my project. Surely I'm not the only one who wants to make a light show for an old lamp.

power arduino from screw in lamp light socket
You can easily provide 5v USB power for your Arduino project from a screw in lamp or light socket.

But I could not find a version like I wanted. They do have big, bulky awkward looking versions, but not the simple, small ones like I was envisioning. They also have pre-made remote control adapters that turn the light bulbs on and off with WiFi, Bluetooth and even LORA. Then there are the popular HUE and other RGB light bulb systems.

But I wanted to make my own custom light show, so none of these commercial solutions worked for me. All I wanted was to change the screw-in socket to a USB power supply.

adapyt retrofit screw-in lamp light bulb socket for USB power and arduino
Had to resort to some antique technology to adapt an existing light fixture for USB power. I wanted to turn a screw-in light bulb socket, the kind you see in any lamp or ceiling light, to provide USB power for an Arduino. I wanted to use the Arduino and some RGB LED neopixels with Bluetooth or WiFi to make the lamp into a remote control light show. I finally had to use an ancient light socket to wall socket adapter and one of those tiny USB wall chargers to create a workable power system.


Luckily, I still have lots of electrical adapters from my days of being a budget-sensitive-photographer.