Skip to content

apoluekt/OpenRPNCalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenRPNCalc

Open-source and open-hardware scientific RPN calculator

Introduction

OpenRPNCalc is a scientific calculator based on STM32 microcontroller. Its source code, schematics and 3D-printed case design files are released under open license.

The hardware is inspired by the SwissMicros DM42 calculator (which itself mimics the famous HP-42), but designed from scratch. Firmware-wise, however, there is no intention to simulate programmable HP series. Currently, the calulator features:

  • Reverse Polish notation with 4-element stack.
  • Double-precision arithmetics.
  • "Standard" scientific calculator functions (trigonometric, logarighms, exponentiation, square root and power).
  • Error function (erf) and its inverse (erfinv), Gamma and log(Gamma) functions, number of combinations and permutations.
  • Fixed, scientific (SCI) and engineering (ENG) display modes (including SI prefixes in ENG mode), variable 3-10 digits precision.
  • Calculations with uncertainties using error-propagation formulas (UNCERT mode). Something that I've never seen in any of the hardware calculators, and very rarely is present in the software ones.
  • Formulas from relativistic kinematics (center-of-mass two-body decay momentum, conversion between angle and pseudorapidity, beta and gamma factors).
  • Low power consumption (~10 uA in standby mode with LCD display on and 2-3 uA with LCD off).

Hardware overview

The calculator is based on low-power 32-bit ARM microcontroller STM32L476 running at 8 MHz. The display is Sharp memory LCD module LS027B7DH01 (400x240 pixel monochrome). Keyboard uses light-touch tactile switches Panasonic EVQQ2B01W (50g actuation force). All electronics runs off the 3V lithium battery (CR2032) that should be sufficient to provide power for several years of operation.

The case and keyboard is made of four 3D printed parts (top and bottom parts of the case, keypad and switch spacer). The two parts of the case are held together by simple snap fit joints, no screws are needed.

Contents of the repository

  • Code: STM32 firmware created with STM32Cube IDE
  • Hardware/Schematic: Schematic (calc.sch) and PCB layout (calc.kicad_pcb) for KiCAD, Gerber files for PCB production.
  • Hardware/Case: 3D models for the enclosure and keypad in OpenSCAD (OpenRPNCalc.scad ), STL files for 3D printing, python script and PDF file for printed keyboard sticker.
  • Doc: Documentation and images.

Documentation

About

Open-source and open-hardware scientific RPN calculator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published