Build The CPU, Then Build The Calculator

It’s possible that among Hackaday readers are the largest community of people who have designed their own CPU in the world. We have featured many here, but it’s possible that not so many of them have gone on to power an everyday project. Step forward [Baltazar Studios] then, with a scientific calculator sporting a self-designed CPU on an FPGA.

The calculator itself is nice enough, with a smart 3D printed case, an OLED display which almost evokes a VFD, and very well made buttons. But it’s the CPU which is of most interest, because while it follows a conventional Harvard architecture with a 12-bit instruction set, it works with 4-bit nibbles. This choice follows one used by HP in their calculator designs, seemingly because it can be optimised for the binary coded decimal which the calculator uses.

With calculators being yet another app on our spartphones or comnputers, there seems to be less use of calculators outside of education in 2026. But if you are a calculator user there’s nothing like a calculator you made yourself, and with a CPU of your own design it has few equals. We like this project almost as much as we like the Flapulator!

17 thoughts on “Build The CPU, Then Build The Calculator

    1. I’ll gladly exchange my so-called “smartphone” (it really isn’t, it has to be told what to do) with the spartphone, which I speculate is short for “spartan phone”, which is what I really need, simple phone with minimum features that Just Works When It Has To Work. Oh, and I’ll exchange the exorbitant price for the spartan one, too, while at it. Down to $50 per, because that’s all I am willing to spend on one.

      Seriously, the amount of tweaking my cell phone had to go through to become stable enough to be usable counters entire point of having the equivalent of Cray computer in my pocket. It is so dumb, it doesn’t know how to turn what I don’t need (for example, the incessant location triangulation – I do NOT need it, unless I am using Maps, and I do NOT want it outside of one particular use).

        1. A search with the magic words “pushbutton cap transparent” on Ali gives a bunch of results. I think the buttons are “B3F” and the caps are “A14”, but there are other models too.

          1. Thank you! It’s so hard to look for things when you don’t know the name, and boy is the name inconsistent, sometimes it’s “pushbutton”, sometimes “tactile switch”. Sometimes the switches are labelled B3f, sometimes the caps …

        2. If size is not a problem there are also Cherry MX keycaps in that style, very handy. Combined with the hardest clicky keyboard keys they make a wonderful interface.

      1. I also bought that kit (with PMMA casing) and I quite liked it.

        What I liked:
        * The simple but yet usable PMMA housing. (It is a bit finicky though, It’s not ideal).
        * The PCB with the ATMEGA328. (reprogrammable).
        * The low cost of the kit.
        * The buttons with the paper inlays.
        * The buttons can be bought separately, and in bulk (cheap).
        * Built in HD44780.

        What I don’t like about that kit is the firmware. it’s very buggy, and it can’t even compute properly.

        I bought it out of curiosity of the buttons, and the reprogrammable atmega and display. For me it’s more a basis for a development kit with keyboard and display. The calculator is just a little extra.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.