I need astronomical calculations on an ESP-32 microcontroller with Micropython. The only thing I found is https://github.com/peterhinch/micropython-samples/tree/d2929df1b4556e71fcfd7d83afd9cf3ffd98fdac/astronomy but it is not enough for me. On a regular computer I use skyfield That is the best and most accurate, but it probably won't fit the microcontroller Because there is no numpy. Does anyone know how I can use pyephem/ephem on an ESP-32 with Micropython? The main problem is probably libastro https://github.com/brandon-rhodes/pyephem/tree/master/libastro which is a lot of files in C language. See also here: https://github.com/brandon-rhodes/python-jplephem/issues/59#issuecomment-2538892606 I want to use a microcontroller with 16 MB of memory. Which is more expensive than the simple one. https://lilygo.cc/products/t-display-s3?variant=42284559827125 (The simple controller only has 2 MB). (Alternatively, maybe someone could develop and make more precise https://github.com/peterhinch/micropython-samples/tree/d2929df1b4556e71fcfd7d83afd9cf3ffd98fdac/astronomy) Thank you very much.
-
Library and software recommendations are off-topic and disallowed here, so your question may be closed if it's interpreted that way. Your best bets are to either try to make it work with the MicroPython port of numpy, rewrite the C to work with MicroPython (which is written in C), or do the calculations on a server and request them to be done via an API. In any event you're going to need to do a substantial amount of work yourself.romkey– romkey2025-01-12 17:32:39 +00:00Commented Jan 12 at 17:32
-
Thanks. I don't want to recommend anything just ask for help, mainly on how to run ephem on esp-32 micropython but if I knew how to do it, I wouldn't ask.Dr. Simcha Gershon Bohrer– Dr. Simcha Gershon Bohrer2025-01-12 18:19:32 +00:00Commented Jan 12 at 18:19
Add a comment
|