Quantcast
Browsing all 1234 articles
Browse latest View live

Python • Re: Raspberry Pi 5 board + Python 3.11 + OpenCV4.9 + Global Shutter...

Dear Colleagues.Tell me how to install Python 3.11+OpenCV4.9+Global Shutter Camera for Raspberry Pi 5.And how can you access the camera in a Python program through OpenCV library functions?There is a...

View Article


Python • anyone know how to install pygame

When I type pip install pygame I get this errorerror: externally-managed-environment× This environment is externally managed╰─> To install Python packages system-wide, try apt install python3-xyz,...

View Article


Python • Re: anyone know how to install pygame

Either read the error message and follow its suggestions, or Google the error message for more information and how to deal with it.Statistics: Posted by ame — Tue Jun 11, 2024 3:01 am

View Article

Python • UPS Shutdown Python Script

Hello,I have a X1200 UPS for my Raspberry Pi 5 and can get it to shut off once on battery power. I would like, however, for it to only do so after being on the battery for a set amount of time, say 10...

View Article

Python • Re: UPS Shutdown Python Script

ChangeCode: time.sleep(1) to Code: time.sleep(10)Or you can leave it at 1 and just change the shutdown command to wait for the 10 seconds instead of now as it is in the code. You can find out how to...

View Article


Python • Re: Serial communication problem

O my God, what a trivial solution it was... see.Code: import serialimport time# Konfiguracja portu szeregowegoser = serial.Serial('/dev/ttyUSB0', baudrate=300, bytesize=serial.SEVENBITS,...

View Article

Python • Face recognition problem with model training

So i have been trying to get face recognition running on my Raspberry pi model 3 b+. I'm also using pi cam. I solved most of the problems just by looking on the web, but i can't find a solution for...

View Article

Image may be NSFW.
Clik here to view.

Python • Re: Face recognition problem with model training

So i have been trying to get face recognition running on my Raspberry pi model 3 b+. I'm also using pi cam. I solved most of the problems just by looking on the web, but i can't find a solution for...

View Article


Python • Help to fix jittering/glitching on servo motor on raspberry pi 5

Hello, I am currently trying to make a robotic arm using four servo motors. currently I am trying to test the hand part of the arm and saw that the servo motor keeps glitching and doesn't stay in the...

View Article


Python • Re: Help to fix jittering/glitching on servo motor on raspberry pi 5

Python code relies on indentation (left-hand white space) for its syntax. The forum software provides [_Code_ ] tag markup to preserve indentation. This is found on the fifth 'button' from the left at...

View Article

Python • super user command from Python script

Hito enable an external trigger on the global shutter camera, the trigger_mode parameter needs to be changed from 0 to 1. What I understand from this is that a txt file named trigger_mode that is...

View Article

Python • Re: super user command from Python script

Hito enable an external trigger on the global shutter camera, the trigger_mode parameter needs to be changed from 0 to 1. What I understand from this is that a txt file named trigger_mode that is...

View Article

Python • Effect of "Enable/disable read-only file system" on SUDO...

I'm looking for some insights here. I have a RPI 3b+ running Buster deployed as a weather station. I enabled "Enable/disable read-only file system" in RASPI-CONFIG. The result is that / is RW and...

View Article


Python • Re: Effect of "Enable/disable read-only file system" on...

So, from observing the behavior, but with the lack of documentation, it looks like 'Enable/disable read-only file system' turns / into a RW virtual file system.It uses an overlay file system. The...

View Article

Python • Method does not work: picam2.start_preview(Preview.DRM)

from picamera2 import Picamera2, Previewpicam2 = Picamera2()picam2.start_preview(Preview.DRM)I entered the program from the example Picamera 2 library.But when starting it gives an error: "Commit...

View Article


Python • Can't list installed libraries

I need to list the installed libraries on Raspberry Pi5. I get the following error when I use pip list command.Code: user@raspberrypi:~ $ pip listERROR: Exception:Traceback (most recent call last):...

View Article

Image may be NSFW.
Clik here to view.

Python • Re: Connecting RS485 via Modbus to Mitsubishi

I FINALLY FIXED, i will provide same example. I hope this will be helpfull for everyone that have any issue connecting Mitsubishi and Raspberry. Maybe it will help me again!These are the connection,...

View Article


Python • I cant run 3 process at once in raspberry pi

Hi,I have a tfmini sharp lidar along with image processing and drive control. I want these 3 process to run simultaneously. (Image processing, drive, and tfmini data). I am able to multiprocessing of...

View Article

Python • Re: I cant run 3 process at once in raspberry pi

Which Raspberry Pi?Statistics: Posted by pidd — Tue Jun 18, 2024 5:13 pm

View Article

Python • Does RPi.GPIO work in Bookworm??

I have a pi 4 and upgraded the OS to Bookworm 64 bit yesterday. I then ran the python program (which worked fine before I upgraded) which uses the RPi.GPIO event detect library amongst other things....

View Article
Browsing all 1234 articles
Browse latest View live