Skip to main content

All Questions

0 votes
1 answer
146 views

gpiozero combining button events in event driven code

I'm pretty new to the Python and Raspberry business and am currently working on my first major application. I like gpiozero and the ability to work with events throughout. I would like to make my code ...
MaxWeb's user avatar
  • 169
0 votes
0 answers
68 views

Is it possible to use pins 32-53 as GPIO on a Raspberry Pi4

My scenario is that I have a raspberry pi 4 using GPIO 2-27, and I am able to freely set the pins as inputs or outputs print("Setting pins 2-8 as INPUTS with PUD_UP") for pin in range(2, 9): ...
Vanillaice's user avatar
0 votes
2 answers
841 views

How can I set the display environment variable on a Raspberry Pi at boot?

I have a Raspberry Pi 4 with a 1280x800 display and no keyboard or mouse. I ssh into it remotely over WiFi and am coding it to display images, ultimately on its own without my ssh into it. I installed ...
Dribbler's user avatar
  • 4,711
0 votes
0 answers
37 views

Whenever i changing the widget i am facing the issue of delay in overall performance and user interface while using serial COM

I'm using this PyQt5 code on the Raspberry Pi 4. When I run the code, I receive and plot analog values on the plot_widget via serial communication. If I change the mode or widget, and then attach the ...
Thiru .N's user avatar
0 votes
0 answers
60 views

Problem with server to capture and send video over TCP/IP from USB camera

server.py to capture video from USB camera "A4 Tech" connected to Raspberry Pi 4B: import cv2 import socket import struct import pickle import logging logging.basicConfig(level=logging....
Nickvels's user avatar
0 votes
1 answer
189 views

Adafruit fingerprint sensor library error on a Raspberry Pi 4

I'm trying to test my fingerprint sensor, it shows up on the terminal too, but when I run this code this error shows up: Traceback (most recent call last):   File "<string>", line 9, ...
Soham Bhole's user avatar
0 votes
0 answers
30 views

RFID 522 reader with RPi4 only reads sometimes

I have an RFID 522 reader connected with Raspberry Pi 4 and it only works sometimes. I followed the schematic from a tutorial and used the corresponding code. The reader works perfectly fine, detecing ...
Mourghe's user avatar
0 votes
1 answer
518 views

How to detect if a USB flash drive was inserted on Raspberry Pi 4, and list all the files inside the USB flash drive using pyusb?

I am using Python 3.11 on Raspberry Pi 4. Say I have a USB flash drive connected on one of the USB ports of the Raspberry Pi 4. How do I get the path of the USB flash drive, so that I can list them to ...
Ron's user avatar
  • 1
1 vote
1 answer
2k views

Controlling raspberry pi bluetooth with a python script

I have a Raspberry Pi 4 Model B running Raspberry Pi OS Lite 64-bit with Operating System: Debian GNU/Linux 12 (Bookworm) Kernel: Linux 6.6.20+rpt-rpi-v8. I have to control the Bluetooth of the ...
Plat00n's user avatar
  • 317
0 votes
2 answers
65 views

Is it possible to set a timeout property when connecting to a Raspberry Pi using pigpio

Pretty much when you try to connect to a raspberry pi remotely using pigpio, there doesn't seem to be an innate way of setting a timeout property in terms of how long should it attempt to connect to a ...
RedRum69's user avatar
1 vote
0 answers
1k views

ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects

I expected to download opencv-python on Raspberry PI 4, but found this issue. pi@raspberrypi:~ $ pip3 install opencv-python Defaulting to user installation because normal site-packages is not ...
QG_office's user avatar
0 votes
0 answers
394 views

ST7789 TFT shows blank screen

I have ST7789 display and I am trying to connect it and manage from Raspberry 4B (python). I'm currently using ST7789 python library, but anything I do the screen is always blank. Screen is only light ...
kawopaj537's user avatar
0 votes
1 answer
308 views

Problem with ALSA with Raspberry Pi 4b and voice recognition

I get the following error: def recognizer(): try: with sr.Microphone() as voice: listen = sr.Recognizer() voices = listen.listen(voice, 2, 30) command = ...
Vector776's user avatar
0 votes
0 answers
81 views

Understanding Size Discrepancy between Raw Array and Image from Raspberry Pi Camera

I am using a Raspberry Pi Compute Module 4 with an Arducam IMX230 camera to capture raw images. The camera is configured for a specific sensor mode, but the resulting numpy array from the raw capture ...
techguyimg's user avatar
0 votes
0 answers
456 views

Raspberry Pi 4 Thonny Opencv

I cannot run my code that I wrote on python IDE 3.11 to the python Thoonny 3.9. I downloaded the opency libraty:https://qengineering.eu/install-opencv-on-raspberry-pi.html. I also used picamera2 ...
user22417774's user avatar

15 30 50 per page
1
2 3 4 5
9