Neon Lamp Leakage Current

Projects No Comments

For another project in progress, I needed to test the “off” leakage current of neon bulbs. Along the way I discovered some interesting things. First, let’s take a look at the test subjects.

Neon Lamps Used for Leakage Tests

The lamp on the left side is a brand new miniature-type, the middle lamp pretty much represents the average neon lamp, and the lamp on the right is a special “frosted” lamp that I pulled out of some old equipment. Sorry, I do not have type numbers for these lamps, and they are not marked. Some older neon lamps were marked with the type number when the seal was crimped.

The testing used a power supply adjustable from 0V to 40V and a Fluke 87 multimeter. Any good multimeter with a 10MΩ input impedance can be used to measure extremely low currents by wiring the meter in series (like an ammeter) while it is in volts mode. Tests of the tiny neon lamp and the “average” neon lamp used the meter in mV mode, while tests of the frosted lamp used the volts mode. The tests were conducted at room temperature at normal indoor lighting conditions. Before testing, each lamp was washed with 90% isopropyl alcohol and dried with canned air.

Neon Lamp Leakage Current

There are some very interesting observations to be made with this data. The tiny lamp exhibits very low leakage current, peaking at 200pA. The “average” neon lamp peaks at 2nA, and the frosted lamp peaks at 263nA. I tried a few more lamps of each type and although they vary quite a bit, each type of lamp approximates the same current as the data above. It is due to the construction of the lamps themselves. According to Techlib.com, the increased leakage current is due to the radioactive thorium present in the lamp electrodes.

If it’s possible for radiation to increase the leakage current, I surmised that a strong light source could increase it as well. Taking another “average” neon lamp, I measured a leakage of 2.8nA at 40V. When exposed to a very bright white LED flashlight, the leakage current increased to 11.0nA, and when exposed to an ultraviolet LED flashlight, the leakage current climbed to 16.6nA. It may be that the photons impinging on the electrodes cause electrons to “leap” from the outer electron shell of the metal atoms and drift (due to the electric field between the two electrodes) across to the opposing electrode. This shows up as the increased drift current.

By increasing the temperature of a neon bulb, I was able to increase the leakage current as well. At the same time, I discovered that some small amount of water vapor still remained as a film on the surface of the bulb. For the case of the tiny neon bulb, the leakage current of 200pA fell to 50pA after a few seconds of applied heat, invalidating my previous experiments. As the temperature of the bulb increased, the leakage current increased to 1100pA before I removed the heat. This principle is the same one that enables vacuum tubes to operate–the heated cathode generates a space charge “cloud” of electrons that drift depending on the applied potential.

For my application, I would rather not have any thorium in the lamp since I want the leakage current to be as low as possible.

Dekatron Kitchen Timer

Projects 10 Comments

Recently I completed the construction of a Dekatron-based kitchen timer. A Dekatron is an electronic counting device used in the middle of the 20th century for counting pulses or dividing input pulses. You can find a very good introduction to the devices at Mike’s Electric Stuff. My timer is certainly not the first. This gentleman has created a rather military-looking kitchen timer that uses three Dekatrons.

Dekatrons are relatively difficult to find, so I decided to use a single Dekatron in my timer. Actually this project is an old one that I revisited. The original project was just going to be a spinner, but I had trouble with the driving circuit (it never worked reliably). For the 2008 Maker Fair I dusted it off and tried to power it up–with 12V instead of 5V. The power supply and microcontroller did not appreciate it and the whole thing stopped working. The second time around I decided to turn it into something useful. Here it is.

Dekatron Kitchen Timer - Corner View

The driving circuit in the Dekatron kitchen timer is based on a circuit drawn up by Mike Moorrees. You can find the circuit at the NEONIXIE-L mailing list files section. There’s a good excuse for you to join. If you’re interested at all in antique display devices (not just Nixie tubes) you need to join.

Dekatron Kitchen Timer - 20 Minutes

There are twenty minutes remaining on the timer. You can read the time using the scribed lines on the brass ring around the Dekatron. The ionized gas in the tube glows purple because of the high argon content.

Dekatron Kitchen Timer - Side View

In this side view, you can clearly see the high voltage power supply. It has a copper-wound ferrite toroid. The power supply converts 5V up to 450V by a MAX845 that pulses the transformer at 535KHz, and the 150V output of the transformer gets stepped up to 450V through a 3-stage voltage multiplier.

Time is kept and the clock is controlled by a PIC16F84. The brass bell at the end rings once the timer expires. After ringing the bell, the PIC turns off the high voltage supply and enters sleep mode. Pressing a button wakes up the microcontroller and begins a timing cycle.

Dekatron Kitchen Timer - Socket

You can see the socket more clearly when the Dekatron is removed. My homebrew drill press for my Dremel tool helped tremendously to drill accurately-placed holes for the pins.

On the right side the power connector provides 5V to the timer from an old cellphone charge adapter. Don’t throw away these adapters! The small ones often contain a very simple off-line isolated power supply that can be modified to produce other output voltages. You can recycle them for projects quite easily. Perhaps I will write an article on this.

The 5-pin connector on the board is used to program the PIC. The PIC16F84 is old enough that it does not support in-circuit debugging. It was Microchip’s very first product on their flash process which has made them so much money over the intervening years.

Dekatron Kitchen Timer - Dekatrons!

Here is the extent of my Dekatron collection. They are all type GS10D, which is a decimal selector tube with two sets of guide electrodes. The Dekatron in the front of the timer does not work. Can you see why?

Steampunk Timekeeping Instrument

Projects No Comments

Here’s a recent product of my workshop. A week of sawing wood, drilling, carving with my Dremel, slicing brass with tin snips, polishing, sanding, and staining resulted in this brand new limited edition (of one) Steampunk timekeeping instrument.
Steampunk Timekeeping Instrument
This device is based on the Panaplex clock circuit I built a while back. The displays are seven segment but, like Nixie tubes, are filled with Neon gas. To match them, the colon and PM indicator use small neon lamps.

Construction is stained oak with brass fittings. The device is exactly one inch thick. It can pivot about the two knurled brass nuts on either end.
Steampunk Timekeeping Instrument

But how does power enter this timekeeping device? It travels through brass terminals (with appropriately colored washers to indicate the polarity) up to the pivot, where it enters the case of the timepiece. Look on the inside edges of the wooden stands, and you will see the polished brass strips that carry the direct current up to the knurled nuts from the terminals.
Steampunk Timekeeping Instrument  - Upside Down

Now for the technical details. The timepiece uses a PIC18F242 running at 4MHz. The time is kept by an exceptionally tiny sliver of quartz imbedded within a miniature silver cylinder–a 32KHz watch crystal. My standard 180V power supply provides the high voltage needed by the Panaplex display elements. Here is the timekeeping instrument with the two halves of the case separated.
Steampunk Timekeeping Instrument - Laid Out

My other designs are usually drawn out in AutoCAD, but this time I decided to use the old fashioned method. The two triangular wooden stands on the end took some tricky geometry. The pivot is exactly 3″ up from the lower edge of the base. The angle of the triangle is 70 degrees, because 60 didn’t look right and 80-90 was too peaky looking.

The switches I found at HSC Electronic’s yearly sale. I like to use unusual looking switches and controls in my projects. I feel very sad when I see someone’s awesome project that has been defiled by cheap-looking Radio Shack switches.

The Steampunk timekeeping device was made using a simple setup of a junior hacksaw (6″ long), an old cordless drill, a Dremel, a Dremel drill press, and numerous small hand tools. Most of the work happened on the back patio of my apartment. Yes, it’s possible to be a Maker even in the big city.

Coby DP-151SX Hacking – LCD Extraction and Interrogation

Cleverness, Projects 21 Comments

In this previous post I disassembled the Coby DP-151SX digital picture frame. This device is very hackable, and includes a lot of goodies such as a Li-Ion battery and battery charger circuit as well as a neat little color LCD display with a white LED backlight. The pinout for the LCD is in the previous post.

The MAXQ2000 microcontroller development board I have uses a 0.1″ spacing header to connect to the I/O pins, so I made a little adapter and wired it up to the LCD connector using wire-wrap wire. It uses 13 I/O lines, but that could be reduced 11 if CS# is wired to ground and RST# tied to a separate reset IC (such as a MAX811). It’s actually a good idea to use CS#, because you can then multiplex the functionality of all the other pins and recover that I/O.

Here is a picture showing the LCD up and running with a simple test pattern:
Coby DP-151 Photo Keychain - LCD Extraction and Interrogation

It’s not 128×128, but actually 132×132 pixels. The color depth is 16-bit using a fairly standard 5-6-5 bit encoding. See the PCF8833 datasheet for more details.

Spark Fun has a similar LCD display which uses the same controller, only it costs $20. Amazon.com sells the Coby-151SX in black for $10. Not a bad deal: for $10 less you get a Li-Ion battery, mini-USB cable, and a driver CD, which you could use as a coaster for your Mountain Dew to help with the LCD programming. Spark Fun has some sample code which you should easily be able to adapt for parallel mode (since the Coby LCD connector brings out the parallel data lines, unlike the Spark Fun LCD).

The source code for my test program will get posted once I clean it up and possibly add functionality (Character fonts? Bit blitters?)

Coby DP-151SX Hacking

Projects 1 Comment

Recently I obtained two Coby DP-151SX digital photo keychains to see if it is possible to hack the device. The answer is yes. These devices can be purchased for as low as $9, and I thought they might make a good source of color LCD displays. There is a project to hack small photoframe devices such as these, and they have already developed some tools to hack the firmware and display dynamic images (such as an MP3 player status screen) using the USB connector on the device. The Wiki at the previous link is a good resource.

Below is a photo of the disassembled device. Click the photo to see the Flickr notes annotating different parts of the device.

Coby DP-151 Photo Keychain - Inside

The specs of the device are as follows:

  • LCD: Varitronix COG-C147MVGA, 128×128, chip-on-glass (COG) integrated controller with white LED backlight.
  • CPU: Possibly the ST2203U 65C02-compatible device with built-in USB engine.
  • FLASH: Spansion S29AL008 1Mx8 NAND FLASH memory.
  • Battery: 180mAh 3.7V lithium ion rechargeable.

The ST2203U uses a 65C02 processor core with several peripherals: a DMA engine, FLASH memory controller, real-time clock, LCD controller (not used in the Coby device), and a USB engine. It has an onboard mask ROM, but this appears to be disabled on the Coby device. Since resistor R12 is jumpered with a zero-ohm resistor, the ST2203U boots from the external memory. If R13 was jumpered instead, then the device would boot from the internal memory. Apparently the program that comes with the Coby device has the ability to download new firmware through USB. I’m tempted to write my own firmware for this creature, but the lack of an ICE along with a decent toolchain has deterred me.

The device has a built-in battery charger. I have not yet attempted to reverse engineer it yet. The lack of inductors makes me think it’s a linear charge circuit.

The most interesting part, at least to me, is the LCD screen. It has a built-in controller which appears to be similar to or compatible with the PCF8833. Varitronix, of course, does not provide data on this particular LCD display. Based on a little reverse engineering (since many of the control lines are shared with the memory chip) I was able to figure out a pinout:

  1. VCC (3.0V, but it probably works at 3.3V too)
  2. GND
  3. Unknown. Connected to the COG IC but is not driven as an output. This may be the OTP programming control pin.
  4. NC (but can be connected to the COG IC with a jumper on the flex cable, J1)
  5. CS# (Chip Select)
  6. D/C# (Data/Command)
  7. RD# (Read)
  8. WR# (Write)
  9. RST#
  10. D0
  11. NC
  12. D1
  13. NC
  14. D2
  15. NC
  16. D3
  17. NC
  18. D4
  19. NC
  20. D5
  21. NC
  22. D6
  23. NC
  24. D7
  25. NC
  26. LED Cathode
  27. LED Anode

The next step is to detach the LCD and wire it up to a breakout board. Then I can connect the breakout board to a microcontroller and attempt to communicate with it.

Laser Printer Scanning Mirror Experiments

Projects 19 Comments

Digging through my junk box today, I unearthed the scanning mirror from a laser printer, otherwise known as the Heart of the LaserJet. It’s got the infrared laser that generates the image as well as the scanning mirror that creates the raster. It’d be fun to get it up and running for nefarious purposes…
Laser Printer Scanning Mirror Assembly
The scanning mirror and motor uses a “custom” (undocumented) Panasonic motor driver, the AN8247SB. As usual, Google returns a million hits for grey market parts brokers who spam the keywords with things like “PDF” and “datasheet” without offering any actual information.
So my usual plan of attack does not succeed.

The second step is to examine the single 5-pin connector to see what I could figure out. Pin 3 is obviously ground because it is the only pin connecting to any large ground planes. What I suspect to be pin 5 appears to be the power supply since it connects to two very low valued resistors (0.75 total) which probably perform a current sense function. Most of the other pins disappear inside the undocumented chip.

Digging around in my junk box produced the power supply board for the laser printer. I was able to find the other side of the connector and quickly verify that pin 3 is indeed ground. What I thought was pin 5 is actually pin 1, and it is indeed power. Tracing back through the power board I notice that it connects to a filter capacitor with a 25V rating. Based on that I conclude that it is very likely a 12V rail. I soldered some jumper wires onto the board and began experimentation in earnest.
Laser Printer Scanning Motor
Connecting the board to 5V didn’t result in any excessive current, so I slowly ramped up the voltage to 12V. Nothing happened. Not even anything bad.

Looking carefully at the laser printer’s power supply board, I traced the other three connections. They all went into a big microcontroller, but the wiring connections were different. Pin 2 had a 10K pullup to some low voltage supply, pin 4 went straight into the microcontroller, and pin 5 came from an RC filter from the microcontroller.

First I tried connecting a 10K pullup resistor to pin 2 on the motor driver board to 3.3V, and I hung a scope probe on it. It was a logic low. I spun the mirror assembly, and I saw pulses! This must be the tach output. By rotating the mirror very slowly by hand, I counted 6 pulses per revolution.

Next I probed the voltage on the other two pins, which were both weakly pulled up to about 3.6V on the motor driver board. I pulled pin 4 low, and the tiny mirror spun up with a whine to about 13,000 RPM (as measured by the tach output)!

That was really great because I was worried that those two pins were I2C control lines which would have made reverse engineering a lot more difficult. It’s not impossible because you can hook it up to a microcontroller and scan all possible I2C address to see if any slave devices respond, then randomly try to access registers… It gets pretty messy anyway.

The last pin gave me a bit of a headache because grounding it didn’t really do anything. I tried grounding it through an ammeter and noticed that the current, although it started at a few hundred microamps, tapered off quite rapidly. There must be a capacitor in series somewhere on the motor board, and that means the pin is designed for AC signals. Since no signal came out of the pin, it must be an input. I connected a function generator at a few kilohertz with a 3.3Vp-p square wave, and when I turned on the motor, I noticed that it “cogged” a lot and generally had a hard time. On impulse, I dramatically increased the frequency. Suddenly the motor slowed down and settled at a constant speed. By changing the frequency, I could manipulate the motor speed.

So pin 5 is a synchronization input. I guess the RC filter on the microcontroller side was designed to help reduce EMI in the cable. The next step was to figure out the relationship of input frequency to output speed, so I connected my trusty old Nixie frequency counter to the output of my function generator and my multimeter (set to frequency) to the tach output. The ratio appears to be fixed: divide the input frequency by 136.6 and you’ll arrive at the RPM of the mirror.

Here’s the complete pinout:

1 – +12V
2 – Tach output (open drain, 6 pulses per revolution)
3 – Ground
4 – Enable (active low, so drive it low to turn on the motor)
5 – Synchronization input

Now it’s time to come up with projects…

Just to give you a hint, I have something in mind involving a photomultiplier tube.

Drop me a line in the comments if you think you can guess what my idea is, or to post your own ideas, or even if you find this information useful for your own project.

Nixie Steampunk Pendant

Projects 1 Comment

Somebody at Maker Faire was interested in Nixie tube jewelry that actually lit up. I decided to take up the challenge.

The hard part is not making everything small, but making it last a long time on a single battery. In this case, the battery is a CR2032 lithium coin cell. A small circuit takes the 3 volts and steps it up to about 150V which is barely enough to light the Nixie tube. Theoretically it should last around 10 hours or so.
Nixie Steampunk Pendant
The socket was constructed using my custom-made Dremel drill press. To figure out where to drill the holes, I put some clay on top of the wood and pressed the pins of the Nixie tube into the clay. Then it was a simple matter to mark the pin holes, remove the clay, and drill. The pins are actually from a DB25 solder tail socket, since they fit the Nixie pins perfectly.
Nixie Steampunk Pendant
The power supply circuit has its problems, and I am trying to improve on it.

Vintage Oscillograph

Projects 1 Comment

Recently I obtained a vintage Clough-Brengle oscillograph. Yes, you read that correctly–the oscillograph is the predecessor of the oscilloscope. Oscillographs lack the trigger function and the calibrated vertical and horizontal scales, along with many other features now ubiquitous on the modern instrument.

First thing I did was pull the cover off to get a look at the innards.

Oscillograph - Side View

Click the image to jump to the Flickr page which includes some notes describing the various parts of the oscillograph. There’s a lot of rust and grime from years of neglect.

There is more circuitry underneath the instrument, as shown in this photo:

Oscillograph - Jumble

A cluster of components forms the sweep oscillator of the Clough-Brengle oscillograph. The radial-leaded resistors are essentially carbon rods attached to wires and painted with colors indicating their resistance.

Color code for these resistors works as follows: The body color is the most significant digit, the end cap color is the second digit, and the dot on the body is the multiplier. The colors themselves have the same meaning as today.

These resistors are probably of the +/-20% tolerance variety. They are actually trimmed; a single gash in the side indicates where resistive material was removed during production to dial in the value.

For some reason this picture reminds me of a Frank Lloyd Wright building…

I’ll post some more pictures showing the restoration in progress. If you really must look ahead and see them, take a look at my Flickr photostream.

Carbon Filament Light Bulb

Projects 3 Comments

Here’s a genuine antique carbon filament light bulb. It’s 375 watts and was originally meant for 110 volts (currently in the USA we use 120 volts AC). In the photo, the bulb is running from 50 volts.

Perhaps someone out there has more information on the age of this bulb. I think it’s around 60-70 years old. It’s not older since it doesn’t have the glass seal on the top of the bulb.

This graph shows the resistance of the filament in two types of light bulbs. The blue curve shows that a carbon filament decreases in resistance as the bulb heats up, and the pink curve shows that a tungsten filament bulb increases in resistance as it heats up.

Thus, carbon filament bulbs have a negative temperature coefficient and tungsten filament light bulbs have a positive temperature coefficient.

Tungsten is the filament material most commonly used in household light bulbs.

Incidentally the curve for the carbon filament bulb stops short at 90V because I don’t want to damage it. It runs very, very hot!

Next Entries »