Mini Museum: Abacus

A 15-column Japanese Soroban abacus (click for larger)
(reading a rather large number, since the “5” beads are active when displayed at this angle. Oh, well.)

The latest addition to Drexel’s Mini Museum of Computing History is a deceptively simple device: a Japanese Soroban abacus. Long before silicon chips and software, devices like this were the calculators of their day. It may be hard to imagine now, but people once counted using tally marks on sticks or by moving small stones. In fact, calculate comes from calculus, Latin for “small stone”​ (kartsci.org). The abacus transformed such primitive methods into a portable, fast, and reliable calculating tool. The Soroban model – with one bead on top and four on the bottom per rod – represents the pinnacle of abacus design, refined for efficiency and speed. Let’s explore the Soroban’s historical significance and how it bridges the gap between ancient counting and modern computing.

From Tally Sticks to the Soroban: A Brief History

The abacus is one of the earliest devices built specifically for computation. Counting boards with grooves or lines for moving counters were used in ancient Sumer, Egypt, Greece, and Rome. Over time, the concept evolved into framed bead abaci. The Roman abacus had beads slid in slots, and the Chinese suanpan (dating back over 2,000 years) featured a classic 5+2 bead configuration: 5 “earth” beads and 2 “heaven” beads per rod​ (kartsci.org). This 5+2 design was versatile – it even allowed calculations in hexadecimal (base-16) in addition to decimal​.

The Japanese Soroban emerged after the abacus made its way to Japan around the 14th century​. Early Japanese abaci mimicked the 5+2 design, but innovators saw room for improvement. By the early 20th century, the Soroban was standardized to a 4+1 bead system (4 one-value beads and 1 five-value bead per rod)​. Reducing the number of beads streamlined operations: four lower beads (each worth 1) and one upper bead (worth 5) are all you need to represent any digit 0–9 in a single column​. Fewer beads meant faster manipulation and less chance for error, since there were no unused extra beads cluttering the calculation. The Soroban’s efficiency quickly proved itself, and this 1-above, 4-below layout hasn’t changed since. (For reference, a standard Soroban has around 13 rods, each a decimal place—more than enough to handle very large numbers.)

In essence, the Soroban took a design that had been effective for centuries and honed it to perfection for base-10 arithmetic. This humble frame of beads became the calculator of choice across Japan and much of East Asia well into the 20th century, even as mechanical calculators began to appear.

Speed and Accuracy: Abacus vs. Early Methods and Slide Rules

One key reason the abacus remained relevant for so long is its speed and accuracy in skilled hands. Compared to writing out calculations on paper or using earlier methods like tally sticks, an abacus can be blazingly fast. For example, adding a long list of numbers on paper requires writing each intermediate sum and carrying digits mentally, which is slow and error-prone. On a Soroban, a trained user can simply flick beads up or down for each number, visually and tactilely keeping track of the total. There’s a satisfying clack as numbers resolve almost physically. With practice, operators develop a muscle-memory rhythm – it becomes more mechanical skill than mental math​. In fact, expert abacus users in Japan (called soroban masters) can often add or subtract numbers quicker than someone using a basic electronic calculator!​

A famous demonstration of the abacus’s speed came in 1946, when U.S. Army personnel in occupied Japan organized a contest between the Soroban and an electric calculator. In a series of timed tests (addition, subtraction, multiplication, division, and a mixed-problem round), the abacus won 4 out of 5 rounds. The Soroban operator, Kiyoshi Matsuzaki, outpaced the electromechanical calculator for all tasks except one – a resounding proof of the abacus’s efficiency. As one report put it, “the machine age took a step backward” that day, with the centuries-old abacus dealing defeat to a modern calculator, its victory described as “decisive”.​ While a personal electric calculator of the 1940s was a noisy, cumbersome device, the abacus was silent, portable, and, in the right hands, faster for everyday arithmetic.

What about more complex calculations like multiplication or working with large numbers? This is where the learning curve of the abacus shows. Anyone can grasp the basic idea of moving beads to count, but using it at high speed requires memorizing complementary pairs (to efficiently handle carries and borrows) and lots of practice. Multiplication and division on an abacus are typically done through sequence of simpler steps – essentially break the problem down into additions or subtractions based on place values. For instance, to multiply, you set up one number and add it to itself repeatedly (with appropriate shifts, similar to long multiplication on paper), or use methods taught in abacus schools that rely on knowing your times tables​. The Soroban can handle surprisingly advanced operations: traditional techniques exist not only for the basic four functions but even for things like square roots and cube roots. It’s genuinely a general-purpose calculator – as long as the operator knows the procedure.

Now, consider the slide rule, another pre-digital calculator that succeeded the abacus in many places. A classic “log log duplex decitrig” slide rule (a mouthful referring to high-end slide rules with multiple log scales and trig functions) was the pride of engineers by the mid-20th century. Slide rules work on a completely different principle: analog logarithmic scales. By sliding scales relative to each other, users could multiply or divide numbers by adding lengths (logarithms) on the rulers. This made tasks like finding products, quotients, squares, or even sines and cosines very quick – essentially one or two steps to get an answer. In terms of speed, for operations like multiplication or division, a slide rule likely beats an abacus; you just align the markers and read off the result, rather than do multiple additions. But slide rules have an inherent limit in accuracy: a typical 10-inch slide rule is good for about 3 significant digits of precision at best​. The answer you get is an approximation; you’d still need to estimate where the decimal point goes, and you can’t get an exact figure beyond those ~3 digits. For many engineering tasks circa 1950, three digits were “good enough”​ – after all, physical measurements often weren’t more precise than that. The abacus, by contrast, is a digital device: it deals in whole numbers and exact quantities. If you add 1234 and 5678 on an abacus, you get exactly 6912, not 691.2 or something – no rounding involved. This made the abacus more suitable for accounting or commerce, where exact totals of money or goods were needed, while slide rules were suited for scientific calculations where a ballpark figure was acceptable.

The learning curve of the two devices also differs. A slide rule requires understanding the concept of logarithms and logarithmic scales – a bit of abstract math that might intimidate a beginner. However, once you grasp it, using a slide rule is fairly straightforward for standard tasks, and instruction manuals (often included with the device) would guide new users through examples. On the other hand, a Soroban’s principle (each bead has a value, you physically count them) is more intuitive, but becoming proficient demands repetition and muscle memory. Japanese students historically spent considerable time drilling on the soroban for speed and accuracy. In short: Addition/subtraction is usually faster on the abacus (since that’s literally what it’s built for), while multiplication/division might be faster on a slide rule if only an approximate answer is needed. And while a slide rule can do things like trig or logs in seconds (things an abacus cannot do directly at all), the abacus will give you an exact integer result for arithmetic, which a slide rule never will. Each tool had its niche; in fact, they coexisted for some time – one might use an abacus for bookkeeping and a slide rule for engineering calculations.

To put things in perspective, consider that by the 1960s one might find a Soroban on a bank clerk’s desk in Tokyo, and a slide rule in an engineer’s pocket at Boeing. Both would be rendered largely obsolete in the 1970s by cheap electronic calculators, but they showcase two very different approaches to the same goal: making calculation faster and easier for humans.

How to Use a Soroban Abacus

Anatomy of the Soroban: The Soroban consists of a rectangular frame with vertical rods (usually an odd number of rods) and a horizontal bar dividing each rod​. Each rod has one bead above the bar (the “heavenly” bead worth 5) and four beads below the bar (the “earth” beads worth 1 each)​. To represent a number, you slide beads toward the bar: each earth bead pushed up counts as 1, and the heaven bead pushed down counts as 5. For example, to represent the digit 7 on one rod, you’d slide the 5-valued bead down against the bar (worth 5) and two 1-valued beads up (5+2=7). All beads pushed away from the bar mean zero on that rod.

Basic operations:

  • Addition & Subtraction: To add numbers, you typically “enter” the first number on the abacus, then add the second by moving beads upward (for addition) or downward (for subtraction). If a column exceeds 9, you carry into the next column (e.g. if you need to add 1 to 9 on a rod, you reset that rod to 0 and add 1 to the next rod to the left). This is analogous to how we do carries on paper, but the abacus lets you feel the carry as you flip beads over. Soroban technique uses something called complementary numbers: instead of directly adding a bead that isn’t there, you might add 10 and subtract a complementary value. For instance, to add 7 on a rod showing 6, you know 7 = 10 – 3, so you’d add 10 (i.e. carry 1 to next rod) and subtract 3 on the current rod. It sounds complex, but with practice these moves become second-nature, and they allow very rapid calculations without pausing to think through each carry. Subtraction is the reverse process (using complements to borrow). A skilled user can rapidly cascade carries/borrows across multiple columns without losing track.
  • Multiplication & Division: These are done by reducing the problem to a series of additions or subtractions, much like long multiplication/division by hand. One common method for multiplication on the soroban is to break the multiplication into smaller parts using the multiplication table (as taught by the Japanese Abacus Committee)​. For example, to multiply 123 by 45, you could multiply 123 by 5 (getting 615) and 123 by 40 (which is 123 * 4 * 10, so 492 * 10 = 4920), then add the results to get 5535. Each of those sub-steps (multiplying by a single-digit and handling the place value) is done on the abacus sequentially. There are specific techniques to streamline this process on the abacus, but it takes practice to do quickly. Division works in a similar stepwise way, essentially repeated subtraction (like long division) where you find how many times the divisor fits into portions of the dividend, one digit at a time.
  • Advanced operations: Impressively, the abacus isn’t limited to simple arithmetic. Historic texts and abacus schools teach algorithms for things like square roots extraction, using methods somewhat analogous to the long-hand square root algorithms once taught in schools. There are even techniques for cube roots and more​kartsci.org. These are quite advanced and would be considered esoteric skills today, but they demonstrate that the abacus is a complete computing tool in the mathematical sense. Essentially, any computation that you could do by hand with pen and paper, you can also do on an abacus – often faster.

The Soroban’s usability comes from its clever design: each rod is a full decimal digit. This means you can handle very large numbers by using multiple rods (just as each additional column in written notation is another power of ten). To help read large results, Japanese sorobans often mark every third rod with a dot or color to denote thousands, millions, etc., making it easier to distinguish place values​. This feature is one of the refinements that set Sorobans apart from earlier Chinese suanpans.

Learning to use a Soroban for basic calculations is not difficult – children in East Asia have done it for generations as a way to learn arithmetic. Mastering it to perform lightning-fast calculations, however, is like learning a musical instrument. It requires drills and practice until the movements become fluid. Once that skill is acquired, an expert can almost literally play the abacus, solving problems with a flick of the fingers. It’s no surprise that some competitions and performances feature people doing calculations on abaci at dazzling speeds, much to the awe of onlookers.

From Beads to Binary: The Legacy of the Abacus in Computing

The Soroban abacus may seem quaint next to today’s technology, but it represents a critical milestone in the evolution of computing. It was an early example of optimizing computation, allowing people to offload cognitive work onto a tool. This same principle underlies every advancement in computing: we build devices to automate or accelerate the work of calculation. The abacus led the way, demonstrating that a properly designed tool could vastly improve speed and accuracy compared to unaided human effort.

After the abacus came a succession of increasingly sophisticated inventions. The 17th century saw mechanical calculators like Blaise Pascal’s Pascaline (geared wheels to sum numbers) and Gottfried Leibniz’s Step Reckoner. By the 19th century, commercial mechanical adding machines and cash registers were common – these could add and subtract (and some, like the Curta or the Marchant, could do more) with a few cranks of a handle. Each step in this progression made computation a bit faster and required less human skill to operate. The analog slide rule (in widespread use by the late 1800s through mid-1900s) took a different route, leveraging mathematics to allow quick multiplications and other functions by simply sliding scales – a powerful tool, but one that traded away exactness for speed.

The real explosion in computing power came with the advent of electronics. By the 1940s, machines like the ENIAC (one of the first electronic general-purpose computers, built in 1945) could do in seconds what a roomful of human “computers” with desk calculators might take hours to do. From there, the trajectory shoots upward: vacuum tubes gave way to transistors in the 1950s, then to integrated circuits in the 1960s. Each generation was faster, smaller, and more energy-efficient than the last. In 1965, Intel co-founder Gordon Moore famously observed that the density of transistors on a chip seemed to be doubling every couple of years – an empirical trend that held for decades and is now known as Moore’s Law. This exponential growth in capability meant that by the late 20th century, computation was not just a million times faster than in the abacus era – it was billions of times faster. To illustrate: the computing power of a single microchip today is roughly 2 billion times greater than what a chip had in 1960​. That’s a mind-boggling increase in a relatively short time span. If you plot computing power over time (from abaci and mechanical calculators to modern microprocessors), you see a curve that starts shallow for millennia and then skyrockets upward in the 20th century – that’s the exponential trend made evident in hindsight.

Moore’s Law, and the advancement of technology it represents, can make devices like the Soroban appear obsolete. And indeed, in practical terms, almost nobody uses an abacus for daily calculations when we all have calculators on our phones and computers. Yet, the abacus still holds value, not only as a historical artifact but also as an educational tool. Just as some math teachers recommend slide rules or mental math exercises to build number sense, learning the abacus can impart a visceral understanding of place value and arithmetic. It’s a way to experience calculation in a tactile form, which can deepen one’s comprehension of what our modern abstract devices are actually doing under the hood. There’s also a certain poetic continuity in the fact that both the abacus and a modern computer ultimately break numbers down into simple states (beads either moved or not, bits either 0 or 1) and perform logical steps to manipulate those numbers.

Comparing the Soroban to a modern smartphone, one can appreciate how far we’ve come. The abacus’s wooden beads and a modern CPU’s billions of transistors might seem worlds apart, but they’re points along the same continuum – a testament to human ingenuity in computation. From moving stones on a counting board to shifting bits in a microprocessor, the goal has always been the same: calculate faster, more accurately, and with less effort. The Soroban abacus is a beautiful reminder that even in an age of gigahertz and terabytes, the fundamental challenge of computing – and the clever solutions we devise – is an age-old human story.

This post was assisted by ChatGPT’s new Deep Research mode, with edits and final review by the author.

Posted in Mini Museum, Tools | Leave a comment

We Have ChatGPT At Home

The recent release of DeepSeek-R1 has posed a challenge to the established players in the LLM scene. While it may not be quite as powerful as the latest OpenAI models, R1 has demonstrated “chain of thought” and “mixture of experts” reasoning behavior, and can solve at least some puzzles requiring logical thought.

More interestingly for home users skeptical of relying on AI hosted in mainland China and under the control of the CCP, various “distilled” models of DeepSeek-R1 have been released, with parameter sizes ranging from 1.5B to 70B. All of these will run fairly reliably on $1000-class enthusiast PCs — and the smaller models will run nicely on even modest hardware.

Probably the easiest way to get up and running with these models is to download and install Ollama, which can download, load, and run models from a single command prompt. Once Ollama is installed, just type

ollama run deepseek-r1:14B

and Ollama will download, install, and run the 14B parameter distilled model.

These “distilled” models are actually “Qwen” (from Alibaba) and “Llama” (from Meta) base models, finetuned with reasoning data produced by DeepSeek-R1. The 70B model, in particular, seems quite stable and fairly capable of dealing with logical problems of moderate complexity. This largest distilled model was able to solve a word problem involving the ages of three people (three equations and three unknowns) 90% of the time or more. (It got the answer correct 17 times in a row and then got it wrong 6 times in a row, which strongly implies the memory is not being correctly cleared.)

Compared to GPT-o1 (and probably the new GPT-o3-mini), the distilled DeepSeek models seem to struggle with more complex questions. When asked how many gold ingots a Minecraft character can carry (via a disguised question about regular and “magic” boxes), the DeepSeek distilled models have trouble coming up with an optimal plan, whereas GPT-o1 came up with an optimal or nearly-optimal approach right away.

So while we may not have “ChatGPT at home,” it is still impressive to see models running locally that can not only carry on a conversation but can reason. I see “cloud computing” as a necessary evil at best, since ultimately “the cloud” is “somebody else’s computer,” and that somebody else could decide to stop providing the service at any time. From the perspectives of privacy, reliability, and democratization of technology, it’s nice to have the option to self-host.

And more competition is always a good thing. I don’t think it’s a coincidence GPT-o3-mini just rolled out. OpenAI wants to remain in the spotlight.

And maybe this will help “Open”AI decide to release actually-open models.

Posted in Current Events, Digital Citizenship, Machine Learning / Neural Networks | Leave a comment

Running On Empty: Adventures in a Kia Niro EV

When a recent flight to Maine to see my family was cancelled due to weather and replacement flights were significantly more expensive, I decided to do the reasonable thing and rent a late-model plug-in electric car and drive something like 1000 miles round-trip.

The Kia Niro EV that I rented.

The figures available online led me to believe that I would need 2-3 recharging stops of about an hour each. With highway speeds comparable to those of a gasoline car, this would mean 2-3 extra hours. So my 8-9 hour trip would turn into a 10-12 hour one. No big deal, I thought.

The trip got off to a dubious start right away, since although the website said the fuel policy was full-to-full, it started off at 57%. I then found out that this meant that I’d be lucky to get 100 miles before needing to recharge. Sure enough, I wasn’t even out of NJ before I was looking for a charger. And then (maybe due to cold weather) the 10%-80% charging time was closer to two hours than the 57 minutes quoted online for a Level 3 charger.

I eventually found a charger station, waited long enough for an available charger to remind me of the 1970s gasoline shortages, waited another two hours or so for the 80% recharge, and continued on my way. Five or six long charging stops later, I eventually made it to my destination. 500 miles took some seventeen hours; I finally arrived just after 5AM, having picked the car up at noon, driving and charging/napping continuously since then.

The charging situation really points out internal-combustion vehicles’ superpower — fuel energy density. One liter of gasoline stores 31.54 megajoules (MJ) of energy, or about 9kWh. This is about 1/7 of the Niro’s total energy capacity; the equivalent amount of energy to charge the Niro completely (0% to 100%) would take maybe a minute or so for a gas pump to dispense. Gas pumps can transfer an astonishing amount of energy per minute.

Many (most?) of the chargers I encountered along the way were “350kW” chargers, apparently capable of charging certain vehicles at something like 8x the speed I was getting from them, since charging rate is limited by both the charger and car capabilities. Admittedly, charging on a cold winter day didn’t help, but this is one of the places where higher-end brands like Tesla distinguish themselves. Decreased charging time would 100% be my top suggestion for improving the Niro EV.

Most EVs are (technically) capable of charging from a 15A wall outlet, but naturally my rental didn’t have the proper adapter cable. Two days later, Amazon came through with the correct charging cable, and I could start recharging. Since the outlet is limited to ~1.5kW, a full charge from a wall outlet can take some forty hours(!) I left it plugged in for a day and a half.

The J1772 / CCS charging port, located on the front of the Niro EV.
The top connector is for control and (slower) AC charging; the bottom pins handle fast(er) DC charging.
A J1772 Type 1 charging cable for the Niro EV (and others).
It charges at ~15A / 120V — and can take some forty hours to charge!

In terms of driving, the Niro EV is a fun little car. Even in Eco mode (which I used for nearly the whole trip), it’s responsive enough to be driven safely — and in Sport mode, it’s actually fairly zippy (if you’re expecting normal-car performance and not Tesla’s Plaid Mode.) Visibility is good, steering, acceleration, and brake pedal respond predictably, and the car feels stable. Comfort is good enough, especially for a small car. There is plenty of cargo space, too; I’m a pack rat but didn’t even have to put the rear seats down in order to bring home several boxes’ worth of flea market finds. There’s at least one 12V power outlet, and several USB-A and USB-C outlets. Keeping the car charged was a challenge, but my phone stayed on 100%.

For drivers not used to modern conveniences, though, the driving-assistance functions steal the show. I was expecting some form of cruise control, since that’s been available since at least the 50s, and should be standard by now. The Niro turns out to not only have cruise control, but adaptive cruise control that can maintain a set speed and/or a set following distance to the car in front of you, slowing down and speeding up as needed. This greatly reduces driving fatigue.

There’s also a lane-keeping feature, which will actively steer the car to keep it in its lane (as long as you keep a hand on the wheel). Naturally, there’s a nice rear-view camera, too, as well as modern GNSS navigation and Bluetooth audio/phone connectivity. It will even help you find EV charging stations, although apps like PlugShare are far more up-to-date.

The driver’s display on the Niro EV, in its natural habitat (hooked up to a charger).

Living in the city, I usually don’t really have need for a car, and actually hadn’t driven to speak of since the Before Time. At one point, I had more miles driven backwards than forwards in the past two years’ time, and more miles piloting a boat under sail than both driving directions put together. In terms of familiarity with modern cars, my previous daily driver was a 1997 Ford Escort, which is probably less sophisticated than some 2024-model mopeds out there — gas pedal, brake pedal, speedometer and gas gauge, and not a whole lot more. Crank windows!

Lane-keeping seems to use video (probably mounted in the rearview mirror assembly), while adaptive cruise and the “front safety features” rely on a radar transceiver hidden behind a black plastic plate mounted underneath the front license plate. Coming back home through a snowstorm, I learned that this radar panel is prone to collecting snow and slush, and with enough snow built up, the radar stops working.

When this happens, the Niro throws a bunch of errors, disables the “smart cruise” features — and unfortunately, it doesn’t let you fall back to an old-school (“stupid?”) cruise mode, where the car simply maintains a set speed. Lane-keeping still works, but until you stop and clear off the snow, you’re stuck controlling the car’s speed manually with the pedal like it’s still the 1900s. (I’m guessing the lawyers didn’t let them run the cruise control in degraded mode since this might be confusing to drivers.)

Fortunately, on a long road trip, your next charging stop is never very far away, and once the radar plate is once again clear of snow, you’re back in 2024 flying your short-range spaceship. And at least you can run the heated seats and climate control while charging.

I love living in the future. I just wish it would charge a little more quickly.

Posted in High Voltage, Power, Reviews, Toys | Tagged , , , , , , , , , | Leave a comment

Mini Museum: Arduino Uno

The Arduino Uno has been an important part of the electronics hobbyist scene its release in 2010 (as a refinement of earlier boards such as the Arduino Duemilanove.)

A typical Arduino Uno R3 microcontroller board.

I picked one up in 2011 to see what this new “Arduino” craze was all about, and discovered what is still to this day the easiest way I’ve found to get a microcontroller-based whatever up and running. The Arduino IDE, and especially the included libraries and example sketches, make programming as easy as it gets (at least, for the era before LLMs could plausibly write most simple sketches for you.)

Due to its popularity over the past fourteen years or so, the Uno is still somewhat relevant in the Maker community, although it is inevitably being replaced by newer boards such as Espressif’s ESP32. But the IDE and libraries have proven so popular and easy to use that even newer boards like the ESP32 can be readily programmed in the Arduino IDE, once you have downloaded and selected the appropriate core.

The example in the Museum is a garden-variety Arduino Uno R3 board — the “default” model of Arduino. If someone talks about an “Arduino” project and doesn’t specify which board they used — it’s a good bet it’s this one. The Uno is, at least currently, the poster child for all things Arduino, and it deserves its small but important place in the Museum.

Working with a 16MHz, 8-bit microcontroller with 32kB of Flash in 2024, on a workstation with an AI-capable GPU with over a thousand cores does seem quaint — but the Arduino ecosystem (mostly, the libraries) was and is absolutely a revolution in hobby electronics.

Arduino Uno specs:

  • Microcontroller: AVR Atmega328P (20MHz, 8-bit, 32kB flash, 2kB RAM, 1kB EEPROM)
  • Operating voltage: 5V (USB, or 7-12V DC supply via onboard regulator)
  • Analog input pins: 6 (A0 through A5; these can also do basic digital I/O)
  • Digital I/O pins: 14 (6 capable of PWM output)
  • Interface: USB-B
  • Compatibility: Windows / Linux / Macintosh
Posted in Arduino, C, Coding, Digital, Electronics, Mini Museum, Tools, Toys | Tagged , , , , , , , , , | Leave a comment