Python • Learning materials f0or Python & Raspberry Pi4 beginner
Hi all, I just bought a raspberry pi4b and would like to learn how to use it via programming with Python for projects concerning controls with sensors, maybe a robot kit etc.Can anyone recommend a...
View ArticlePython • Re: Learning materials f0or Python & Raspberry Pi4 beginner
Check this out https://projects.raspberrypi.org/en/pr ... -computingAnd for sensors e.g.https://gpiozero.readthedocs.io/en/latest/index.htmlStatistics: Posted by neilgl — Sat Jan 27, 2024 11:25 pm
View ArticlePython • VGA from Model 4B's GPIO...
Hello Folks!I was looking anywhere online and they do not get my point what I am looking for... Hope here to help...I am trying to find the python codes for my model 4B board to make GPIO out to the...
View ArticlePython • Re: VGA from Model 4B's GPIO...
You'll be looking for a VGA666 board.Statistics: Posted by ame — Mon Jan 29, 2024 3:39 am
View ArticlePython • RPI freezes by running this code
Hello, I am working on an autonomous car powered by arduino mega and raspberry pi 4B 8GB. Arduino communicates with rpi via UART and rpi sends commands like FORWARD, LEFT etc. The arduino reads them...
View ArticlePython • Re: RPI freezes by running this code
Why not just use the Pi - it would be much simpler?Statistics: Posted by rpiMike — Mon Jan 29, 2024 7:41 pm
View ArticlePython • Bookworm-start script in virtual environment after reboot
On older release of OS I simply run commandCode: sudo nano /etc/xdg/lxsession/LXDE-pi/autostartadd aditional line Code: @lxterminal -e python3 /home/vlado/Project/main.pyAnd that's it, main.py was...
View ArticlePython • Re: Bookworm-start script in virtual environment after reboot
On older release of OS I simply run commandCode: sudo nano /etc/xdg/lxsession/LXDE-pi/autostartadd aditional line Code: @lxterminal -e python3 /home/vlado/Project/main.pyAnd that's it, main.py was...
View ArticlePython • Pi5 works with Python 3.8.10?
Hi , I need your advices I'm currently working on my graduation project and I'm using YOLOv8 in Python 3.8.10.Could anyone please tell me which Raspberry Pi is suitable for me Pi4 or Pi5 ? I'm so...
View ArticlePython • Re: Pi5 works with Python 3.8.10?
4 or 5 is fine.The latest OS has python 3.11 installed.But you can have multiple versions of python running side by side if you must use 3.8.Statistics: Posted by memjr — Mon Jan 29, 2024 10:45 pm
View ArticlePython • Command in crontab runs on jessie but not bullseye
I have run the same crontab text for years on one of my jessie OS Raspberry Pi's but trying to run the same text on a Raspberry Pi running bullseye, results in - nothing.Could someone please advise if...
View ArticlePython • Re: Command in crontab runs on jessie but not bullseye
One difference that might be significant is that recent releases of RasPiOS Bullseye will not have had a default pi user. Did you you create an account for user pi at installation or first...
View ArticlePython • Please help, python hates me.
I'm trying to get this camera to identify if a thing is a person, then output it's location in the camera image as coordinates ([x,y] that I'll convert to rotation degrees, a problem for a later...
View ArticlePython • Re: Please help, python hates me.
cap = cv2.VideoCapture(0) won't work in bookworm.try picamera2.. example belowwhere have to put the haar_cascade_xml_file ?Code: import cv2import numpy as npfrom picamera2 import Picamera2# start Pi...
View ArticlePython • GPIOs - GPIOZero - RP5 drives ME crazy instead of the steppermotor
Hej Folks!I am relatively new to RP, playing around for about 4 weeks now with the RP5. Half a year of experience with Python. So maybe my question is obvious to solve for others, but i have done...
View ArticlePython • Re: GPIOs - GPIOZero - RP5 drives ME crazy instead of the steppermotor
There is no point in using the pigpio or the RPi.GPIO backend. They do not and probably never will work on the Pi5 (or later Pis).Statistics: Posted by joan — Wed Jan 31, 2024 6:06 pm
View ArticlePython • Re: VGA from Model 4B's GPIO...
Once you have the hardware, it's just a matter of configuration in config.txt and cmdline.txt to set up the output.No C or Python code required.I've got one of the VGA666 boards and have used it with...
View ArticlePython • Second Thought of 2nd video output with Python codes...
I have RBPI4B board, I had one HDMI out to my a HDMI monitor as desktop... also I add HDMI to VGA adaptor on 2nd HDMI port to VGA Monitor should works but not sure if I can change the resolution and...
View ArticlePython • Re: Second Thought of 2nd video output with Python codes...
Nevermind, I found it... here is:Code: import pywintypesimport win32apiimport win32condevmode = pywintypes.DEVMODEType()devmode.PelsWidth = 2560devmode.PelsHeight = 1440devmode.Fields =...
View ArticlePython • Strange behavior of time
I try to manipulate the time and get these errors on raspberry pi.Running these on my mac in python no problems.What is wrong?Code: current_time = time.localtime() ^^^^^^^^^^^^^^AttributeError: 'Time'...
View Article