Asking for Advice: Using SciPy Libraries and a MicroPython Board to create a Graphing Calculator

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
AH1684
Posts: 1
Joined: Sat Sep 14, 2019 12:18 am

Asking for Advice: Using SciPy Libraries and a MicroPython Board to create a Graphing Calculator

Post by AH1684 » Sat Sep 14, 2019 1:28 am

I'm fucking tired of getting my graphing calculator stolen, and even old used ones costing $60 upwards - with buttons I hate. They even took my HP-50G, which I loved to death. :oops:
And I need a calculator for my engineering tests/quizzes.

So I've decided I want to make my own graphing calculator using preexisting python libraries like scipy, sympy, etc.
I've some microcontroller and electronics experience, but I'm a bit lost on where to begin on running an interactive python console and then outputting the format onto a low res monocolor LCD screen. I was hoping for some suggestions on where to start!
Or maybe someone has done something similar, but I can't find anything.

rpr
Posts: 78
Joined: Sat Oct 27, 2018 5:17 pm

Re: Asking for Advice: Using SciPy Libraries and a MicroPython Board to create a Graphing Calculator

Post by rpr » Sat Sep 14, 2019 7:06 am

Or you could buy a

https://www.amazon.com/CASIO-PRIZM-FX-C ... B0711D5RNZ

It comes with micropython preloaded. But where's the fun in that ;)

Christian Walther
Posts: 104
Joined: Fri Aug 19, 2016 11:55 am

Re: Asking for Advice: Using SciPy Libraries and a MicroPython Board to create a Graphing Calculator

Post by Christian Walther » Sat Sep 14, 2019 8:12 am

Or a NumWorks, which even comes with source code for both firmware and hardware.

Unfortunately I don’t know the answers to your questions because I stopped pursuing them myself after I got the NumWorks (which I haven’t done much with either). I suspect you are going to have some trouble adapting SciPy to a microcontroller environment though.

nekomatic
Posts: 23
Joined: Thu May 08, 2014 9:31 pm

Re: Asking for Advice: Using SciPy Libraries and a MicroPython Board to create a Graphing Calculator

Post by nekomatic » Mon Sep 16, 2019 4:10 pm

scipy depends on numpy, and numpy hasn't been ported to MicroPython and is unlikely to be due to its resource requirements - this looks like the nearest thing that exists so far. Do you really need scipy though? What functions does your calculator need to have?

IMHO the easiest way of realising something like this would be to use full-fat Python on a Pi Zero - there are lots of screens, battery power options and so on already available. Of course there are also graphing calculator apps if you have a smartphone - perhaps that isn't an option if you aren't allowed to use a phone during a test, but then I wonder if you would be allowed to use a homebuilt device either, if the teacher/invigilator can't easily confirm that it doesn't have any communications capability.

Post Reply