raspberry-pi

When running my Discord bot I get a RuntimeError: no running event loop

When running my Discord bot I get a RuntimeError: no running event loop Question: This is my code, when I try to run it on my Raspberry Pi (3) it appears to have an issue with no running event loop. I’ve looked for answers a lot on this website but never found one so I …

Total answers: 2

Is there a function in Python to clear all of the LEDS in NeoPixel?

Is there a function in Python to clear all of the LEDS in NeoPixel? Question: I am new to Raspberry Pi 4 and I am trying to used an addressable WS2812B LED Strip with Python/NeoPixel to light objects from different angles for an AI project I am working on. I am able to address the …

Total answers: 1

How to activate motors with python3

How to activate motors with python3 Question: I am thinking of a way to pack my bag for work in the morning, but I’m trying to automate it with python3, raspberry pi and motors, but I don’t know how to program something to make them work. Does anyone know how to do this? I think …

Total answers: 1

shell script works, but not on boot. [Raspberry pi]

shell script works, but not on boot. [Raspberry pi] Question: I have a python script running on a raspberry pi. I defined a launcher.sh file and trying it with sh launcher.sh runs the program The file cd /home/pi/Documents PYTHONPATH=/home/pi/.local/lib/python3.10/site-packages python3 /home/pi/Documents/myfile.py I tried chmod launcher.sh and sudo chmod 775 launcher.sh But when I start the …

Total answers: 2

Share data between bash, python, and C

Share data between bash, python, and C Question: I am working on a project that has a bunch of c and python files. I am using a menu function using a bash script on a Linux terminal. The bash terminal has some menu options and also puts the files in a loop. I.e. the files …

Total answers: 1

OpenCV corrupting HQ Rapsicam data above 4000×3040 resoution?

OpenCV corrupting HQ Rapsicam data above 4000×3040 resoution? Question: The Problem When I take an image using OpenCV that is larger than 4000 pixels wide, using a high quality picam, the image data appears corrupted (it’s offset). More Detail As stated, I cannot get a good image when using OpenCV at over 4000 pixels wide …

Total answers: 1