Quantcast
Browsing all 1241 articles
Browse latest View live

Python • Re: TemperatureSensor class in picozero library reads high?

Yes it is the onboard temperature sensor (internal to the RP2040 chip), so will be higher than ambient.Maybe use a DS18B20 external temperature sensor (“1 - wire” interface)Statistics: Posted by...

View Article


Python • Re: Reading a DS18B20

@bensimmo and DS256Thank you both for your helpStatistics: Posted by RDS — Wed Dec 27, 2023 11:42 pm

View Article


Python • Re: convert python code to Production code

Do a little reading, see which one best suits your needs and give it a try.https://www.infoworld.com/article/36566 ... e-use.htmlhttps://stackoverflow.com/questions/155 ......

View Article

Python • Re: 64MP_Autofocus

Have you got Code: camera_auto_detect=1in /boot/firmware/config.txt (or /boot/config.txt in Bullseye or earlier).What does a libcamera-hello --list-cameras or rpicam-hello --list-cameras give you?My...

View Article

Python • Upgrading pygame on RPI-4 will not work

Hello,Try to upgrade the version of actual version of pygame(1.9.6) on my raspberry pi 4.Have system updates, and upgrades done.Find the command pip install pygame--upgrade but this is not working,...

View Article


Python • Re: Upgrading pygame on RPI-4 will not work

Try python3 -m pip install -U pygame --userStatistics: Posted by gordon77 — Sat Dec 30, 2023 1:18 pm

View Article

Python • Pi 3b 2gb performance with opencv

I have my USB camera working on the PI and the laptop through Python now, the PC was a PITA in the end I got PycharmThe laptop is many times more powerful, 8 core Ryzen 7, 32gb of ram, etcOn the Pi...

View Article

Python • Re: Pi 3b 2gb performance with opencv

There ain't no such thing as a "Pi 3B 2gb". Care to tell us which Pi model you actually have?Statistics: Posted by thagrol — Sun Dec 31, 2023 12:29 am

View Article


Python • python or pyserial running a bit slow and delayed?

i am making some kind of flight stick with a throttle console thing that runs elite frontier 2 on a raspberry pi zero w, problem is getting the flight stick and throttle to work. how my setup works is...

View Article


Python • Re: python or pyserial running a bit slow and delayed?

When button pressed on arduino side, is there only one message e.g. 'ZBUTTON PRESSED\r\n' sent or is this sent continuously while pressed ?Flooding the serial line with messages could result in...

View Article

Python • Re: 64MP_Autofocus

..Support for third party sensors needs to come from the third party manufacturer. https://forum.arducam.com/c/cameras-for-raspberry-pi/7Arducam have not pushed their pivariety sensor support into the...

View Article

Python • Re: Unexpected performance difference between picamera and picamera2..

I've just tried this, and here's what I found. I edited both scripts to encode VGA images (they actually encode different, and very large, sizes currently, so aren't comparable as they are). I also...

View Article

Python • Re: HMC5883L heading

Any ideas? I've put a lot of effort into my project so far, but it's impossible to complete without a compass.Statistics: Posted by mart1nek — Tue Jan 02, 2024 8:40 pm

View Article


Python • Why does datetime.fromisoformat fail on rpi, but works on windows?

I am processing data from a website API, there is an isoformat datetime field.The little program below works on windows and fails on Raspberry pi. It is a valid iso format string. Why is it...

View Article

Python • Re: Why does datetime.fromisoformat fail on rpi, but works on windows?

Probably due to the python version in use. It works fine on a pi5 running BookwormCode: pi@pi5-4GB:~ $ pythonPython 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] on linuxType "help", "copyright",...

View Article


Python • Re: convert python code to Production code

You could make your top script do little other than run functions from your modules, and pre-compile your modules. See https://docs.python.org/3/library/compi ... compileallStatistics: Posted by...

View Article

Python • Ping with python and socket library

Hey guys, I hope you're all doing well. I'm new to raspberry pi and python. I'm doing a project where I'll use a raspberry pi to communicate with an other board sending mac commands. To get started, I...

View Article


Python • Re: Ping with python and socket library

169.254.169.197 does not look to me like the correct address for a system on a local LAN (running DHCP). I would expect something like 192.168.1.123Are the systems connected to your home router by...

View Article

Python • Bookworm, 'gpiozero' and 'libgpiod'

I have a simple Python 3 program which works as it would be expected to under Bookworm. It uses 'gpiozero' to control a LED connected to GPIO 24. The 'led=LED(LED_PIN)' then 'led.on()' causes...

View Article

Python • ValueError: invalid literal for int() with base 10:

I have been running a Python3 program 24/7 for the last few years but suddenly at midnight on the 3rd Jan it has failed with the error: Code: ValueError: invalid literal for int() with base 10:Has...

View Article
Browsing all 1241 articles
Browse latest View live