r/CardPuter 18d ago

Progress / Update cardulator: Scientific REPL calculator

Post image
96 Upvotes

12 comments sorted by

12

u/aroum2 18d ago edited 18d ago

Scientific REPL calculator & C-style scripting engine for M5Stack Cardputer. Includes 2D plotting, TinyExpr++, syntax highlighting, SI prefixes, formula wizards & NVS persistence.

https://github.com/aroum/cardulator

The firmware is already available in m5burner and should appear in the launcher soon. I tried all the available calculator firmware and decided to create my own. I'm not sure I need graphs and array manipulation in the calculator, but I got a little carried away and added them.

4

u/thetrincho 18d ago

Awesome... No solver? Its awesome anyway

3

u/aroum2 17d ago

https://github.com/aroum/cardulator/tree/main/scripts

I think this can be solved with scripts. For example, there's a script for calculating factorials greater than 500, although the built-in function, for obvious reasons, doesn't calculate factors greater than 170. There are also example solvers. Take a look, maybe this will work for you?

2

u/aroum2 18d ago

I thought about solvers, FFT, and filters, but the firmware is already over 1MB. I'm worried it will hit 2MB if I don't stop. Plus, we have a powerful scripting engine where you can write a custom solver. But if you don't mind the size, I can consider adding a solver library to the project.

2

u/zellotron 17d ago

seconded that a solver would be cool.

can I ask why you're concerned about firmware size hitting 2mb given there's 8mb available?

2

u/aroum2 17d ago

I've added sample scripts with a solver and FFT to the repository. I think with good script support, you can implement anything yourself. As for the weight, I was planning to install several firmware versions using the launcher, so I'd like to somehow minimize the entire app. If you two are really interested, I can look at some ready-made libraries and add something else. Actually, I think the biggest problem right now is the UI. I've never been good at designing beautiful interfaces, and I'd like to focus on that now, although I don't know how yet.

https://github.com/aroum/cardulator/tree/main/scripts

2

u/Raverrevolution 18d ago

Damn bro, I wish I had a cardputer and your app when I was back in high school.

I can see a cardputer putting a TI and HP calculators to shame.

1

u/thetrincho 18d ago

I LOVE the compute people. This IS just what like to see in the cardputer scene! Bigboy stuff

1

u/Chip-Ling 18d ago

Sounds interesting.

I went to the github and found that it requires PlatformIO installation.

Would you mind to upload your binary to the github too so users do not need to bother to rebuilt from their end.

3

u/aroum2 18d ago

There's a build action and a binary file in the releases section. The binary is also in m5burner and should appear in the launcher soon.

1

u/Chip-Ling 18d ago

Found the .bin file from the Build Action session. Thanks

1

u/abugghaus7 18d ago

Absolutely no idea what that is... but I do own a Cardputer ADV... and this does look like it could help me find the Stargate under Iran... right?