GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - P1rate5ec/calpt: TI-84 Plus does real calculus over a phone hotspot โ€” cloud SymPy brain, LLM as translator only, security-hardened. Educational hardware+AI build.

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
brain
brain
 
 
calculator
calculator
 
 
docs
docs
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

๐Ÿงฎ calpt โ€” the Calc-AI-Bridge

A stock TI-84 Plus that does real calculus. Type DIFF X^2, get 2*X on the calculator's own screen โ€” no laptop, no home network, no jailbreak.

Seven lines of TI-BASIC send your question out the link port; an ESP32-C3 relays it over a phone hotspot to a cloud SymPy engine; the answer comes back on the calculator. SymPy does the maths โ€” the LLM only translates English.

calc mcu brain transport license


Inside a TI-84 Plus โ€” the mainboard and 2.5mm link port

Inside a TI-84 Plus โ€” the mainboard, 2.5 mm link port, and battery bay the build taps into.


๐ŸŽ“ Educational use & academic integrity

This is a hardware + AI engineering project โ€” reverse-engineering the TI link protocol, safe level-shifting off an unregulated battery bus, a security-hardened API relay, pinned-TLS on a microcontroller, and symbolic math. It's meant for learning and tinkering with hardware you own.

Don't use it to cheat. Using it during exams or anywhere calculators are restricted is dishonest, usually against the rules, and can carry real academic and legal consequences. Build it to understand how the pieces fit together โ€” that understanding is the actual prize.


โœจ Why it's interesting

๐Ÿง  SymPy computes, the LLM only translates LLMs pattern-match and get hard calculus wrong. Here the model never produces a number โ€” it rewrites English into a command that a parser validates, then SymPy solves it exactly. The interpretation is echoed back so a wrong reading is visible, not silent.
๐Ÿ”’ Hardened by design Bearer-token auth (fail-closed), a character whitelist instead of sandboxing eval, and the API key isolated on the server โ€” never on the device. 5 injection payloads are regression-tested on every run.
๐Ÿ”Œ Honest electronics The link port idles at battery voltage onto a 3.3 V pin โ€” so a BSS138 level shifter isn't optional. The docs explain why, with the exact 9-wire hookup.
๐Ÿ“ก Runs anywhere Phone hotspot only. No laptop, no home Wi-Fi, no cloud account on the device.
๐Ÿงพ 7 lines of TI-BASIC No jailbreak, no assembly, no app. The calculator's own screen is the UI.

๐Ÿ—บ๏ธ How it works

flowchart LR
    C["๐Ÿงฎ TI-84\n7-line TI-BASIC"] <-->|2.5mm link| S["๐Ÿ”Œ BSS138\n5V โ‡„ 3.3V"]
    S <--> E["๐Ÿ“ถ ESP32-C3\nArTICL ยท TLS ยท NTP"]
    E <-->|"HTTPS + Bearer\n(phone hotspot)"| B["โ˜๏ธ Brain\nSymPy + gate"]
    B -. "LLM translates\nEnglish only" .-> B
Loading

Full diagrams: docs/ARCHITECTURE.md.


๐Ÿš€ Build it

Four parts โ€” follow them in order:

Step Guide
1. ๐Ÿงฐ Wire the hardware docs/HARDWARE.md โ€” BOM, the 9 wires, shifter pin order, pre-solder checks
2. โ˜๏ธ Deploy the brain docs/SERVER.md โ€” run brain.py, self-test, deploy to Railway
3. ๐Ÿ”Œ Flash the ESP32 docs/FIRMWARE.md โ€” libraries, board settings, secrets.h
4. ๐Ÿงฎ Enter the program calculator/PROGRAM.md โ€” the TI-BASIC, token by token
โ–ถ๏ธ Use it docs/USAGE.md ยท Stuck? docs/TROUBLESHOOTING.md

Try the brain in 30 seconds, no hardware:

cd brain
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python brain.py test          # 22 checks: maths + injection + routing

๐Ÿ“ฆ What's in this repo

brain/          the cloud compute server (SymPy + Flask) โ€” original, MIT
  brain.py      solver ยท bearer auth ยท char whitelist ยท English router ยท self-test
  requirements.txt ยท Procfile ยท .env.example
firmware/       secrets.h.example (config template โ€” no code redistributed)
calculator/     PROGRAM.md โ€” the 7-line TI-BASIC and how to enter it
docs/           HARDWARE ยท FIRMWARE ยท SERVER ยท ARCHITECTURE ยท USAGE ยท TROUBLESHOOTING

Attribution. The ESP32 link-layer and calculator integration build on ChromaLock/TI-32 and KermMartian/ArTICL. This repo does not redistribute their code โ€” it documents the build and contributes the original cloud brain, documentation, and calculator program. Clone TI-32 for the firmware base and apply the config in docs/FIRMWARE.md.


โš ๏ธ Safety notes

  • The link port carries raw battery voltage โ€” never wire it straight to a 3.3 V GPIO. Use the shifter.
  • Batteries out before USB if you tapped battery 5V.
  • Keep your LLM key server-side only, with a spend limit.

MIT Licensed (this repo's original work) ยท Made by P1rate5ec

โญ Star it if you learned something.

About

TI-84 Plus does real calculus over a phone hotspot โ€” cloud SymPy brain, LLM as translator only, security-hardened. Educational hardware+AI build.

Topics

aiarticlcalculatoreducationesp32esp32-c3flaskhardware-hackinglevel-shifterreverse-engineeringsympyti84

Resources

Readme
License

Contributing

Contributing
Activity

Stars

4 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.