Python • How to Run a Python Program Instantly on Raspberry Pi Startup?
Hi Raspberry Pi community, I’m Chris, a programmer new to Raspberry Pi. My goal is to build a real-life product using Raspberry Pi. I’d like to achieve instant execution of a Python program...
View ArticlePython • Re: How to Run a Python Program Instantly on Raspberry Pi Startup?
Depending on how long “instantly” is, I would go for a Pico running MicroPython, or depending on what it is doing, look at Ultibo on a Pi, or go for some bare metal programming.Statistics: Posted by...
View ArticlePython • A Software Defined Radio Python Starter Kit
These programs work nicely with a PI-4 or Pi-5 on Bookworm and Ubuntu 24.04.A Software Defined Radio Python Starter Kithttps://youtu.be/NH-8Sx8qM68This video shows an example of a python program that...
View ArticlePython • Booting into a venv
hi,im in the making of a school project which uses opencv to react to peoplei have my code working however it requires being ran from a venv, and i am struggling to have have it enter the venv and run...
View ArticlePython • Stitching Two Cameras Together for Sports
I am attempting to create a camera unit with the below hardware. Raspberry Pi 5 (8GB)2x Raspberry Pi Camera Module 3 (Wide) - mounted on a T-Bar with around 40mm spacing and 0 degrees of tilt (optimum...
View ArticlePython • Re: Booting into a venv
The guide to all things startup (thanks to thagrol) is here viewtopic.php?t=314455On one of my systems I have a python script in a venv that I start from a service as per the above guide.Statistics:...
View ArticlePython • How do I learn how to use lgpio?
Hello everybody, this is my first post in this forum, hope this is the right place for the kind of issue I'm having.So I'm pretty new to GPIO programming and fairly new to programming as a whole. A...
View ArticlePython • Re: How do I learn how to use lgpio?
You should probably use gpiod going forward.https://pypi.org/project/gpiod/Statistics: Posted by ame — Wed May 21, 2025 8:16 pm
View ArticlePython • Python OBD error messages
I successfully installed OBD in a virtual environment but when I hit the instruction "import obd", it seems to go through the obd modules but continues down the path to PINT and generates error...
View ArticlePython • Re: Python OBD error messages
How did you install the module?And pls post the full error message.Statistics: Posted by DirkS — Mon May 26, 2025 6:20 pm
View ArticlePython • slow network connect
I have a pi5 16gb running a python 3.12 server with fastapi and a minicomputer with a php server which makes curl call to the pi whenever it needs data (every minute or so). Mostly, the pi answers the...
View ArticlePython • Re: slow network connect
What logging do you have in the python code on the Pi5? If none, now would be a good time to add some.In addition to the logging, many folks here will likely want to see your python code. Please post...
View ArticlePython • gpiozero button.when_pressed not working with While True: loop
Hello,Total Python noob here -- I'm an experienced Node/JS dev but I don't know Python very well yet, so forgive me if this is a dumb question.I've got a Pimoroni Display Hat Mini and I'm using the...
View ArticlePython • Re: gpiozero button.when_pressed not working with While True: loop
The following works fine for me on a Pi5 (Pi OS Bookworm) with a button between GND and GPIO26.https://pinout.xyz/pinout/pin37_gpio26/Post a runnable test example or your complete code.Check your...
View ArticlePython • Re: troubles using ha-mqtt-discoverable python module (BOOKWORM on...
i have opted to try downgrading to bullseye, might close this one if i figure it worked smootherStatistics: Posted by boelle — Sun Jun 01, 2025 8:35 am
View ArticlePython • Raspberry Pi audio recording works alone, but not when recording...
I have a Raspberry Pi Zero 2W wired to an Adafruit MEMS microphone with a camera attached. I tested audio recording in a separate Python program and that works perfectly:Code: import subprocessimport...
View ArticlePython • python Qt installation recipe for Video playback.
Is anyone aware of an installation recipe (sequence of installation steps) anywhere on the internet supporting the commodity functionality of playing video under the control of python? I am on a CM5...
View ArticlePython • MQTT on Raspberry Pi 3B+ - Subscribe two different topics with Python
HalloI have running Mosquitto on my old Rasp 3 B+ and I have a Python script (running as service unit) to write the values of my smart meter into a influxdb.The values of the smart meter are published...
View ArticlePython • Re: MQTT on Raspberry Pi 3B+ - Subscribe two different topics with...
Is it possible that two simple MQTT subscribing Python scripts could not run along without blocking each other?There should be no blocking. As you did not post your code, some general remarks- follow...
View ArticlePython • Rasp Pi / Tkinter / iconphoto not working
I will use a Pi 5 to run a Python application with a tkinter GUI. The GUI includes an icon being displayed on the windows. I developed most of the application on W10 PC; running the application on the...
View Article