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.
I'm talking way back before LED light panels really existed, when studio lights were super expensive (like thousands, not hundreds of dollars) and beginner photographers made their own lighting systems by cobbling together clusters of incandescent bulbs and foam-core reflectors. I had not used those adapters in a couple of decades, but I knew exactly where they were.

And I had an idea.

Use one of my ancient "screw-in-socket to pronged-outlet adapters" and then just plug one of the dozens of tiny USB outlet adapters I own into the first adapter. It is a horrible, clunky kludge and it really appealed to my sense of nostalgic, just-make-it-work-any-way-you-can, DIY mind set.

It worked great, it was totally free, and it made me happy using 25 year old technology again.

Now I'm thinking of retrofitting some of my ceiling fixtures with larger LED arrays. Or maybe turn every single fixture into a giant array of RGB goodness. This might require more thought to network and properly power all those LEDs, but the principle is the same.

adapt lamp to RGB LED neopixel arduino power
Thinking about adapting all my light fixtures, lamps and sconces and chandeliers, to WiFi or Bluetooth controlled RGB LED light shows. Some simple retrofits, an Arduino and some NeoPixels and I could have an entire room or rainbow goodness.

I'm sure once I post this the Google machine will start showing me the perfect pre-made commercial version, but I thought I would share in case there was someone else wanting to do the same thing who had never had to use such old-school methods.

SHOPPING LIST

Here are some links to the parts I used. (affiliate links

Screw-in socket to outlet adapter
Screw-in socket to outlet adapter to keep existing bulb
Commercial lamp socket to USB adapter

Outlet to USB power adapter

Short USB Cable
USB angle adapters

Arduino with Wifi
Arduino with Bluetooth


No comments:

Post a Comment