ESP32 CYD Scientific Calculator Page


Home                               Craigs Pages                               Heathers Pages

January 10, 2025

For some reason I cannot stop creating applications for the Cheap Yellow Display (CYD). I have no idea if this calculator would be of any use to anyone but it was fun to development. The other CYD applications I have created are a GPS and a Bluetooth MP3 music player.



This is the welcome screen that is presented when the application first starts up. After a short delay, the main calculator screen below will be presented.

This is the main calculator screen. The functions of each key is described below.

Key Definitions and Functions

Key Marking
Key Meaning
Description
SR
Square Root
Takes the square root of the number on the top of the stack
T^X
10 to the X power
Raises 10 to the number on the top of the stack
Y^X
Y to the X power
Raises the the number second on the stack to the number on the top of the stack
CHS
Change Sign
This key has 2 uses. 1) If inputting a number in scientific notation it controls the sign of the exponent entered. 2) Changes the sign of the number on the top of the stack.
SIN
SIN
Returns the sin of the number of radians on the top of the stack.
COS
COS
Returns the cos of the number of radians on the top of the stack.
TAN
TAN
Returns the tan of the number of radians on the top of the stack.
EEX

Changes numeric input to scientific notation
D>R
Degrees to Radians
Converts the number of degrees on the top of the stack to radians
R>D
Radians to Degrees
Converts the number of radians on the top of the stack to degrees
FIX
FIX Decimal Places
When this key is pressed the next numbered key sets the number of decimal places used for numeric display
SWP
Swap Stack Entries
Swaps the top 2 stack entries
M>I
MM to Inches
Converts the number of millimeters on the top of the stack to inches
I>M
Inches to MM
Converts the number of inches on the top of the stack to millimeters
CLR
Clear
Clears the stack and then pushes 0.0 onto the stack
ENT
Enter
Pushes the number being input onto the stack
/
Divide
Divide the number second on the stack by the number on the top of the stack
*
Multiply
Multiply the top 2 numbers on the stack
-
Subtract
Subtract the number second on the stack from the number on the top of the stack
+
Addition
Add the top 2 numbers on the stack
.
Decimal Point
Adds a decimal point into the number being input
BS
Back Space
Erases the last numeric digit entered
0 .. 9
Number Keys
Adds the key's value into the number being input

Further information and Arduino code for this project available here.

Questions and comments to me Craig at: calhjh@gmail.com


Home                               Craigs Pages                               Heathers Pages