Tag Archives: LEDs

LED Bridge Lamp Electronics

For me, building the electronics for the LED Bridge Lamp was one of the most fun parts of the project.  It was an opportunity to build upon the skills I learned from earlier/simpler projects and create a really fun display/art project.

Circuit Design

The first step was figuring out the details of the circuit. To do this breadboarded the circuit and worked out the details. The resistors in the circuit are to protect the first LEDs on the strip data lines and the large capacitors help smooth out the power from the power supply.

Testing the bridge section LEDs
Testing the bridge section LEDs

 

You can find the Fritzing generated circuit diagram here:

Circuit Diagram for my LED Bridge Lamp
Circuit Diagram for my LED Bridge Lamp

Here’s what I used to build the electronics for this project:

Parts List (Quantities reflect sets/packages from the related links):

Assembly 

With the design in hand, the next step was assemble the bases and solder everything.  For the purposes of differentiating them in a succinct way I will refer to the base with the Adafruit Feather Huzzah Micro-controller in it as the ‘Smart’ base and I will refer to the base that only has power inject in it as the ‘Dummy’ base.

Here you can see a full assembled base complete with the 90lb strength magnets that will keep the bridge perched in place over my cubicle walls at work. (You can learn more about building this base in my earlier post here)

90lb Strength Magnets integrated into the base
90lb Strength Magnets integrated into the base

For the panel mount connectors I made sure they fit into the printed holes in the side of the base. I put one of the male connectors into the panel mount connector to keep everything lined up as I soldered (the plastic in there melts easily). I also put heat shrink tubing over the connectors.

Use heat shrink tubing to protect the soldered connections. TIP: Put a mail connector in the female connector when soldering to keep the plastic from deforming.
Use heat shrink tubing to protect the soldered connections. TIP: Put a mail connector in the female connector when soldering to keep the plastic from deforming.

 

The “Smart” Base

Next up was translating the bread-boarded circuit to a perma-proto board. I used female headers so I could remove/replace/upgrade the micro-controller in the future if  wanted to.

Adafruit Huzzah 8266 in headers on soldered half size permanently-proto board
Adafruit Huzzah 8266 in headers on soldered half size permanently-proto board

The circuit itself is pretty simple/straightforward.

Underside of assembled half size permanent-proto board which hosts the Huzzah
Underside of assembled half size permanent-proto board which hosts the Huzzah

With the panel mount connection inserted through the top curved section of the base and secured with its included nut, I soldered its wire to the permanent-proto board. I used about a foot of wire so I had plenty of space to work with when the setup is semi-assembled as shown below.

Soldering the power cable to the perm-proto board AFTER it was inserted through the bridge lamp base.
Soldering the power cable to the perm-proto board AFTER it was inserted through the bridge lamp base.

Next up I secured the permanent-proto board to the electronics tray/base. I wrapped the excess wire that around the magnet supports to provide strain relief to the soldered joints. The additional wires below are the wires that least to JST connectors which will provide a modular linking to the LED strips in the bridge.

Wrap excess wire around magnet supports to provide strain relieve and protect your soldered joints.
Wrap excess wire around magnet supports to provide strain relieve and protect your soldered joints.

With everything assembled it should look nice and clean and orderly as shown below:

Underside of completed 'smart' base
Underside of completed ‘smart’ base

For the USB cable I drilled a whole in the side of the riser block with a brad point drill bit and inserted the USB cable. I wrapped that cable around the magnet supports to provide strain relief here as well.

Underside of completed 'smart' base with USB cable routed
Underside of completed ‘smart’ base with USB cable routed]

The completed based is just about done.

Assembled base section (close up)
Assembled base section (close up)

I also inserted M4 Button Top machine screws to secure the top and bottom sections of the base. They self tap a bit into the plastic and hold well. They also allow me to disassemble the setup easily from the outside.

Button head machine screws used to connect top/curved have of base to the electronics tray
Button head machine screws used to connect top/curved have of base to the electronics tray

The “Dummy” Base

The “Dummy” base is largely the same procedure as the “Smart” base with the exception being that this side does not have a micro-controller — it simply injects power at the mid point of the LED light strips — without this it would look like the LED strips brown out about midway across the bridge.  The large capacitors used in this project are to protect the LED strips and smooth out the power they receive.

Dummy base with power injection. Leave extra wire so you can remove the curved section as needed.
Dummy base with power injection. Leave extra wire so you can remove the curved section as needed.

I followed the same methods of assembly, soldering, cable wrapping etc.

Underside of completed 'Dummy' base
Underside of completed ‘Dummy’ base

Cabling

Between each base and the bridge assembly and between each of the 3 bridge sections I used JST connectors for power and data (See photo below). I would build each male and female section, test the connections and then solder them into place.

JST connectors and crimper
JST connectors and crimper

I liked the idea of everything being modular but in hindsight almost feel it was more trouble than it was worth. I found myself still having to debug a bunch of these wire connections as the JSTs seem to have  a little play in the connections so if the wires are bent up — say when trying to cram those connections into the bridge superstructure sometimes the connection would open up.

When soldering my larger panavise was helpful in holding things in place so I could solder the JST connected wires to the LED strips.

Larger pane-vise was helpful in holding the assembly when I had to solder on the wires connected to the JST connectors
Larger pane-vise was helpful in holding the assembly when I had to solder on the wires connected to the JST connectors

Shown below is a completed base with the JST connectors showing.

Assembled base section with taller riser and micro controller. Note the USB cable coming out through a drilled hole in the riser.
Assembled base section with taller riser and micro controller. Note the USB cable coming out through a drilled hole in the riser.

Testing

With everything in place it was time to test the full circuit. This is where the extra wire on the JST cabling in the base came in handy. I could lay the bridge out on my dining room table and test the circuit and work out the software. Also it was nerdy fun to be effectively sitting inside this light ring in a dark room.

  • Testing the bridge flat on the table
    Testing the bridge flat on the table

    Once I got everything working it was time to pack it up and bring it to the office. Given the headaches with the JST connectors I brought the bridge section in as 1 completed piece rather than breaking it down into segments and testing all the connections again.  It filled the whole bed of my pickup truck but survived the ride.

Completed bridge assembly in the back of my pickup truck ready for delivery
Completed bridge assembly in the back of my pickup truck ready for delivery

The next post in this series will be related to the software.

You can navigate back to the Enhanced LED Bridge Lamp Summary here. 

Take care,
-Bill Rainford
@TinWhiskerzBlog
@TheRainford

Advertisements

LED Bridge Lamp Summary

As an engineer I love all things that are shiny and blinky. Like many other engineers I am a cubicle dweller. I wanted to create something in my cube that would brighten up my workspace and make me smile whenever I’m working there. What follows is a series of posts that will guide you through how I designed and built my version of the LED Bridge Lamp which is based off of the LED Bridge Lamp (Universal Segment) by my friend Janis (Opossums) Jakaitis on Thingiverse here. It was a great looking project and would be the perfect addition to any cubicle in need of some blinky.

Side view of my LED Bridge Lamp running a rainbow animation.
Side view of my LED Bridge Lamp running a rainbow animation.

High Level Summary of Changes:

  • Universal Segment Bridge Lamp with 2 horizontal (straight) sections
  • Custom mini light up billboard at the top of the bridge
  • Custom light shades with enclosed channels
  • Custom designed bases with integrated 90lb magnets and adjustable heights for uneven surfaces
  • Custom wifi enabled electronics to control the display
  • Custom power supply with enclosure
  • Each LED strip (2 in the bridge and 1 in the sign) an be controlled independently

 

LED Bridge Lamp Animations Video on Vimeo

LED Bridge Lamp Animations Video on YouTube

3D Models

You can find the 3D models I used to build this project on Thingiverse here. They are free to download, use and modify.

How long did this take to build?

  • Base Height Spacer Tall (Qty 1) 6:40 min (PLA)
  • Base Height Spacer (Qty 1) 2:07 min (PLA)
  • Base Side (Qty 2) 4:15 min each (PLA)
  • Base Side With Power Outlet (Qty 2) 4:15 min each (PLA)
  • Base Center (Qty 2) 5:09 min each (PLA)
  • Base Plate Mama with Cable Hole (Qty 2) 49 min each (PLA)
  • Base Cap Plate (Qty 2) 1:12 min each (PLA)
  • Clips (Qty 3) 10 min each (PLA)
  • Base Height Extension (Qty 2) 3:07 min each (PLA)
  • Electronics Tray (Qty 2) 4:06min (PLA)
  • Magnet Space Filler Block (Qty 2) 1:06 min each (PLA)
  • Sign Holder (Qty 1) 54 min (PLA)
  • LED Light Channel Segment A (Qty 14) 1:33 min each (nGen)
  • LED Light Channel Segment A with Wire Cutout (Qty 2) 1:32 min each (nGen)
  • LED Light Channel Segment B (Qty 16) 1:33 min each (nGen)
  • Straight LED Light Channel with Cover  (Qty 2) 2:47 min each (nGen)
  • Universal Segment Curved Superstructure Set (Qty 16) 2:42 min each (PLA)
  • Universal Segment Straight Superstructure Set (Qty 2) 2:25 min each (PLA) — light channel from set deleted for this print

Total Number of Pieces: 74
Total Print Time: 145 hours!

Estimated 3D Modeling/Design Time: 50 hrs 
Estimated Assembly Time: 12 hrs
Estimated Coding Time: 4 hrs
Estimated Testing Time: 12 hrs

Total Time:  223 hours 

NOTE: The above does not include printing another 25 segments of straight superstructure and light shades, misprints, having 8 segments of assembled PLA superstructure melt by being too close to a radiator, test prints and re-prints. I estimate that I have something around 300 hours into this project.

Build Details (This section will be updated as I publish more related posts):

Take care,
-Bill
@TinWhiskerzblog

For additional posts related to this project check out this the ‘LED Bridge Lamp’ tag. I’ll be adding more posts giving details on how I built my version of the LED Bridge Lamp.

LED Bridge Lamp Superstructure

The superstructure of the LED Bridge Lamp is one of its most prominent features. I printed mine using Polymaker Polylite Translucent Blue filament.

I started off by printing the standard set of flat printing models from Janis’ universal segment version of the lamp here. I also printed a set of the aligner/clamping rings that aid in assembly.

Printing a single set of the original bridge superstructure along with the aligners/clamps
Printing a single set of the original bridge superstructure along with the aligners/clamps

When I started working on this project it was the middle of winter and I think a combination of room temp and small surface areas caused some issues with pieces warping and even popping off the heated bed plate.

Printing two straight sections of bridge superstructure
Printing two straight sections of bridge superstructure

To remedy this I started printing the superstructure sections with a brim. Around this time I also started to eliminate the printing of the original shade. In Cura I broke the model (which was a group of pieces) into its pieces and would delete the shade. This also allowed me to fit a few more pieces on the build plate. I decided to make my own lamp shade/diffuser which I will cover in another post.

Printing two sets of bridge superstructure with a brim and without the shade
Printing two sets of bridge superstructure with a brim and without the shade

I would clean up the prints with an X-acto knife and square mill file. Each section didn’t need much cleanup. Most of the work was spent testing the tabs on each section and making sure it fit securely onto another section. The focus usually was making sure the corners were flat and that the tabs squarely locked over the end of the next section by filing the underside of the tab. Next I would dry fit the pieces in the assembly rings.

Once dry fit I would slide the top of the superstructure out a bit, apply a drop or two of LocTite 401 to the assembly tabs and slide the piece back into place. I would then remove the lampshade, run a bead of glue down the retaining lip on each side the superstructure and then slide the shade back in so the glue could set. After a minute or so the alignment rings could be removed and you can move on to the next section. By the time the next piece was filed and ready the last one was dry so I only needed one set of the rings.

Completed bridge section drying in the clamps
Completed bridge section drying in the clamps

Below you can see me testing a dry fitted piece against a completed straight section of bridge.

Testing to make sure each section fits well into the next
Testing to make sure each section fits well into the next

The above sample pieces have a translucent blue light shade from the original model, but as you’ll see in the upcoming post on the shades I went with an remix that I think you may also like.

Accumulating bridge sections to assemble
Accumulating bridge sections to assemble

As things got up and running I had a little production line going — churning out bridge sections and and assembling as I could find the time.

I wanted to get a feel for how big the lamp would be, beyond the calculated dimensions so I assembled 2/3 of an arc — just the assembled bridge sections without the shades.

Test assembly of the bridge superstructure sections
Test assembly of the bridge superstructure
sections

It was fun to see the project coming together. The above assembly I put to the side in the spare bedroom where I have my 3D printer etc. It was near a window and a baseboard radiator. Given that the PLA is extruded at 210C and at most my sealed baseboard radiator is putting out 100C I wasn’t worried about melting. After a few weeks I thought one of my young kids got to it, but as it turned out the PLA was softened by the sun and/or radiator and 9 assembled sections of the bridge lamp were warped/bent beyond what I was willing to accept so that was a big set back. After another 40 hours or so of printing I eventually replaced all those pieces and was careful to keep the lamp sections away from even that modest source of heat.

I started to stockpile the assembled bridge superstructure sections as I worked on the shades which will be covered in another post.

You can navigate back to the Enhanced LED Bridge Lamp Summary here. 

Take care,
-Bill Rainford
@TinWhiskerzBlog
@TheRainford

LED Bridge Lamp Power Supply

Next up in my series on building my own interpretation of Janis’ LED Bridge Lamp I wanted to share out my re-mix of his power supply cover/case.

3/4 view of completed power supply and case
3/4 view of completed power supply and case

In the original case, from the photos and models on Thingiverse it looked like Janis cut off the front of the case to attach the various plugs and switches. I also couldn’t find the exact same switch and plug so I decided to re-mix my over version.

Test print this sample to make sure it properly fits around your power supply. If it doesn't fit you can scale and re-print until you get it right.
Test print this sample to make sure it properly fits around your power supply. If it doesn’t fit you can scale and re-print until you get it right.

I started off with Janis’ solid bottom of the PSU cover. I bought the same 5V/20A power supply from AliExpress and printed the bottom. It fit great. I then imported his model into SketchUp and copied the outline/profile of his case. I extruded it 2mm and printed it as a test sample. This is useful for folks trying to scale the case up or down to get that tight friction fit — change your settings then print that test piece until you get the size you want — then use the same settings for the actual parts.

1jDEJGwmRMOCfFt+w2%ULg_thumb_194c9
Printed parts ready to go.

I extruded that test print model to be 80mm tall — this forms the majority of the cover. I also added a depth stop at 40mm and a carefully laid out two holes to receive the screws that secure the custom faceplate. This long extruded part with a stop gives me a positive depth stop and a reasonable amount of space in the enclosure to house all the wires, connections and backs of the connectors.

I also designed a separate faceplate with nice form fitting cutouts for the plugs, power inlet and switch. Print the cover face down as shown below:

Underside of Faceplate
Underside of Faceplate

The face of the above cover also has a nice recessed ‘5V’ to let potential users know what voltage we are outputting with this unit. The 110V/220V power inlet is secured with two M3 x 10mm screws and 2 nuts on each screw. The power button snaps into place with tabs. The metal barrel jacks are secured via a lock washer and nut that threads onto the barrel/body of the outlet. Make sure the PSU unit’s slide switch is set to the 110V or 220V input voltage you plan to provide.

All wires soldered in place and covered with heat shrink tubing
All wires soldered in place and covered with heat shrink tubing

All of the output port wires were 6″ long 22 gauge wire. The power inlet hot and neutral are routed through the power switch and the ground goes from the inlet to the ground on the PSU unit. I also used heat shrink tubing on each connection to protect the connections.

Attaching all the wires to the appropriate terminals
Attaching all the wires to the appropriate terminals

Route the wires through the extruded cover and attach them to the proper terminals, then slide the cover down until you hit the depth stop.

Testing the power supply. Notice plug inserted into a jack being tested with my multi-meter
Testing the power supply. Notice plug inserted into a jack being tested with my multi-meter

Now test your PSU using a multi-meter. I inserted an appropriately sized barrel top plug without its protective jacket to make it easier to attach the multi-meter probes. The output was exactly what I expected — a tiny bit above 5V. If you are under 5V you can adjust the output using a trim potentiometer on the PSU board to the right of the screw terminals. With the testing complete it was time to gently bend the wires and secure the faceplate with two M3 x 6mm machine screws.

Completed power supply with power on
Completed power supply with power on

With the PSU assembled and powered on it’s time to get back to working on the bridge lamp itself.

Side view of completed power supply case in black PLA
Side view of completed power supply case in black PLA

The Gray printed PSU cover from earlier in this post will live in my cubicle at work and power the main LED Bridge lamp I am making, but the secondary (smaller) LED bridge lamp I am making for home would look better in black PLA — as I think that will blend better with my black metal MakerBench.

Completed power supply in black PLA
Completed power supply in black PLA

If you’d like to make one of these PSU covers based on my remix you can find the models on Thingiverse here.

The inlets, outlets and supplies I used can be found here:

5V / 20A power supply

Copper DC Socket Jack

Panel Mounted Inlet Socket

Red Rocker Button Switch

DC Power Barrel Tip Plugs

Metric Machine Screws

If you build your own version of this project, please leave a comment or send me a note.

Take care,
-Bill
@TheRainford
@TinWhiskerzBlog

Adafruit Feather BLE + NeoPixel Lamp

Like any red blooded engineer I like nice designs, shiny objects and blinking lights. One of the projects that burrowed its way into my subconscious and helped push me over the edge into buying a 3D printer earlier this year was the Adafruit Feather BLE + NeoPixel lamp with 3D printed Voronoi Shade that plays some animations by the Ruiz Brothers over at Adafruit. It’s a great addition to any office desk or maker workbench. After playing with the sample code which simply played a short animation when you pressed a button in the app I decided to augment the code to continuously play animations and add a few more to the mix.

Feather BLE light paired with iOS app
Feather BLE light paired with iOS app

You can view detailed step/by step instructions on printing this lamp  here on the Adafruit Learning System.  What follows in this post is a description of what changes/modifications I made to the build and additional functionality I added into the software running on the Bluefruit Feather.

Check out this video showing what I did with the software for this project here:

Software Revision Highlights:

  • Currently selected animation will loop continuously without interruption (Original sample plays 1 animation and stops until another button is pressed)
  • Cleaned up animation library/methods, fixed some issues with Adafruit sample code and finished off some incomplete methods
  • Added additional animations to the up, down, left and right buttons in the Adafruit Bluetooth application

You can find the source code for the demo used in the video here on GitHub.

3D Print complete, not gather up the required electronics
3D Print complete, now gather up the required electronics

Notes on Building This Project: 
I printed the base out of ABS filament and the Voronoi shade from light blue translucent PLA filament. I chose not to glue the shade onto the top ring of the base as I like to be able to show off the electronics. I friction fit the clear disk into the bottom of the lampshade so it stays securely as one piece. I also omitted the battery as I only plan to run the lamp in an office setting wherein I have access to plenty of USB ports.

Solder and assemble the light
Solder and assemble the light

BIG NOTE: As this caused me some headaches and wasted time. In the Adafruit Learning System write-up for this lamp, make sure to follow the Fritzing circuit diagram here and NOT from the step by step photograph here. The photograph shows one of the blue wires going into ‘BAT’ and not the expected ‘3V’. You should be powering the NeoPixels off the 3V pin.  

Flash the firmware and test the rig before final assembly of the case.
Flash the firmware and test the rig before final assembly of the case.

Once I finished all the soldering I fit the board, wires and ring into the bottom half of the base and flashed the firmware onto the device and made sure it lit up and worked as expected.

Lid screwed in place to help secure the NeoPixel ring
Lid screwed in place to help secure the NeoPixel ring

Next up I screwed on the top half of the base and started working on the animations I wanted to use and assigned them to various buttons in the Adafruit ‘Bluefruit’ application.

Running animations
Running animations

Last up was testing the completed lamp. It lights up a dark room more that I expected which is nice and is clearly visible in a well lit room. Some of the animations in the above video are far better in person as the DSLR tends to blend a lot of the mixed colors into shades of white — you’ll have to see it in person by building your own.

Red alert, incoming message
Red alert, incoming message

With the above lamp completed you can also tie it into the IfThisThenThat (IFTTT.com) ecosystem via Adafruit IO.  IFTTT allows Internet of Things (IoT) devices to react to a surprisingly large amount of interesting stimuli — if you get a certain type of email, if your phone shows up on your home wifi network, if an IoT sensor gets a certain reading your device and react to that message and carry out your desired task — its an incredible system and will be the focus of my next post, stay tuned.

-Bill
@TinWhiskerzBlog

P.S. If you build your own variant of this project, please leave a comment and share your thoughts and modifications.