dr-mod / pico-solar-system Goto Github PK
View Code? Open in Web Editor NEWDigital version of the classic mechanical orrery
License: GNU General Public License v3.0
Digital version of the classic mechanical orrery
License: GNU General Public License v3.0
Hi
this is a great little system. I have a pico display pack 2. and get an error when I change your code in the main.py to try and get the whole thing working on the display pack 2.
the code I change is simply line one to show "from picographics import PicoGraphics, DISPLAY_PICO_DISPLAY_2, PEN_RGB565"
and line 14 to show "display = PicoGraphics(display=DISPLAY_PICO_DISPLAY_2, rotate=0, pen_type=PEN_RGB565)"
I then run it all and get
Traceback (most recent call last):
File "", line 14, in
MemoryError: memory allocation failed, allocating 153600 bytes
my micropython is pretty minimal but I am guess ing there is an issue with memory allocation to the DIsplay pack 2 as it is that much bigger for the pico w to run
any hints or ideas would be appreciated
The company name is Pimoroni not Pimorony as you've spelt it
Would it be possible to use an ESP8266 to fetch Internet time instead of using an RTC? I know RTCs are cheap, I'm just looking for projects to do with the kids using the parts I have on hand. My knowledge of this stuff is very limited.
You're going to think I'm really stupid for this one, but here goes!
I've installed the appropriate UF2 onto my Pico W as instructed, and the Pico W is now connected to my Windows PC running Thonny.
So the next inbstructions are to enter the following - but in what program / device / window or whatever am I supposed to enter them??
pip3 install rshell
git clone https://github.com/dr-mod/pico-solar-system.git
cd pico-solar-system
rshell
cp *.py /pyboard/
Is there a way to set the UTC offset when using NTP instead of RTC? The instructions all reference the RTC module and looking at main.py, i don't see an obvious way to implement it.
Thanks!
I got it working a few months ago and all was good..i updated to the new release uf2. Updated the py scripts. Not able to get it working again. ds3231 inst defined. Using a Pico (no wifi) and a generical DS3231 board wired to i2c (pin 20 and 21).
Tried rshell on ubuntu and Thony on windows.
The REPL comands worked, no errors :)
Traceback (most recent call last):
File "main.py", line 218, in
File "main.py", line 90, in main
File "main.py", line 188, in set_time
"NameError: name 'ds3231' isn't defined"
Any ideas?
Thanks
Is this supposed to start automatically? For some reason after I did all the steps my screen is still blank. What should I do?
As the title states, I'd love to see how/where you attached the RTC as it was my understanding that the pico display covers all the pins. I've used the pimoroni pico lipo shim and had it in between the pico and the display, but not sure which RTC clock module you are using and how you attached it.
Thanks
Do you have a reference for the calculations of the planet positions in planets.py?
Thanks in advance.
I found this https://ssd.jpl.nasa.gov/txt/aprx_pos_planets.pdf
https://github.com/ae5au/pico-solar-system
I've created a fork with support for the latest Pimoroni build of MicroPython 1.19 including the new PicoGraphics framework. It also supports the Pico W...eventually using ntp to sync time removing the need for an RTC if using somewhere that has Wi-Fi.
Please take a look and let me know if you have a chance to try it out. I have some more changes to make and would like some feedback before submitting a PR.
Requires installing v1.19 or later from Pimoroni:
https://github.com/pimoroni/pimoroni-pico/releases/
Hello, love the project.
Can you please upload the 3d print files for making the case that was pictured on Reddit?
Thank you.
I thought I can hack it to work without RTC.
Maybe use some checks and then use a time/date from the Python file.
BTW: The program runs fine from my pico-display-browser https://github.com/callimero/rp-pico/blob/main/picodisplay/ls.py
but crashes (needs reset) when I start it from Thonny.
Hello,
I do have a DS3231 module, but get this output:
aceback (most recent call last):
File "main.py", line 175, in
File "main.py", line 77, in main
File "ds3231.py", line 19, in init
OSError: [Errno 5] EIO
rtc=ds3231.ds3231()
Traceback (most recent call last):
File "", line 1, in
File "ds3231.py", line 19, in init
OSError: [Errno 5] EIO
Micropython 1.18.1
Just to add, the RTC module is the 'Precision RTC Module for Raspberry Pi Pico (DS3231). https://thepihut.com/products/precision-rtc-module-for-raspberry-pi-pico-ds3231
Many thanks.
Hey, I really liked your project, so i decided to make it but i couldnt find a diagram or a picture on how to assemble the board with the screen and module.
Can you upload a diagram or a picture?
Cheers
I cannot get the RTC to set the time, I don't know what the issue is.
`Entering REPL. Use Control-X to exit.
MicroPython v1.15 on 2021-05-20; Raspberry Pi Pico with RP2040
Type "help()" for more information.
import time
import ds3231
rtc = ds3231.ds3231()
rtc.set_time(time.time())
Traceback (most recent call last):
File "", line 1, in
File "ds3231.py", line 27, in set_time
OSError: [Errno 5] EIO
`
Hey there,
is it possible to use:
https://www.waveshare.com/wiki/Pico-LCD-1.14
it seems to have similar capabilities.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.