Friday, June 14, 2013

Getting started: Building a First pass Audio pre-amp

Experiment # 1: Disconnect the speakers from an old radio
1. From an old radio disconnect the speakers by cutting the wires
2. Reconnect the speakers by joining wires: Still work? Good!
3. Connect another set of speakers in place of the ones you disconnected. Still work? Good!
4. Now time to build your audio pre-amplifier. This takes us to experiment # 2


Experiment # 2: Build a pre-amp
1. We're going to start off with something simple that will give us confidence to proceed. Go to this schematic and build it on the breadboard.
2. Connect the function generator sine wave input to this and see that you get a clean sine wave at the output: Done
3. Now connect the radio output to the input of this circuit and the output of this circuit to the speaker : Done

Some observations
1. Even though the output of the radio puts out a differential output signal, you can use it in a single ended fashion by grounding one of the inputs. A single output does just fine
2.  You can even invert the inputs to the amp we built and it still sounds the same
3. If you want to use it in single ended fashion, sure you must ground one end. If you leave one end floating somehow, the channel seems to be different. Why?  
4. Distortion observed as well. Saturation observed. Did not wanna do more as that would blow out the speaker.






Monday, June 10, 2013

List of components

Component types from 1-10 are absolutely essential
1. Lots of resistors running the gamut from 10 Ohms to 1MOhms
   a. 10Ohms, 22 Ohms, 33 Ohms, 47 Ohms, 68 Ohms: 5 each
   b. 100 Ohms, 220 Ohms, 330 Ohms, 470 Ohms, 680 Ohms: 20 each
   c. 1K, 2.2K, 3.3K, 4.7K, 6.8K: 40 each
   d.  10K, 22K, 33K, 47k, 68k: 20 Each
   e.   100K, 220K, 330K, 470K, 680K, 1M: 10 each

2. Lots of capacitors running the gamut from 100uF to 10nF
   1. 10p, 100p: 10 each
    2. 1n, 10n   : 20 each
    3. 100n, 1u, 2.2u, 4.7u, 10u, 22u, 47u, 100u: 30 each
 
3. Normal Diodes
    a. 1N4148, 1N4004,4007: normal diodes #20 total
    b. 1N5060: clamping diodes, #5
 
4. Zener Diodes: 6V, 12V, 1W: 10 total

5. A few opamps
              a. LM741: Classic. 10 total
              b. LM 386 Audio Amplifier which has internal feedback.
              c. TL074M : classic. TL084, OP176, AD797 are suitable substitutes: 20
                  total
              d. OP184: 5
              e. LM1458: NTE7784 is a suitable subsitute: 5 total
              f. LF353: 2-3 total

6. Some BJTs
              a. Normal: MPS8099 (NPN), 2N5401 PNP, 2N5551 NPN, 2SB649 PNP output buffer, 2SD669 NPN output buffer, MJ15003, MJ15004, 2SA1302, 2SC3281, 2N3904/06 (Classic BJTs), tip31c/32c, 2SC 3281
              b. Matched Pair: MPS8599, 2N5551, 2N3806

7. Some Fets: 2SJ162, 2SK1052

8. Couple speakers
9. Couple microphones
10. Breadboard
11. Gauge wires for breadboarding and wire cutter. Different colors. Use SO22 or SO24. SO 20 and lower are too wide in diameter to fit inside breadboard slots.

Components 11-15 are nice to have but optional for now 
11. Couple ADCs and compatible DACs
12. Clock generators & Timers: NE555 and MN3103
13. Programmable logic
14. Couple transformers
15. Voltage regulator ICs: 7805, 7812, LM337/317
16. Chokes/Inductors

*******************************************************************************
1. Some analog filter chips. like UAF42

Wednesday, June 5, 2013

Ideas for a nice circuit

1. Graphic equalizer
2. Play a guitar string. Can the circuit recognize it?
3. Some kinda circuit that helps with figuring out the guitar?
4. An instrument to automatically tune the guitar. Should light up when the string is tuned!!!! Awesome

Tuesday, June 4, 2013

Troubleshooting test equipment: Function Generator and Oscilloscope

Plenty has been written about this oscilloscope, the venerable and grand Tektronix 2465 4 channel 300MHz Oscilloscope. I do not intend to clutter the space. This page is just a log of the issues I faced and solving them

First, The manual is available free of charge at http://bama.edebris.com/manuals/tek/2465/


Issue # 1: Waveform display is pulsing. It is as if the CRT dot moves from left to right while tracing out the sine wave input. It is like an ECG screen. I want a steady waveform display

The applied frequency is probably too low in the range of Hz. This should not happen for higher frequencies in the range of KHz


Issue # 2: Oscilloscope channel has DC offset. The input waveform is at zero DC, but the scope shows it as having some offset. The scope itself has some internal offset. When you apply a ground coupling, you see that it is ground coupled at 200mV. Why is this? Can this be changed?


Issue # 3: Can't see other channels

That's what the mode buttons are for. You need to press the knobs for the respective channels to see the waveforms for that


Issue # 4: Signal not triggering on channel X
If only channel X is on, then Channel X must be the trigger source. Make sure Channel X is set to the source on the trigger menu.


                              Function Generator
You might have a similar issues with the function generator from time to time. I am using a GW instek GFG-8020H function generator

1. The triangle waves look like sawtooths
2. The square looks like pulse.

No matter how much I adjust the duty cycle knob, I cannot get the square to look like a square or a triangle to look like a triangle. Also the square seems to have some overshoot followed by first order settling indicating some sort of stability feedback loop issue. Finally the sine wave looks distorted. The 2nd harmonic is 10% of the fundamental.

I used high frequency cables and probes, but it stays the same. So does not look like a probe or loading issue. Finally, I see that the frequency seems to flicker a bit about +/-2%. Did you encounter anything similar from your function generator? Any clues as to what this could be?


1. The answer is that the function generator is being used at the edge of it's range. If the range setting of the function generator is at 100K, but you have turned the frequency knob so low that you are actually putting out a 5KHz wave, then obviously you are operating the FG at the edge of it's range. When putting out 5KHz, use a 10K range (assuming max freq at 10K range is 20K)

2. Another issue is you may be using an abnormally high offset, saturating the circuit beyond it's point of linearity

3. Finally, take a look at the duty cycle knob. Turn it all the way inside. Don't mess with that knob while looking at Duty cycle. It will screw up the wave