100 LED Oscilloscope

by lonesoulsurfer in Circuits > LEDs

60312 Views, 163 Favorites, 0 Comments

100 LED Oscilloscope

100 LED Oscilloscope
202E51A3-8C30-4680-A9A7-056ADD5D0C16.gif
7.jpg
711772B5-98CD-4548-AA93-9320B9279768.gif
CE6E7520-49F0-4966-8B48-51780598BB8B.gif
7.jpg
DSC_1805.JPG
DSC_1812.JPG
DSC_1796.JPG

This is my next build using LED matrix's. You may have seen my last one - 81 LED Chaser, well this project uses 100 LED's and is an oscilloscope!

Admittedly, the resolution isn't great for checking measurements (it is only 100 pixels!). However, it is fantastic at visualizing audio waveforms via a mic.

There are 4 IC's that make up the project. First there are the 4017 decade counter and a LM3914 LED driver which control the LED's. Next is a 555 timer for clock input and lastly a 386 op amp to increase the signal.

If you want more technical detail of how it all works, then check out this link

I have used the 5mm X 5mm square LED's again for the LED matrix and they work great in a project like this. If you have ever tried to solder a bunch of round LED's into a PCB then you'll know that it can be hard keeping them straight. The square ones have a flat top which makes it wash to align them correctly and keep them straight and flat.

This is a really fun little project and although it has a lot of LED's, the overall components is minimal and isn't hard to put together. Credit to Eddy Bergman who I was inspired by to build this project.

Hackaday & Hackster IO have also done a feature of this project. links can be found below.

Hackaday feature

Hackster feature

Supplies

FNC6CPKL125EPXQ.jpeg
DSC_1694.JPG
DSC_1622.JPG
DSC_1495.JPG
529_1_1.jpg
FCRYQUPL125EPWI.jpeg
FQ79MXPL125EPX2.jpeg
FL4YMM4L125EPWD.jpeg
FIRB97VL125EPWL.jpeg
F13GA6FL125EPXT.jpeg
F139FCCL125EPXR.jpeg
FVG3A99L125EPWA.jpeg
FMNAOFEL125EPXZ.jpeg

Below are the components need to build this project along with the parts needed to build the case

Step 1 has the information around the PCB.

The best way to buy electronics is in bulk and I have added a link to each. I also used 5mm square LED's and they look awesome! You can also use round ones as well but I highly recommend that you just buy the square ones. I got 1000 for $14!

Lastly, I have attached a PDF of the parts list and it can also be found on my Google Drive

Components for the Circuit

Potentiometer - 9mm 50K X 1 - Ali Express

Potentiometer - Vertical - Ali Express

  • 500K X 1
  • 2K X 1
  • 50K X 1
  • 5K X 1

Capacitors

Polyester - Ali Express

  • 10nf X 1
  • 47nf X 1
  • 50nf X 1
  • 100nf X 2 
  • 150nf X 1 

Polarized - Ali Express

  • 470uf X 2 
  • 10uf X 2

Resistor Metal Film - Ali Express

  • 1K X 3
  • 120R X 1
  • 15K X 1
  • 10K X 3
  • 10R X 1
  • 100K X 1
  • 27K X 1

IC's

Transistor - 2N3904 X 1 - Ali Express

LED 5mm Square X 100 - Ali Express

Mic electret X 1 - Ali Express

Toggle Switch SPDT X 1 - Ali Express

Switch 6 Pin - 7mm x 7mm X 3 - Ali Express

 JST Connectors Micro JST 2.0 PH X 5 - Ali Express

BNC connector X 1 - Ali Express


Parts for Front Panel and Case

  1. Opal Acrylic A5 - eBay
  2. Clear, adhesive A4 label - eBay
  3. Ply wood

Powering the PCB.

You can use a 9v battery but I like to re-use old mobile batteries.

  1. Mobile battery - If you want to find them just visit your local e-waste or check in the top drawer for an old phone! You can always just buy a new one on eBay as well...
  2. Power module (this will increase the voltage from 3.7v to 9v - Ali Express
  3. USB charging module (so you can charge the battery up) - Ali Express

A Couple of Options in the Design

Capture.JPG
Capture.JPG

After putting together the initial PCB, I decided that I wanted a way to fine tune the horizontal. This creates the waveform structure and having a fine tune allows you to create great looking waveforms.

Version 1 (first schematic) has a couple of extra JST connectors, one for a 50K pot and one for a switch to turn off the fine tune. The reason why I wanted the ability to turn off the fine horizontal is you can get very slow frame rates when it isn't connected and I like the look of them! When the fine horizontal is on, you can't slow frame rates to happen. if you didn't want to bother with the switch, you could just connect the 2 solder points on the PCB. I also wanted to add the fine horizontal pot to the side of the case where it is easy to really fine tune it. If you don't care about the fine tune then you don't have to connect the pot or switch and it will all still work.

Version 2 (second schematic) has the fine horizontal directly connected to the PCB. However, it doesn't have the ability to turn off the fine horizontal.

I have provided 2 PCB's (next step) so you can pick which one you want to get printed.

Printing the PCB

Board V1.JPG
Board V2.JPG

The board is actually 2 sided. On one side are all of the components like capacitor, resistors, IC's etc. On the other side is the potentiometers and switches.

To have the board printed, save the gerber zip file in the Google Drive files to your computer and email it to your favourite PCB manufacturer. I use JLCPCB (not affiliated) who do a good job of printing the boards and are quick as well. If you are thinking 'what the hell is a gerber file!', then check this 'ible out which is a step by step guide on how to get a PCB manufactured.

If you would like to play around with the schematic and board in Eagle, well I have also provided these in my Google Drive. You can also find a PDF of the schematic in the previous step

Remember - there are 2 versions so have a think how you want your board to look.

Adding the LED's to the PCB

DSC_1490.JPG
DSC_1499.JPG
DSC_1498.JPG
DSC_1500.JPG
DSC_1501.JPG
DSC_1507.JPG
DSC_1510.JPG
DSC_1511.JPG
DSC_1515.JPG
DSC_1513.JPG

Adding the LED's isn't too hard (just a little time consuming), especially if you use the square ones that I used in the build.

STEPS:

  1. To ensure that the LED's are sitting flat when you solder them into place, it's important that you add a couple to the bottom row as well. So firstly, add 10 LED's to the top row and a couple each side in the bottom row.
  2. Next, solder one leg of each LED into place and check that they are straight before you solder the other leg.
  3. Keep on adding row after row, checking your work as you go and making sure that the LED's are straight and sitting flat on the PCB.
  4. Once you have added all of the LED's - it's time to start adding the components on the reverse side

Adding the Components to the PCB

DSC_1486.JPG
DSC_1523.JPG
DSC_1527.JPG
DSC_1529.JPG
DSC_1534.JPG
DSC_1520.JPG
DSC_1540.JPG
DSC_1541.JPG
DSC_1545.JPG
DSC_1543.JPG
DSC_1546.JPG

STEPS:

  1. As always, start with the lowest profile parts first - in this case it's the resistors
  2. Next I usually add the IC sockets and then JST connectors
  3. Then move onto the capacitors and transistor
  4. I had to solder into the the LED driver IC as i didn't have a IC socket big enough for it. Luckily there wasn't any issues with it.
  5. Once all the components have been added, flip the board over and add the pots and switches
  6. First, add the switches to the board. Note that they have an orientation. If you look at the one that I'm holding, you can see a small indent in the bottom of the switch. Make sure that the indent is at the top of the switch when you are soldering them into place. It will mean that you need to push the switch and lock it into place to turn it on. If you happen to put them in the wrong way - it won't really matter, it will just mean that you have to 'un-latch' the switch to turn it on

Testing the PCB (and a Small Mod I Did!)

DSC_1548.JPG
DSC_1553.JPG
DSC_1563.JPG
DSC_1567.JPG
DSC_1582.JPG
DSC_1589.JPG
DSC_1591.JPG

Testing the board is relatively easy, all you need to do is to add a mic and a power source and you can test it. I also decided to do a mod which was adding the 'fine horizontal' pot and switch to turn it off. You don't have to worry about doing this as I updated the PCB (version 1). Version 2 has the pot connected directly to the board so less wiring. However, you can't turn off the 'fine horizontal'

STEPS:

  1. Connect a mic and power source to the board
  2. You should see a line of LED's light up
  3. Play around with the knobs (see the last step on how to actually work the thing!) and see if the LED's move about
  4. Play some music (making sure that the mic is turned on via the mic/probe switch) and see if you can get some waveforms happening.
  5. Remember that the electret mic have a polarity so if you aren't seeing anything, try swapping the wires around connected to the legs and see if that helps.

The Front Panel

Capture.JPG
DSC_1604.JPG
DSC_1609.JPG
DSC_1611.JPG

Like my 81 LED Chaser, I decided to keep the front panel pretty simple - there is already enough going on with all those LED's!

I use inkscape to design my front panels. You can find the raw files in my Google Drive in case you want to play around with them. NOTE that there are 2 versions that I made of the circuit board. I only did a panel for version one which has a 'fine horizontal pot' but not on the actuacl PCB. See step 5 for further details

STEPS:

  1. Use the attached PDF copy of the front panel design.
  2. The front panel needs to be printed on clear, adhesive paper. You can get this from eBay and have added a link to the parts page.
  3. Cut out the image and carefully place onto the opal acrylic and remove any air bubbles.
  4. Cut the acrylic to size if you haven't already
  5. To ensure the colours on the front panel don't get scratched, spray a few coats of clear acrylic onto the front panel. Make sure you give it a good coating each time and leave for an hour to dry before applying the next one. I used a satin finish clear coat on the final design.

Drilling & Making Cut-outs on the Front Panel

DSC_1616.JPG
DSC_1621.JPG
DSC_1629.JPG
DSC_1631.JPG
DSC_1632.JPG
DSC_1639.JPG
DSC_1633.JPG
DSC_1651.JPG

Time to drill out the holes for the pots and switches and also cut out the section for the LED's.

STEPS:

  1. I like to use a stepped drill bit to make the holes in the front panel. Carefully drill out each of the holes for the pots and switches

NOTE: I highly recommend to use a drmel for the next step. It makes the job relatively easy. You could also use a small saw to remove the section

  1. Attach a small cutting wheel to the dremel and carefully cut away the square section in the panel for the LED's
  2. Tidy up the edges with a file and then see how the LED's fit. Re-work any sections if necessary until the PCB and LED's fits nicely into the front panel

NOTE: I was very close to actually not making the cutout for the LED's! The acrylic i used was 2mm and it diffused them quite nicely. However, I decided to take the hard road & make the cutout as I liked seeing all those LED's

  1. Place the PCB into the front panel, mark where to drill the 4 holes to mount it and drill.
  2. Secure the PCB to the front panel using some small screws and nuts. You may need to add some spacers between the front panel and PCB is you find it is bending inwards.


Making the Case

DSC_1641.JPG
DSC_1644.JPG
DSC_1649.JPG
DSC_1659.JPG
DSC_1667.JPG
DSC_1669.JPG

I decided to make the case so the front panel was on a 45 degree angle. It helps give a better viewing angle


STEPS:

  1. The first thing you need to do is to cut a groove along the ply wood in order to secure the panel into. I used a dremel with a router attachment to do this.

NOTE: If you don't have one then you could always just stick the panel to the top of the case - easy!

  1. Secure the wood with some clamps and run the bit near the top of the wood. Take your time and make sure you keep the dremel nice and straight.
  2. Measure and cut the wood to size. The best way to do this is to just slip in the front panel into the groove of the wood and measure where to make the cuts
  3. To give the case an angle, I just cut the side pieces of wood close to a triangle shape
  4. Place the front panel into the grooves of the wood and with a small nail gun like a brad nailer, connect the sides to the base. You can also just glue them as well if you want to - I just get impatient waiting for the glue to dry!

NOTE: Before you nail everything together - check out Step 5 which shows you how to add the pot. switch etc to the side of the case

  1. The top section will need to be screwed into place so you can easily get inside the case
  2. To finish off the wood I added some clear gloss on the body of the frame and base. Leave to dry for a few hours, give it a light sand and add another coat

REMEMBER - you can make the shape of your case anyway you want to. This is just how I did it

Adding the Switch, Pot, Mic & BNC Connector to the Case

DSC_1663.JPG
DSC_1665.JPG
DSC_1677.JPG
DSC_1681.JPG
DSC_1678.JPG
DSC_1684.JPG
DSC_1724.JPG

As mentioned earlier, I made a modification to the PCB and added a fine horizontal pot to make it easier to fine tune the waveforms. There are 2 versions of the PCB's (I used V1), the 2nd version has the 'fine horizonal' attached to the PCB.

STEPS:

  1. If you are using ply wood to build the case, then you might find that it is too thick to attach the pot, switch etc. To get past this,
  2. I used a small router bit on my dremel and removed some of the wood on the side panels. If you reduce the thickness to about half then you should be able to attach everything to the side of the case.
  3. Connect the switch, 50K pot to one side and the other add the BNC connector. FYI - The BNC connector is how you connect the oscilloscope probe to the PCB.
  4. Lastly, drill a small hole just big enough to fit the mic. NOTE: These little mic's have a polarity so if you find that it isn't picking up any signal, then try and swap the wires connected to the mic

Adding a Power Source

DSC_1696.JPG
DSC_1698.JPG
DSC_1700.JPG
DSC_1691.JPG
DSC_1687.JPG
DSC_1689.JPG
DSC_1690.JPG
DSC_1703.JPG

You could power everything by a 9V battery. I like to use rechargeable batteries for my builds and have decided to use an old mobile battery to power everything. If you have seen any of my projects over the last couple of years, then you would have seen me do this many times.

STEPS:

  1. The step up power module (used to change the voltage from 3.7v to 9v) needs to be formatted to output 9v's. To do this you need to connect the top 2 solder pads with some solder. They are tiny so just add a little solder to your soldering iron and dab it on.
  2. Add a dab of superglue to the back of the power module and glue it close to the battery terminals
  3. Connect the input of the module to the battery using a couple resister legs
  4. To charge the battery, you'll need to connect a charging module and be able to access it.. The easiest way is to make a small cutout into the side of the case and glue the USB module to it. You can then connect the USB module to the input on the charging module (the same solder points as the power module
  5. Lastly, connect the wires from a mini JST connector to the output on the step up power module.
  6. NOTE - Test to make sure that there is 9v's being generated from the step-up module. Those tiny solder pads can be tricky to connect.


Connecting Everything Together

DSC_1708.JPG
DSC_1710.JPG
DSC_1706.JPG
DSC_1714.JPG
DSC_1717.JPG
DSC_1671.JPG

Now that you have everything added to the case, it's time to connect everything together. I use mini JST connector to easily connect the wires to the PCB. See link in supplies

STEPS:

  1. Solder a JST plug onto the BNC plug, mic, power supply and fine horizontal pot and switch (if you are using version 1)
  2. connect all of these to the PCB
  3. Test to make sure that everything is working. Unfortunately I can't test the probe yet as I don't have one! I'm going to try my hand at making one and will do an 'ible if successful.
  4. Screw the top section down
  5. Add some knob's to the pots. They are quite close together so I would recommend using small ones. Or, don't bother at all with adding pots to the PCB!
  6. I added the 'fine horizontal' to the side of the case as it makes it very easy to fine tune it. I also added a larger knob which gives you more control when tuning.


How to Use the LED Oscillator

DSC_1714.JPG
DSC_1730.JPG
DSC_1732.JPG
DSC_1733.JPG
DSC_1736.JPG
DSC_1740.JPG
DSC_1735.JPG
DSC_1750.JPG

Ok - so now that you have built it - how do you use it! Actually, it's really quite easy to get great waveforms appearing via an audio source such as music. I find that there are some songs that work better then others. I highly recommend that you try out 'Extra Kings' by the Avalanches - some beautiful waveforms are created when this is played. Actually, a lot of the avalanches songs look pretty good on the oscilloscope

STEPS:

  1. Turn on the oscilloscope
  2. You can control where the LED's are positioned in the matrix with the vertical control. Use the fine vertical to help you fine tune the LED's so they are only on one line
  3. Turn on some music and see how it all looks
  4. If you are finding that all of the matrix is filling up with blinking LED's, reduce the strength
  5. Next, turn the horizontal pot until you start to see some waveforms. Use the fine horizonal to tune it even further
  6. I added a switch to turn off the fine tune as I wanted the ability to really slow down the horizontal. Have a play around with this (version 2 doesn't have the switch)
  7. Also play around with the speed, see if the waveforms change (for the better) if you speed up or slow down the rate.

Lastly - experiment and see what music works best and what types of waveforms are generated.

I'll do an update on the probe once I have built one and tested.