Difference between revisions of "LED Matrix Failure"

From eLinux.org
Jump to: navigation, search
(Left->Right Left->Right)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
= Goal =
 
= Goal =
Document the failure and redesign of a LED Matrix display with an initial size of 70 x 30 RGB APA102 LEDS. intended to create a "roll up display banner" to be driven from the MinnowBoard Turbot. along the way, a number of key design decisions impacted the results as well as some unanticipated complications.<br>
+
This article documents the design of an easily portable "roll up" 70 x 30 RGB APA102 LED matrix display banner, driven from a  [http://linuxgizmos.com/enhanced-open-source-minnowboard-makes-a-splash-at-idf/ MinnowBoard Turbot] board.   We'll talk about the issues encountered with its implementation, and the resulting redesign that addressed some unanticipated complications and critical failures.<br>
 
[[File:LED-matric.jpg|600px]]
 
[[File:LED-matric.jpg|600px]]
 
[[File:rgb-test.jpg|420px]]
 
[[File:rgb-test.jpg|420px]]
Line 8: Line 8:
 
= Components =
 
= Components =
  
 +
* [http://linuxgizmos.com/enhanced-open-source-minnowboard-makes-a-splash-at-idf/ MinnowBoard Turbot]
 +
* Linux kernel and root file system built using OpenEmbedded - [http://www.yoctoproject.org YoctoProject.org]
 +
* [[Tadpole Lure]]
 +
* [https://www.adafruit.com/products/395 Adafruit TXB0108 Breakout Board]
 
* [http://hancockfabrics.com/citadel-texture-tweed-black-upholstery-fabric-3664380.html 57" x 30" Black Upholstery Fabric]
 
* [http://hancockfabrics.com/citadel-texture-tweed-black-upholstery-fabric-3664380.html 57" x 30" Black Upholstery Fabric]
 
* [http://amzn.com/B00UHFULR0 Metal Grommet Press]
 
* [http://amzn.com/B00UHFULR0 Metal Grommet Press]
 
* [http://www.adafruit.com/products/2239 Adafruit DotStar Digital LED Strip - Black 60 LED - Per Meter - BLACK]  
 
* [http://www.adafruit.com/products/2239 Adafruit DotStar Digital LED Strip - Black 60 LED - Per Meter - BLACK]  
 
* [http://www.digikey.com/product-detail/en/PMT-5V350W1AM/1145-1081-ND/4386552 2x Power Supply 5V@60A 350W]  
 
* [http://www.digikey.com/product-detail/en/PMT-5V350W1AM/1145-1081-ND/4386552 2x Power Supply 5V@60A 350W]  
* Connectors - each set of Dotstar LED strips comes with a pair of 4-pin "male" and "female" connectors these were reused in the design<br>
+
* Connectors - each set of DotStar LED strips comes with a pair of 4-pin "male" and "female" connectors these were reused in the design<br>
 
[[File:4pin-male-dotstar.jpg|150px]]
 
[[File:4pin-male-dotstar.jpg|150px]]
 
[[File:4pin-female-dotstar.jpg|150px]]
 
[[File:4pin-female-dotstar.jpg|150px]]
Line 20: Line 24:
  
 
== Base ==
 
== Base ==
the base was made with some black upholstery fabric. a piece size of 57" x 30" was cut and taken to a seamstress to have the edges sewn. after sewing, a manual metal grommet press was used to add grommets to each of the four corners. <br>
+
The background base for the matrix display was made with some black upholstery fabric cut to 57" x 30" and the edges hemmed to prevent fraying. Then, a manual metal grommet press was used to add grommets to each of the four corners. <br>
 
[[File:Grommet-1.jpg|300px]]
 
[[File:Grommet-1.jpg|300px]]
 
[[File:Grommet-2.jpg|300px]]
 
[[File:Grommet-2.jpg|300px]]
 
<br>
 
<br>
  
== Left->Right Left->Right ==
+
== Left&rarr;Right Left&rarr;Right ==
The Dotstar LEDs for the failed version were arranged in a chained sequence. the intention was to cut the strips and align them on the fabric in a "left to right - left to right" sequence similar to traditional LCD panels. this is also sometimes referred to as "Row Major" sequence. this sequence can be illustrated using a 5x5 pixel example:
+
The DotStar LEDs were arranged in a chained sequence; each strip cut and aligned on the fabric in a "left to right - left to right", sequence similar to traditional LCD panels, also referred to as "Row Major" sequence. This sequence can be illustrated using a 5x5 pixel example:
<pre>
 
01 02 03 04 05
 
06 07 08 09 10
 
11 12 13 14 15
 
16 17 18 19 20
 
21 22 23 24 25
 
</pre>
 
  
the issue is that to implement this with the LED strips, two wires need to connect the end of one LED strip to the beginning of the next, in the 5x5 pixel example above, the SPI clock and data need to connect from the end at 05 to the beginning of the next line at 06. this creates a wiring nightmare on the back side of the design:
+
  01 02 03 04 <span style="color:red">05</span>
 +
  <span style="color:red">06</span> 07 08 09 <span style="color:blue">10</span>
 +
  <span style="color:blue">11</span> 12 13 14 <span style="color:green">15</span>
 +
  <span style="color:green">16</span> 17 18 19 <span style="color:violet">20</span>
 +
  <span style="color:violet">21</span> 22 23 24 25
 +
 
 +
By arranging the LED strips like this, two wires (for the SPI clock and data lines) are needed to connect the end of one LED strip to the beginning of the next. (In the 5x5 pixel example above, two wires connect form the end at 05 to the beginning of the next line at 06). This creates a wiring nightmare on the back side of the design where long wires run the width of the matrix:
 
<br>
 
<br>
 +
 
[[File:Backside-wiring-led.jpg|600px]]  
 
[[File:Backside-wiring-led.jpg|600px]]  
[[File:Backside-closeup-led.jpg|200px]]
+
[[File:Backside-closeup-led.jpg|x230px]]
  
the thought was by designing it this way, and working similar to existing display devices, software support would be easy and require little or no effort to implement. projects such as FBTFT(https://github.com/notro/fbtft/wiki) could be used without modification. while this was true the long wires created both signaling and logistical problems during implementation.
+
The thought was, by designing it this way and working similar to existing display devices, software support would be easy and require little or no effort to implement. Projects such as FBTFT(https://github.com/notro/fbtft/wiki) could be used without modification. While this was true, the long wires created both signaling and logistical problems during implementation.
 
<br>
 
<br>
  
 
== Sewing to Upholstery ==
 
== Sewing to Upholstery ==
  
using a fine needle and thread the led strips were sewn to the upholstery. immediately it was discovered that without proper attention, the tension on the thread could easily damage the flex pads. in addition to damaging the pads, it was very difficult to keep consistent spacing between rows while sewing the strips directly to the upholstery.<br>
+
The LED strips were sewn to the upholstery using a fine needle and thread. Alas, we quickly discovered the thread tension could easily damage the flex pads between each LED on the LED strips (where the strips can be cut). It was also hard to keep the spacing consistent between each row while sewing the strips directly to the upholstery. (Consistent spacing is important to a nice matrix display.)<br>
 
[[File:Dotstar-spacing.jpg|600px]]
 
[[File:Dotstar-spacing.jpg|600px]]
<br>
 
 
<br>
 
<br>
  
Line 54: Line 57:
 
== Power Connections ==
 
== Power Connections ==
  
one of the major time consuming items on the project was the power connections. as each LED strip needed both power and ground, making sure that these connections were evenly distributed across the LED strips was challenging. in addition, due the number of LED two power supplies were needed, so careful consideration had to made to make sure that the two supplies were not connected to each other. in the image below the black wires are ground and the white wires are the +5V. two red wires are visible which are separate +5V connections to the power supplies.<br>
+
One of the major time consuming tasks on the project was making the power connections. Each LED strip needed both power and ground, and these connections required even distribution across the LED strips and two power supplies were needed because of the number of LEDs used. Careful consideration had to made to ensure that the two supplies were not connected to each other. In the image below, the black wires are ground and the white wires are +5V. Two red wires are visible which are the separate +5V connections to the two power supplies.<br>
 
[[File:Power-ledmatrix.jpg|600px]]
 
[[File:Power-ledmatrix.jpg|600px]]
 
<br>
 
<br>
Line 60: Line 63:
 
== Long Signal Wires ==
 
== Long Signal Wires ==
  
during initial testing with the MinnowBoard Turbot, it was discovered that if the length of the SPI clock and data signals were over 24 inches long between the MinnowBoard Turbot and the first LED on the dotstar string, the signal strength was such that it would not work. however, the signals between one LED string and the next were about 55 inches long and they did work. after closer inspection with an oscilloscope it was clear that the APA102 RGB LEDs were providing a much higher drive strength for the SPI signals. as a quick fix, two of the dotstar LEDs were used close to the main connection to the MinnowBoard Turbot with a longer connection to the first set of LEDs on the matrix. these initial two leds can either be programmed as off (black) or used as status indicators. for this project i added some code to indicate the status and timing of some of the signals.
+
During initial testing with the MinnowBoard Turbot, we discovered that the SPI clock and data signals wires between the MinnowBoard Turbot and the first LED on the DotStar string had to be less than 24 inches or the signal strength would not work. However, we saw the signals between the end of one LED string and the beginning of the next were about 55 inches long and they did work. After closer inspection with an oscilloscope, it was clear that the APA102 RGB LEDs provided a much higher drive strength for the SPI signals, so as a quick fix, we connected two of the DotStar LEDs only a few inches from the MinnowBoard Turbot and then used a longer connection to the first set of LEDs on the matrix. These initial two LEDs can either be programmed as off (black) or used as status indicators. (For this project we added some code to indicate the status and timing of some of the signals.)<br>
  
 
[[File:Short-dotstar-connection.jpg|250px]]
 
[[File:Short-dotstar-connection.jpg|250px]]
Line 69: Line 72:
 
== Broken Flex Pads ==
 
== Broken Flex Pads ==
  
as noted earlier the long wires on the back side of the design were proving very difficult both in length and logistics. another major issue is the long wires created tension on the flex pads at the end of each LED strip. as a result many of the pads were ripped off resulting in the wires having to be soldered directly to the LED.
+
As we mentioned earlier, the long wires on the back side of the matrix display fabric were proving problematic both in length and logistics. The long wires also created tension on the flex pads at the end of each LED strip, and caused many of the pads to rip off and forcing us to repair the display by soldering the wires directly to the LED.
  
 
[[File:Led-broken-flex.jpg|600px]]
 
[[File:Led-broken-flex.jpg|600px]]
<br>
 
<br>
 
<br>
 
 
<br>
 
<br>
  
 
= Redesign =
 
= Redesign =
  
== Left->Right Right->Left ==
+
== Left&rarr;Right Right&rarr;Left ==
To remove the need for the long wires it makes more sense hardware wise to implement the strips using the "left to right - right to left" sequence. this is sometimes referred to as "ZigZag" sequence. this is represented again in a 5x5 pixel example:
+
By rewiring the LED strips to use a "left to right - right to left" sequence, we can eliminate the use of the long wires on the back, also referred to as a "zigzag" sequence. In this design, we only need two short wires to connect the end of one row to the beginning of the next.  Using our 5x5 pixel example, it would look like this:
<pre>
+
 
01 02 03 04 05
+
  01 02 03 04 <span style="color:red">05</span>
10 09 08 07 06
+
  <span style="color:blue">10</span> 09 08 07 <span style="color:red">06</span>
11 12 13 14 15
+
  <span style="color:blue">11</span> 12 13 14 <span style="color:green">15</span>
20 19 18 17 16
+
  <span style="color:violet">20</span> 19 18 17 <span style="color:green">16</span>
21 22 23 24 25
+
  <span style="color:violet">21</span> 22 23 24 25
</pre>
 
  
this encoding is a little more difficult, but it can be easily handled in software to sequence this. the trade off here between a little more difficult in software, and a LOT easier in hardware, really is the only choice.
+
This matrix encoding can be easily handled in the software; the trade off here is between a little more difficult in software, and a LOT easier and more reliable in hardware.
 
<br>
 
<br>
  
 
== Layout and Features ==
 
== Layout and Features ==
  
the layout includes two sets of pads for each row. this allows for a solid connection and prevent stress at the flex pads from breaking away. the is based on two rows of led strips. this addresses the earlier problem of getting inconsistent spacing between rows. using the pcb on alternating rows, allows for even spacing on each side. in addition a series of holes are added to the pcb to allow the PCB to be easily sewn to the base upholstery fabric without damaging the LED strips. to solve the issue of having to connect ground and power to each row of strips evenly, two solder points are available at the top and bottom edges of the board to for power and ground. this allows the pcb on top to directly connect to the next pcb below it passing ground and power. this ensures that each strip gets power evenly.
+
The new layout uses a custom PCB to connect the ends of the two adjacent rows of LED strips and routes the signals, instead of using individual wires in the previous design. This creates a solid connection and eliminates the flexing stress on the end flex pads. It also helps keep the row spacing consistent by keeping an even spacing on each side. The PCB has holes added, so it could be sewn to the base upholstery fabric without damaging the LED strips. Two solder points are available at the top and bottom edges of the PCB to provide power and ground and ensures that each strip gets power evenly.
 +
<br>
 
<br>
 
<br>
 
[[File:Dotstar-adapter.png|600px]]
 
[[File:Dotstar-adapter.png|600px]]
[[File:Dotstar-adapter.jpg|600px]]
+
[[File:Dotstar-adapter.jpg|x315px]]
  
 
<br>
 
<br>

Latest revision as of 14:25, 3 September 2015

Goal

This article documents the design of an easily portable "roll up" 70 x 30 RGB APA102 LED matrix display banner, driven from a MinnowBoard Turbot board. We'll talk about the issues encountered with its implementation, and the resulting redesign that addressed some unanticipated complications and critical failures.
LED-matric.jpg Rgb-test.jpg


Components

4pin-male-dotstar.jpg 4pin-female-dotstar.jpg

Layout

Base

The background base for the matrix display was made with some black upholstery fabric cut to 57" x 30" and the edges hemmed to prevent fraying. Then, a manual metal grommet press was used to add grommets to each of the four corners.
Grommet-1.jpg Grommet-2.jpg

Left→Right Left→Right

The DotStar LEDs were arranged in a chained sequence; each strip cut and aligned on the fabric in a "left to right - left to right", sequence similar to traditional LCD panels, also referred to as "Row Major" sequence. This sequence can be illustrated using a 5x5 pixel example:

 01 02 03 04 05
 06 07 08 09 10
 11 12 13 14 15
 16 17 18 19 20
 21 22 23 24 25

By arranging the LED strips like this, two wires (for the SPI clock and data lines) are needed to connect the end of one LED strip to the beginning of the next. (In the 5x5 pixel example above, two wires connect form the end at 05 to the beginning of the next line at 06). This creates a wiring nightmare on the back side of the design where long wires run the width of the matrix:

Backside-wiring-led.jpg Backside-closeup-led.jpg

The thought was, by designing it this way and working similar to existing display devices, software support would be easy and require little or no effort to implement. Projects such as FBTFT(https://github.com/notro/fbtft/wiki) could be used without modification. While this was true, the long wires created both signaling and logistical problems during implementation.

Sewing to Upholstery

The LED strips were sewn to the upholstery using a fine needle and thread. Alas, we quickly discovered the thread tension could easily damage the flex pads between each LED on the LED strips (where the strips can be cut). It was also hard to keep the spacing consistent between each row while sewing the strips directly to the upholstery. (Consistent spacing is important to a nice matrix display.)
Dotstar-spacing.jpg

Connections

Power Connections

One of the major time consuming tasks on the project was making the power connections. Each LED strip needed both power and ground, and these connections required even distribution across the LED strips and two power supplies were needed because of the number of LEDs used. Careful consideration had to made to ensure that the two supplies were not connected to each other. In the image below, the black wires are ground and the white wires are +5V. Two red wires are visible which are the separate +5V connections to the two power supplies.
Power-ledmatrix.jpg

Long Signal Wires

During initial testing with the MinnowBoard Turbot, we discovered that the SPI clock and data signals wires between the MinnowBoard Turbot and the first LED on the DotStar string had to be less than 24 inches or the signal strength would not work. However, we saw the signals between the end of one LED string and the beginning of the next were about 55 inches long and they did work. After closer inspection with an oscilloscope, it was clear that the APA102 RGB LEDs provided a much higher drive strength for the SPI signals, so as a quick fix, we connected two of the DotStar LEDs only a few inches from the MinnowBoard Turbot and then used a longer connection to the first set of LEDs on the matrix. These initial two LEDs can either be programmed as off (black) or used as status indicators. (For this project we added some code to indicate the status and timing of some of the signals.)

Short-dotstar-connection.jpg Short-dotstar-connection-part.jpg


Broken Flex Pads

As we mentioned earlier, the long wires on the back side of the matrix display fabric were proving problematic both in length and logistics. The long wires also created tension on the flex pads at the end of each LED strip, and caused many of the pads to rip off and forcing us to repair the display by soldering the wires directly to the LED.

Led-broken-flex.jpg

Redesign

Left→Right Right→Left

By rewiring the LED strips to use a "left to right - right to left" sequence, we can eliminate the use of the long wires on the back, also referred to as a "zigzag" sequence. In this design, we only need two short wires to connect the end of one row to the beginning of the next. Using our 5x5 pixel example, it would look like this:

 01 02 03 04 05
 10 09 08 07 06
 11 12 13 14 15
 20 19 18 17 16
 21 22 23 24 25

This matrix encoding can be easily handled in the software; the trade off here is between a little more difficult in software, and a LOT easier and more reliable in hardware.

Layout and Features

The new layout uses a custom PCB to connect the ends of the two adjacent rows of LED strips and routes the signals, instead of using individual wires in the previous design. This creates a solid connection and eliminates the flexing stress on the end flex pads. It also helps keep the row spacing consistent by keeping an even spacing on each side. The PCB has holes added, so it could be sewn to the base upholstery fabric without damaging the LED strips. Two solder points are available at the top and bottom edges of the PCB to provide power and ground and ensures that each strip gets power evenly.

Dotstar-adapter.png Dotstar-adapter.jpg


Design Files

Soldering


Dotstar-adapter-solder1.jpg

Dotstar-adapter-solder2.jpg

Dotstar-adapter-solder3.jpg