ESP8266 Internet Controlled LED Dimmer

There’s no shortage of debate about the “Internet of Things”, largely centered on security and questions about how much anyone really needs to be able to turn on their porch light from the other side of the planet. But while many of us are still wrestling with the realistic application of IoT gadgets, there’s undoubtedly those among us who have found ways to put this technology to work for them.

One such IoT devotee is [Sasa Karanovic], who writes in to tell us about his very impressive custom IoT LED dimmer based on the ESP8266. Rather than rely on a commercial lighting controller, he’s designed his own hardware and software to meet his specific needs. With the LED strips now controllable by any device on his network, he’s started working on Python scripts which can detect what he’s doing on his computer and react accordingly. For example, if he’s watching a movie the lights will automatically dim, and come back up when he’s done.

[Sasa] has provided all the files necessary to follow in his footsteps, from the Gerber files for his PCB to the Arduino code he’s running on the ESP. The source code is especially worth checking out, as he’s worked in a lot of niceties that we don’t always see with DIY projects. From making sure the ESP8266 gets a resolvable DNS hostname on the network to using websockets which update all connected clients with status info in real-time, he’s really put a lot of work into making the experience as complete as possible.

He’s explains in his blog post what needs to be edited to put this code to work in your own environment, and there’s even some descriptive comments in the code and a helpful debug mode so you can see how everything works. It’s always a good idea to consider that somebody else down the road might be using your code; taking a few minutes to make things clear can save them hours of stumbling around in the dark.

If you need more inspiration for your ESP8266 lighting project, check out this ambient lighting controller for a kid’s room, or this professional under-cabinet lighting controller.

Tesselated Worklights Are Nifty, Modular

Electric lighting – is there anything it can’t do? Coming in all manner of forms and flavours, you can get everything from a compact reading lamp to a blindingly powerful worklight for your garage. Generally, different lights are built in different ways to suit their purpose, but it’s not the only way to do things. Enter [slisgrinder] and the MOSAIC Lighting System.

At its heart, MOSAIC is a way of building lighting rigs out of individual modules. Where it gets interesting is the design – they’re triangles! The boards carry a variety of LEDs and are laid out in a fashion that allows the power and data connections to be made between adjacent cells by laying them out next to each other.  Many boards can be tesselated together to create larger, smaller, or unusually shaped arrays. The connections are well thought out, allowing the tiles to make a connection along any one of their 3 edges, regardless of orientation.

The project began out of a desire to grow okra in an otherwise inhospitable climate; to this end, there are both general work lighting modules as well as grow light versions with UV LEDs on board. The modules can be combined in different ways and command and control is done over RS-485.

It’s a tidy project that shows how a little thought can create a versatile design through the use of an unusual form factor. We’ve seen modular lighting projects before, too – like this entry to last year’s Hackaday Prize.

Pavement Projection Provides Better Bicycle Visibility At Night

Few would question the health benefits of ditching the car in favor of a bicycle ride to work — it’s good for the body, and it can be a refreshing relief from rat race commuting. But it’s not without its perils, especially when one works late and returns after dark. Most car versus bicycle accidents occur in the early evening, and most are attributed to drivers just not seeing cyclists in the waning light of day.

To decrease his odds of becoming a statistics and increase his time on two wheels, [Dave Schneider] decided to build a better bike light. Concerned mainly with getting clipped from the rear, and having discounted the commercially available rear-mounted blinkenlights and wheel-mounted persistence of vision displays as insufficiently visible, [Dave] looked for ways to give drivers as many cues as possible. Noticing that his POV light cast a nice ground effect, he came up with a pavement projecting display using four flashlights. The red LED lights are arranged to flash onto the roadway in sequence, using the bike’s motion to sweep out a sort of POV “bumper” to guide motorists around the bike. The flashlight batteries were replaced with wooden plugs wired to the Li-ion battery pack and DC-DC converter in the saddle bag, with an Arduino tasked with the flashing duty.

The picture above shows a long exposure of the lights in action, and it looks very effective. We can’t help but think of ways to improve this: perhaps one flashlight with a servo-controlled mirror? Or variable flashing frequency based on speed? Maybe moving the pavement projection up front for a head-down display would be a nice addition too.

Building A Lightweight Softbox For Better Photography

If you want to take good photographs, you need good light. Luckily for us, you can get reels and reels of LEDs from China for pennies, power supplies are ubiquitous, and anyone can solder up a few LED strips. The missing piece of the puzzle is a good enclosure for all these LEDs, and a light diffuser.

[Eric Strebel] recently needed a softbox for some product shots, and came up with this very cheap, very good lighting solution. It’s made from aluminum so it should handle the rigors of photography, and it’s absolutely loaded with LEDs to get all that light on the subject.

The metal enclosure for this softbox is constructed from sheet aluminum that’s about 22 gauge, and folded on a brake press. This is just about the simplest project you can make with a brake and a sheet of metal, with the tabs of the enclosure held together with epoxy. The mounting for this box is simply magnets super glued to the back meant to attach to a track lighting fixture. The 5000 K LED strips are held onto the box with 3M Super 77 spray adhesive, and with that the only thing left to do is wire up all the LED strips in series.

But without some sort of diffuser, this is really only a metal box with some LEDs thrown into the mix. To get an even cast of light on his subject, [Eric] is using drawing vellum attached to the metal frame with white glue. The results are fairly striking, and this is an exceptionally light and sturdy softbox for photography.

Continue reading “Building A Lightweight Softbox For Better Photography”

How To Control The Lights With A TV Remote

In this day and age of the Internet of Things and controlling appliances over the internet, the idea of using an old-fashioned television remote to do anything feels distinctly 2005. That doesn’t mean it’s not a valid way to control the lights at home, and [Atakan] is here to show us how it’s done.

To the experienced electronics maker, this is yesterday’s jam, but [Atakan] goes to great lengths to hash out the whole process from start to finish, from building the circuitry to switch the lights through to the code necessary to make a PIC do your bidding. It’s rare to see such a project done with a non-Arduino platform, but rest assured, such things do exist. There’s even some SPICE simulation thrown in for good measure, if you really want to get down to the nitty-gritty.

Perhaps the only thing missing from the writeup is a primer on how to execute the project safely, given that it’s used with a direct connection to live mains wiring. We’d love to hear in the comments about any changes or modifications that would be necessary to ensure this project doesn’t hurt anyone or burn an apartment complex down. Sometimes you can switch lights without a direct connection to the mains, however – like this project that interfaces mechanically with a standard light switch.

ESP32 Makes Not-So-Smart Lights Smart

Long taken for granted – lights are a basic necessity of modern life. From the time of the first light bulb, we’ve been able to navigate the dark without the use of fire. With the advent of the Internet of Things, it has become somewhat of a requirement to bring a little intelligence to lights before labeling yourself as a hardware hacker. There are many ways to do this; one of the most common being making use of an ESP32. [Luca Dentella] is somewhat of an ESP32 expert, and has written a fantastic tutorial on how to use the chip. The tutorial builds up to making a set of lights controllable from a smartphone web browser as well a light intensity sensor.

Now before you brush this off as simple n0Ob stuff – consider the following. He’s using a Lolin32 lite dev board, a BH1750 light intensity sensor and a relay to interface with mains for the lights. He wrote his own firmware and gets into the gritty details of developing the HTTP interface and flashing code to the correct memory.

We’ve seen a lot of ESP32 projects here at Hackaday, including this most interesting clock. Be sure to check out the video below to see the smart lights in action.

Continue reading “ESP32 Makes Not-So-Smart Lights Smart”

Aluminum Foil Heatsink Keeps LEDs In Check

In your kitchen is very likely a roll of aluminum foil, like most people you probably use it to line pans or wrap food for baking. If you heard somebody used aluminum foil in the cooling of items, you could be forgiven for thinking they were referring to wrapping leftovers and tossing them in the refrigerator. But rather than preserving Mom’s famous meatloaf, [Michael Dunn] is using that classic kitchen staple to protect his LED strips.

Cheap LED strips are becoming extremely popular and have been popping up in more and more projects, but they have a pretty serious flaw: heat dissipation. Left on their own they can get hot enough to cook themselves, which is sort of a problem when you’re looking to replace as much of your home lighting with them like [Michael] is.

Heat was of particular concern as he was looking to retrofit a delicate shade with his beloved LED strips. Since he wanted a column of LEDs inside the unique shape of the shade, he reasoned that some kind of heat-conductive tubular structure could be used as both a mandrel to wrap the LEDs around and a way to dissipate heat. Like most of us, his first thought was copper pipe. But unfortunately the only copper pipe he had handy was of too small a diameter.

The tube of foil on the other hand was the perfect diameter, and while aluminum isn’t as good a conductor of heat as copper, it’s certainly no slouch either. Early tests weren’t that great when the tube was laying on the bench, but once it stood vertically convection got the air moving and cooled the LEDs down to where [Michael] was comfortable enough to put them inside the shade. Though he does have some lingering doubts about leaving the cardboard tube in such a toasty environment.

Going back through the archives, we’ve seen some absolutely fantastic projects utilizing LED strips in the past, some of which have come up with their own creative ways of beating the heat.