Sunday, October 19, 2014

Disk drive timer finished and installed, SAC interface circuits built, and debugging underway of the keypunch interface

1131 DISK DRIVE RESTORATION

I finished assembling the timer neatly into a plastic project box, with appropriate air holes to dissipate  the heat produced by the zener diodes, voltage regulator and relay timer board. One final test validated correct operation - roughly 105 seconds after the motor is switched on, the heads load when the timer circuit activates. It is now installed and the disk drive enclosure put together.

Timer circuit in its enclosure

Timer box in its final location

Everything closed up, front door in place

NEW KEYPUNCH INTERFACE DEVELOPMENT

When I retrieved my power brick and powered the Arduino, it showed some pathology without being hooked to anything. Periodically, the Arduino would reset and start over, which I suspect is a power protection reset due to excessive draw by two relay boards fed from the Arduino.

I think I can take the 5V from the brick input and bypass the rest of the Arduino circuitry that is overloaded, although I might need to add my own 5V regulator on the power if I see any signs of sensitivity to power variations. I have to sort his out, but by removing the connection of +5 from Arduino to the relays and connectors, I can resume testing some logic for now.

I cleaned up code for quite a while with the 5V disconnected, but when I tried to open the user serial link to get into more serious debugging, it was clear that the serial port card I use also requires 5V. I had to separate out the connections from those for the power hungry relay boards and connect it individually before I could begin talking to the Arduino.

Next minor snag - the interface box has a male DB9 connector and the only USB-serial adapters I have also have a male DB9 connector. I found a female-female adapter but when I began testing it was clear that it was not a crossover inside. I need to have a crossover adapter or cable with female connectors on both ends.

The power brick for the Arduino is 12V, which is dropped to 5V by an onboard voltage regulator, so I will need to wire up a voltage regulator in order to feed the relay boards bypassing the Arduino onboard power system. I have the parts and began to build it, while ordering the DB9 adapter I need to continue testing.

Discovered that the relay board activates a relay on logic low input, not high. Reversed my logic and all was well. I changed the code controlling the relay signals to use an indirect value - PICK or DROP - rather than LOW and HIGH due to the potential for confusion because of inverted activation.

Set up the voltage regulator and an external 12V 4A power brick. Now that I have the right adapter and power to the system, I am still not seeing output from the user serial port nor getting any input into the system.

SAC INTERFACE FOR ADDING PERIPHERALS TO THE 1130

I breadboarded my receiver and driver designs for the SAC interface, but will postpone testing until tomorrow. I have to set up +3 and +6V power, some TTL driver and receivers, and then wire it into the SAC adapter for testing. I want to move carefully to avoid damaging the 1131. I will pick an interrupt request line as my driven signal and the corresponding int level active line as the received one - an easy pair to test with that don't require any other signals to be connected.

My board has twisted wires, similar to the twisted pair used in the IBM signal cables. My bench power supplies will deliver the SLT voltage levels and a digital trainer unit I have offers TTL level inputs and outputs. When all set up, I should be able to flip a switch, step the 1130 to have it enter an interrupt routine, and see the indicator lamp light reflecting the entry.

Saturday, October 18, 2014

Disk drive timer final construction plus initial testing of keypunch interface controller

1131 DISK DRIVE RESTORATION

My new approach was to drop the 48V power, which switches on when the motor is activated, using a sequence of 4.7V 3W Zener diodes. The eight diodes bring the 48-52V down to the right level to feed the 7812 voltage regulator. The timer board activates its relay after 110 seconds, which disconnects the logic signal from ground to indicate it is now safe to load the disk heads.

This worked well in practice, so I began to install it into the system. The old relay is back inside the power box, but my wires take the 48V from those connections out to the new box I built. The plastic box contains a board with the zener diodes, the regulator chip and the timer board, hooked to the four wires I routed out of the power box.

NEW KEYPUNCH INTERFACE DEVELOPMENT

I completed the Arduino code and began testing the unit. The first stage was to validate the basic communications link, startup process and first level diagnostic tests. Once done with that, made more difficult by failures of the Java code in the Arduino workbench which left my serial port unusable until the machine was rebooted. The port that failed is the basic link over the USB cable used to program the board, not the one that users will use for commands and data flow.

I now suspect that the USB port can't drive the power that the Arduino plus its two relay boards are drawing, thus it is going offline periodically. My power supply bricks for the Arduinos are in a side shed which would be inconvenient to look through in the dark.





Friday, October 17, 2014

A lot of Arduino coding, some hardware prototyping


1131 DISK DRIVE RESTORATION

I received all my parts and began assembling the disk drive delay system that waits 90+ seconds after the platter motor spins before loading the heads. I gave up on trying to shoehorn it all inside the power box in the place that the relay itself had taken, instead placing the circuit into a plastic project box that I can put nearby to the power box but still within the 1131.


I wasn't happy with the performance of my first circuit after some testing. I will try a different approach. I certainly don't want anything that might dump the heads onto the disk surface too early.


NEW KEYPUNCH INTERFACE DEVELOPMENT

I coded the remainder of the Arduino code for the keypunch interface today. While I still believe it would be better to add a signal from the keypunch when it is actually punching, both for validating proper execution and to time the release of the punch relays,

I implemented this with the timing based logic used in the original keypunch interface. For example, the punch relays are held for 10 milliseconds then released, after which I wait another 100 milliseconds for the punch cycle to complete.

I believe that the read pins in the duplicate station are active just after I drop the punch relays, which is how I coded the controller, but I can slide this anywhere in the 110 ms total cycle to ensure I capture the state of the holes at the read station while in the midst of punching at the punch station.

I have a small bit to change in how I handle the binary mode lines, otherwise this is ready to begin testing.

Wednesday, October 15, 2014

Working the last vestiges of sludge out of the gummed up 1053 printer and continuing the software development for the keypunch interface

1053 CONSOLE PRINTER RESTORATION

I cleaned up and applied more grease on the carrier rails, then oiled other parts of the mechanism. It is still erratic and my suspicions are turning to the contacts and micro-switches that inform the adapter when a print operation reaches certain stages. With all the other contacts in the 1130 that had oxidized into permanent off switches, I need to check all the circuits for continuity.

I did notice that the right margin  and end of line detection is a bit erratic. From time to time it doesn't trigger the carrier return or index, just typing to the end of the platen and chattering away in place. This is likely to be sticky old lubricants as well. After some work with oil and exercising joints, it is much better, including a clear bell ring on reaching the right margin, but it still fails to trigger the CR once in a while. More work with lubricants, cleaners and repeatedly hand moving all the moving and sliding parts.

NEW KEYPUNCH INTERFACE DEVELOPMENT

I completed all the command validation code, leaving just the execution of the commands to implement. By early evening, I had about three quarters of the execution logic coded as well. The main part still remaining has to do with when to fire the punch or space relays and when to release them.

I am looking for a means to determine when to drop the punch relays - I could use a fixed time but it would be better to watch something like the cam contacts which operate at fixed points during a punch cycle. I could add a wire to the punch cable, hooked to a reed switch around the escapement relay, which would give me a pulse right at the 180 degree point of a punch cycle just as the card prepares to move to the column that will be punched. However, I am not sure what happens during a multipunch.

Some scoping of the machinery and testing of code is probably necessary to get this to work as intended. I am going to write the final execution code with pseudocode in place of the timing delays or condition tests, allowing me to finalize it once I have done tests with the keypunch.




Tuesday, October 14, 2014

Console printer responding to 1130 program instructions, plus minor progress on other fronts

1053 CONSOLE PRINTER RESTORATION

While doing my studies on the spacing mechanisms, I came across a diagram giving me adjustment advice for the contact bails that touch the microswitches for carrier return and tab operations. These block issuance of new print commands until the variable duration events (return and tab) have completed. I think they are adjusted properly but I can fine tune this once I am able to run the printer from diagnostic programs and watch on a scope.

Adjustment instructons for contact bails and microswitch levers
I put in several hours seeking the cause of the machine gun space repeat that occurs when I push the space button. The same operational cam restores and stops cycles for backspace and tab, which share the cam. I lubricated and worked every pivot and sliding surface I could find, but still had the problem.

It was hard to track down because it didn't fail when I hand cycled (rotated the mechanism by hand with a wheel crank) slowly, watching all the moving parts. It will sporadically take a few extra cycles if I spin the wheel crank rapidly. Under powered movement, it never stops repeating.

The mechanism is complex, triggered by three different sets of components. The button I push will cause a keylever to move down, just as it would if this Selectric had a keyboard, triggering the interposer to snap back and activate a cycle. When a character is printed by the type mechanism, a shaft rotates a cam that causes a single space to occur. Finally, a solenoid can be activated by program control to trip the interposer, causing a space cycle.

Both the solenoid and the button cause the stuttering perpetual spacing, but the print cycle cam does not. Since this worked when the 1130 was last in service, I thought that the adjustments must be okay. This had to be gummed up lubricant but I believed I had found, oiled and worked free every possible moving point.

Finally, I noticed that sometimes the space keylever was touching the interposer while the other functions had a slight space between their levers and interposers. Looking very closely at the keylever, I saw a small pivot which couples the arc of the keypress motion to the interposer at that contact point. I tried flexing those pivots, which seemed to be working okay.

The keylever with its pivoted actuator lever slides through a notch in a cylindrical stud that aligns its movement. The stud for the space function looked to be bent slightly to the left and downward compared to the others. When I operated the keypress elements separately, I discovered that the actuator was binding or grinding on gritty sludge in the slot, made worse by the bent and twist of the stud.

Keylevers sliding in slot of cylindrical studs, triggering interposers at bottom

Bent, twisted and gummed up slot for the space keylever, before repair
I bent the stud into proper position, lubricated those slots in the studs, scrapped the old crud off the side of the actuator, and tested everything. Voila! It now spaces cleanly without any repeating. Time to put the printer mechanism back onto the 1131, connect the cables and begin testing the operation under processor control.

After hooking it up, I began issuing commands to it from the 1130. It was a touch sticky for the first few characters but then began reliably selecting the proper characters. Interspersing upper and lower case proved out its shifting function, rotating the typeball 180 degrees to select characters from the lower or upper case side.

The red and black ribbon shift commands worked properly, although since I had an all black ribbon installed I couldn't verify that it was typing through the intended half of the ribbon. Spaces and carrier returns worked properly, but not the line feed, tab or backspace operations, initially

After a bit more work with the printer, it was typing every character correctly in both cases and executing all the functions. Sometimes, the line feed (index) operation would stick on, which tells me I have a bit more oiling and cleaning to do in that area.

Printing character pair at full speed to test spacing accuracy
The main issue is irregularity of the escapement, both spacing and backspacing. I ran a diagnostic routine to drive the printer as fast as it could go, Over time, the spacing got better but still not perfect. I have some more cleaning and lube work to do until the escapement operates flawlessly. I have a short video showing it operating under the short diagnostic routine, alternating two characters that really show spacing irregularities.

Video of console printer while exercising the print escapement

1131 DISK DRIVE RESTORATION

I decided to use an LM7812 voltage regulator chip on a heat sink to drop the 48V from the disk drive down to the 12V used by the time delay board. This will pull 1.25W while timing and 2.5W while the drive is running. The parts are ordered and should be here midweek.

NEW KEYPUNCH INTERFACE DEVELOPMENT

I completed more of the parsing and verification code that will run in the Arduino. Overall the code is about 20% complete but soon will be sufficient to begin testing in parallel with further development.

Monday, October 13, 2014

More progress restoring the 1053 console printer, plus continued coding of keypunch interface

1053 CONSOLE PRINTER RESTORATION

After studying the mechanisms last night, I was armed with a good understanding of the parts involved in triggering and resetting the index cycle. I went out to the printer, discovered the errant pivot and freed it up. I ran the machine with power on, watching it cleanly execute carrier return and index operations exactly once.

The next issue is lack of activation of the second operational cam, which drives space, backspace and tab actions. When I activate the interposer links for space or tab, the cam is not activating and turning. I took the time for a bit more studying, to understand all the moving parts involved with this activity, before freeing it up.

There is a plate that rotates relative to the operational cam, either pivoting a pawl into the ratchet when moving the cam or retracting it when the cycle is done. This was so gummed up that it wasn't moving, but I worked the old lubrication out and got it moving. At first, it would latch but not release, until it was free enough to work reliably both ways.

Next, I found the escapement which controls spacing and backspacing was not working smoothly. It seemed that the pivot mechanism for the escapement and backspace pawls has those pawls slide left and right as well as rotate, but due to a gummy film between the layers, they were not sliding back and forth. Some attention to that cleared up the problem giving me a crisp spacing action.

Tab works smoothly as well. The problem is that the three actions driven by the left operational cam, space, backspace and tab, are can stick on taking repetitive cycles. The fault has to be in the restoring mechanism, guiding me to the next spot for special attention.

I also found a writeup in the theory of operations, sans any diagrams, that explains a bit about those bails for the operational cams which were configured two different ways. Based on the writeup, I should be able to sort out which is wrong and correct things. These are meant to block re-triggering, so the left one could be causing my problem with the tab, space and backspace.

The left operational cam is still repeating cycles. When I hand cycle the machine slowly it almost always rests properly. Hand cycling rapidly will sometimes give a few cycles before resetting, other times it resets correctly after just one cycle. Under power, however, it never resets, striding across to the right with continuous spacing or continuous tabbing or racing backwards in continuous backspaces.

I will keep at this until I find the sticky pivot and free it up. I had triggered some character cycles which seem to work properly, although I didn't have the platen installed or paper and ribbon in the machine. If I can get the operational cam restoring well I should be in position to start testing printing and then reinstall this in the 1130.

After more work, the tab and backspace take just one cycle, as they should, but the space function continues to be pesky. Under motor power, it never stops, taking constant cycles until I pull the plug, but when I cycle it slowly the clutch works properly. I will look into the adjustments for the restore, although it seems that this machine was working properly when retired so its adjustments should be correct.

NEW KEYPUNCH INTERFACE DEVELOPMENT

I structured the program module with separate tabs for each major module and began more detailed coding. I completed the function which extracts a command line from the input serial port stream, then moved on to coding the parsing routine that breaks apart and validates the command line.

I did discover one flaw in my protocol, which is built around a line of no more than 81 characters, but has a command to load a user translation table requiring 516 characters. I had to modify the protocol to handle this given a max of 81 characters per command. The _LOAD command now handles one position of the translation table per line, specifying a decimal value for the character to be updated and then four hex digits as the keypunch actions for that position.

Sunday, October 12, 2014

1053 console printer restoration work, plus more coding on keypunch interface

1053 CONSOLE PRINTER RESTORATION

The cause of the perpetual print cycles was a small spring for the restoring lever, underneath the machine, which had come loose when I connected the cycle latch lever spring a few days ago. After putting it back in place, the machine does not attempt print cycles when not requested.

Hand cycle wheel in place - apologies for the blurry focus

Spring hook tool used to affix small springs
I used the Hooverometer, an IBM tool for making certain settings on these typewriters, to get the cycle clutch latch lever set properly, since I had removed it to move my new motor belt into place. Setting up the tool to marker 3, it is placed on the latch pivot pin and the hook should just touch a shaft above. Moving the cycle clutch latch until these lined up properly and tightening down the screws was all that had to be done.

Hooverometer in approximate position for cycle latch adjustment

Hooverometer tool for adjusting Selectric typewriters
Index (line feed) operations keep occurring because the interposer (part of the actuating linkage) isn't returning to its full forward position after an index cycle is taken. A restore bail should be accomplishing this. So far, I have looked to verify that no springs are missing and moved the various parts of the linkage to ensure they are not gummed up.

In spite of this, it is still not restoring and thus taking perpetual index cycles. I will need to investigate this further, after I spend quite a while poring over the theory of operations, adjustments and illustrated parts manuals.

I adjusted the red ribbon shift tape tension to get the new replacement tape I installed working correctly. Nothing in any of the manuals advises on tape tension or setup. You loop the tape around and then have to guess how much to move the right hand tape pulley in order to have black or red print depending on the selection.

Right pulley with plastic ribbon color shift tape, adjustment screw at right

Armature to pull or release the ribbon color shift tape 
I tightened the tape while watching the ribbon lift cam follower latch plate shift to the front, however the tape snapped off the metal clip on the right end. Sigh. I was able to improvise a way to hook the clip back on, loosened the pulley greatly, and reinstalled the tape. I will err on the side of looseness, which might mean that it never shifts to the red color, but that can be gradually adjusted when the machine is working until I get the proper color reliably.

Tape snapped off the metal clip

Clip pushed through doubled section of tape, makeshift repair
It appears I have the ribbon color shift adjusted correctly with appropriate tension on the plastic tape, subject only to a full power confirmation once I am ready to be printing output with the 1053.

Cam follower latch in its leftward (black color) position
Cam follower latch in its rightward (red ribbon color) position
I will read more tonight on the index actuating and restore mechanisms until I can spot what is not working properly, causing repeated index cycles. The likely suspect is solidified lubrication but it must be at some attachment or pivot point I haven't yet found. The area where these linkages sit is very crowded with other linkages and parts, limiting visibility.

The two solenoids that activate the carrier return and index functions have microswitches that detect the state of the operation, with long leafs on the switches that extend out and can be touched by metal bars on the actuator arms (they are called contact bails).

Carrier Return microswitch with leaf below bail
Index microswitch with leaf above its contact bail
However, the left and right switches are in very different configurations - one sits above the contact bail, the other is below the bail. Once must be in the wrong position. Nothing in the three manuals clarifies which way these should be configured, nor are the diagrams of pictures of the assembly. I need to do more research on this before fixing whichever is wrong.

NEW KEYPUNCH INTERFACE DEVELOPMENT

I retrieved all my design notes from the workspace and began to properly assign all the signals to the Arduino pins. From there, I resumed writing the startup code to initialize the interface. The punch and the reader cables each have a pair of wires connected together, allowing the Arduino to do a quick verification that the respective cable is attached. If the reader cable is not installed, the unit will still work as a punch but cannot read cards or verify during punching.

The USB serial port is used for diagnostic messages - both normal status and errors - in addition to the text responses on Serial port 1 - the user interface - to every command issued on that port.