Python • Re: Problems using PWM in subprocess
Hi Siggerud,Are you using a Pi5.On the Pi5 , The software PWM is not stable because other process will interrupt it. But there is at least four Hardware pins that you could use instead.I don't know if...
View ArticlePython • Re: Button to restart Pi, button to restart program
Thank you for all of the suggestions. I was unable to get any of them to work, but I did find out that I can just create a countdown timer that allows the buttons to be detected because there is only...
View ArticlePython • Re: Cron job for discord.py python script
I actually just did nearly exactly this though with venv. However I am running into an issue where the service finishes executing after 1/10th of a second under a SUCESS status.Assuming no errors are...
View ArticlePython • Help with the code
Hello, I have this code,which is used for x axis on graph. It shows names like januar, februar, ... on x axisCode: months = [1,2,3,4,5,6,7,8,9,10]month_labels = [ # Generate a list of tuples (x_value,...
View ArticlePython • Re: Help with the code
Aside from print("[(1, '1'), (2, '2'), (3, '3'), (4, '4'), (5, '5'), (6, '6'), (7, '7'), (8, '1'), (9, '2'), (10, '3')]")you could useCode: my_x_axses = [1,2,3,4,5,6,7,1,2,3]x_axces = []for...
View ArticlePython • Can someone try installing these two Python packages to see if they...
I've been considering getting a Raspberry Pi and have been playing around with running Kali Linux on an old tablet using Termux. The problem I'm seeing on the tablet environment is that I just can't...
View ArticlePython • Re: Can someone try installing these two Python packages to see if...
I've been considering getting a Raspberry Pi and have been playing around with running Kali Linux on an old tablet using Termux. The problem I'm seeing on the tablet environment is that I just can't...
View ArticlePython • Re: Pi 5 / RC522 / Python for RFID Reading?
Here's your text translated into English, formatted without any code boxes so you can directly copy and paste it into the forum:Hello, I also bought a Pi 5 and am experiencing the same issues. Here’s...
View ArticlePython • Re: Problems using PWM in subprocess
Hi Siggerud,Are you using a Pi5.On the Pi5 , The software PWM is not stable because other process will interrupt it. But there is at least four Hardware pins that you could use instead.I don't know if...
View ArticlePython • pytz not in raspiOS lite(32 bit)
I'm running Raspberry Pi OS Lite (32 bit) on a Pi3. The library package pytz is not installed by default. pip install pytz # did not work pip install python3-pytz # did not workUsing apt instead of...
View ArticlePython • Re: pytz not in raspiOS lite(32 bit)
There are two distinct issues here. First, pytz is officially deprecated. There is, however, a compatibility shim for those unable to immediately deprecate the usage of it in their code:Code:...
View ArticlePython • Connecting the radiation sensor "RadiationD-v1.1(Cajoe)"...
When using the following code to read pulses from this sensorimport timeimport datetimeimport RPi.GPIO as GPIOfrom collections import dequecounts = deque()usvh_ratio = 0.00812037037037 # This is for...
View ArticlePython • Re: Connecting the radiation sensor...
When using the following code to read pulses from this sensor[ ... ]the following error occurs GPIO.add_event_detect(2, GPIO.FALLING, callback=impulse) # определение внешнего прерывания...
View ArticlePython • python3 script to make a headless pi display shutting down on 2004a...
I just need a line of script to help me do this i am running this pi 4b headless to operate my model trains via jmri i need to initiate a shutdown and verify shutdown is completed so i can turnoff...
View ArticlePython • Using a Raspberry Pi 4 to make a bleep type noise
As my family are constantly leaving a door open, I have added a Raspberry Pi 4, running a tkinter program under Python 3. This is activated using a standard Magnetic door switch as used in a Burglar...
View ArticlePython • Re: Using a Raspberry Pi 4 to make a bleep type noise
Have a look at this buzzer on GPIO: https://projects.raspberrypi.org/en/pro ... omputing/8Statistics: Posted by neilgl — Sun Sep 08, 2024 3:54 pm
View ArticlePython • Re: Virtual environment? Virtual machine? Which should I use?
FWIW, if your PI is a single project platform and you have no plans to make it portable then just use Python on Buster natively. This is what I personally do BUT I make sure now I don't use sudo pip...
View ArticlePython • Re: run python code at raspberry startup
I'm not using VENV. I've installed the libraries using "--break-system-packages" option.Statistics: Posted by mchimot — Mon Sep 09, 2024 2:48 pm
View ArticlePython • Is Python on a Pi4 fast enough to generate a monochrome video signal?
I'm looking for a way to test old CRT monitors. These typically use monochrome display adapters (MDA) or similar.4 TTL signal wires: - Vsync - Hsync - Data - Intensity (I think?)I came across lots of...
View ArticlePython • Re: Is Python on a Pi4 fast enough to generate a monochrome video...
Perhaps consider an RP2040-based solution like a VGA Board - https://shop.pimoroni.com/products/pimo ... -demo-baseStatistics: Posted by hippy — Mon Sep 09, 2024 4:40 pm
View Article