Giter Club home page Giter Club logo

selectric_typeballs's Introduction

How to make your own Selectric Typeballs

March 31, 2023

A 3D printed typeball for the IBM Selectric. The font is Comic Sans. There is ink on most of the letters. A sheet of lined paper in a typewriter with several lines of Cherokee text; the 3d printed typeball that made the text is visible in the lower left.

Update: July 7 2023: YOU PROBABLY SHOULDN'T PRINT THIS!

Update, July 7 2023: Dave Hayden took the resin-printed typeball concept and improved on it greatly. I'm extremely grateful that he took on all the hard work of iteratively going through and dialing in the perfect values to make a functional ball, and I'm pleased to think I contributed in some way to his achievements.

The original README continues below.


The IBM Selectric typewriter uses an instantly-recognizable "ball" of type instead of a fanned-out array of arms like a conventional typewriter. These typeballs could be swapped out, meaning you could easily write documents with different fonts, font sizes, special characters, or different writing systems altogether.

IBM and some other vendors made lots of different typeballs, but most of them are 40-50 years old and no one has been making new typeballs for a long time. 3D printing is a natural fit for making new typeballs, but most printers still don't have the ability to produce the sharp details necessary on a sufficiently-resilient material. So it's understandable that no one made a really functional 3D-printable typeball. Until now, that is!

Warning

Please keep in mind that the spindle that the typeball sits on is fragile. Do not force a typeball onto the spindle if it does not fit, and do not attempt to salvage a print by shaving it down. The typeball can become stuck on the delicate spindle, damaging your vintage typewriter. Similarly, do not use a typeball if it is too loose and cannot be attached securely. It could fly off and damage its surroundings.

You may wish to use a small amount of sewing machine oil on the inside of your print, to help it as it spins, and to catch any resin dust that is created by the printed ball rubbing against the spindle mount.

Any damage incurred through the use of this software and its resulting typeballs are not our liability.

How to use the code

Things you need before getting started:

  • OpenSCAD
  • A Python installation with the pymeshlab package
  1. Open oneletter.scad and change lines 11 and 12, the ones that specify the font height (in millimeters) and the font name/style for OpenSCAD to use.
  2. Open selectric_generator.py and change line 5, the one that says PATH TO OPENSCAD = r"{something}" so that it points to your installation of openscad.com (not openscad.exe! They are in the same folder probably, but the .com is meant to be run from command line, which is what we'll be doing.
  3. If you want to change the characters on the balls, edit glyph_tables.py. This contains a multi-dimensional array of the characters as they are arrayed on the typeball, not as they are laid out on the keyboard. If you want to use a different character set than the standard Latin, you'll have to find a correspondence between the new set and your preexisting keyboard layout. Sorry this part may be extra-confusing.
  4. Run selectric_generator.py. On my machine, each character takes between 1 and 30 seconds to generate, depending on their complexity. So 88 characters will take a while, be patient!

Acknowledgements

The blank typeball is based on 1944GPW's typeball on Thingiverse, which is released under a Creative Commons-Attribution license. I suspect that my project wouldn't exist if it weren't for this one. I had to change most of their typeball dimensions, and there are major issues with the way their characters are generated, but I sure as heck would have made those same errors myself, so I'm infinitely grateful for the people before me who documented their processes!

Another project that deserves a lot of credit is The Sincerity Machine by Jesse England. Jesse is a delight and a constant source of creative inspiration for me, and it brings me great joy to watch this project evolve with him.

EXPLAINING HOW THE GEOMETRY WORKS, BECAUSE I'M REALLY QUITE PROUD OF IT (BUT YOU CAN SKIP THIS SECTION, IT WON'T HURT MY FEELINGS)

A Meshlab render of the octothorpe symbol with lofted edges

Getting those nice lofted edges on each glyph was not easy! I came up with a rather elaborate way that worked pretty well, but then got an excellent suggestion from Kris Slyka that works so, so much better. This is truly a community effort. I'd be very curious to hear how you would have approached it!!

The OpenSCAD Typeball by 1944GPW attempts to loft the shapes by scaling the letterform. This was my first thought, as well, but since the letters scale around a specific point, it means the lofted sides won't all spread out evenly. Instead you get unhelpful overhangs:

An OpenSCAD render of the letter "N" with steeply slanted edges that would not print well

Instead of a scaled extrusion, we need the base to be a puffed-out offset version of the original letterform. It's not trivial to do that in an automated fashion, especially if there are small holes that will close up (like in the middle of the # character). The method I came up with uses a command-line script to extrude the letter in OpenSCAD and then displace one layer of vertices by their normal vectors. This means the vertex will always be pushed out away from the body of the STL.

If you look at the underside of each letter, you'll see a that this method leaves a lot of topological scars from attempts to re-mesh this self-intersecting shape. But it turned out to be pretty printable, so I released the project with this approach.

After seeing the discussion about typeballs on Mastodon, Kris Slyka approached me to suggest using OpenSCAD's minkowski() function. It has a reputation for being agonizingly slow, and trying to generate all the glyphs at once would exhaust my PC's memory, but with the batch-script, one-letter-at-a-time method, it can work! I highly recommend getting a recent build of OpenSCAD nightly; the fast-csg setting makes minkowski() operations so, so much faster.

Extra thoughts

I put some typeballs on Printables! They are also available on Shapeways (links in the Printables descriptions) if you don't want to print them yourself.

To affix the typeball to the typewriter, you will need a bent wire or a small clip such as this one from Dave Hayden. Thank you Dave for encouraging me to pick up the Selectric project again!

I had been testing on a not-fully-functional Selectric I, which I think was set to 12 characters per inch. Knowing characters per inch is important for joined/cursive scripts like Mongolian. It would really help if I knew how to change the writing direction, I know some Selectrics had an RTL/LTR switch...

Other right-to-left scripts to try: Thaana, N'ko

Other typeballs to try: Osage, Tifinagh, various runes, emoji, Avoiuli, um......what else?

selectric_typeballs's People

Contributors

hubcapp avatar settinger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

selectric_typeballs's Issues

P & Q are swapped

Both uppercase and lowercase P & Q are swapped! Evidenced by these two photos:

signal-2023-07-07-155333_003
signal-2023-07-07-155333_002

Issues with generator script on Windows 10

Hello! I am running this on Windows, with all the pre-requisites met. I am running this on Python 3.11.3. I know nothing about Python, so I did try to fix some stuff through solutions I found online. The first issue I had was with line 39, where I was met with the following:

Generating glyph 1... Traceback (most recent call last): File "C:\selectric_typeballs-main\selectric_generator.py", line 39, in <module> subprocess.run(cmd) File "C:\Users\chris\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 548, in run with Popen(*popenargs, **kwargs) as process: File "C:\Users\chris\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1024, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\chris\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1509, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] The system cannot find the file specified

I was able to fix this, by adding this to line 40:
subprocess.run(cmd, shell=True)
Then, after that, I encountered the following when trying to run it:
Generating glyph 1... Traceback (most recent call last): File "F:\Downloads (mom)\selectric_typeballs-main\selectric_typeballs-main\selectric_generator.py", line 40, in <module> mainMeshSet.load_new_mesh(filename) pymeshlab.pmeshlab.PyMeshLabException: File does not exists: ballparts/0-0-0.STL

Is there anything I'm doing wrong? Hope I can solve this. Very awesome project you've worked on here, I can't wait to try it on my machine.

Dimensions of blank ball are wrong, may damage typewriter

Hi, sorry to be alarmist, I love the idea of this project, however, it is currently unusable and dangerous due to the included STL file for the blank typeball having incorrect dimensions.

The dimensions are close enough that I was fooled into shaving it down a little and pressing it onto the spindle. The typeball I printed then went on, but it did not come off. Removing it as gently as I could was too violent of a force for the fragile head, and it has now put my Selectric II slightly out of alignment. This is perhaps a boneheaded move on my part, but I found evidence in this repair video's youtube comments that I am not the only idiot who excitedly pressed their newly printed slightly-too-small 3d typeball onto the spindle.

I believe that addressing issue #1 should be high priority for you, since as is, the hosted files supplied on Printables, as well as the blank STL included in this repo, will continue to disappoint, and damage the vintage equipment of those who actually try to print and use them.

Post source for the blank keyball

Hello! This is a fantastic project, thank you!

Could you post the source for the blank typeball? Particularly, it looks like the hole is too small, and rotation locking peg is too large for the print (Granted both of these could be my print or my cleanup, but maybe not!)

I'd use the "parent" project, but you say you made a bunch of changes to it, and I'd rather not edit the .stl if possible.

Thank you!
Chris

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.