New answers tagged python
0
votes
Autostart python programm
I have done that :
sudo nano /etc/xdg/autostart/display.desktop
and edit the file with :
[Desktop Entry]
Name=exe
Exec=/usr/bin/idle /home/admin/Desktop/exe.py
But when my pi starts, it's just ...
0
votes
Accepted
Wrong sound output when using pygame
Update: I didn't realize my speaker output was set to HDMI instead of the audio jack, I was sure I changed it earlier. Anyway, the issue is fixed!
0
votes
Custom White Balancing with picamera
Sadly I cannot comment yet, so I have to do it as a seperate answer to this one
The Code from Dave Jones can be made faster convergent with this diff calculation (and more precise)
# ...
0
votes
hc-sr501 goes high every minute
You need to look at your environment to find the cause of the regular pulse.
I suggest you leave monitor.py running for 5 minutes. Perhaps lots of GPIO are affected.
This requires the pigpio daemon ...
0
votes
Accepted
Python program runs successfully through Thonny IDE but I get ModuleNotFoundError when I run the same through Terminal
Install shutils using pip3 (package manager for Python3):
pip3 install shutils
Run your code from a terminal window using (use 'python3' to make sure you are using Python3) :
python3 test.py
0
votes
How to decode struct data sent from an Arduino via NRF24L01?
Basically you can't. There is a python module struct but this an advanced module that requires quite a bit of python expertise. Binary representation differs between platforms.
You would be better to ...
2
votes
I am trying to make a camera turn on and off with the press of a button, but the GPIO ports are not working, and it is not acknowledging the button
You need to setup GPIO24 as output at the start of your code:
GPIO.setup(24, GPIO.OUT)
0
votes
I cannot install opencv
Okay, I know this question's old, but try to install it again now if you haven't figured it out yet.
Some OpenCV versions were incompatible with RPi back then. But the developers have updated the ...
Top 50 recent answers are included
Related Tags
python × 3077raspbian × 589
gpio × 511
pi-3 × 294
rpi.gpio × 249
pi-2 × 147
serial × 136
camera × 124
sensor × 115
opencv × 113
i2c × 109
python-3 × 101
bluetooth × 92
raspicam × 87
boot × 85
led × 82
audio × 80
pi-4 × 70
pi-3b+ × 65
usb × 64
spi × 63
arduino × 63
pigpio × 61
pwm × 59
linux × 58