LED Matrix Glasses: First Prototype
LED Matrix Glasses: First Prototype
LED Matrix Glasses: First Prototype
LED Matrix Glasses: First Prototype
LED Matrix Glasses: First Prototype
UPDATE: http://www.instructables.com/id/Rave-Shades-The-Self-Assembly-LED-Glasses-Kit/

Introduction:
I came up with this idea after seeing similar videos on the internet. I however have improved on the design. What separates my glasses from the others out there, is that mine use an external matrix driver and battery. What this means is, for the cost of having a cable down your back when wearing the device, you get a greatly improved battery life. This also allows the device to use ultra-bright 1210 LED's. Not only that, a full sized arduino can be used if you have one. This project uses cheap and easy to gain parts to allow you to create a one of a kind fancy dress party piece. These glasses do not obstruct your vision any more than the original shutter shades. Even with the glasses on turned on, no glare from the LEDs can be seen.

For me the most important thing about making these glasses has been, increasing my knowledge and attaining new skills. Here are some of the things I have learnt.

• Solder Surface mounted LEDs.
• Write my own C program and optimize it to store more visual effects.
• Using data arrays to store patterns and frames.
• Create an algorithm to shift out the data from a 3D array.
• Correctly control the chips of the driver circuit.
• Cascade shift registers.
• Use Microsoft Excel to my advantage to create many shortcuts whilst programming the on-screen visuals.
• Efficiently place components on vero board.


Step 1: Parts Bin:

LED Matrix Glasses: First Prototype
LED Matrix Glasses: First Prototype
To make this project you will need these parts:
  • 200 pcs 1210 SMD LEDs, blue ones can be found here
  • 1 pcs Black shutter shades, use these as I have provided a template for use with these glasses.
  • 2 pcs PCB vero board, 90x127mm, found here
  • Arduino nano, or alternative.
  • 3 pcs 74HC595 8-Bit Shift Register, a pack of 10 can be found here
  • 1 pcs HCF4017 Decade counter with 10 decoded output, a pack of 5 found here
  • 8pcs BC337, a pack of 10 can be found here
  • 24 pcs 1/4W resistors, 82ohms if using white, blue or green leds, or 150ohms if using red, orange or yellow leds. A pack of 100 resistors can be found here
  • 8 pcs 1K 1/4W resistor can also be found via the above link
  • 2 Meters of 40 way IDC 0.05 pitch multi-strand cable, found here
  • 1 IDE hardrive cable, found here
  • 1 project enclosure, it may be better to choose one after you have finished the driver and chosen your power supply.
  • 1 pcs 4 x AA battery pack*
  • 4 pcs AA batteries*
  • Hot Glue sticks*
  • SuperGlue*
  • Solid core wire*
  • * Can be found at most hardware shops or ebay.

    Step 2: Tool Box:

    LED Matrix Glasses: First Prototype
    To make a pair of these glasses you may need these tools:
  • Soldering Iron, preferable an adjustable one with a fine tip.
  • Hot melt glue gun
  • Side cutters
  • Wire strippers
  • Philips head screw driver
  • Tweezers
  • Scissors
  • Drill
  • Selection of drill bits
  • Small rectangular file
  • Small round file
  • PC
  • Sewing needle or bobby pin
  • Pen
  • Step 3: Marking The Positions Of The LED's:

    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    Show All 9 Items
    The next four steps show you how to mark out the location of the LEDs on the glasses. All images are in chronological order and may have their own annotations to help you.
  • Download the attached pdf file and print it out.
  • Remove both arms from the glasses using a small Philips screw driver.
  • Center the glasses on one of the grids. There are two grids just in case you get something wrong later on.
  • Draw an outline of the glasses in pen. (Image 2)
  • Cut along your markings. (Image 3)
  • Cut down the middle line of the grid to seperate each side.
  • Lay down some tape with the sticky side up and place one of the half grids face down on the tape. (Image 4)
  • Try to position the cut-out grid on the corresponding side of the glasses, making sure the the the horizontal lines are in the center of the slats of the glasses. (Image 5&6)
  • Repeat steps 7 and 8 for the other side.
  • When you are sure all is lined up, grab a sewing needle and press the tip on to each crossover of the grid, creating a small hole on the surface of the glasses at every point. (Image 8&9)
  • LED Matrix Glasses: First Prototype
    Glasses Template.pdf79 KB

    Step 4: Attaching The LEDs:

    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    Show All 10 Items
    Now follow these steps:
  • Use sticky tape to hold the glasses securely in place on, on your work surface.
  • Drip some cooking oil onto a paper towel and wipe the prongs of your tweezers with a thin layer of oil. This will stop the LEDs from sticking to the tweezers when you carry out step 6.
  • Clean the glasses with washing-up liquid and allow to dry. Do not touch the front of the glasses as grease from your hands will stop the superglue from working properly.
  • Take an LED and locate the cathode, this can be determined by the recessed corner.
  • Position several LEDs on your desk at a time with the recessed corner ie the cathode, away from you. Keep them close to the glasses to make transportation to the glasses quick and easy.
  • Pick up one LED at a time and carefully blob some superglue onto the base and then place it on one of the dots made earlier with the pin.
  • The superglue will not set immediately, so place the LED as quickly as possible and take the tweezers away. Then continue with the next one. The glue will start to set within a minute, so do not place another LED in a neighbouring spot for a couple of minutes so as not to disturb an unset LED.
  • Repeat until LEDs cover every pin hole you made earlier.
  • Allow the glue to cure for 24 hours in a dry, but ventilated area.
  • Check that all LEDs are up the right way. The side with the recessed corner at the top of the glasses when worn* check the last photo of this segment.
  • Top tips before trying this are:
  • Have a good night sleep before attempting this.
  • Do not consume any caffeine that day. I cannot emphasize how much of a difference this made.
  • Make sure you work in a well-lit area.
  • Step 5: Soldering The LEDs: Cathode Rows & Anode Columns

    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    Show All 10 Items
    This step requires a lot of patience, concentration and a decent soldering iron tip. Follow these steps and use the related photos & diagrams to help you:

    WARNING: Work in a well ventilated space with eye protection when soldering the LEDs as the superglue will emit a toxic vapour.

    Cathode Rows:
  • Strip some multi-strand wire to reveal the individual strands of wire. You will need 8 of these strands and they should be approximately 7 inches long.
  • Starting on the top row with the LED furthest to your right as you look at them take an individual strand of wire and solder it to the cathode (recessed corner).
  • Solder this wire along the cathodes of the LEDís in that particular row and leave any excess wire attached. (Image 1)
  • Repeat this for the next 2 rows and you should be left with 5 more rows with a gap between for the wearer's nose.
  • Repeat steps 2&3 for the next 5 rows but this time cut off the excess wire when you get to nose gap and keep for later.
  • The 5 bottom rows require an electrical bridge to be made around the gap for your nose using insulated wire. I used IDE cable as the individual wires are insulated and flexible. When bridging the gap follow the shape of the nose cut out otherwise they can't be worn.
  • Use the excess wire that you had previously cut off and put to one side, to continue connecting the cathodes of the LEDs on that particular row.
  • Visually check connections for errors. (Image 2)

  • Now it is time to solder the anodes together to create 24 columns of anodes. Once again follow these steps and use the diagrams and photos to help you:
  • Take some IDE cable, seperate out 24 wires, each 7 inches long.
  • Strip ~1 inch off one end of all 24 wires. (image 3)
  • Strip a further N pieces of insulation, where N is 1 less than the number of LEDs in that particular column. Each piece of insulation should be 0.25 inch long. Remember to keep them on the strand of wire. (image 4)
  • Solder the wire on to the anode (the side opposite to the one with the recessed corner) of the bottom LED of that column. (image 5)
  • To help you in the next step bend a stiff piece of wire to roughly match that shown in image 6.
  • Use the tool you just made to bend the rest of the wire around the other LEDs, soldering each one as you go. (images 7,8,9)
  • Visually check connections for errors. It should look like Image 10.
  • Step 6: Glasses Data Cable:

    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    You should be at a stage where your glasses have 24 anode wires and 8 cathode wires. However they will not reach the driver as they are, so an extender cable is required. Follow the diagram (Image 6) now and you will be able to correctly connect up the cable later:
  • Take your 40 way IDC cable and take off 8 wires to leave a 32 way cable leaving the red indicator strip on the cable. Note: I have used IDC cable as it has more than one strand of metal per wire. This will have an increased life over an IDE cable. That is why I have only used IDE cable where it doesn't need to be flexed
  • Stick the cable onto the outside of the glasses using hot melt glue, being sure to leave around 7 inches of cable ahead of the joint and the other 6 foot arrears of it. (Image 1)
  • Start with the rows and split the cable down to 8 separate wires all the way to the glue joint.
  • Solder the wires to the corresponding row. Use hot melt glue to hold in in place. (Image 2,3,4 & 5)
  • TIP: lick your finger to shape the hot glue to a more streamline shape.
  • Strip the remaining 24 wires.
  • Solder the wire to the correct LED column. (Image 6)
  • Hold the wires in place with more, hot melt glue using the same technique mentioned above to create a durable frame.
  • Bulk up the joint where the cable meets the glasses. (Image 7)
  • Step 7: Securing The Head Strap:

    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    Show All 7 Items
    Follow the steps below to create a head strap:
  • Remove the head strap from an old dust / voc mask but don't tear the elastic. I got mine from a 3M 4000 series mask
  • Use some steel wire to attach the elastic to the side without the cable (Image 2 & 3)
  • Bend the excess wire and hot glue it in place
  • Put some wire around the elastic and then around the middle slat.
  • Twist it tight but make sure you are not touching any LEDs wires or solder blobs (Image 4 & 5)
  • Using duct tape or equivalent, bend and tape the data cable in a vertical position, to allow it down the back of your shirt when worn. (Image 7)

  • Step 8: Schematic Diagrams:

    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    The first schematic is the matrix driver. This will allow the Arduino to control all 162 LEDs and with slight modification up to 192 LEDs. If you want to view the Schematic of the whole system download the PDF below, as the image here is a little pixelated.
    LED Matrix Glasses: First Prototype
    schematic glasses.pdf319 KB

    Step 9: Assembling The Matrix Driver: Shift Registers

    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    Show All 7 Items
    To make the driver, you should use the schematic instead of copying what you see in the next steps and images. This is because you could make a mistake that you may not understand. You should create the layout yourself as this is an excellent skill to have when all you have is a schematic diagram. I have tried to describe each step as best I can:
  • Take your vero board and lay it, copper side down with the copper strips in a horizontal position.
  • Solder in a 74HC595 Chip with the indicator notch facing up. (image 1)
  • Solder in a current limiting resistor from pin 15. I put some solid core wire insulation over the leg from pin 15 to save hassle later on. (image 2)
  • Solder in the rest of the resistors ensuring they all straddle one hole. (image 3)
  • Solder in a 74HC595 chip in the same orientation as before but leave 6 holes between each chip. (image 4)
  • Repeat steps 3&4 for chip 2. (image 5)
  • Solder in a 74HC595 chip as you did for chip 2 (same orientation + 6 hole gap)
  • Repeat steps 3&4 for chip 3. (image 6)
  • Step 10: Assembling The Matrix Driver: Shift Registers Continued...

    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    Show All 8 Items
    Continue the assembly by following these steps:
  • Connect pins 10 and 16 together on each chip. (image 1)
  • Connect pins 8 and 13 together on each chip. (image 2)
  • Connect pin 9 of chip 1 to pin 14 of chip 2.
  • Connect pin 9 of chip 2 to pin 14 of chip 3. (image 3)
  • Connect pin 11 of chips 1, 2 & 3 together. I did this on the back of the board.
  • Connect pin 12 of chips 1, 2 & 3 together. I did this on the back of the board.
  • Look at image 6, it shows 8 connecting wires taking the output from chip 2 over to an area close to the output of chip 1.
  • Now look at image 7, it shows where the output of all 3 shift chips and transistors could be.
  • Using a small drill bit make 3 vertical lines of breaks in the 8 copper tracks, this is to separate each output. They have to be at least two holes apart.
  • Strip and solder 16 pieces of wire to each output from chips 2 and 3.
  • Route each wire neatly on the board and then solder it to the corresponding location in the output region. See image 8 for details.
  • You should be left with 2 sets of connecting cables, one is for chip 2 and the other is for chip 3.
  • Step 11: Assembling The Matrix Driver: Decade Counter

    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    Continue the assembly by following these steps:
  • Solder in the 4017 decade counter, in line with the other chips and with the notch facing up. However it only needs a 3 hole, gap between it and chip 3.
  • Connect pins 8 and 13 together on the decade / chip 4.
  • Connect pin 13 of chip 4, to pin 8 of chip 3.
  • Step 12: Assembling The Matrix Driver: Decade Counter Continued......

    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    I would recommend using the 8x BC337 NPN transistors. I used 19x 2n3904 as I had them spare, however I had to put them in parallel to handle the current. So just ignore how many there are.
  • Find space on the board to put all 8 BC337s in line with each other. You will need 3 adjacent copper tracks and should start by soldering transistors along them. All tracks should have a like pin type, ie all collectors, or all base's or all emitters. This can be achieved by maintaining the same orientation of all transistors. You will need to leave 2 sets of holes before inserting the next transistor. This is because one of the holes on each track is required to isolate each transistor and the other is to insert the wires and the resistors. Image 1 shows a top view however you can also see an x-ray of the tracks and any required breaks in the tracks.
  • Using a drill bit break the copper track that the collector and bases run on, leaving one hole for any wires or resistors to be soldered to. DO NOT DRILL THE TRACK THAT THE EMITTERS ARE ON, as this will be used to ground the transistors in the next step.
  • Solder a wire from the track that the emitters are on, to pin 8 of any one of the chips. This will ground the transistors.
  • Solder a 1K resistor into each of the 8 bases.
  • Solder the other end of the resistor to an isolated section of track that has a minimum length of 2 holes.
  • Solder a wire into the other hole on the above mentioned section of track and route it to the corresponding output of the decade counter. DO NOT FORGET OUTPUT 0 IS BEFORE OUTPUT 1. (Image 2, where Q is the output)
  • Solder a wire from the collector of each transistor, to the output area. (Image 3)
  • Step 13: Assembling The Matrix Driver: Arduino Hook-Up

    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    Continue the assembly by following these steps:
  • Score a piece of board and snap it over an edge of a table.
  • Insert the arduino.
  • Solder the arduino in place.
  • Connect pin 14 of shift chip 1 to pin 11 on the arduino.
  • Connect pin 12 of any shift register to pin 10 on the arduino.
  • Connect pin 11 of any shift register to pin 13 on the arduino.
  • Connect pin 14 of the decade counter to pin 9 on the arduino.
  • Connect pin 15 of the decade counter to pin 8 on the arduino.
  • Step 14: Housing The Matrix Driver:

    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    LED Matrix Glasses: First Prototype
    Show All 15 Items
    To protect and hold all the electronics together you should mount them in a project box. I used an aluminum box or aluminium box in the UK :
  • Work out where you are going to install everything in the box.
  • Place the driver circuit inside the housing and mark up the location of the arduino's USB port.
  • Drill 2 small holes for the USB port and file them into a single rectangular hole.
  • Mark up the location of the power switch.
  • Drill a hole for your power switch. If you do not have a larger enough drill bit you will have to file it out with a round file.
  • Mark up the location of where the glasses cable will enter the box.
  • Chain Drill a line for your ribbon cable and then file it out into a slit.
  • Cut a length of PVC tube twice the length of the slit.
  • Slice the tube down the middle and use it to make a grommet for the slit.
  • If you have used ribbon cable for the glasses cable, spit the unused end into sections of 8. i.e. one for each chip.
  • Thread it through the slit you made in the enclosure.
  • Strip each of the 32 wires.
  • Insert and solder one wire at a time into the correct section of the output region. (Image 15, the last one)
  • Insert some plastic sheet if using a metal box and tack it and the driver in place with some hot melt glue. (Image 12&13)
  • Glue the battery holder in place with hot melt glue
  • Solder the black wire of the battery holder to GND on the arduino
  • Insert the power switch.
  • Solder a wire from the VIN on the arduino to the switch.
  • Solder the red wire from the battery holder to the switch
  • Insert some batteries and test to see if the arduino lights up. If the arduino has no lights review your wiring.
  • Only hot glue wires in place after a test run with code.
  • Step 15: Upload The Code:

    To test your glasses:
  • Download the test code and open it.
  • Paste the text into the arduino IDE
  • Upload the test code.
  • A sparkling rain pattern will fall down the screen.
  • To create your own animations:
  • Start by opening the arduino IDE and pasting the attached code below into it..
  • Look for the grey section of code with: // e.g. unsigned char your_new_animation [][8][3] {
  • Remove the // e.g. from it and it should turn black.
  • Right click on the Array Calculator v1 link below and select save link as.
  • Open the downloaded file in Microsoft Excel.
  • Copy the light blue box titled "on".
  • Paste this where you would like a particular LED to be on, you can have any combination of LEDs just make sure you only paste inside the glasses silhouette.
  • It does not work from color so you can't just fill the boxes with that color, you do have to copy either an on, or off box.
  • When you have finished, copy the number below the glasses and paste it into the code below the "unsigned char [][8][3] {" line you just modified.
  • This is the first frame of your animation. Repeat steps 5 to 8 for your other frames.
  • When you get to your last frame replace the comma, with };
  • Scroll down to the bottom of the code and you will find a grey "//e.g. run_animation(8,your_new_animation,11,12);"
  • Remove //e.g. and again it should turn black.
  • Change the number 11 to the number of frame your animation has.
  • Change the number 12 to the number of loops you want to do.
  • Decrease the number 8 to speed up your animation.
  • You can rename your animation as long as you change it in the array at the top and down here.
  • LED Matrix Glasses: First Prototype
    Array Calculator v1.xml32 KB
    LED Matrix Glasses: First Prototype
    EL_EE_DEE_Test_Code_v1.txt3 KB
     
     

    Tag cloud

    make build easy simple arduino making homemade solar laser printed portable cheap mini building custom cardboard wooden create super lego turn paracord chocolate your paper light intel