Skip to main content
New: Stack Overflow For Agents. The next generation of knowledge exchange. Learn more.

Questions tagged [python]

Python is a general-purpose, dynamically typed, object-oriented high-level programming language. Interpreters for versions 3.x and 2.x come installed on the Raspberry Pi's most popular operating system distributions.

Filter by
Sorted by
Tagged with
Filter by Employee ID
-1 votes
0 answers
26 views

How to play a file in mono mode ? I've tried player.audio_output_set('Mono') But changed nothing, i.e still in stereo mode. Here is my code : import time import vlc url='test.mp3' player = vlc....
bbd 666's user avatar
0 votes
0 answers
35 views

I am running a python script on a Raspberry Pi 4 with OS Trixie, to apply live audio effects to a microphone. I have managed to get the sound output working, however I am encountering a great deal of ...
Bill Harvey's user avatar
0 votes
0 answers
30 views

Could anyone help a non audiophile? i am trying to recreate the Ring Modulation effects to simulate a Dalek voice using Python Sounddevice with Python Pedalboard integrated to apply the effects. There ...
Bill Harvey's user avatar
0 votes
1 answer
128 views

I have two RPi 4b boards and two nRF24L01 PA modules. The goal is to use both RPi 4b boards and transceivers (both send and receive data). Note 1: I am using 64-bit OS on RPi 4b. For more details, ...
Elmar's user avatar
0 votes
0 answers
37 views

Following some initial one-time device-tree setup, the script below seems to do what I need, which is a python-controllable PWM signal at fixed frequency and slowly varying duty cycle (update a few ...
uhoh's user avatar
0 votes
0 answers
152 views

I am currently trying to control a NEMA 17 stepper motor rated for 1.5A through a DRV8825 driver using a Raspberry Pi 4B for a school project. I was trying to use RPi.GPIO to control the motor but it ...
silkysomen's user avatar
0 votes
0 answers
213 views

I run an open source project called PiFire which aims to provide an open source smoker controller using a Raspberry Pi and some off the shelf hardware. I have used a DSI connected touch screen display ...
Ben Parmeter's user avatar
-1 votes
1 answer
190 views

for a school project, I would like to take measurements of the Earth’s magnetic field using an RM3100 Breakout Board magnetometer from PNI Sensor. I soldered the headers myself onto the pads. I ...
thanatos's user avatar
0 votes
0 answers
90 views

I’m trying to set up wireless communication using two NRF24L01 modules. I’m using a Raspberry Pi 4 Model B as the receiver using the pyRF24 Library and a Raspberry Pi Pico with MicroPython as the ...
Nicolas's user avatar
0 votes
0 answers
62 views

Using the command lsusb i am getting the following output: pi@raspberrypi:~ $ lsusb Bus 001 Device 005: ID 19d2:1405 ZTE WCDMA Technologies MSM ZTE Mobile Broadband Bus 001 Device 002: ID 1a40:0101 ...
YvetteLee's user avatar
0 votes
0 answers
80 views

I've being trying to install Mojo a replacement for Python using the instructions here. All goes well until I try to run mojo when it crashes immediately with 2343 external/tcmalloc+/tcmalloc/system-...
Nicholas Walton's user avatar
0 votes
0 answers
79 views

I wrote code for my RPi as below and it was working preatty long time, unfortunatelly after system update buttons Start and Stop does not generate any reaction. What may be the reason and how to fix ...
adamssson's user avatar
-1 votes
1 answer
868 views

I'm trying to set up pigpio on my Raspberry Pi 5 (aarch64 architecture running 64-bit Raspberry Pi OS Lite). The installation appears successful, but I can't connect to the daemon from Python. ...
Alex's user avatar
-1 votes
1 answer
516 views

I'm using a raspberry pi 5 to read from a dht11 sensor with the signal line connected to gpio pin 26. I tried using the Adafruit_DHT and adafruit_dht libraries, which led to the error messages "...
EskimoJones's user avatar
-1 votes
1 answer
271 views

I am trying to install opencv on my raspberry pi 5 (os: 32-bit lite). I've tried the code to install opencv: sudo apt-get install python3-opencv -y but encounter the error below: The following ...
Alex's user avatar

15 30 50 per page
1
2 3 4 5
215