Quantcast
Browsing all 1241 articles
Browse latest View live

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 Article


Python • 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 Article


Python • 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 Article

Python • 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 Article

Python • 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 Article


Python • 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 Article

Python • 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 Article

Python • 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 Article


Python • 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 Article


Python • 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 Article

Python • 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 Article

Python • 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 Article

Python • 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 Article


Python • 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 Article

Python • 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 Article


Image may be NSFW.
Clik here to view.

Python • 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 Article

Python • 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 Article


Python • 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 Article

Python • 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 Article

Python • 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
Browsing all 1241 articles
Browse latest View live