Quantcast
Browsing all 1234 articles
Browse latest View live

Python • Obstacle Avoidance Robot Mark 3!

I need some help, I upgraded my obstacle avoidance robot to use a ultrasonic sensor. I wrote code and it can use and read the data. But, it won't move, I was wondering if anyone had any help to offer....

View Article


Python • Re: Obstacle Avoidance Robot Mark 3!

Your code never gets out of the first loop printing the distances!Statistics: Posted by rpiMike — Fri Jan 17, 2025 10:53 pm

View Article


Python • Re: Keep getting this error message

I can confirm that since putting in a clean OS, that due to upgrading Python, for whatever reasons unbeknown only to me, kinda messed things up. All running smoothly now. And I can also confirm, I...

View Article

Python • Re: Rpi5, pi3d, x11, uggg lol

OK, Well I finally got this figured out! Fresh bookworm with desktop installation, boot to the CLI. Screw messing around with the virtual environment, let the installs rip with --break-system-packages...

View Article

Python • Re: remove jitter from servo?

Which pi is it running on and which OS (e.g. Raspberry Pi OS 64-bit Lite or other)?Statistics: Posted by neilgl — Sun Jan 19, 2025 10:00 am

View Article


Python • Combine three elements to make a URL

I am trying to clean up some code so that it may be shared. The existing code contains URLs that if in the hands of the wrong people could be used to really confuse my device. The URLs contain...

View Article

Python • Re: LED matrix board error

What LED matrix board are you using? Got a link?Post your Python code.Code: ''' Created by Baue Teeling '''# import librariesfrom flask import Flask, request, jsonifyfrom flask_cors import CORSimport...

View Article

Python • Re: Combine three elements to make a URL

Maybe -Code: URL = "{}{}{}".format(KEY1,alert,KEY2)Or even -Code: URL = KEY1 + alert + KEY2Statistics: Posted by hippy — Sun Jan 19, 2025 2:00 pm

View Article


Python • KeyboardInterrupt in While True statement

I have a program that starts with an image. When a button is pressed, a video plays, then when the video is over, it loops back to the original image. This is for a display room so I want this to...

View Article


Python • MicroPython/RPi Pico sys.exit()

Hello AllNewbie question:Running a Pico with MicroPython (Thonny on my PC). I wrote three programs. I am running two sets of servos, each with different timings. The third program "calls" the first...

View Article

Python • Re: MicroPython/RPi Pico sys.exit()

This is a guess based on my knowledge of how microPython and thonny work so could be wrong.When running from thonny, the code is pushed into RAM on the Pico which then gets erased when the Pico...

View Article

Python • Re: Importing picamera2 causes imshow hang

Hi, wondering if any of you have luck? I have the same issue.Running RPi4B w/ new install of Bookworm as well, w/ a RPi Camera Module 3.Statistics: Posted by easternspork — Sun Jan 19, 2025 6:05 pm

View Article

Python • Re: KeyboardInterrupt in While True statement

I guess you're using os.system. Don't use it.Sample to demonstrate:Code: import osimport subprocessdef video1(): # blocking call # grabs stdin, stdout, stderr and KeyboardInterrupt # simply, never use...

View Article


Python • Issues installing pybluez2

I've been working on a little project that scans nearby bluetooth devices and was trying to use pybluez2. Whenever I try to do it on the pi, I get this error.Code:...

View Article

Python • Re: Issues installing pybluez2

"fresh raspian" - is that Raspberry Pi OS (64-bit) with desktop "Bookworm" or something else?Which pi are you running it on?Statistics: Posted by neilgl — Mon Jan 20, 2025 10:06 pm

View Article


Image may be NSFW.
Clik here to view.

Python • Re: remove jitter from servo?

Is it a servo like this?Statistics: Posted by neilgl — Tue Jan 21, 2025 10:14 am

View Article

Python • 8-color mode only on a MSP3520 LCD (ILI9488 driver)

Hi all,I'm using the Vasily Kapustin driver with a 3.5inch SPI Module ILI9488 SKU:MSP3520 LCD display on Raspberry PI 3B.It works but it's only 8-color mode.I d'ont know why the RGB565 mode is not...

View Article


Python • Re: ST7588 driver for python script raspberry pi

thks have you already tested this lib ?Statistics: Posted by bbd666 — Tue Jan 21, 2025 3:23 pm

View Article

Image may be NSFW.
Clik here to view.

Python • Vosk in Raspberry pi 4, i have errors how to fix?

my code: Code: from vosk import Model, KaldiRecognizerimport pyaudiofrom rapidfuzz import fuzz# Load Vosk modelmodel =...

View Article

Python • Re: Obstacle Avoidance Robot Mark 3!

Awesome thank you!Statistics: Posted by Jweld1117 — Tue Jan 21, 2025 8:04 pm

View Article
Browsing all 1234 articles
Browse latest View live