Divergence Meter

This is a project to create a replica of the divergence meter that appears in the anime and visual novel Steins;Gate.  Some other enterprising developers have built their own versions (including this impressively accurate one), and there is an official replica available.

Build log

Notes as the project continues can be found under the divergence-meter tag on this site.

What it does

In the Steins;Gate universe, the divergence meter indicates how much the current world line diverges from the alpha world line.  The interpretation of time travel used in this universe involves a person jumping between multiple world lines which are substantially parallel.  The divergence meter, created by Okabe Rintaro in the future of the timelines depicted in the anime, allows one to keep track of how much the world may differ from what they would expect.  This is only of particular use to Okabe, due to his 'Reading Steiner', which allows him to remember when he jumps between world lines.

Rather obviously, the actual divergence functionality makes no sense in a real-world replica, but it is still useful for theatrical effect, since half the fun of building a replica of anything is making it act similar to what it is based on.  With an eight-digit display, an obvious option is to have it act as a clock, since eight digits is plenty to display the time of day, as well as the current date.  With a programmable microcontroller and a back-channel to communicate with it, it should be possible to do just about anything I find might be useful, such as displaying environmental conditions.

Source


The above image illustrates the overall design of the divergence meter (framegrabs taken from episode [TO BE DETERMINED]). It's an 8-digit nixie tube display driven by unspecified electronics, in a case that appears to be some sort of riveted sheet metal. The tubes themselves appear to be IN-18 tubes of Soviet manufacture, and the topmost board contains a variety of exposed circuit elements. Considering that nixie tubes require a potential of around 200V to fire, that seems rather unsafe.


Examining it from another angle, we can see clearly that the exposed components are mostly capacitors and resistors.  The eight resistor/capacitor pairs are probably related to driving the eight tubes (possibly power smoothing and current limiting), while the three capacitors on the left might be used for power filtering.  A few more resistors and a diode round out the visible passive components.

There are a pair of 8-pin DIP ICs mounted behind the tubes which don't make a lot of sense- a reasonable alternative might be a 74141 BCD cathode driver, which is a 16-pin DIP device capable of directly driving gas-discharge display elements (such as nixie tubes) with high voltages.  Each 74141 is only capable of driving a single tube at a time, however, so the presence of only two chips is rather unusual.

The whole assembly is built on a piece of perfboard, and the hex standoffs on the edges indicate that there are additional layers of circuitry hidden inside the case.  One must assume that power for the whole device is supplied by an internal battery since it is never depicted with an external power supply. Some consideration must be made for artistic license in creation of this design, so ultimately the only salient point of the design is that it hosts eight nixie tubes for display. When continuing with my construction, it may be reasonable to refer back to this more closely to have a convincing recreation. Until then, the visible components are unimportant.

My design

Having identified the important parts of the display (the IN-18 nixie tubes), it's possible to begin coming up with a design. In the interest of keeping costs down, I opted to use the smaller IN-14 tubes instead. IN-18 nixies are significantly harder to find and are rather expensive when they can be found ($50 per unit from TubeHobby), so I decided to use the cheaper and more plentiful IN-14 instead, of which I was able to get a batch of 9 used tubes from a seller on eBay for $35 with reasonably-priced international shipping.

In the interest of maintaining flexibility for later revisions to the design such as upgrading to IN-18 tubes or making aesthetic changes, I split the logic and display portions of the design between two circuit boards, to be joined with breakaway headers.  Modularizing the design allows me freedom in upgrading either portion, and generally helps the development process.  This modularity also follows the design of the meter as depicted in the anime, and includes mounting holes suitable for hex standoffs as depicted in the source material.

[Schematics to be included here once it has been built and tested]

Logic + power supply

Control board layout 1.0

Power + control board version 1.0.

The central component of the logic and power supply board is a MSP430F2272 microcontroller.  This is a low-power (as little as a few nanoamp current draw in sleep mode) 16-bit microcontroller with 32 kilobytes of program memory and 1 kilobyte of RAM, as well as a good selection of peripherals, including a digital oscillator, external clock source, several timers, and a 12-channel 10-bit resolution ADC.

The MSP430 microcontroller takes its power from a 3.3V power rail, which itself is driven from the system's 9V main power supply.  Backup power is supplied by a supercap on the 3.3V power rail, allowing the MSP430 to switch to a lower-power mode and continue operating when main power is lost.  Continuing operation without main power is not an important feature, but it is convenient for the clock functionality if the clock need not be reset whenever it is unplugged.  A DIP switch (chosen for the aesthetic appeal only) allows the backup power to be disconnected for testing.  A back-channel for communication with the system is provided by breaking out a UART to an external header, and the lines for serial programming are broken out to another header for in-system programming without a bootloader.

The high-voltage supply for the nixie tubes is provided by a boost converter, which switches current across an inductor rapidly, utilizing the voltage spikes caused by rapid switching to create a smooth 190V supply rail.  The PWM input to the boost converter is provided by the microcontroller, and feedback for calibration goes back to the MSP430's analog inputs through a voltage divider.  A 200V Zener diode ensures that the nixie supply rail cannot ever be driven higher than 200V, which is the maximum rated voltage for the tubes.

To reduce the component requirements, the nixie tubes themselves are multiplexed.  A set of TLP627 2-channel optocouplers allows the MSP430 (which runs at 3.3V nominal) to safely switch the nixie supply onto the display cathodes, and another set of optocouplers connects the display anodes to ground with current-limiting, again controlled by the micro.

A preliminary bill of materials for the logic and power supply unit follows. Includes a brief description of each part, a quantity, and Mouser part numbers, with extended price as of November 2011.

Part IDDescriptionMouser part noQuantityExt. price
200V Zener diode863-1N5956BG1$0.37
32 kHz crystal732-C002RX32.76K-APB1$0.32
3.3V LDO regulator511-LD1117V331$0.42
2ch optocoupler757-TLP627-2FT10$9.60
DIP switch, 2506-ADE02041$0.53
220 Ohm4
47k Ohm2
27k Ohm1
10k Ohm1
820k Ohm1
200V MOSFET IRFD220844-IRFD220PBF1$1.56
680uH inductor580-13R684C1$0.60
2mm barrel jack806-KLDX-0202-A-LT1$0.84
MSP430F2272 uC595-MSP430F2272IDAR1$5.41
1A 400V diode625-1N4936-E313$0.65
1A 400V schottky diode512-UF40041$0.15
.22F 5.5V supercap667-EEC-S0HD224V1$1.69
470uF 16V cap647-UVR1C471MPD1TD1$0.09
47uF 50V cap647-UVR1H470MED1TA1$0.06
.1uF decoupling cap581-SR215C104KAATR11$0.09
250V 10uF cap647-UVY2E100MPD1$0.39
DIP-8 socket517-4808-3004-CP10$1.30

[More to come as the project continues]

5 thoughts on “Divergence Meter

    • A bit hard to email you if I don't have your address. ;)
      Shoot me an email (see the contact link in the header), and I'll make a note.

      • Hey let me know how it goes! If you ever update this page, shoot me an email. I want to do something similar, but with the IN18 tubes, I found a lot of 5 for 187, another for 35, and 2 more for 100. So 300, plus other stuff, so I'm looking at around 400 total I guess.

  1. I reeeaaaalllllly wanna build something like this with IN-18 Nixie Tubes, but I know absolutely nothing about circuit boards or programming... Do you know of any existing designs or some way to help me with this? Feel free to email me about it if you like; [mod: email redacted. The site still knows it, so I can contact you.]

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>