Making a Railway control painel with py5 and raspberry Pi #680
Replies: 1 comment
-
Cheers, @gfth4x07 ! This is a great project. Thank you so much for sharing, and sorry for the slow reply. Good to know about your setup experiences on Raspberry pi. How did you figure out you needed to install that extra library to get Pillow installed? Were you creating a Python environment using Anaconda, uv, or a virtual environment? You can get very creative with this. My only suggestion is to write the code in a modular way so that you can start with simple representations for the track and switches but later replace that with a more complex visual representation. Please keep working on this and definitely share your progress, we'd love to hear about it! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Today I started a new project with py5: the goal is to create a control painel for an H0 scale model train railway.
Firstly, I installed py5 on a Raspberry Pi. It was a little difficult, but, long story short, you must install libjpeg-dev create a env, update pip and Thonny, install lgpio and, somehow, the JDK. I'm not sure if it was the JDK that I've installed or the one that Thonny, but it worked!
After that, I started testing the use of Raspberry Pi's GPIO while running py5, and it worked fantastically (see the video below!).
I'm also sketching the railways and some buttons, but since I haven't made the eletronic circuits yet, it is just a test.
The documentation of this project is availeble at https://garoa.net.br/wiki/Ferrovia_controlada_por_RaspberryPi and will be update as the project progress.
Any feedback is appreciated :D
video_2025-07-18_17-58-51.1.mp4
Beta Was this translation helpful? Give feedback.
All reactions