Introduction: USB Typewriter
NOTE: These instructions are for my original "Solder-It-Yourself" conversion kit. However, I have since come up with a much simpler, no-soldering-required version of the USB Typewriter Conversion Kit, and -- take my word for it -- it is is much easier to install. If you want to learn about how to convert your typewriter the hard way, read on! Otherwise, check out the No-Soldering Instructable to learn more about the newer version of the kit.
Step 1: Introduction:
There is something very magical about typing on those old-school manual typewriters. From the satisfying snap of the spring-loaded keys, to the gleam of the polished chrome accents, to the crisp marks on the printed page, typewriters make for a sublime writing experience. Now, the USB Typewriter lets you enjoy the magic of writing on a manual typewriter, without forfeiting the ability to use word-processing, email, web-browsing, or other modern desktop conveniences. Or, instead of using the typewriter as a computer keyboard, you can turn off your monitor altogether and type directly onto paper -- while discretely saving a soft-copy for later use!
In this instructable, I'll help you bring your old typewriter back to life by converting it into a USB compatible keyboard for your PC, Mac, or tablet computer. The hack is intended as a full keyboard replacement, so you can get rid of that piece of disposable plastic you call a keyboard and use the desk space for a classic, functional work of art -- A USB Typewriter!
Read on, and you will see that this modification is surprisingly easy to implement -- It shouldn't take longer than a weekend to do, and is within reach of any electronics novice. You might imagine that the project involves jumbles of wires and dozens of switches and sensors, but actually there are very few wires and absolutely no mechanical switches involved! However, because this project requires some custom components and circuit boards, you will need to purchase a USB Typewriter D.I.Y. Kit, which I have made available in my etsy store (usbtypewriter.etsy.com):
Step 2: OVERVIEW
Under the hood of almost every manual typewriter is a spring-loaded crossbar that runs underneath all the keys (see picture below). Whenever a key is struck, part of that key pushes on the crossbar, and this causes the carriage to advance, the ink roll to move, and so on. We are going to repurpose this crossbar as a place to mount an array of metal contacts, which are attached to a long, narrow circuit board called the Sensor Board.
Take the time now to identify where the crossbar is on your typewriter -- just look for a bar that swings up and down when you press a key.
Step 3: HOW IT WORKS
The USB Typewriter system consists of three main components: the Sensor Board, the USB Interface Board, and the Reed Switches.
- The Sensor Board is a long strip of flexible metal contacts which clip easily underneath the keys of the typewriter. Each contact is attached to a different pin on a chain of shift registers, which act like a fireman's "bucket brigade", passing a signal down the line from one pin to the next (see the animated picture below). When the signal being passed down the row of shift registers is intercepted by one of the keys the microcontroller is alerted to a keypress.
- The USB Interface Board features an Atmega168P microcontroller (i.e. an Arduino chip), a USB socket, and some supporting components. By sending the CLK and SER signals, it controls the operation of the Sensor Board (again, refer to the animation below), and by monitoring the "chassis" signal, it can detect keypresses. The animation shows that the Interface Board can tell which key has been pressed, based on which pin of the sensor board was active when the chassis signal was detected. The interface board also controls the USB jack that connects to your computer.
- The Reed Switches: Because the Sensor Board only detects keys that strike the crossbar, several important keys go undetected. These include Shift, Space, and Return. To deal with those keys, we use tiny switches that close when in the presence of a magnet.
Step 4: PARTS LIST
- An assortment of small neodymium magnets.
- Custom laser cut metal tabs ("feather contacts" )
- Blank PCB circuit boards
ELECTRONICS BOM (included with the DIY Kit):
- R1: 68 ohm resistor
- R2: 68 ohm resistor
- R3: 2.2 kohm resistor
- R4: 10 kohm resistor
- USB2: usb B type jack such as FCI 61729-0010BLF
- C1: 22pF capacitor
- C2: 22pF capacitor
- C3 22uF electrolytic capacitor
- Q1: 16MHz crystal oscillator
- C4: .01uF capacitor
- IC1: ATMEGA168, preloaded with USB Typewriter software
- S1 and S2: Omron B3F-1005 tactile switch
- D1 and D2: 3.6V Zener Diode (1N5227B)
- IC1...IC12: M74HC595B1R shift registers (QTY: 12)
- 3 or 4 reed switches to sense shift, space, return carriage, etc. (Meder PN# ORD211/10-15 AT).
- An an Atmega168/328 microcontroller with Arduino bootloader and USB Typewriter software.
- A small roll of gaffer tape.
- Stranded wire, preferably 24 AWG or 22 AWG
- Solder (lead free is the way to be)
- "Simple Green" or similar degreaser/cleaner (for de-gunking your typewriter keys).
- Can of compressed air (optional for cleaning your typewriter).
- Hot glue gun
- Wire Strippers and clippers
- The usual assortment of tweezers, pliers, screwdrivers, and other hand tools for hackin'
- An old Toothbrush (optional: for scrubbing gunky typewriter parts)
- Dremel rotary tool with a cutting disk, or, if you don't have a Dremel, some med-grit sandpaper.
Step 5: Prepare Your Typewriter
Some typewriter brands require their own special preparation before continuing. Download these special preparation instructions from the list below. If you don't see your typewriter brand here, then it probably doesn't need any extra preparation work, so just skip this step.
Underwood Desktops (like the Model 5)
Royal Desktops (like the Model 10)
Step 6: FILE THE KEYS
We need to scrape off the paint that is on the key-bars underneath the crossbar. This way, the key-bars can make electrical contact with the circuitry we will be attaching to the crossbar.
Using a folded-up wad of paper, prop the crossbar up and out of the way. Then, use a Dremel grinding tool to gently sand away the paint on the key-bars underneath, revealing the shiny metal. Be careful to avoid any springs that may be attached near the crossbar, because the Dremel will cut through them easily, and trust me -- they are hard to replace! Use a metal file, sandpaper, or even a utility knife to scratch away the paint in areas near springs, or in any other hard-to-reach areas.
Step 7: TAPE THE CROSSBAR
We will be attaching electrical contacts to the crossbar. so it must first be insulated with gaffers tape or duct tape. I recommend using gaffer's tape, which is available at most photography stores, arts stores, hardware stores, or online. Make sure the crossbar is free of dirt and oil, which the tape will not stick to. If your tape is still not sticky enough, you can reinforce it with a few dabs of superglue.
Step 8: CUT THE SENSOR BOARD
The sensor board included in the DIY Kit is longer than the crossbar on your typewriter. That is because it is designed to be cut to length. Using tin-snips, wire strippers, or scissors, cut the sensor board so that it is the same length as the crossbar.
Unless they are very sharp, the scissors won't cut the board very easily, so go slow.
IMPORTANT: Make sure you save the scrap you cut off -- it will come in handy later!
Step 9: MARK THE CONTACT LOCATIONS
Place the blank sensor board onto the crossbar in the same position you intend to mount it. Then, use a Sharpie pen to mark off the approximate locations that the contacts need to be attached. One contact is needed for each key-bar that is underneath the crossbar. Do not worry if your marks are not very precise -- the contacts are flexible and will eventually be bent into the correct position.
Step 10: POPULATE SENSOR BOARD
Insert the 74HC595 Shift Registers into the sensor board and solder them in place.
IMPORTANT: Make sure that the "Pin 1" markers on the chips are all facing towards the "top" of the board (see picture above).
ALSO IMPORTANT: The leads of the Shift Registers will poke out of the other side of the board and form sharp spikes. These spikes are undesirable because they will poke through the gaffer tape insulation when you mount the sensor board to the crossbar. Use clippers to cut the spikes so they are flat instead of pointy -- you dont need to cut them all the way off -- just blunt them.
Step 11: ATTACH FLEXIBLE CONTACTS
Into each of the solder holes you have marked on the sensor board in Sharpie pen, insert one flexible contact and solder it in place. If a mark falls between two holes, simply choose the hole that the mark is closest to.
Take a second to look at the second picture shown above. You will see a common situation -- the board has been cut in such a way that some of the contacts are not connected to a shift register at all. In this case, you need only solder a jumper wire between these unconnected contacts and any of the unused pins on the rest of the Sensor Board.
IMPORTANT: In 99% of the cases, you will want to attach the contacts so they stick out underneath the Sensor Board (i.e. on the opposite side from the chips). However if you have a Royal typewriter, you will want to go about things differently -- the contacts will be soldered on top, instead of underneath, the board. Please read this note about Royal Typewriters before continuing.
Step 12: ASSEMBLE THE INTERFACE BOARD
The image below shows the location of all the components on the interface board. Note the orientation of the electrolytic capacitor -- the grey stripe indicates the negative side. Also note the orientation of D1 and D2 -- the black stripe should point downwards. Finally, note the location of PIN 1 of the ATMEGA168 chip -- the PIN 1 marker must be oriented towards the top of the board (See 2nd picture above).
Also, don't get confused between C1, C2, and C4. C4 is marked "103" while C1 and C2 are marked "22J."
Step 13: TEST THE INTERFACE BOARD
Go to your computer and open up Notepad (on Windows) or TextEdit (on Mac). While holding down S1, plug in the USB Cable to the interface board. A message beginning "USB TYPEWRITER Rev 2.0" should appear on your screen! If not, review your connections and part orientations and try again.
You can repeat this process at various stages in the project to make sure everything is still working.
Step 14: CONNECT THE TWO BOARDS
Using 4 equal lengths of stranded wire, connect the sensor board to the interface board. But first, do a dry run (without soldering), loosely fitting the sensor board and interface board onto the typewriter to make sure that the wires are the correct length to reach from one board to the other. Make sure you leave some slack -- its better to have too much slack than too little!
After you make the connections, its a good idea to test the electronics again (see Step 10).
Step 15: PRE-BEND CONTACTS
In the next step, the flexible contacts will be wrapped tightly around the crossbar. But to make that process easier, we will first pre-bend the contacts a little. Take a pack of Post-It Notes and tear off a chunk of notes that is the same thickness as the crossbar. Then, use the Post-It Notes as a template to fold the flexible contacts at a sharp 90 degree angle.
Step 16: ATTACH SENSOR BOARD TO CROSSBAR
This might be the trickiest part of the whole process. Carefully position the sensor board onto the crossbar, while slipping the contacts underneath it. Once you are happy with the way it is positioned, use small dabs of hot glue to keep the sensor board in place (see 3rd picture above). Don't worry yet about positioning the contacts correctly.
Step 17: CUT AND BEND CONTACTS
The contacts are probably too long at this point. Cut them to a manageable length using clippers or small scissors, then use tweezers fold them down flat against the crossbar. Use the tweezers to coax each contact into position under the corresponding key-bar. The 3th picture you see above shows a key being pressed and squarely hitting one of the contacts. You don't have to be super-precise -- just make sure each contact is in the path of its corresponding key, and that none of the contacts are touching each other.
Also, make sure none of the contacts are touching any exposed metal, like springs, arms, or untaped parts of the crossbar (see 4th picture above). If any of the contacts wont stay in place, use a small amount of superglue to hold them down (Be careful with the superglue! Don't get it all over the contact!).
Step 18: PROP THE CROSSBAR BACK
You are so close! Right now the contacts are successfully attached to the crossbar, but the problem is that many of them are probably too close to the keys. Ideally, each key should only touch its corresponding contact after it has been pressed more than halfway down. Therefore, we need to prop the crossbar back from the keys a little.
The method for propping the crossbar back is different for each typewriter. For example, if you look carefully you'll find that Remingtons all have adjustable tabs connected to either on either side of the crossbar that prop it back. Many Underwoods also have these tabs. Other Underwoods have a thin metal bar, perpendicular to the crossbar, which props it back. Smith Coronas have a hook that extends from the left side of the crossbar to the tension-adjustment spring. Regardless what kind of tab, hook, or bar your typewriter uses to prop back the crossbar, you will have to either a) bend it a little or b) add a shim. The best source of shim material is the plastic PCB scrap you cut away from the sensor board in Step 5. You ideally want to add about 1.5mm-2mm of separation between the keys and the crossbar, and luckily this scrap is 1.6mm thick.
THE QUICK AND EASY WAY:
If you are unsure what system your typewriter uses to prop back the crossbar, there is a very simple solution that will work on any typewriter. Unfortunately, it involves sacrificing one of the keys (I suggest sacrificing the "1/2 1/4" key, which has no equivalent on a modern keyboard). Simply remove the contact underneath that key, and in its place attach a small piece of shim material using superglue. By resting between the key and the crossbar, the shim will ensure that the crossbar is separated from all of the other keys, too. The best source of shim material is the plastic PCB scrap you cut away from the sensor board in Step 5.
Step 19: ATTACH THE CHASSIS WIRE
The USB Typewriter works by monitoring the voltage of the chassis of the typewriter (see "Step 2: How It Works). In this step, we will be attaching a wire to the chassis of the typewriter, to connect with the "CHASSIS" input to the interface board.
First, identify a screw or bolt on the typewriter chassis that would make a good connection point. Next, remove this screw and strip away the paint underneath it with sandpaper or a Dremel. Next, crimp a wire onto one of the metal eyelets included with your kit, and screw it down onto the typewriter chassis.
The loose end of the eyelet wire should then be attached to either of the two "CHASSIS" inputs marked on the Interface board.
Step 20: ASSEMBLE THE REED SWITCH BOARDS
Why use Reed Switches?
Certain keys, such as Shift, Spacebar, Backspacer, and Return Carriage, do not strike the crossbar, and therefore cannot be sensed by the Sensor Board. To catch these keys, we will mount magnets to them, then attach reed switches nearby. (Reed switches are special switches that are only closed when they detect a magnetic field). When the key is moved down and up, the magnet will move towards and away from the reed switch, opening it and closing it.
Assembling the Reed Switch Boards
Because reed switches are very fragile and hard to work with, the kit comes with breakout boards and protective sleeves for each reed switch After soldering the reed switch to the breakout board, attach two wires -- each about 12 inches (30cm) long. Then cover the board with a heat-shrink tube and use a lighter to shrink it in place. (Don't put the flame right onto the tube -- you are trying to heat it up, not set it on fire!) You will notice that the glue inside the heat-shrink tube will melt, sealing everything in and protecting the fragile reed switch from damage. This process takes about 1-2 minutes, so be patient. Using a heat-gun or hair-dryer instead of a lighter may speed things up.
Cut off the excess heat-shrink tubing with clippers or scissors.
WARNING: The tubes will be extremely hot after shrinking! Let them cool down before handling!
NOTE: If you don't have the breakout boards, you must have an older kit -- email me and I'll send the new parts to you for free!
Step 21: FLATTEN THE REED SWITCH BOARDS
After the reed switch assemblies have cooled down, you may notice that they are not totally flat underneath. They will be easier to glue in place if they have a nice flat surface. Therefore, you must lightly reheat the bottom of the reed switch assembly with your lighter to soften it, then place it on a smooth flat surface and apply gentle downward pressure. I like to put a few layers of soft cloth between my hands and the reed switch -- this prevents me from accidentally smashing the fragile glass reed inside.
Step 22: ATTACH THE REED SWITCHES
Experiment With Positioning
Unless you have worked with reed switches before, it may be tricky to find the appropriate place to attach them to your typewriter. So, some experimentation with a multimeter is required before finalizing the position of each reed switch. First, attach a magnet to the key you wish to detect (for example, the spacebar, backspace key, shift key, or return carriage lever). Next, attach the probes of your multimeter to the wires of the reed switch, and use the "continuity" setting (often signified by a little beeping sound wave) to monitor whether the reed switch is open or closed (see picture above). The multimeter will emit a beeping noise whenever the switch is closed (i.e. when a magnet is nearby).
HINT: The reed switch can detect magnets in any direction, but it is most sensitive to magnets that are directly in front of it or behind it (see 2nd picture above).
Finalize the Position
When you are satisfied that you have found a good position for the reed switch, so that it opens and closes consistently whenever the key is pressed, use superglue to attach it permanently to the chassis of the typewriter. I like to use hot glue as well -- not to attach the reed switch but to tack the wires down.
Example -- Space Bar
In the example shown above (see 3rd picture), the switch is normally open, but closes whenever the space-bar is pressed. However, you may decide to use the opposite configuration -- so that the switch is normally closed but opens when the key is pressed. It makes no difference whether the switch is normally open or normally closed, because the software is able to figure this out during calibration.
Step 23: CONNECT THE REED SWITCH WIRES
Each reed switch has two wire leads, which must be connected to the correct pairs of solder holes on the interface board. The hole pairs labeled D7, D8, D9, and D10 are multi-purpose inputs that can be used for any key, such as the backspace key, the return carriage key, or the space-bar. The only keys that cannot be connected to the D7-D10 inputs are SHIFT, ALT, and CTRL, which have their own special, reserved inputs.
The picture above shows an example of how the space-bar reed switch might be connected.
Step 24: ATTACH THE INTERFACE BOARD
After you have attached all the reed switches you need, and you are confident that everything is working correctly, mount the interface board to the side of the typewriter using double-sided foam tape. Don't worry -- the tape should peel off easily if you need to remove the board later for some reason.
Step 25: PERFORM FINAL CALIBRATION
When you first plug in the USB Typewriter, all its microcontroller brain sees is a long row of contacts on the Sensor Board. It has no idea which contacts correspond to which typewriter keys. Luckily, the USB Typewriter has a "Calibration Mode", which sorts this out for you automatically.
To access Calibration Mode:
1) With the USB cable unplugged, open up Notepad (on Windows) or TextEdit (on Mac).
2) Next, hold down the button marked S1 while plugging the USB cable in.
A message should appear that says:
by JACK ZYLKIN
CALIBRATING...TYPE THE FOLLOWING KEYS:
You will then be prompted to type each letter of the alphabet, all the numerals, punctuation marks, and a few other keys. Just type the corresponding key on the USB Typewriter.
IMPORTANT: If you come across a character that you don't wish to assign to any of your USB Typewriter keys, press space-bar to skip.
Some keys are hard-wired
Note: Alt, Ctrl, and Shift are not assigned during calibration -- they are hard wired to specific inputs on the interface board, which cannot be changed.
How to assign bonus keys
If you hold down S2 as you assign a key during calibration, the USB Typewriter interprets that key as a bonus key. For example, when the calibration mode prompts you to enter the "F2" Key, you will realize that your typewriter doesnt have one! Instead, you might decide to hold down S2 while entering the "2" key. From then on, S2+2 will send an F2 command. Meanwhile, just pressing 2 by itself will still just send a 2.
Step 26: YOU ARE DONE!
Huzzah! You now have your own beautiful USB Typewriter! It can be connected to any PC, Mac, or Linux computer. If you plan on using it with an iPad, you will need to buy a Camera Connection Kit (Apple's USB adapter for iPad). It will also work with many Android tablets.
If you have any questions, email me at jack [at] usbtypewriter.com or leave a comment on this instructable page! I love hearing about interesting problems and successful projects!
A quick shout out:
This project was created at Hive76, a rad maker co-op in Philadelphia PA. Visit them at www.hive76.org. -- go check out their website for more cool projects going on in Philadelphia.
Grand Prize in the
Back to School Contest
12 years ago on Introduction
I'm a writer and I **LOVE** the idea of this - I've often windered if there were a way to retrofit my old typewriters tfor use with a PC. However, I'm unclear about how keys like "Alt" and "Ctrl" work - they're not present on a typewriter, are they? You mention them as being "hard wired" in one of the steps, but I'm not sure how this actually works in practice. Also, I assume this hack will allow for "Shift+key" commands for caps, differing punctuation, etc.? Also, I'm also assuming that (since they're not at all present) that there's no way to assign "F" keys via some sort of key combination in the calibration stage? Of course, it's not at all hard to just have a second, actual keyboard plugged into a second USB port for the times you need an "F" key. Last, I'm pretty sure they do, but when the typewriter is manipulated, the keys still articulate and strike the drum, the carriage still lifts and slides to the right, etc. yes? Thanks!
Reply 12 years ago on Introduction
Ctrl and Alt are buttons on the circuit board itself. You can also wire them up to other random adjustment knobs and switches on the typewriter. There is also a "Fn" button on the PCB that allows you to access a secondary key map, so that the numerals become F-keys, the lower right of the keyboard becomes arrow keys, and so on.
Reply 12 years ago on Introduction
So if they're on the circuit board, how are they manipulated? Can one use a momentary switch, perhaps, attached to the typewriter chassis? How have you historically accomplished this, or have you just not bothered? Thanks!
Question 3 years ago on Introduction
Is this an input or output device?
6 years ago
Hello, Thank you for this wonderful Tutoriel. I am using V2.0 of your design files. Unlickly I can not access the source code files. Can you update the link please?
6 years ago
What if I wanted to go the opposite direction & feed a mechanical USB/PS2 keyboard signals into the board of an electronic typewriter?
7 years ago
One of the best ideas I've seen here at Instructables. Thanks for sharing!
8 years ago on Step 6
my typewriter doesnt have a crossbar :( what do i do?? its a remington. but i have no idea which model it is..
9 years ago on Introduction
This method of typing is second only to the IBM Model M. Excellent work, now if only I can get my hands on a typewriter...
10 years ago on Step 8
I cut the sensor board so that the small ' scrap ' piece has the four holes on the end. is this a problem, or can i go ahead and solder?
Reply 10 years ago on Step 8
Oh, yeah you definitely need those holes. I will send a replacement board. Message me privately with your address.
10 years ago on Introduction
Yes, the USB Typewriter is compatible with a wide range of roman alphabets, including German. The language settings of your computer are taken into account when assigning the various letters to the various keys.
10 years ago on Introduction
A really great idea! Does anybody have experience regarding compatibility with Brother manual typewriters? I would really like to upgrade my dad's old one.
11 years ago on Introduction
If any keys are missed, well you could always use the onscreen keyboard on rare occasions..it's so worth it for this.
Reply 11 years ago on Introduction
Thanks! Actually, on an iPad, ALT+any key produces some pretty wild results -- many oddball characters can be accesed that way, too. And you can program the Interface Board's "bonus" key to access another keyboard's worth of hidden extra keys.
11 years ago on Step 22
Also, orientation of the magnet is also important.
11 years ago on Step 20
Which pin would I connect the space bar to the USB Interface board?
Reply 11 years ago on Step 20
Sorry, D! I am seriously upgrading my website and this instructable this week, so some files are getting shuffled around and links are temporarily broken. The pairs of pins labeled D7 D8 etc are the ones you can connect things like space bar and backspace to. The pins labeled "chassis" on the board is where the chassis wire goes to -- Im not sure what it is called on the schematic.
Reply 11 years ago on Step 20
So I follow the labeling on the USB interface board? The instructions here are out dated.
Reply 11 years ago on Step 20
I know -- I am seriously updating them right now. The new kit has breakout boards for each reed switch so they cannot break, and eyelets for attaching the chassis connection instead of using a loop of wire. The revised instructions will also be clearer with more pictures and specific examples from various typewriters (I just upgraded my photo setup). This is a long overdue upgrade that will go live this weekend. If you would like me to send you the new components, let me know and I'll send it to you at no charge.