Hackaday Prize Entry: DIY ARM Scientific Calculator

What does a hacker do when he or she wants something but can’t afford it? They hack one together, of course. Or, in the case of [Ramón Calvo], they thoughtfully plan and prototype. [Ramón Calvo] wanted a scientific calculator, but couldn’t afford one, so he designed and built one himself.

[Ramón] started off with Arduino but upgraded initially to Freescale’s Freedom KL25Z development board upgraded to an ARM Cortex-M0+ programmed using mbed. The display is an Electronic Assembly DOGL-128 128×64 pixel LCD. [Ramón] did a couple of iterations on the PCB, going from a large DIY one in order for the Arduino version to work, to the current, smaller version for the ARM chip with hand soldered SMD components. After that, [Ramón] looked into the algorithms needed to parse mathematical input. He settled on the shunting-yard algorithm, which converts the input into Reverse Polish Notation (RPN), which is easier for the software to work with.

[Ramón] has a ton of features working, including your standard add, subtract, multiply and divide operations, square root, nth root and exponentiation, trigonometry, log and log10, and factorial(!) There are a few things still on the to-do list, such as low power and a graphing mode, and there are a couple of bugs still in the system, but the overall system is up and running. [Ramón] has put up the schematic and KiCAD files up on his Hackaday.io project page along with the bill of materials.

We’ve had a few Hackaday prize entries in the form of calculators, such as this one with Nixie tubes and this one that emulates 70’s HP calculators.

59 thoughts on “Hackaday Prize Entry: DIY ARM Scientific Calculator

      1. Dollar Tree
        Signs on window, and all throughout the store, says “Everything’s $1”
        Yet they would not give me ‘everything’ for a dollar.
        False advertising – I tell ‘ya!!

  1. Great project, and a perfect use case for these rarely used 128×64 monochrome LCDs. Now add graphing, scripting (the RPN engine could be replaced with a Forth interpreter) and maybe some small games like Snake, Tetris, Color Switch (without color of course) or Flappy Bird.

  2. Making a calculator is great, but affordability doesn’t sound like a plausible motive. Used TI-83s are $20 on eBay. You can’t buy an LCD, KL25Z, and manufacture a couple of iterations of a PCB for that little.

  3. “[Ramón Calvo] wanted a scientific calculator, but couldn’t afford one, so he designed and built one himself.”
    I find that very hard to believe. If you add up the cost of the LCD, the components (discrete switches?) and the cost of multiple iterations for the PCB, it will surpass the cost of a decent scientific calculator which can be had around 10 bucks.

    1. In some places the import fees on anything past first class mail are ridiculous, pretty much excluding used from ebay which then tends to get taxed somewhere around the 20-100% or more of new price. In any case DIY has sweet geek cred in the already dorkified math study areas and at least you are not giving the manufacturer some insane markup on something which should be a few $$ after 30 years if it followed trends, the injection molded plastic and LCD being the most expensive to make components.

    2. Not only that, but he spins the board rather than do some very simple mods (adding a power switch and a reverse protection diode) to the original one. Affordability was obviously not an issue.

  4. Wait, he can’t afford a scientific calculator “but upgraded initially to Freescale’s Freedom KL25Z development board upgraded to an ARM Cortex-M0+ programmed using mbed. The display is an Electronic Assembly DOGL-128 128×64 pixel LCD. [Ramón] did a couple of iterations on the PCB, going from a large DIY one in order for the Arduino version to work, to the current, smaller version for the ARM chip with hand soldered SMD components.”

    ,,,and manufactured pcbs?

    How much are scientific calculators at your region? I can grab one for $15 around the corner.

    1. And a slot for SD cards to load scripts, play music and view ultra-low-res 128×64 monochrome videos.
      And WiFi to stream these monochrome videos from the web (“Does your calculator have YouTube too?”).
      And some infrared LEDs to use the huge keypad as a TV remote control (“What does the factorial key do?”).
      And an infrared sensor to implement two-way communications between calculators (“Do you want my games?”).
      And a microphone to do real-time sound processing (“Can I turn my voice into Darth Vader’s with a calculator?”).
      And a black epoxy blob to make it look like off-the-shelf calculators (“Did you buy it from Aliexpress?”).

        1. Well, I also forgot the telnet client, MOD tracker, Kodi remote, Forth IDE (with debugger), monochrome video editor, Doom clone, SPICE simulator, Minetest client and a WAP web browser (are WAP sites still up?).
          This calculator has enough power to beat anything that contains the digit ‘7’ and the lowercase letter ‘i’ (especially Intel and Apple products). Just don’t call it “Calculus 7i”.

          1. Google killed their sweet wap gateway years ago, it was pretty cool to use with the java wap browser when I was rocking an old Linux Sharp Zaurus SL-5500 irda tethered to my nokia 6100 candybar phone but bandwith pinched metered data ~US$10/Mb.

  5. I dont want to believe that money was main reason to build this calculator. few years ago, when I was in first year at university i bought older HP calculator for aprox. 15Eur. and i remember that there was lot of them for sale.
    But if author wanted learn something, needs some special functions or special interface, may be some wireless comunication for “coworking” during exams :-D why not. with classmates at university we thinked about integrate bluetooth to calculator, send input from calculator via bluetooth to laptop, from laptop to wolfram alpha and results (for example solution of differential eqotation) back via bluetooth to calculator and show on display, but we never realize this idea.

    1. The (older at least)TIs have serial comm ports, probably easy enough to shoehorn a 433mhz serial comms into the calculator, then 433-serial-usb dongle. Damn, it has been something like 20 years since I was barely competent on TI basic; and real math too I suppose….

    2. Well, believe it or not, many professors won’t let you bring anything more sophisticated than a four-function calculator in to an exam(okay, maybe square root), since anything smarter than that can be use for all manner of cheats. So the REAL challenge is to build something that looks like a crappy four-function, but can do everything else. Kind of hard to stealth the graphic display, but nobody said this would be easy.

  6. Am I the only one to notice the lack of a way to turn off this calculator? That coin cell shouldn’t be very happy to power a chip doing nothing. Also,
    > There are a few things still on the to-do list, such as low power
    The coin cell shouldn’t be happy at all.

    1. Let me ask around the coin cells here, Ill gather them together and get their take on the emotional state of their usage, Then we shall see if a union should be formed to create fair and balanced loads for coin cells everywhere!.

    2. A lot of MCUs can go into such a low-power mode, that they’re essentially off, the current drain starts to become insignificant compared to a battery’s natural shelf life. So if he puts that in, depending on his chip, it might well be fine.

    3. He covers all of this in his hackaday.io page, https://hackaday.io/project/19909-scientific-calculator. Adding a power switch was his stated reason for the second version of the PCB, and his original choice of ports for the keyboard inputs precluded turning it back on with an interrupt from a key. (Putting an MCU into ultra-low-power mode is easy in software. Getting it to wake back up is another thing.)

      I do realize the guy is probably pretty young, but putting “low power” on the todo list speaks volumes about his experience level. Low power isn’t something you “add on”.

  7. Only one thing. If I ever for some alternate universe reason, I want to make a TI calculator knockoff, it will have to be 320×240 or more to make graphing half usable. 480 or more preferred. (I had to teach with those fricking calculators). So, why not up the resolution in this project? You will be glad you did.

    Ohhh. How about adding good graphics to what is functionally an HP15C? Hmmm….

    1. I beautiful project or kit would be a new board/LCD or e-ink and use the reasonably tough plastic case and maybe the hacked ROM from a used calc.
      I wonder if we could get it to work on solar with a modern processor and maybe a supercap and single AAA in the battery bay.

  8. There is the very capable open source firmware calculator WP34s out there, using the HP 30b hardware:

    And the successor, WP43s, is already in development, based on hardware of the DM-42 from Swiss Micros:

    Why reinvent the wheel? Why not join the development efforts for these projects?

  9. I don’t get it. If you have a cell phone, you have a graphing calculator. I GET the idea of making a physical one for the educational component, but claiming you don’t have money would also mean you don’t even have a cell phone. That’s a little hard to believe.

    1. Try using a smartphone as a calculator and then compare that to using an actual calculator. Soft buttons just don’t feel the same. That said, any remotely modern smartphone would graph way faster than any graphing calculator I have seen, but I rarely actually use the graphing feature.

      Maybe the correct answer is to make a phone case that adds the hard buttons, a second battery, and maybe even a few other features like an IR thermometer.

    2. I was wondering why not a RPI-0 with a display, Li-Po, and a button matrix then just have it run wolfram or a graphing calc emulator on startup. Not convinced the project is about the money saving.

  10. Bottom line–quite a few here don’t like the contrived premise. Just say you wanted to build it. Why? Just because. Hackers, or people with hacker mentalities, can get with that sentiment every time.


  11. “Couldn’t afford” is very often with a tongue firmly in cheek around here. Which is a little bit of shame, really, because ghetto hacks are THE hacks. Admit it Hackaday visitor, being here, it is quite probable that when you were growing up your favourite fiction heroes were those kids who turned trash into cool tech, those teenage vigilante gangs’ resident nerds. Hacking is supposed to bring back power to powerless through applied knowledge, intelligence, and dare.

  12. Congrats on the build – I never got past the design stage.

    I was looking at a display that goes between a PC and a keyboard, along with pass-through USB connectors.
    The idea being: a particular keypress would “activate” calculator mode.
    No need for batteries, but keycap labels would be helpful.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s