Thursday, April 16, 2009

Adventures in Backlighting Part 2



The glowing blob you see above is a piece of a cut-to-size EL sheet, glowing on my workbench. I finally got it to work last night. Here's a pic of it unpowered (and with the lights on):



And here is what it looks like in low light -- kind of spooky:




If you read the previous post, you know that I was having trouble with it: every time I connected a piece of the EL sheet to the inverter, the +5V power supply would shut down. I was getting the power from one block of the Discombobulator, which had a Condor triple-voltage linear supply, with the +5 rated at 3A. There was only one module using the +5 in that block, but I figured maybe it was drawing a lot of current, so I disconnected it. With this, there was nothing but the EL inverter drawing from the +5. Still no joy; it shut down as soon as I connected the EL sheet. The second thing I tried was to go get another Discombobulator block. One of the three has a switching +5 power supply rate at 5A. Trying it with this, the power supply didn't shut down -- the inverter itself did.

Well, this left me completely puzzled. Was the sheet I was trying to light too big for the inverter? I tried cutting off a small piece (the piece you see above) and just using that. No difference. What was going on? I checked the piece with an ohmmeter, and was surprised to get readings ranging from about 1300 ohms to 20K. An EL light, being a capacitive device, should read open on a DC ohmmeter.

Tried it again, under low light. When I did this, I noticed that I could see small arcs when I pressed the EL sheet's tabs against the connector, just before the inverter shut down. The arcs evidently weren't in the EL sheet itself, since they weren't leaving burned or melted spots. They had to be in the connector. I looked over the connector and didn't see any obvious shorts. But, just to see, I removed the connector and rigged up a pair of jumper wires with some copper foil tape to connect the EL sheet to the inverter.

Voila! That worked. Something in the connector is creating a low-impedence short circuit path. Perhaps it's the adhesieve that was used to glue the metal contact surfaces to the plastic case. But in any event, that connector doesn't work. That's okay; I will rig up something to install it in the K5m when I get ready to do that.

Here's a larger piece, illuminated. This is the piece I'm going to cut to size to fit in the K5m's display. The crennelations are where the connecting tabs are.




By the way, if you play around with these things long enough, and you aren't very careful about the conductive surfaces, you will get zapped by the inverter eventually. And it will hurt. 90V at 400 Hz really stings. Lesson learned from recent experience.

Sunday, April 12, 2009

Adventures in Backlighting Part 1

My K5m needs a new backlight.  Has for some time, actually... and, unfortunately, most of the places that were carrying them a few years ago seem to have disappeared.  So I figured I'd try a DIY approach.  

I know from having tested it previously, using a battery-powered inverter and a length of EL wire, that both the backlight itself and the inverter are bad.  I ordered a sheet of EL material and connectors from Electroluminescence.com's small-quantity online store, along with some connectors.  It's a cut-to-size sheet, so I can cut it to fit into the space inside the K5m's LCD display.  For the inverter, I ordered a Hantronix HVI-5E from Mouser; it appears to be about the same shape and size as the existing one, and should be easy to retrofit.  The inverter's output is spec'ed as 90V at 400 Hz.  

First, I set it all up on my workbench:




I'm using the power supply from one of the function blocks of the Discombobulator to power this experiment.  The inverter is shown plugged into the experimenter socket in the center of the picture.  It takes +5V DC.  The EL sheet is the foil-colored panel to the right (this picture shows the reverse side).  Here's a close-up of the connection:




Here's the front side.  It's only pink when it is not powered; it is supposed to light up white.




Unfortunately I haven't gotten it to work yet.  Every time I connect the sheet, the power supply shuts down.  It also does that if I try to probe the inverter output with the scope.  If I just hold the probe close to the connector, I can see the AC waveform on the scope and it looks good, but the moment the scope probe touches the conductor, no more power.  Haven't figured that out yet; I don't know if it's overloading the +5, or if the inverter does something nasty that tricks the protection circuit.  I guess I'll need to try a different supply.  


Sunday, April 5, 2009

Electricity for Synth-DIYers: Volts and Amps

This is the beginning of a series that I'm starting to talk about the basics of electricity, as it applies to synth players and DIYers. I'm not going to get too much into theory in this series, but I'll start it with a basic discussion of what electricity is and how it's measured. Later posts will focus on electronics components, what they do, and how they are specified, as well as provide a few basic circuit examples.


What is Electricity?

All materials are composed of atoms, and molecules composed of atoms. An atom is made up of a nucleus surrounded by electrons. In non-conducting materials, all of the electrons are pretty tightly bound to their respective nuclei. However, in conducting materials (metals mainly), each atom has one or more electrons that are loosely bound and can swap around with electrons from adjacent atoms. Normally, they do this at random, zinging around in arbitrary directions. However, if one applies an electromagnetic force to the conducting material, the electrons can be made to move in a certain direction. Since each electron carries a specific amount of electric charge, this movement constitutes electricity.


No, Really, What is Electricity?

Electricity, for most practical purposes, is the flow of electric current from one place to another. Electronics is the engineering craft of designing electrical circuits to create and process various forms of signals that are converted to or from electrical signals. (One of the advantages of electrical energy is that it is easily converted into other forms of energy, and modern industry has invented all kinds of devices for doing so.) In our context, we are mainly talking about electrical currents that will eventually, when piped through an amp and speaker, be converted into sound. Our first concerns about any flow of electrical current are always: (1) Which direction is it going? (2) How much electricity is flowing? (3) How much "pressure" is there motivating the electricity to flow? The quantity of electricity flowing, and in what direction, is referred to as "current" or "amperage", and is measured in amps. The unit is designated with the letter A in a specification, such as 1.5A for one and one-half amps. The "pressure" is referred to as "voltage" and is measured in volts, designed with the letter V in a specification, e.g., 15 volts is 15V. The usual metric prefixes can be used for millivolts/amps, kilovolts/amps, etc, so 30 mA is thirty milliamps.

Water analogies are often used to explain the basics of electricity. It's something one has to be careful about, because the analogy only goes so far, but it does help explain the basics. Electricity is similar to water in that you cannot "compress" it; if you push a certain amount of electrical current into one end of a wire, an equal amount of curent has to come out somewhere else. You can "use up" voltage, but current in always equals current out. If you think about a water supply pipe, there are two things that determine how much water you can get out of it: how much water is in the line, and how much pressure there is making the water move. Voltage is analagous to the amount of pressure in a water pipeline, while current (amps) is the amount of water moving through the pipe. The amount of pressure has an effect on how much water moves through the pipe, but the size of the pipe has an effect too. A bigger pipe can carry the same amount of current as a smaller pipe, at a lower pressure.

Lighting is an example of an electrical current with high voltage but a relatively modest number of amps flowing. Electricity produced by a van der Graaf generator is an even more extreme example: the voltage is in the millions of volts, but the current is very close to zero. At the opposite extreme, in the 1980s, I worked on some computer systems that had power supplies that output 400 amps at only 2.6 volts. This is sort of the electrical equivalent of the Mississippi River -- there's an enormous amount of water flowing through the Mississippi, but at a very low downstream pressure.

How much is a volt? One volt isn't much. Small batteries of the AAA/AA/C/D types put out 1.5V nominally. You'll note that you can hold these in your hand, with one finger on the positive terminal and the other on the negative terminal, and not feel any electricity flowing. "Square" batteries that use the snap-on connectors are 9V; most automobile batteries are 12V. Modular synths often use plus and minus 15V power supplies. The minimum voltage that is usually considered to pose any threat of electrocution to a human (assuming that one is in reasonably good health, and not doing anything stupid like standing in water while working on a circuit) is about 20V. A moderate-powered modern amplifier might have power supplies running at about 60V. Old vacuum tube (valve) circuits needed higher voltages; 200-300V is common for guitar amps. These voltages are definitely lethal and must be respected. Power distibution in homes in most countries takes place at 220-240 volts; 120V is used in the USA, Canada, and a few other countries.

By comparison, one amp is a fairly generous amount of current. On North American power, a 100W incandescent light bulb uses about 1A of current. Power distribution branch circuits in houses are usually in the 15-30A range. Electronics circuits (other than power amplifiers) usually deal with currents in milliamps or smaller.


You Can't Compress Electricity

I already said it above: as in the case of water, you can't compress electricity. If you push an electric current into one end of a conductor, an equal amount of current has to come out somewhere else. This is an important concept, and it leads directly to the notion of electrical circuits. Wherever electric current comes from, it eventually has to go back there, in a closed loop. Water can be "conducted" by almost anything; nearly all substances allow water to flow over, around, or through them, so building a water circuit isn't that hard conceptually. However, there are a lot of things that don't conduct electricity, at least not very well, including the air around us. As in the case of stagnant water, electricity that isn't moving and has no path to move cannot do useful work. So it is always necessary for electrical circuits to be constructed in closed loops. Current in always equals current out; wherever the source of current is in a circuit, there has to be a path for the "used up" current to get back there. That's way batteries and generators have two poles: current comes out of one pole, and goes back in the other one.


Resistance and Ohm's Law

Outside of semiconductors, all electrical circuits have some resistance in them; they tend to resist the flow of electrical current to at least some degree. The amount of current that flows through the circuit is inversely proportional to this resistance, and directly proportional to the voltage that is motivating the current. Turning to the water analogy again, if you consider a pipe that is straight and has very smooth walls, it has little resistance to the flow of water through it. So it doesn't take much pressure to make a lot of water move through the pipe. On the other hand, if the pipe has rough interior walls (e.g., old galvanized pipe) and a bunch of twists and turns, it has higher resistance, and requires higher pressure to deliver the same amount of water flow.

The same thing happens in electrical circuits. Increased voltage will make more current flow through the circuit; increased resistance will lessen the current flow. These relationships are described by Ohm's Law, which is the basic law of electricity:

E=IR

where E=voltage (in volts), I=current (in amps), and R=resistance (in ohms).


A Few Basic Circuits

Below is the most simple circuit possible.  It consists of a battery and a resistor.  The symbol with the short and long lines represents the battery; the plus sign shows which end represents the positive pole of the battery.  The squiggly symbol represents the resistor.  This is standard symbology for electrical circuit drawings.  

This circuit doesn't do much; all it does is create heat when the current flows through the resistor.  The next circuit is more interesting.  It adds a light-emitting diode, or LED, to the circuit.  


You're familiar with LEDs; they generate light of a specific color when electricity passes through them.  The round symbol containing the triangle and line, plus the squiggly arrows coming out, represents the LED.  The arrows have to be there to emphasize that this is an LED and not a regular diode, which doesn't create light and is used for a different purpose.  

What is the resistor doing in this circuit?  It limits the flow of current through the LED.  The LED itself (unlike a regular light bulb) has very low resistance; if it were connected directly to the battery, so much current would flow through it that it would quickly burn up.  

The third circuit is a variation of the above.  It allows the brightness of the LED to be varied:


The resistor circuit with the arrow through it represents a variable resistor, one that has some mechanical means (such as a knob) for adjusting its resistance.  The two resistors together, the fixed one and the variable one, make up what is known as a "voltage divider".  Depending on the setting of the variable resistor, some of the current will flow through the variable resistor and bypass the LED; the rest will instead take the "short cut" through the low resistance of the LED.  You've probably heard of a potentiometer, or "pot" for short.  A variable resistor is one way a potentiometer can be wired up.  


AC/DC (And We're Not Talking About Angus Young)

Here's where we start to make things more complicated, and where the water analogy starts to break down. So far all the circuits we've discussed have been direct current (DC) circuits. In a DC circuit, current flows from the positive side of the current source, around the circuit, and back to the negative side of the current source. Pretty simple. However, in an alternating current (AC) circuit, the current doesn't go all the way around the loop; instead, it constantly changes direction. In this case, the current source doesn't have a fixed positive or negative terminal; at any given time, one side is positive and the other side is negative, then they switch directions.

So what good is this? For one thing, as it turns out, AC is a more efficient way of delivering a lot of electrical energy. The reasons why are complex and I won't get into them now, but this is why the power circuits in your residence are AC and not DC. (Thomas Edison, who designed the world's first commercial electric power distribution grid, tried using DC. But competitors using AC were able to put him out of business.) Of more interest to us is the fact that an AC current is a perfect analog for a sound wave travelling through the air. Sound waves are also alternating waves, and it's easy for an electrical circuit to convert sound waves into electrical waves. The device that does this is, of course, the microphone. And the device that does the opposite, turning electrical waves into sound waves, is the loudspeaker.


Stop, That Hertz

If the current follows a repeating pattern (waveform) alternating at a consistent rate, then one "cycle" is considered the time from some arbitrary starting point in the waveform to the point where it begins to repeat the just-completed pattern. The time it takes for one cycle is known as the "period". Measuring that time in seconds, and then taking the reciprocal, gives the frequency, which is the number of times that the alternating current alternates in one second. The unit of measure for frequency is the "hertz" and is abbreviated Hz; by definition, 1 Hz is one cycle per second. The word "hertz" has only been in common use since the 1960s, so in old radio and TV manuals from before that time, you may see frequency units given as "cps", which is the same thing (cycles per second).

AC circuits have more complex behavior than DC circuits. An AC current may consist of a blend of different componets, or partials, alternating at different frequencies. The device known as the oscilliscope will show you what the composite waveform looks like, but to find all of the individual components, you have to perform a mathematical operation known as a Fourier analysis, which we won't get into right now. The one important point to remeber is that the "purest" type of wave is the sine wave; this consists of exactly one partial at one given frequency. All other waveforms are made of combinations of two or more sine waves. Electrical power is distributed in the form of a sine wave, alternating at 50 or 60 Hz depending on what country you live in. The audio frequency range is conventionally given as ranging from 20 to 20,000 Hz. Commercial FM radio transmission in North America takes place in a frequency band centered around 100 MHz (megahertz, or millions of cycles per second); TV channels 1-6 are at frequencies somewhat below the FM band, while TV channels 7 and higher are above the FM band.


Ben Franklin Flips a Coin, Comes Up Tails

Thus far, we've treated current as if it comes from the positive pole of a battery, and flows towards the negative pole.  You probably know that electrical energy is carried by the atomic particle called the electron; electricity moves by means of electrons moving from atom to atom through a conductor.  Now, here's were we deal with an unfortunate consequence of a random guess.  Someone back in the 18th century (one legend has it that it was Ben Franklin) had to take a 50-50 guess as to whether the electron is positively or negatively charged.  They guessed that the electron is positively charged.  Unfortunately, they guessed wrong, which means that when we speak of current flowing through a circuit in a given direction, the electrons are actually moving in the opposite direction.  So our convention, of assuming that current moves from positive to negative, is exactly the wrong way around.  Nonetheless, electrical engineering, by long-standing convention, continues to treat current this way; "conventional current" flows from positive to negative, while electrons actually flow from negative to positive.  Circuit designs continue to this day to be drawn and the math computed in terms of conventional current, and for basic circuits, this works fine.  It usually only becomes important to understand the distinction when studying the physics of how certain semiconductors, or vacuum tubes (valves) work.  

The next installation in this series will deal with resistors: what they are, how they work, and how they are specified.

Tuesday, March 31, 2009

Remembering the Bahn Sage

Today we pause to remember the Bahn Sage... the synth that the world was not ready for. Ten years ago, a visionary named Ken Elhardt joined forces with Bahn Audio Systems, the company which had previously confined itself to building top-secret sound eavesdropping satellites for the US military. The result was the Bahn Sage:





(photo swiped from Matrixsynth)

The Sage was doomed from the start because it was simply too advanced for the market. All of the technologies that we are now seeing in the most advanced of today's products were done, and done better, in the Sage. Zeroscillators? Sorry, Cynthia, the Sage's four oscillators did zero far better. Notice the joystick? It was connected to an advanced time and formant processing system called Varisentence, which made it possible to expand or compress the most difficult and sophisticated vocal parts into any time frame it needed to fit into. With Varisentence, it was possible to listen to all of Husker Du's Zen Arcade in eight seconds, with perfect clarity. Bob Mould had an agreement to receive the prototype once the system went on sale, and at the time he said: "With this synth, I will forever be the king of speed metal. Those Metallica guys haven't got a chance." Roland stole the technology, but they never got it completely sorted; to this day, their variant cannot handle whole sentences, only phrases.

Combined with its nopass filters, segment-free envelopes, and perfectly nulled VCAs, the Sage was set to knock all other analog and VA synths off of the market. And the Sage met all of the circuit design goals for today's most discriminating synth players: it contained no digital circuits, and in fact no ICs of any kind. It met the European RoHS requirements years before the regulations were even proposed, and would have been ready to ship the day that RoHS went into effect, had not disaster befell the company.

Unfortunately, shortly before the unveiling, the Sage's designer Elhardt disappeared. It was later discovered that he had time-warped back to 1958 to patent the concept of voltage control, only to find when he got there, that Bob Moog had gone back to 1947 and beaten him to it. The temporal upsets caused by this event resulted in Adam Sandler becoming the world's foremost synth player, and the rights to nearly every circuit design idea falling into the possession of the mysterious master designer and frequent Web commentator known only as "Argitoth". Playing Argi synths which produce absolutely pure sine waves with perfectly balanced overtones, Sandler has over the past ten years created every work of electronic music that is mathematically possible, resulting in the current situation where no original work can be done any more. If only the Sage had lived. Sigh.

Monday, March 23, 2009

Stories, legends, and rumors about synths -- true or false?

Story: Laurens Hammond, inventor of the Hammond organ, was tone deaf and couldn't play.

Verdict: Partly true. The part about being tone deaf is probably false; in Hammond as in Organ: The Laurens Hammond Story, Stuyvesant Berry describes Hammond's boyhood experiences in St. Luke's Episcopal Church in Evanston, Illinois, and how fond Hammond was of the organ music in the church. It was the memory of this music which first inspired Hammond to build an organ when he was seeking a new application for the Hammond Clock Company's synchronous motors. Hammond was familiar with the various classical orchestra instruments, and as Berry describes, during the period when the organ was being designed, Hammond became for a time one of the world's foremost experts on the tonalities of what we now call additive synthesis. However, it is true that Hammond did not play, as Berry documents in the last chapter. Most likely it was simply not high on his priority list; Hammond was a prolific inventor who worked long hours for most of his life.

Story: No recording was ever made of the Telharmonium, the first synthesizer.

Verdict: Possibly true. The last operating Telharmonium was shut down in 1916; if any recording was ever made, it would have been a transcription to a phonograph record or Edison cylinder, given that no other recording technology existed at the time. No recordings are known to exist today, and there is no definitive account of any recording having ever been made.
Story: Moog once designed a DCO-based synth.
Verdict: True. The SL-8 was an eight-voice polysynth with DCOs, priced below the Memorymoog line. It was premiered at the NAMM show in 1983. Unfortunately, another synth introduced at that same show was the Yamaha DX-7. The Moog staff realized what that meant. (And they were right.) The SL-8 never went into production, and the prototype was eventually dismantled.

Story: The Rhodes Chroma was actually designed by ARP.

Verdict: True. Engineers at ARP were working on the basic concept for the Chroma as early as 1977; however, company management regarded the Avatar guitar synthesizer as a higher-priority project, and so the Chroma effort stretched out. When the market failure of the Avatar became clear in 1980, a crash effort was launched to complete the Chroma design, but they ran out of time; ARP was forced into bankruptcy in 1981. The company's chief engineer, Philip Dodds, was nominated by the court-appointed receiver to wrap up the company's affairs. He arranged to see the rights to the Chroma to CBS, plus reassemble the development staff (including himself) at a CBS facility to complete the design. This was done, and CBS began marketing the Chroma using the Rhodes brand name (which it owned at the time) the following year. The Chroma staff was not actually part of Rhodes, and never had anything to do with any other Rhodes products.

Story: Prior to the creation of MIDI, Sequential Circuits had designed a serial bus for musical instruments which was much faster than MIDI.

Verdict: True. The interface was implemented on the Rev3 Prophet-5; it allowed a sequencer to play the synth, command program changes, send and receive program data, and receive key presses from the P5's keyboard. The obvious question to ask, then, is: why didn't Sequential propose this as the MIDI standard? Three possible reasons:

  1. Cost. A major goal of the MIDI standard was to create a low-cost interface. Sequential's interface required a high-speed UART which expected to be externally clocked by the sequencer. This increased the cost of both the synth and the sequencer. Expensive, length-matched coaxial cables were required for interconnects. By sacrificing speed, MIDI was able to adopt a lower-cost UART, clock circuit, and cabling, and still have some cost margin to add in needed protection in the interfaces against static electricity and mis-connections.
  2. Hardware and software dependence. The communications protocol was designed specifically for the P5; for example, the format in which key presses were transmitted and received depended on the specific number of keys on the P5, and on the fact that the keyboard didn't have velocity or aftertouch.
  3. Tight timing constraints. The sequencer interface interacted intimately with the P5's main software processing loop. Data being sent, particularly key press data, had to arrive within a specific time window to prevent either lost data or control response problems for the person playing the P5. A CPU or software upgrade would have changed these, and needless to say, a different model of synth would have had completely different constraints. This would have made writing sequencer software a nightmare.

Story: The prototype of the Moog Voyager Old School was stolen from Moog.

Verdict: True. It was stolen from the company's booth at the Musikmesse trade show in Germany in 2008. However, it was recovered. In an incredible act of stupidity, the thief listed it on eBay; the ad was traced and the thief caught. The same thief stole equipment from other companies at the show.

Story: Edgar Winter used to play with an ARP 2600 on a guitar strap.

Verdict: Partly true. Edgar didn't strap on the whole 2600, just the keyboard. Even so, the ARP 2600 keyboard was a pretty substantial hunk of iron. On the other hand, Wayne Famous of the '80s synth-pop band The Producers did in fact strap on an Oberheim OB-X... and he now has back problems to show for his trouble. Here's a video of Wayne at work in 1981.