Python • help wanted with code not working
Hi i tried to make an old project from hackershack (the rpi doorbell) and when trying to run the code i get this error Code: sudo python doorbell.pyStarting Doorbell...sh: 1: tvservice: not foundsh:...
View ArticlePython • Re: help wanted with code not working
Which Pi are you running it on (Pi5 or Pi4 etc.) and which version of Raspberry Pi OS? (Bookworm, Bullseye etc.)Statistics: Posted by neilgl — Sun May 26, 2024 1:49 pm
View ArticlePython • Integration CAN for Raspberry Pi Project
Hello everyone,I'm currently working on a project involving classifications in an embedded system setup. For this purpose, I'm using a Raspberry Pi to send commands via CAN to a device with the...
View ArticlePython • Re: Integration CAN for Raspberry Pi Project
Here is one library that I could find: https://github.com/ascuadrado/mcp2515_rpiStatistics: Posted by trickysolution — Mon May 27, 2024 3:54 pm
View ArticlePython • How to use gpiod library when I activate python3-venv
this is my buzzer.py, I can run this code when I do not activate python3-venv, but I cannot run when I activate python3-venvI tried pip3 install gpiod when I activate venv, line4's gpiodchip4 ->...
View ArticlePython • Re: How to use gpiod library when I activate python3-venv
Python code relies on indentation (left-hand white space) for its syntax. The forum software provides [ Code ] tag markup to preserve indentation. You can - and should - retrospectively correct your...
View ArticlePython • open meteo - extract sunrise time
Hi,I have just moved to Open Meteo for weather data, from Open Weather who now require credit card details.I am using this code generated by Open Meteo documentation to load a 7 day forecast of max...
View ArticlePython • Re: open meteo - extract sunrise time
This example uses curl to get the data (I did not want to install any new modules) from open-meteo. Then we convert the string result to JSON and extract sunrise time to get Code:...
View ArticlePython • Motor Control RASP 3B
Hello.... im newby here.... but im working with some small project.Basically just i want to control motor on...1. Wait for "R" key to start motor run2. Stop until button is pressed3. Wait for "R" to...
View ArticlePython • Re: Motor Control RASP 3B
What sort of motor is it? (servo, stepper, DC, other)Have you looked at motor control in gpiozero https://gpiozero.readthedocs.io/en/stab ... tml#motorsStatistics: Posted by neilgl — Wed May 29, 2024...
View ArticlePython • Connecting RS485 via Modbus to Mitsubishi
Hi everybody,i hope this is the correct section to ask this question.This is what i have: - Raspberry Pi 4 - I have this RS485 CAN HAT: https://www.waveshare.com/wiki/RS485_CAN_HAT - I have a...
View ArticlePython • Re: Connecting RS485 via Modbus to Mitsubishi
Check some modbus instructions:https://ipc2u.com/articles/knowledge-ba ... -examples/Example of code, which works in my case:test.pyCode: #...
View ArticlePython • RuntimeError: Failed to add edge detection after upgrade to...
I have been running a program very successfully on a Raspberry Pi3 running bullseye and I have replaced the Pi3 with a Pi4 running bookworm. My program seems to run perfectly except what is probably...
View ArticlePython • Re: RuntimeError: Failed to add edge detection after upgrade to...
Change your code to use gpiozero.Statistics: Posted by rpiMike — Sun Jun 02, 2024 10:18 am
View ArticlePython • PySide6 is missing in Raspberry Pi OS (32-bit) (based on Debian...
Using Raspberry Pi 4, Raspberry, Pi Imager and Raspberry Pi OS (32-bit) (based on Debian Bookworm) from 2024-03-15,after `sudo apt-get update` `sudo apt-get upgrade` und `sudo apt full-upgrade` i did:...
View ArticlePython • Cannot determine SOC peripheral base address
can anyone please help me troubleshoot this error ? i have attached the screenshotStatistics: Posted by Virksaab — Sun Jun 02, 2024 2:30 pm
View ArticlePython • Re: Cannot determine SOC peripheral base address
Is it a Pi5?If so, you can't use the gpio library any more.There are replacements available.If using Bookworm (which you will be if it's a Pi5) activate your env first.Open a terminal window and type...
View ArticlePython • Re: PySide6 is missing in Raspberry Pi OS (32-bit) (based on Debian...
Looks like there is not a 32-bit version (pip install fails same as yours). This works OK on a Pi4 running Bookworm 64-bit. Create a venv then: Code: pip install PySide6....Installing collected...
View ArticlePython • Re: Program that works in windows not working on pi
None of that code by itself does anything.Post the entire code.Statistics: Posted by memjr — Mon Jun 03, 2024 6:16 am
View ArticlePython • Re: Raspberry pi 5 subprocess-exited-with-error
So can we Do Dual Object Detection With Raspberry Pi + I cant find anything related even with bookworm os and object detection for single cameraStatistics: Posted by uthumpiuser — Mon Jun 03, 2024...
View Article