Quantcast
Channel: Raspberry Pi Forums
Browsing all 1225 articles
Browse latest View live

Python • servo PCA9685

now the servo will not stop.Is not dispensing pill now.Code: import tkinter as tkfrom flask import Flask, render_template, request, redirect, url_forimport sqlite3import timeimport datetimeimport...

View Article


Python • Re: servo PCA9685

I need code to stop servo?Statistics: Posted by bob5731 — Wed Apr 10, 2024 4:41 am

View Article


Python • spidev with spi.max_speed_hz = 20000

Hello, I am developing software that runs on raspian on raspberry pi 3b and communicates with other devices using spi. For this I am using the spidev library in python. My problem is that one of the...

View Article

Image may be NSFW.
Clik here to view.

Python • Matplotlib Y axis problems

I've been using Matplotlib for a couple of years, and generally speaking, it works OK for me. There are however a couple of exceptions. Firstly, it sometimes creates so many ticks on the Y axis that...

View Article

Python • Re: Matplotlib Y axis problems

I'm not very experienced with matplotlib, but I'd start here:1. docs: https://matplotlib.org/stable/index.html2. matplotlib maintainers: https://github.com/matplotlib/matplotlib/issuesStatistics:...

View Article


Python • Regarding Libraries to playback audio using python code in raspberry...

I've tried several libraries like aplay, playsound, pygame to playback my audio clips in MP3 format but could hear noisy audio only. How do I resolve this issue? Is there any documentation regarding...

View Article

Python • SPI connect of Raspberry PI 4b and Zero 2W with pigpio

Hello,I am trying to connect 2 raspberries by SPI and establish the connection. I chosen pigpio since as far as I understand this is the only lib which could help with SPI slave mode as well. So, I...

View Article

Image may be NSFW.
Clik here to view.

Python • TIL: remove image background with rembg

Saw this on twitter and tried:https://twitter.com/Raynerdwebsdev/stat ... 0965515372I used crop of fullscreen screenshot as input (test.png):Then did install rembg:Code: ~/venv/bin/pip install...

View Article


Python • Can't install tensorflow pi 4

I can't install the python tensorflow library on pi 4. I am running bookworm. I used this cmd prompt: sudo pip install tensorflowit gives me: error: externally-managed-environment× This environment is...

View Article


Python • Re: Can't install tensorflow pi 4

Have you heeded the info at the link you were given?Statistics: Posted by drgeoff — Fri Apr 12, 2024 10:23 pm

View Article

Python • Formerly working and now not?

Hello, I have been using the following code to send text messages to myself for various purposes...I havent used it in a while but when I tried now all of a sudden it is raising the error message...I...

View Article

Python • Re: Formerly working and now not?

any idea how to troubleshoot this?Read the error message. Look at the circumstances that cause that error message to be raised. Investigate each potential cause. Fix the cause of the error.Statistics:...

View Article

Python • Problem with real-time circle detection using OpenCV on Raspberry Pi 4

Hello, I'm working on a project for my mechatronics engineering course where I need to detect circles in real time using a Raspberry Pi 4 Model B with a Raspberry Pi Rev 1.3 camera. I have configured...

View Article


Python • Re: Problem with real-time circle detection using OpenCV on...

https://github.com/opencv/opencv/issuesStatistics: Posted by memjr — Sat Apr 13, 2024 3:42 am

View Article

Python • Installing Pushbullet

Hello,I'm trying to follow this guide here -https://iotdesignpro.com/projects/home- ... tion-alertI get road blocked at only the third instruction in the list with this -pi@alarmpi:~ $ sudo pip...

View Article


Python • Re: Installing Pushbullet

Hello,I'm trying to follow this guide here -https://iotdesignpro.com/projects/home- ... tion-alertI get road blocked at only the third instruction in the list with this -pi@alarmpi:~ $ sudo pip...

View Article

Python • Raspberry pi 5 subprocess-exited-with-error

I wanted to make object detection with my arducam with raspberry pi 5 watching this official tutorial by tensorflowlitehttps://www.youtube.com/watch?v=mNjXEybFn98It was going well then after few...

View Article


Image may be NSFW.
Clik here to view.

Python • Pi 5 and VsCode Display issues

Hello AllFirst post here and just plugged in my new Pi 5, I then downloaded VsCode using the "Recommend Software" feature. For some reason the display looks like the picture attached. I used the same...

View Article

Python • Re: Pi 5 and VsCode Display issues

Looks like something to do with Remote Desktop.Statistics: Posted by rpiMike — Sun Apr 14, 2024 8:51 pm

View Article

Python • Re: picamera2 capture circular mp4

I think you want the Ffmpeg encoder for mp4, not the MJPEG one which is for streaming video.I would check on my camera Pi, but it's just gone offline in a hailstorm. I'll have to go rescue it and dry...

View Article
Browsing all 1225 articles
Browse latest View live