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.
Inside a TI-84 Plus โ the mainboard, 2.5 mm link port, and battery bay the build taps into.
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.
| ๐ง 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. |
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
Full diagrams: docs/ARCHITECTURE.md.
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 |
| 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
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.
- 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.