New answers tagged

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 ...
user avatar
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!
user avatar
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) # ...
user avatar
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 ...
user avatar
  • 66.6k
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
user avatar
  • 6,161
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 ...
user avatar
  • 53.6k
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)
user avatar
  • 6,161
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 ...
user avatar

Top 50 recent answers are included