Thursday, April 20, 2017

Construction continues on vacuum tube curve tracer

VACUUM TUBE CURVE TRACER CONSTRUCTION

I grabbed some lockwashers and other hardware and attempted to install the three remaining rotary switches. Alas, the chassis opening for a 9 pin mini tube socket is slightly wider than the lockwasher. While I can use flat washers to cover the gap, they don't have any grip to keep the switch from rotating when the knob is twisted. Back to the drawing board (hardware store). 

Armed with new wider star lockwashers and a combination wrench, I tightened on the three new switches and began wiring them up. By midafternoon I had seven switches wired. The next two are easier, because both skip the 7 pin mini socket and one of them also skips the two 9 pin mini sockets. 

In the meantime, I started the lines for each voltage, bridging across the various rotary switches on the same position of each, ultimately leading down to the curve tracer circuit board itself. To do this correctly, I had to decide where the board would be mounted. 

The choice is on small standoffs on the bottom inside the case. This complicates things a bit because wire runs have to be somewhat longer to allow the top to be opened for servicing. I want the wire runs to the rotary switches to be as short as I can, in a loop themselves, to minimize inductance. 

I will also run wires out from the PCB to remotely mount the two LEDs under the faceplate, so show the 'power on' and 'HV present' states to the operator. For this I had to desolder the existing LEDs, put on the wire and place my own LEDs on the faceplate. I don't need to worry about wire length for these thus it won't cause problems opening the unit for service.

This will be powered by a 19+ V DC power brick, also installed inside the case. I had one from an old laptop I used to own, which worked out great for this purpose. It will be fixed inside and the AC cable routed out in the case slot that contained the original AC cord. 

By dinnertime, I had completed wiring all nine rotary switches to the associated pins of the five tube sockets on my tester. I had also wired up the two filament loops - wiring looped through switch positions 2 and 3 respectively of every rotary switch. This worked well and lit heaters on real tubes.

I will wire the cathode, grid, screen and anode voltage loops to their relevant positions 5, 6, 7 and 8 on the rotary switches. By the evening, I was done with the screen and anode loops. A terminal snapped off the old rotary switch that I was leveraging from the original Century circuitry, which required me to remove it, drill out the hole to fit my new type of switch, and wire the new one into place. 

After these are seen to work properly, I can bring the two reservoir capacitor lines in a non-loop to positions 10 and 11 of the switches. I will finish up the cathode and grid lines tomorrow, test out everything carefully with a continuity checker, before hooking it all up to the circuit board and testing with a real tube. 

1401 restoration work and continued curve tracer construction

I spent part of the day with the plumber as he finished up the tankless water heater installation and some other work, then spent the rest of the day with the 1401 restoration team. This evening, I attended a lecture by Paul Wesley at Stanford on the history of Silicon Valley. 

VACUUM TUBE CURVE TRACER

I slowly did the tedious wiring of the sockets - loops between each pin number, around all the sockets being used, through ferrite beads and connected to the commutator of the six rotary switches I had on hand. I also prepared the sites for the next three rotary switches to be installed, now that the stock arrived, for controlling pins 7, 8 and 9. 

Before I can mount the next three rotary switches into the holes where I removed tube sockets, I need to get to a hardware store for some regular and lock washers, since a tube socket is larger diameter than a rotary switch shaft. 

After they are mounted, I can wire up those three loops. Actually, one loop goes to all five sockets, a second loop goes to just four sockets, and the last loop goes to only two sockets, the 9 pin minis. 

Another issue is the mounting for the circuit board, power supply brick and the serial port DB9 connector. Besides working that out and doing the install, I have to wire the board produced voltages to the corresponding positions on all nine rotary switches. 

The voltages on the rotary switches are: 
  1. anode
  2. screen
  3. cathode
  4. grid
  5. filament A
  6. filament B
  7. anode reservoir
  8. screen reservoir. 
The regular anode and screen connections are only connected for very brief intervals during measurements, small fractions of a second, otherwise sit at zero. The reservoirs provide the same voltages continuously. 

1401 RESTORATION WORK

SMS cards in the 1401 power supply circuitry drive a set of relays which sequence power on and off at startup or shutdown of the system. All the cards we have are scorched black underneath a pair of resistors that are extremely hot to the touch at all times. We investigated to see if this is a result of failed components or 'normal'.

The card schematics for this card matches exactly what is on the card. It is clear that the pair of 2W resistors are asked to handle more than 3.5 W of power, yet are mounted flat to the card with no space for airflow around them. Thus, the scorching and overheated resistors are by design.

More interesting to me is that the resistors in question are simply providing a voltage divider to bias a transistor, switching it on only if the two power supplies that fed the divider were working. They designed this to draw about 65 ma across the 42 V relative voltage, all to create a minute bias current in the transistor.

We then looked at the ALD schematic page, instead of the SMS card schematic, and found that the design had different and much more appropriate resistor values installed. 3,470 instead of 650 ohms, which dropped the power consumption down to a half watt. The schematic pages had the exact same drawing and part number, but the cards as they exist are the scorchers not the design in the ALDs.

We decided to take one of our spare cards and modify it to match the ALD schematic. I found almost every part needed on hand in the workroom, except that I had to parallel up two resistors to create a 43 ohm part. By the end of the day, I was partway through rebuilding the card. The tools on hand for solder removal were inadequate, so I will bring in my own gear next time.

Tuesday, April 18, 2017

Building curve tracer into case

VACUUM TUBE CURVE TRACER CONSTRUCTION

With the circuit board itself working flawlessly, it is time to build out an enclosure with tube sockets and rotary selector switches, mount the board inside, and wire everything up. I hadn't selected an enclosure yet. I do want to move forward on this.

I initially thought to gut a Century tube checker I own, but the panel has dozens each of octal, 7 pin mini and 9 pin mini sockets, whereas I only need a few slots. Further, it has a large meter and other parts installed which are unnecessary, and lacks the rotary switch openings. Still, I decided to hack it up, as the extra socket openings could eventually hold compactron, novar, nuvistor, acorn and other socket types.

I have five rotary switches with 11 settings, not enough to route each connection type (anode, screen, grid, cathode, and one side of the filament) to any of 12 possible pins (most sockets have 7, 8 or 9 pins but there is a compactron type that has all 12). Thus, I will have to connect in the opposite way, using 12 rotary switches to select among six voltages - anode, screen, grid, cathode, filament A and filament B.

The existing sockets are pop riveted in the panel, thus I need to drill out any that I remove. I can then use screw and nut, or new pop rivets if I can find my gun and supplies. First step was to gut the transformer, unused controls and wiring, Next was to trim back the rats nest of intertube wiring.

I have ordered another batch of rotary switches, enough for 10 pin sockets which will cover everything except the compactron (12 pin type). These are almost exclusively used in tube based color televisions, which is not an area where I expect to receive tubes for testing. Thus, I will ignore the compactron type entirely.

There are a wide range of tube socket types, of which I will support as many as I can easily and inexpensively obtain sockets for. The three workhorse sockets are the octal, 7 pin mini and 9 pin mini. I have plenty of these already on the Century unit.

Loctal sockets are similar to octal but have a center pin that snaps into place in the housing. These were intended for use in automobiles and other high vibration environments. I happen to have two loctal sockets on the unit, otherwise I wouldn't have bothered. Again, mobile radio tubes are not what I expect to be testing. Hifi, computers and test equipment will be the primary source of tubes for testing.

There is a 10 pin socket that is like the 9 pin mini but has an extra connection in the center hole. I happen to have one of these sockets, so it will go in. There is a novar type, which is nine pins but thinner and similar to the compactron style. I think I have one of these as well.

Older radios used 4, 5, 6, 7 and 8 pin sockets, UX4, UX5 etc, that I might stick in if I had them cheap and ready to go, but these are mostly from 30s and older era radios and clearly not going to be needed often.

I have the first six rotary switches (one from the original tester and the five I bought for the project) installed in the unit. Next up is to choose locations for the next three switches, which will arrive in two days. That will give me switches for the nine pins of the sockets already in place (7 pin mini, 9 pin mini, octal and loctal).

I began wiring up the first six switches and the five sockets I am using. It is tedious work, building a loop for each pin across all five sockets, including a ferrite bead to soak up any RF oscillation that might try to build, and hooking each loop to a different switch. I can only build the loops for pins 1 to 6 until the new switches arrive and are mounted.



Monday, April 17, 2017

Tube curve tracer board working and calibrating

VACUUM TUBE CURVE TRACER PROJECT

I resolved the screen voltage problem - turned out to be two hard to spot solder joint issues. The solder welled up on the component lead in a beautiful shiny cone, but had not flowed onto the pad. Looked great until I went to extreme magnification with the stereo microscope, where I could see only 1 or 2 joints at a time. 

Repaired and the hangup of the main logic is gone, as I expected. It goes through a measurement interval, applying anode and screen voltage to the tube under test (but I had no tube connected) while maintaining the voltage reservoirs at their target level.

In addition to the screen circuit problems, now fixed, the grid bias circuit is not working. It should develop a bias from 0 to -50V during the measurement phase of the curve tracer. The microcontroller produces pulse width modulation on a pin which drives a low noise operational amplifier acting as an low pass filter (or integrator). This yields a smoothed voltage between 0 and 5V, which is fed to a second op amp, LM741, wired as a 10X inverter, to produce the intended 0 to -50V.

I zoomed in to this section of the board and looked quite carefully. There was one solder joint that looked as if it would benefit from reflowing the solder to improve pad bonding, but it is for the unconnected pin on the LM741 op amp package thus it doesn't matter. Time to debug the circuit, measuring and observing, until I figure out what is wrong.

The observation steps to make are:

  1. scope on the microcontroller signal that drives this, which is a 19.5KHz signal whose on time is varied (pulse width modulation) to swing the first op amp output between 0 and 5 volts.
  2. if the pulses are good, look at the first op amp to verify it is filtering/integrating and generating the 0 to 5 volt range expected
  3. if the first op amp is working properly, observe the behavior of the second op amp which should be generating 0 to -50 based on the 0 to 5 of the first device.
  4. if the second op amp is working properly, observe the current mirror transistors that produce the actual grid voltage when driven by the second op amp.
  5. If the mirror transistors work, debug the continuity problem from here to the grid connection.
The microcontroller pulses were behaving exactly as they should, varying the pulse width as the target value changed from 0 to 5. We passed test one above. The second test involved watching the output of the NE5535 low noise op amp to see if it did produce the 0 to 5 level. 

The second test failed! The op amp circuit is not integrating nor acting as a low pass filter to produce the target value. I saw a constant output on pin 6, the output pin. There are only a few components in this portion of the circuit, two capacitors and a couple of resistors. If they are good and the connections and solder joints are correct, it points the finger at the chip.

The sequence of tests to perform for this are:

  1. verify that V+ and V- are making it to the chip
  2. verify the proper resistance for the two resistors and two capacitors on the input side
  3. verify that the input pulses are making it to the non-inverting input
  4. monitor the waveforms on the inverting inputs
  5. check for shorts of the output pin
Test 1 failed - no V+ to the IC, nor am I getting +15V to the other three ICs it feeds. Digging further, I found that my 7815 voltage regulator was bad. I had a replacement in stock, put it into the board, and now everything is working properly! Filament, anode, screen, grid and all the measurement logic doing fine.

Now I have a bit of calibration and then have to build it up with tube sockets, switches and all to make a full tester. Calibration is done easily, with a GUI screen to adjust values to match measured results with the DMM. I worked through this tonight as I collect tube sockets and order any remaining ones I will need to install in my project box/chassis. Every is calibrated and ready to install in a box and begin using.


Op amp lab, vacuum tube curve tracer and disk tool work, plus vacation and other things

There has been an extended gap in this blog, encompassing a vacation in Maui, work on my home, and quite a few other tasks that temporarily took higher priority. While I still have quite a bit of work we plan to do on the house, I was able to get back to some of the electronic projects.

UTRACER 3+ VACUUM TUBE CURVE TRACER

I constructed the uTracer kit before I left for vacation but two areas were not working properly at that time. The board produces anode voltage, filament power and communicates, but neither the screen voltage nor the grid bias voltage are responding. 

The screen voltage section is a mirror of the anode voltage circuitry. It has a boost converter that will build up the voltage in a large 'reservoir' capacitor, driven by pulses from the microcontroller. A analog to digital converter chip samples the voltage present on the capacitor and delivers it to the processor. 

When the sampled voltage is below the target level, pulses are applied to the boost side to increase the voltage. When the sampled voltage is above the target value, other microcontroller pulses discharge some of the voltage. The voltage on the reservoir is thus maintained at its chosen level, to be delivered  to the tube under test in short pulses through a high voltage switch portion of this circuit. 

The voltage on the reservoir capacitor never climbs above 19 volts, the input supply voltage to the board. The logic to issue the boost and the discharge pulses is part of an interrupt processing routine in the microcontroller, fired off regularly by timer pops. The main logic path in the controller has to wait to see the sampled voltage reach the target level before it does any testing, but if the boost converter doesn't reach the target level, it just freezes in the main loop.

I examined the board and its solder joints very carefully, but everything looks good. I then put the scope on the microcontroller pins that deliver the boost and discharge pulses, and saw the logic trying in vain to grow the voltage. 

Since the controller is doing everything right, I turn my attention to the components that might be malfunctioning. The FET that drives the boost function might not be conducting properly. The transistor that implements the discharge function might be stuck on or shorted. The high voltage switch could be malfunctioning and draining power as fast as it builds up, although this is less likely. Other hidden component failures or short circuits are the other, less likely cause.

ALTO DISK TOOL

I continued to pore over the traces and other evidence to figure out where the read operation goes awry when the Alto reads cartridges that I have written with the tool. I see a time interval occuring between the header and label records of the sector that is different by about 8 word times, depending on whether a cartridge is written by me or by an Alto. The outcome is misreading of the label record and a checksum at the end.

The same flaw causes the data record to be misread, thus injecting the wrong data into memory, dooming the bootstrap operation. I haven't yet figure out the cause but will continue to study everything I can until I figure this out.

TI OP AMP EVALUATION GEAR

I attended a one day class at Texas Instruments on designing with op amps - intended for engineers who knew the basics and were designing with them already, but who needed to understand deeper issues such as stability, noise and distortion that weren't clear from the idealized model of an op amp that is used in most textbooks. My friend George from the 1401 Restoration Team also attended.

Part of the course was a board with several types of circuits installed and plug-in modules to try out different op amp part numbers. One could inject various signals to the op amps and watch the results on a scope, to reinforce the lessons of the class. They provided a discount to buy the board for home use.

I have a Digilent Analog Discovery which provides function generators, oscilloscopes and other bench tools to drive and display the op amp results, similar to the NI Virtual Bench used in the TI class but much less expensive. I set it up to experiment further with the op amps.

Another discount from TI gave us six other op amps for use in evaluation. I naively assumed these were premounted on the daughtercards just like the ones supplied with the test board, but instead I received six small SOT-23 chips and a set of empty PCBs to solder them to.

Thus, I had to haul out the stereo microscope to solder these in place, before I could make use of these new op amps on the board. As well, it takes special clamps and tweezers and the steady hand I no longer reliably have. 

Sunday, April 2, 2017

Building tube curve tracer, new meter for TV-3 tester and progress on Alto ethernet gateway

ALTO DISK TOOL

Today Ken is at Marc's house collecting more testing data for his ethernet gateway device. I had to meet a drywall service that is doing some work on my home, so I could not be there during the tests. They did discover the small issue that was blocking the Alto from accepting packets sent by Ken's unit. Now he will focus on building up the protocol stack - file serving, ftp and other functions.

RESTORING TV-3 TUBE TESTER

I picked up a physically identical meter that will fit into the panel of the tube tester. It features a removable faceplate allowing me to install the original tube tester plate. This will make it appear identical to the original meter.

All that remains is to validate the shunt and series resistance values so that it yields full scale deflection at 200 uA and offers a total resistance of 2365 ohms. That will make it perform the same as the original meter.

I will need to work inside the meter to deal with the series and shunt resistances, which exposes it to the same risk that I will damage the meter during the manipulation. This was how I ruined the original meter during a 'repair'.

BUILDING  UTRACER 3+ TUBE CURVE TRACER

I picked up a kit that allows me to fully test vacuum tubes, producing the various characteristic curves and evaluation the gain at a wide sweep of voltages. It connects via RS232 to a PC and features a nice GUI control panel.

The kit is designed with many testing steps as it is constructed, helping to verify each stage of construction before proceeding to add more components. For example, digital power is validated, then the RS232 communications, before installing the microprocessor circuitry. All that must work before the various high voltage producing circuits are installed.

I am gradually accumulating tube sockets, ferrite RFI suppressors, fuses, rotary switches and other items needed to install the tracer into a cabinet and make it fully usable. I haven't settled on a cabinet to put everything into yet.

I have installed circuits and tested up through the negative power supply. After this, I will be working on grid bias, current amplifier and boost converter/high voltage sections. 

Saturday, April 1, 2017

Work on Alto restoration, progress and a head crash

ALTO DISK TOOL

We met today to work on a number of tasks for the Alto. Among them were debugging my disk write process, debugging the ethernet gateway, and archiving many of the cartridges we borrowed from PARC.

Extensive logic analyzer traces were captured of a good boot with an existing cartridge and of a failed boot on the cartridge I wrote. Unlike past traces, this time the analyzer was also recording time between events and that made a difference visible.

The time between one record and the next within a sector including a quiet period of about 145 uS on cartridges that were written by an Alto, but only 75 uS on the ones I wrote. This appeared to place the sync word and early data words too early, while the Alto was still waiting for a fixed time to elapse, and thus the second and third records in a sector did not start on the sync word. They were misaligned and suffered checksum errors.

More study is needed to verify this, then the flaw must be found and corrected in my disk tool logic. Hopefully it will be an obvious issue that definitively matches the error symptoms and whose correction is unambiguous.

Ken's ethernet gateway is receiving packets but was not able to respond to PUP echo packets from the Alto. This was in part due to a changed protocol in the docs he has versus what is being sent by the Alto. In addition, however, we extended the ethernet board and hooked up scope probes to see exactly what is happening when packets arrive from the gateway.

We found that the first few words of a packet are received but the firmware or software stops listening by resetting the receiver. This is what happens, for instance, if the address of the incoming packet does not match the station address of this Alto, but can be caused by other packet header issues.

We cleaned the nine cartridges on loan from PARC. Two of them had visible damage on the platter when opened up - one shows signs of a minor head crash in the past and the other has a radial scratch deep enough to expose aluminum substrate. They were marked and will not be mounted.

Six cartridges were read and archived, containing source code, Mesa and Smalltalk disks, for example. When the last cartridge was being read, almost at the last cylinder, the power supply we were using hiccuped. We could hear the door latch solenoid cycle several times.

I dived for the Load/Run switch to get the cartridge out of the drive. We opened it up and found burn marks where the heads had rubbed during the time the power cycled on and off repeatedly. Pulling the covers showed burned oxide and binder on the heads too. A head crash!

The contents of the cartridge were archived other than a few sectors at the very end of the pack and it boots just fine in the Alto simulator (Contralto). We added that cartridge to the other two which were scraped or scratched already, so that we don't stick them into a drive again.

Marc and I cleaned the disk heads with lint free cloth and isopropyl alcohol until they appeared to be free of any oxide. Before we turn it on, however, we first must substitute a reliable power supply for the +15 and -15V that feeds the drive.

Then, we will load the cleaned heads on cylinder zero of the pack that had the crash, since the early cylinders are damage free, just to verify that the heads don't damage packs and work properly. As the cartridge is already ruined, but contents archived, any possible damage to cylinder zero is acceptable in order to test our heads.