GithubHelp home page GithubHelp logo

cg-35_calculator's Introduction

Retro RPN Calculator

The CG-35 is a CircuitPython powered HP-35-like RPN calculator for the Adafruit ESP32-S3 Feather and 3.5-inch TFT FeatherWing display with capacitive touch. The calculator consists of a 10-digit LED display with 20-digit internal calculation precision. The emulator code is augmented by the micropython udecimal library adapted for CircuitPython by @jepler (Thank you!).

The CG-35 Retro RPN Calculator

The CG-35 calculator emulates the HP-35 calculator's v2.0 firmware where the change sign (CHS) key is active only after digit entry has begun. Calculation accuracy of monadic, dyadic, and trigonometric functions was improved. An error descriptor message area just below the primary display was added.

The calculator's graphical layout was designed to mimic the aspect ratio of the original calculator. Because of the relative small size of the buttons, touchscreen accuracy is important, requiring the use of a capacitive touch screen rather than a resistive touch screen.

For audible key press and status feedback, connect a piezo speaker from pin A0 to ground.

Implementation Notes

Hardware:

Software and Dependencies:

Optional/future features:

  • Implement display brightness control.
  • Adjust for automatic scientific notation conversion for entered values < |1| with a negative exponent > -6. This is an inherent behavior of the Decimal class in micropython, CircuitPython, and CPython.
  • Purge the T register when calculating trigonometric functions to fully emulate the HP-35 process.
  • Incorporate a selectable degrees/radians mode with indicator (enhancement).
  • Incorporate a selectable scientific/engineering/fixed decimal point mode (enhancement).
  • Add a setup button for setting initial parameters (enhancement).

cg-35_calculator's People

Contributors

cedargrovestudios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cg-35_calculator's Issues

Add UI features for trig mode, notation, and setup

  1. Incorporate a selectable degrees/radians mode with indicator.
  2. Incorporate a selectable scientific/engineering/fixed decimal point mode.
  3. Add a setup button for setting initial parameters and for initiating the touchscreen calibration utility.

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.