Quantcast
Channel: Raspberry Pi Forums
Browsing all 1225 articles
Browse latest View live

Python • DHT22 Sensor with Pi 5 - import board error

Hi,I'm trying to use a DHT22 humidity sensor with the Raspberry Pi 5. I figured it would be simple to do but I am struggling and I would appreciate any help. I've downloaded Raspi-blinka after...

View Article


Python • Re: gpiod documentation

I don’t think so,Maybe use gpiozero that has good documentation. As it says on Toms hardware “ If you are new to this, use GPIO Zero which also works with the Raspberry Pi 5”I understand the...

View Article


Python • Re: DHT22 Sensor with Pi 5 - import board error

Only expect Pi5 specific tutorials to work unless you are using gpiozero (a Python module).Others were written for different hardware.My lg library should work as it uses the Linux replacement for...

View Article

Python • Re: pulse counting with python

Have you looked at the BYO weather station https://projects.raspberrypi.org/en/pro ... -station/1Statistics: Posted by neilgl — Mon Mar 18, 2024 9:53 am

View Article

Python • Re: How to install picamera2

PiCamera2 manual: "As of mid-September 2022, Picamera2 is pre-installed in all Raspberry Pi OS images"If you create the venv with system packages it will then have the system wide (already installed)...

View Article


Image may be NSFW.
Clik here to view.

Python • Re: How to install picamera2 - fixed

Thanks for the reply. I think I managed to remove it and then got confused trying to install it again I will reformat and start again.MickStatistics: Posted by micksulley — Mon Mar 18, 2024 10:23 am

View Article

Python • My RAMPS1.4 doesn't work when controlled by Raspberry PI 5 via Python3

Hello,When I use my Windows device to control ramps1.4 (mounted on mega Arduino) via Python3, by g code like this:...Code: import serialimport timemyPort = serial.Serial('COM7', 250000,...

View Article

Python • Need help with Pico based Macropad

So I have a Raspberry Pi Pico and am trying to setup KMK on it. I of course setup the Pico to boot into circuitpython version 9. Problem is, I can't get the keypresses or rotary input to result in any...

View Article


Python • Re: Datetime Code Not Working

It doesn't matter, because, it's really just incorporating the date in the name, and I found out why it didn't work. I should have instead of making current_time a variable, I should have defined it...

View Article


Python • I don't know how anyone is happy with Python now

Python in 2024 is such a mess that I just don't want to use it any more. I don't see how anyone is happy with how Python behaves now.Instructions for things which used to work flawlessly now leave me...

View Article

Python • Re: I don't know how anyone is happy with Python now

Everything is working fine for me.The externally-managed-environment has very little with the python team and more so to do with the OS distro maintainers. If you wish it to stay the way it used to...

View Article

Python • Re: Unable to inherit system packages

Sorry for not replying after a long time. I tried to install another python version (3.9.11) using pyenv and repeated the same steps but still no packages are being used in the virtual environment....

View Article

Python • Integrating Raspberry Pi camera module 3 with OpenCV.

Hello,I'm currently working on a live camera face recognition project using OpenCV on Raspberry Pi, but I'm facing difficulties integrating the camera module with OpenCV.Could you please advise if...

View Article


Python • Re: Integrating Raspberry Pi camera module 3 with OpenCV.

Here's an example using opencv and picamera2...viewtopic.php?t=363255#p2179477Statistics: Posted by gordon77 — Tue Mar 19, 2024 1:11 pm

View Article

Python • New Bluetooth library for Python

The btferret Bluetooth library, that was previously only for C, will now work with Python as well.https://github.com/petzval/btferretIt comes with a general purpose program btferret.py that is a bit...

View Article


Python • Re: Pi 5 / RC522 / Python for RFID Reading?

gpiozeroIf you are using someone else's code that uses GPIO you may need them to update it to use gpiozero, but since you're a software person, you may be able to either modify it for your own use or...

View Article

Python • Re: gpiod documentation

libgpiod public APIhttps://libgpiod.readthedocs.io/en/latest/index.htmllibgpiod-ref.pdfhttp://phwl.org/assets/images/2021/02/libgpiod-ref.pdfStatistics: Posted by MisterEd — Wed Mar 20, 2024 10:07 am

View Article


Python • I2C not working along with SPI

HiWe have some rather complex python code that uses a pair of MAX 38155 thermocouple amplifiers (SPI), an MCP3424 (I2C) and an MCP23017 (I2C). They are all connected to the right pins on the gpio (I2C...

View Article

Python • Re: I2C not working along with SPI

Do you have an external 3.3V ?Looks to me that you have too many things to drive from the Pi 3.3V!Statistics: Posted by danjperron — Wed Mar 20, 2024 4:41 pm

View Article

Python • Odd situation when using open cv video capture

I am developing a image processing software which will be running on pi5.I am using usb video camera connected to the pi. I test my code on pi connecting my laptop to pi over real vnc...

View Article
Browsing all 1225 articles
Browse latest View live