Python • Re: Gpiod 'get_line' Error
All you did worked for me under Buster on a Pi 3B ...Code: Python 3.7.3 (default, Mar 23 2024, 16:12:05)>>> import gpiod>>> chip = gpiod.Chip('gpiochip0')>>> led_line =...
View ArticlePython • Re: Python3 + Gphoto latency issue
Sorry I saw you second response of "Just a question does a picamera also have latency when taking a picture?" and assumed it was an indication that you were using a PICamera. So also please ignore my...
View ArticlePython • Looking for python code for 433 MHz reciever
I have a Raspberry Pi 4 and I want code that reads characters from a 433 MHz rf module. Have this modulehttps://www.amazon.se/dp/B0B7DJVPYZ?psc ... ct_detailsMy problem is that when i google about...
View ArticlePython • Re: Looking for python code for 433 MHz reciever
I'm sure there is some horribly written software out there for these modules, but not all of it can be horribly bad. Meaning, you probably already ran into the simpler versions of that code out there...
View ArticlePython • lgpio.error: 'GPIO busy'
Recently I bought rpi 5, I have connected a LED to it and every time I try to run this code I get: lgpio.error: 'GPIO busy'Code: from gpiozero import LEDfrom time import sleepled = LED(26)try: while...
View ArticlePython • Convert Integer to Hex Byte for use in I2C comms
I need to convert a decimal integer in range 0 to 255 into a byte with constant length.The byte will be appended to a bytearray to provide the variable data input to the I2C component's...
View ArticlePython • Re: Convert Integer to Hex Byte for use in I2C comms
You don't need to. It will happen automagically.If you write hex code withCode: x=0x4fthat's exactly equivalent toCode: x=79or octal codeCode: x=0o117Putting it all togetherCode:...
View ArticlePython • nrgpio python command not running
"Good evening, I'm using a Raspberry Pi 5, with Node-RED version 3.1.9, Node.js version 21.7.3, Python version 3.11....I'm working on a project in Node-RED that needs to control the GPIO pins of the...
View ArticlePython • PyQt5 WebEngineView on Rpi 3 not working
Hi, I am able to install pyqt5 in rpi using theCode: sudo apt install python3-pyqt5But not able to install the WebEngine view, should I be compiling the source code of qt5 web engine view and how to...
View ArticlePython • Python script calling VLC on startup fails
I know similar questions have been asked and answered before, but so far nothing I've managed to find has solved my problem.I have a python script I want to run at startup. This script uses vlc-ctrl...
View ArticlePython • Re: Python script calling VLC on startup fails
What Pi is it running on and which version of the OS? Raspberry Pi OS (Legacy, 32-bit) "Bullseye" or something else?The guid to all things startup is here: viewtopic.php?t=314455Statistics: Posted by...
View ArticlePython • Re: PyQt5 WebEngineView on Rpi 3 not working
pyqt5 documentaion, support links, etc, can be found here: https://pypi.org/project/PyQt5/Statistics: Posted by memjr — Tue Apr 30, 2024 6:39 pm
View ArticlePython • 5V fan wont turn on using code
Hello everyone, Im doing a project that requires me to turn on this 5v fan using python. But nomatter what changes I make to the pins or code I cant get the fan to turn on using my code. Can anyone...
View ArticlePython • Re: Issue with 2 python scripts running simultaneously
That is normal, your script is running in a loop which does not allow the CPU to "breathe" and that causes a lot of CPU-time. I've made some untested modifications to your "File1.py" which will allow...
View ArticlePython • Re: 5V fan wont turn on using code
Can't tell from your diagram what your circuit looks like.However, I believe, if your fan is 5V you will not be able to control it with a 3.3V GPIO pin without using a transistor or MOSFET that the...
View ArticlePython • How to use different versions of Python?
Hello, I installed tensorflow lite on my rp5 but it gave errors. I read that tf lite doesn't work on 3.11 and I have to downgrade to Python 3.9.When i select Python 3.9 on Thonny, it gives this...
View ArticlePython • Re: How to use different versions of Python?
Are you using CIrcuitPython by any chance?Statistics: Posted by neilgl — Wed May 01, 2024 4:51 pm
View ArticlePython • PicoW - Cell Phone/Windows prompt for PassWord after selecting SSID
I am trying to figure out how I can have a cell phone and or the windows 11 prompt me for my Pico AP's "Password" when I select the SSID and not either load it automatically with in the code or enter...
View ArticlePython • Re: Issues installing OpenCV Virtual Enviroment
It's very simple to install and configure virtualenv on rpi5. I had same problem during package installation. I tested the solution on my rpi5.Follow the given steps.Step1: Install required packages...
View ArticlePython • Re: GPIO.wait_for_edge >>> RuntimeError: Error waiting for...
I would also like to report this problem.GPIO.wait_for_edge has historically worked in Python on 32 bit and 64 bit versions. I can replicate this run time error on Raspberry Pi Zeros: Python 3.11.2...
View Article