Oscilloscope Video Monitor

Cleverness, Projects 12 Comments

Watch this YouTube video, and then read the rest of the post.

So how did I do it? It is actually a very simple circuit.
Basic Ramper Schematic

The LM1881 separates the sync signals from the NTSC composite video coming from the camera. It outputs a vertical sync signal (active low) that asserts during the vertical retrace period and a composite sync signal (also active low) that asserts during the horizontal retrace period and also during the vertical retrace period (but with a set of serration and equalization pulses).

To connect these to my oscilloscope, I have to use the XY mode on the scope and convert the sync signals into deflection signals. This is done using analog ramp generators. The simplest way is to use an RC circuit to generate a rather nonlinear ramp. When the sync signal goes high, it charges the capacitor through the resistor. When the sync signal goes low, the diode allows the capacitor to discharge immediately. This generates the sawtooth waveform. Adjust the R value so you get the most complete ramp (goes most of the way up to 5V).

The video signal is fed directly into the Z-axis signal at the back of the scope. Because the Z-axis signal has the opposite polarity from regular video (it is a blanking signal, where a positive voltage will turn the beam off), I had to build a really basic video buffer to invert the signal. This is a nice exercise in transistor biasing using four external resistors. Don’t ask me for the schematic–you should try to build it yourself. Even if you don’t get it working properly right away, you’ll discover all sorts of interesting analog video effects!

555 Contest Entry

Projects 30 Comments

Yes, it’s not really vacuum tube related, but I built an entry for the 555 timer contest. It uses an ICM7555, which is Maxim’s second source of Intersil’s CMOS version of Signetic’s original NE555 timer. Turns out the fact that it is CMOS is important for this particular circuit…

ICM7555 - CMOS Timer IC

My entry is an AM radio. The only active device (silicon, germanium, or otherwise) is the ICM7555. The tuning is accomplished with an inductor and a capacitor, and the ICM7555 acts as an AM demodulator and class-D power amplifier to drive the speaker.

555 Radio

You may be wondering how all this is accomplished with a 555. The schematic is below.

555 Radio - Schematic

Here’s how the circuit works: The AM radio signal is tuned by inductor L, which is 300 turns of wire on a 1/2 inch diameter cardboard tube made out of an old toilet paper roll, along with the 100pF variable capacitor. One end of the parallel configuration of L and C connects to an antenna (surprisingly long!) and the other end connects to a ground wire which is tied to the AC outlet ground (old books tell you to ground it to a water pipe). So far this is exactly like an AM crystal radio.

The 555 timer is configured as a pulse width modulator in a non-traditional configuration. If I used the standard approach and connected the input to the CV pin, the low impedance of the pin would prevent the circuit from receiving any radio signals. I had to invert the circuit and tie both high impedance analog pins, Threshold and Trigger to the radio signal input. This is the reason why the CMOS version of the 555 timer performs much better than the standard bipolar, which has higher input bias current.

The pulse width modulator ramp is created by the 0.01uF capacitor and the 10K bias potentiometer which are connected to the Discharge pin. The potentiometer wiper goes to the LC arrangement. With no radio signal coming in, the voltage on Threshold/Trigger ramps up until it hits the threshold, and then Discharge causes the voltage to ramp down again.

When a radio signal comes in, it gets superimposed on the ramp signal, causing the threshold and trigger comparators to trip early or late in a cycle. This variation causes the output duty cycle to vary, which we can hear as sound in the speaker.

Demodulating the signal properly requires adjustment of the bias knob, so that part of the radio signal is “clipped” and ignored by either the threshold or trigger comparators. This ensures that the negative “halves” of the radio wave don’t cancel out the positive “halves”.

Want to hear what it sounds like? Check out the video below:

And of course, I can’t end the post without a gratuitous shot of the ICM7555 in circuit.
555 Radio - The Core

Point Contact Transistor

Cleverness 2 Comments

My friend Jeri Ellsworth recently figured out how to make a point contact transistor by cracking open a germanium diode. It looked pretty straightforward so (deviating from this blog’s usual content) I took a crack at it myself:

Point Contact PNP

The original diode contact serves as the emitter connection. The base is the chip of germanium that is visible in the bottom part of the diode (with the stripe). The collector is a piece of phosphor bronze wire I pulled off the end of a guitar string. I sharpened it to a point with a Dremel sanding wheel and soldered it to a piece of bare wire to make it easier to handle.

The fine-pitched screws are used to maneuver the wires into contact with the block of germanium.

The germanium base is actually n-doped. To create the collector junction, you have to create p-doped regions. One crude way to do this is to apply a burst of current across the reverse-biased junction (positive voltage to base, negative voltage to collector). I don’t know if the mechanism is thermal or electrical, but phosphorus from the phosphor bronze wire gets carried into the germanium, creating the p-type region. For this experiment I used about 200V on a 10uF capacitor, and I discharged it into the junction through a 1K resistor. Jeri originally used something like 20V but I read in a paper several hundred volts were usually used for this purpose.

Jeri used an oscillator circuit to test her transistor, but I got lazy and just put it in a simple inverting amplifier circuit. At first the transistor didn’t work (output was in phase with the input) but after some tweaking of the wires, the output finally went 180 degrees out of phase. This is an absolutely terrible transistor, and the gain is really too low to consider this a transistor.

Point Contact PNP - Inverting Amplifier In/Out

I’m going to play around with it a bit more to see if I can improve the gain…

Steampunk Wristwatch

Clocks, Projects 5 Comments

Steampunk Wristwatch
Is that…?
Steampunk Wristwatch
Yes, it’s an LED steampunk wristwatch! It uses the LED wristwatch board (see this previous post). The watch is constructed from a small piece of oak and pieces of brass sheet and tubing. I used hand tools, a Dremel tool and a cordless drill to shape and form each of the pieces.

There are four more LED wristwatch boards left. I wonder what style of watch I should make next…

Here’s one more picture.
Steampunk Wristwatch

LED Wristwatch

Clocks, Projects 12 Comments

Sure, this doesn’t use a vacuum tube, but it’s still a neat way to reuse some old-fashioned 7-segment LED displays. OK, so I can’t wear it yet. It still needs a case and watch band. I am kicking around a few ideas, but feel free to post a comment if you have any suggestions.
LED Wristwatch
The LED displays are quite tiny and would have been used for calculators or similar devices back in the day. They were made by Fairchild as you can see by the original packaging:
LED Wristwatch - Fairchild LED Chips
The unique thing is that each display has a single die inside with each of the segments etched into it. In the picture below, you get a pretty clear look at the bond wires and the top metal layer. If you click the image, I have annotated the Flickr page.
LED Wristwatch - Closeup of LEDs

Back to the watch. It keeps the time with a fairly pedestrian PIC16F628A. It has an internal timer that operates with a separate oscillator (which is the watch crystal in the lower right corner) which can run even during sleep mode. This is critical to keeping the power consumption low. When a timer tick occurs, it generates a wakeup event, and the processor can increment the internal timekeeping registers. The processor can also wake up when one of the buttons is pressed. When that happens, it turns on and starts multiplexing the LEDs so that it can display the time. After a short delay it goes back into sleep mode. I haven’t yet calculated or tested the battery life.

The batteries are ZnAir number 10 (a common hearing aid battery). This is a zinc-air cell that uses oxygen as part of the electrochemical reaction, which is why there is a tiny hole in the top of each cell. Any battery holder has to allow air to make contact with the hole. In many states, these are the only batteries you’re allowed to throw away in the regular garbage. California is one of the exceptions, and the state considers zinc to be hazardous waste, so these batteries have to be collected separately in a category called “universal waste”. To me this seems foolish because I suspect that a lot more zinc is released into landfills as bits of scrap galvanized metal. Things like galvanized flashing, nails, and deck screws. Regardless of legislation, zinc is a lot less harmful than lithium, so remember to dispose of your burned-out LED throwies properly (and not in the regular garbage).

Here’s a puzzle for you: the PIC has 13 I/O pins. The LED displays use 8 (7 segments plus 1 decimal point) anodes and 4 cathodes. That leaves a total of 12 I/O pins, and I am not using the 13th I/O pin (RA4) because it is open drain and not useful in this circuit. So how are the two pushbuttons wired to the PIC? In fact, how can either button cause the PIC to wake up from sleep? Post a comment with your theory. I’ll give you one hint: there is a dual diode connected in some fashion to both switches.

And here’s one last photo to give you an idea of how small this thing is:
LED Wristwatch - Coin for Scale

Electroluminescent Display Panel

Projects No Comments

You’ve probably seen LCD displays that use electroluminescent panels for the backlight. They’re not so common since the advent of the white LED, but they were used all the time for those 5×7 character displays. Wikipedia has a nice article about electroluminescent technology.

Well, it turns out they can be used to make displays:
EL Display Panel

Here’s a closeup of the pixels:
EL Display Panel - Closeup

The “ghostly” numbers are letters are the result of the screen displaying the same thing for years and years. Looks like it was from a machine used for rapid thermal processing of semiconductor wafers.

This display panel was made by Finlux. There’s a very thorough history of this company and EL displays here: http://www.indiana.edu/~hightech/fpd/papers/ELDs.html.

It’ll be fun coming up with a project for this one. The display is 640×200, “high resolution” CGA. The video inputs are TTL-level video, hsync, vsync, and pixel clock. It will probably work at other frequencies too since the panel just uses high-voltage shift registers, not some special video ASIC. The tricky part will be getting the pixel clock to the device since video card connectors don’t provide that. Maybe I’ll just drive it with a microcontroller…

New CRTs

Uncategorized 5 Comments

The other day at the electronics flea market I obtained a couple of new CRTs. The one below has a P2 phosphor which is brighter and more energetic than the P1 and has much longer persistence. You can light it up with one of those UV LED flashlights. Notice the inspection sticker.

New CRT - 3JP2

And the one below is a fine example of the P12 phosphor–it lights up amber. The color is similar to that of the old amber MDA monitors but the persistence is longer.

New CRT - 3JP12

Maker Faire 2010

Uncategorized No Comments

Hello to everyone from the Maker Faire! It was great meeting you all in person. But if you missed out, here are a couple of pictures to give you an idea of what the event was all about:
Maker Faire 2010 - Tesla Concert

Maker Faire 2010 - Tesla Concert

Maker Faire 2010 - Gamelan

Maker Faire 2010 - Big Wheels

There are many more pictures in the MAKE Flickr Pool. The entire San Mateo expo center was jammed with crazy, cool, weird, and wild exhibits, projects, vehicles, and people!

My friend Jeri recorded some video of my exhibit, so take a look if you couldn’t make it to the Faire.

IEE Clock Internals

Clocks, Projects No Comments

Let’s take a look inside the previous posted IEE clock:

IEE Clock - Laced Wiring

Here you can see the laced wiring harness for the displays. This is not a multiplexed display–each of the 40 light bulbs has its own transistor driving it. All these wires come off the displays and into a very large DIN-style connector that plugs into the main circuit board. The ICs are all on the other side of the board.

IEE Clock - Disassembled

This is a closeup of the main PCB. It’s quite small. You can see the PIC’s ICD header off on the right, along with a header that allows access to the I2C bus for troubleshooting.

IEE Clock - PCB

And looking at the other side, we can see the driver ICs, the PIC, and the RTC device, along with some passives. You can also see the spare pads I put next to the PIC so that I can easily solder wires to the unused GPIOs if I ever need them.

IEE Clock - PCB Top

Some people commented about the switch on the front. I have a decent collection of switches of all colors, types, and vintages. It’s disconcerting for me to see what would be a really neat project marred by boring switches. Here’s a small sampling of my collection:

Switch Collection

People really liked the photos of the disassembled IEE module from the other website. Here are a few gratuitous “artsy” shots:

IEE Clock - Display Modules

IEE Clock - Bulbs

Modifying an AC Adapter’s Output Voltage

Cleverness, Projects No Comments

My IEE clock runs on about 6.5VDC. Why the odd voltage? There are sundry voltage drops throughout the circuit that require the power supply voltage to be higher than the 6V rating for the light bulbs. The problem is that you just can’t find 6.5V AC adapters.

Fortunately it’s quite simple to modify an existing AC adapter to run at the new voltage. I’m sure there are other people who might want to get their own custom output voltages, so here’s a short tutorial.

Disclaimer: if you go ahead with this project, you’re doing it at your own risk. AC line voltage is quite dangerous and you could be injured or even killed. If you get shocked, get medical attention right away: there have been people (often with a previously undiagnosed heart condition) who have received a “small shock” only to drop dead a couple of hours later.

Here is what you need: A switching AC adapter, a flat screwdriver, a soldering iron, an assortment of surface mount resistors, and some time. It is important that the AC adapter is of the new switching style rather than the old transformer style–usually you can tell if the AC adapter feels light and is small enough not to block adjacent outlets, yet has a relatively high current rating for its size. I am starting off with a fairly generic 5V 2 amp AC adapter. Yours will likely use a similar circuit inside.

Quick side note: Why are the new AC adapters so much smaller? First, to provide a given amount of power, a transformer (copper windings around some type of core material) has a physical size that decreases as the frequency goes up. A transformer designed to operate at 60Hz or 50Hz  is going to be much larger than a transformer that is designed to operate at 15KHz. Since the frequency of the AC line is fixed, these new AC adapters work by converting the input AC to a much higher frequency. There is also a little circuit that looks at the output voltage and tweaks the converter circuit to maintain a constant output voltage. Thus, the new AC adapters have much better regulation than the old styles. As an added bonus, this type of design can operate at 50Hz, 60Hz, 120V, or 240V! To get into more detail, there is a feedback circuit that compares the output voltage to a voltage reference, then sends an error signal to the converter circuit at the primary side of the transformer. The error signal is isolated (for your safety) using an optocoupler.

To take apart the AC adapter, crowbar the plastic halves of the case where they meet in the middle. Try to find the little plastic catches that keep the halves together. You might need two screwdrivers to get them to come apart. Inside you can see a little circuit board with components and some wires.

Modifying an AC Adapter

To modify the output circuit, the feedback circuit must be modified. I sketched out the circuit and learned that this particular AC adapter uses a clone of the TL431 reference+error amplifier circuit (which is the weird zener-diode looking thing in the photo above). This particular device, the AM431, has an internal 2.495V reference. The output voltage is divided down so it can be compared with 2.495V, and this is done with a resistive divider formed by R1 (4.87K) and R10 (5.23K). R10 goes to the output voltage, and R1 goes to ground. In this design, I can only modify R1 since R10 (acting in combination with the feedback capacitor) also determines the loop compensation pole (no need to mess with this). Based on my reverse-engineered schematic of the secondary side, the formula for the output voltage is Vout = (1 + R10/R1) * 2.495. Replacing R1 with a 3.3K resistor should bump up the output voltage.

It’s easier to remove a surface mount resistor using two soldering irons, but if you only have one, you can blob a bunch of solder on top of the resistor to wet both sides, and then flick it off with the iron. Be careful to get rid of any splattered solder since it could cause some dangerous short circuits.

You can test it before putting the case back on by plugging it into a power strip that has a circuit breaker and a switch–turn it off first! Connect a multimeter to the outputs with alligator clips, and use one hand to switch on the power and check the voltage. If you want to be a little extra safe you could plug the power strip into a GFI outlet. The safest approach (especially if you want to take measurements on the AC line side of the isolation barrier) is to connect the whole rig to an isolation transformer. Once you’ve confirmed that it works, put the case back together and mark the label with the new output voltage. If the output voltage is higher, you will need to decrease the current rating proportionally. If you’re decreasing the output voltage, you shouldn’t increase the current rating since internal components may have a pretty low maximum current capability.

If you want more information about the TL431 (which is a really neat little device that could be useful for lots of other circuits), check out this application note: Designing with the TL431.

« Previous Entries Next Entries »