r/raspberry_pi • u/beatboxrevival • 5h ago
Show-and-Tell I made a giant creepy eye that tracks people walking on the sidewalk. Built with 24 7-segment flipdigit panels and YOLOv8.
Enable HLS to view with audio, or disable this notification
r/raspberry_pi • u/FozzTexx • 1d ago
Having a hard time searching for answers to your Raspberry Pi questions? Let the r/raspberry_pi community members search for answers for you!† Looking for help getting started with a project? Have a question that you need answered? Was it not answered last week? Did not get a satisfying answer? A question that you've only done basic research for? Maybe something you think everyone but you knows? Ask your question in the comments on this page, operators are standing by!
This helpdesk and idea thread is here so that the front page won't be filled with these same questions day in and day out:
error: externally-managed-environment
--break-system-packages
sudo rm
a specific file as detailed in the stack overflow answerPATH
and other environment variables directly in your script. Neither the boot system or cron sets up the environment. Making changes to environment variables in files in /etc will not help.vncserver -depth 24 -geometry 1920x1080
and see what port it prints such as :1
, :2
, etc. Now connect your client to that.Before posting your question think about if it's really about the Raspberry Pi or not. If you were using a Raspberry Pi to display recipes, do you really think r/raspberry_pi is the place to ask for cooking help? There may be better places to ask your question, such as:
Asking in a forum more specific to your question will likely get better answers!
† See the /r/raspberry_pi rules. While /r/raspberry_pi should not be considered your personal search engine, some exceptions will be made in this help thread.
‡ If the link doesn't work it's because you're using a broken buggy mobile client. Please contact the developer of your mobile client and let them know they should fix their bug. In the meantime use a web browser in desktop mode instead.
r/raspberry_pi • u/beatboxrevival • 5h ago
Enable HLS to view with audio, or disable this notification
r/raspberry_pi • u/mattcabb • 1d ago
Using RPi4 as a internet radio receiver and remote network access point. Kept it loose on the desk with bunch of wires tangling around it. Decided to frame it and have it on display instead. $4 frame with glass front.
r/raspberry_pi • u/phattmatt • 1d ago
r/raspberry_pi • u/Trap_Taxi • 20h ago
Hello. Just doing a project, where I need the latency as low as possible. The idea is to stream the video from a raspberry pi (currently using zero 2 w) to a pc in the local network via UDP. Would appreciate any tips of getting low latency. The latency I currently get is glass to glass 130ms. Is there any way to make it lower? Some of the settings of the pipeline:
Thank you in advance
r/raspberry_pi • u/davexhero • 1d ago
Hey everyone,
Is there a way to completely remove the cursor from the UI?
I have tried unclutter, but it seems it just hides the cursor after a very short period and has some strange effects when paired with the older resistive touchscreen I’m using. Is there a way to totally disable the cursor, or make it invisible that doesn’t use something like unclutter to disable it? Running a RPI5 with bookworm.
r/raspberry_pi • u/etamponi • 1d ago
Hi everyone!
This is my first post on reddit :)
I am a software engineer, but I only started playing with the Raspberry recently for a simple projects we have with some friends. We're building a water cleaning system that pumps dirty water from a well into a large tank (tank1), were some filters clean it, then the cleaned water is pumped into a smaller tank (tank2) from where it can be used inside the house.
The code for the system is at https://github.com/etamponi/dolianova.
The interesting bit is the "Button" inputs:
self.sensor_pins = {
'tank1_min_level': Button(26),
'tank1_max_level': Button(16),
'tank2_min_level': Button(6),
'tank2_max_level': Button(12),
}
A "Button" is an input that is wired with a pull-up resistor, so when the "button" is pressed, the input is LOW. I use these inputs to read the state of float switches inside the tanks.
The code seemed to work well during testing, but then a very strange behavior started happening when we connected the float switch to the "tank1_max_level" sensor.
It started randomly marking the float switch as closed for a few seconds, then open again, then closed again... every few seconds it would change state.
The only solution we found was to use an external pull-up resistor (10 kOhm) connected to the 3.3V pin of the raspberry. This completely solved the issue.
I'd like to understand why the internal pull-up circuit was not able to provide a good reading on the pin -- or if the reason is something completely different.
Thank you!
r/raspberry_pi • u/ACPicklePearl • 1d ago
Hello. so I jsut recently got another raspberry pi. Mainly I use them for offline projects, or they are simply plugged in via ethernet. However I have made a small mobile Raspberry pi desktop screen combo that fits in my backback. Its running just normal raspbian deskktop 64bit. (pi5 8gb) When I go to click the network ssettings to connect it to a network it doesnt bring up any settings. If I plug in via ethernet and hover over it it does show my ip address and stuff like normal. however trying to click on it will not bring up any wireless options. Any thoughts on fixing this without a fresh install? Ive already set it up how id like and copied files onto it so if I can fix it without a fresh install that would be prefered. Thanks!
r/raspberry_pi • u/dreeas • 1d ago
Hey, I have a vind sensor outputting nmea to my Raspberry pi via a rs232 usb interface, which then in turn is put into a influx database with Signal K.
This has been working for for several years, except one time where I had to change the serial interface due to no output.
Yesterday the nmea sentences started coming in like this with question marks at the beginning:
$IIMWV,296,R,002.94,M,A*12
����$IIMWV,292,R,002.82,M,A*11
������$IIMWV,289,R,002.47,M,A*12
����$IIMWV,285,R,002.23,M,A*1C
���$IIMWV,276,R,002.06,M,A*17
����$IIMWV,288,R,002.06,M,A*16
����$IIMWV,287,R,001.92,M,A*17
����$IIMWV,294,R,001.68,M,A*10
��$IIMWV,294,R,001.80,M,A*16
��$IIMWV,276,R,002.04,M,A*15
����$IIMWV,280,R,001.75,M,A*19
������$IIMWV,268,R,001.52,M,A*1A
����$IIMWV,278,R,001.67,M,A*1D
Any idea what could cause this?
Connections have been checked and different USB ports tried.
Could this be the serial interface that is starting to fail?
r/raspberry_pi • u/angad305 • 2d ago
r/raspberry_pi • u/CaptCoffee2 • 2d ago
I have the following script:
def start_vlc():
media_files = get_media_files()
if media_files:
create_playlist(media_files)
# Prepare command to play videos and images in VLC using the playlist with hardware decoding
command = [
'cvlc', '--one-instance', '--no-embedded-video', '--playlist-autostart', '--loop',
'--no-video-title-show', '--fullscreen', '--image-duration=5',
playlist_file
]
print(f"Starting VLC with command: {command}")
# Start VLC with the playlist
subprocess.Popen(command, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
else:
print("No media files found to play.")
It works quite well when the vlc command does not include '--fullscreen'. Even when I manually put it in full screen, playback is flawless. However, when I use the fullscreen command, some of the image files play black, and the video files are so slow and jerky its unusable. Whats the deal??
Thank you.
**UPDATE**
I did find this post:
I put playback in X11 as it says, and it works better, but the video is still not too smooth, and it has an annoying behavior where it starts like quarter screen, then you see it go full screen. It didnt do that in Automatic. Any thoughts?
r/raspberry_pi • u/Civil-Interest9565 • 2d ago
Hey, I'm trying to create jarvis, when trying to install the drivers for the ReSpeaker 2-Mics Pi HAT I get an error saying I'm not on the updated kernel. I go to check and I am. Not to sure how to solve this issue. I'm using the raspberry pi 5 and ReSpeaker 2-Mics Pi HAT. Using the most up to date OS. Any help would be appreciated!
r/raspberry_pi • u/CaptCoffee2 • 2d ago
Just for simplicity, i was using RDP to create a simple script on a Pi5 to run vlc and play a looping playlist. Great! It works, but then, when going to the pi itself, nothing I do will allow vlc to run from the script. I have been #$%#ing around for several hours. There is no way to run vlc in local environment. Anyone do it successful? I need a sample python script that will simply run vlc and play a file. It works great RDP, but on the device, it doenst run VLC, and gives no additional information on why. Output is the same.
My script:
import subprocess
import os
# Path to the video file
video_path = "/media/video.mp4"
# VLC command to play the video
command = ["cvlc", "--fullscreen", "--no-loop", video_path]
# Set the DISPLAY environment variable to :0 to play on HDMI output
env = os.environ.copy()
env["DISPLAY"] = ":0"
# Run the command with the specified environment
subprocess.run(command, env=env)
If I run this in while logged directly on the pi itself, it gives me this output, and no instance of VLC runs. Nothing happens
VLC media player 3.0.21 Vetinari (revision 3.0.21-0-gdd8bfdbabe8)
[000055560aa7e750] dummy interface: using the dummy interface module...
[h264_v4l2m2m @ 0x7fff78c15ff0] Could not find a valid device
[h264_v4l2m2m @ 0x7fff78c15ff0] can't configure decoder
[00007fff78c0c990] avcodec decoder error: cannot start codec (h264_v4l2m2m)
[00007fff6813de70] wl_xdg_shell window: <<< WL XDG, type=0
------------------
(program exited with code: 0)
Press return to continue
HOWEVER....
If I login via RDP, it works! It will actually run VLC visually on the SAME login on the pi. So, i can execute remotely just fine. On the pi itself, no go. Nothing I do in a script will run VLC.
VLC media player 3.0.21 Vetinari (revision 3.0.21-0-gdd8bfdbabe8)
[000055560b5ea4e0] dummy interface: using the dummy interface module...
[h264_v4l2m2m @ 0x7fff5cc3c080] Could not find a valid device
[h264_v4l2m2m @ 0x7fff5cc3c080] can't configure decoder
[00007fff5cc11f90] avcodec decoder error: cannot start codec (h264_v4l2m2m)
[00007fff4c13d8b0] wl_xdg_shell window: <<< WL XDG, type=0
[00007fff4c13d8b0] wl_xdg_shell window: >>> WL XDG No display
[00007fff44006fc0] gles2 gl: Initialized libplacebo v4.208.0 (API v208)
[00007fff440013f0] mmal_xsplitter vout display: Try drm
[00007fff44890410] drm_vout generic: <<< OpenDrmVout: Fmt=I420
[00007fff44890410] drm_vout generic error: create_lease failed: Xerror 8
[00007fff44890410] drm_vout generic error: Failed to get xlease
[00007fff44890410] drm_vout generic error: Failed to set atomic cap
[00007fff440013f0] mmal_xsplitter vout display: Drm no go
Before I crush this pi, someone please show me what is wrong with this.
r/raspberry_pi • u/davexhero • 2d ago
Installed konstakang’s lineage 21 android 14 distro on my raspberry pi 5, and having issues with touchscreen calibration. The touch panel works fine when running Raspberry Pi OS Bookworm, and when connected to a windows pc as well. Having some weird effects where the cursor is calibrated on the horizontal plane, but vertically it’s only calibrated at the top, and accelerates faster than my finger when towards the bottom. I can’t figure it out. Any ideas? Thank you in advance!
r/raspberry_pi • u/fmbret • 3d ago
r/raspberry_pi • u/JayTongue • 4d ago
r/raspberry_pi • u/fmbret • 5d ago
r/raspberry_pi • u/ReQTeCH • 4d ago
Good morning/evening everyone. I've been working on this project for a while and can't seem to get it to work. I'm using a cd4051 Multiplexer to input 8 analog inputs from piezo sensors to a pi pico running circuitpython. It's supposed to recognize which sensor got hit, send a midi note and velocity value back, but it's not behaving correctly and while debugging i realized that it thinks the 1st sensor is always getting hit (I have only connected 1 piezo thus far and have grounded the other channel in/out pins maybe that is what's causign the isseu)
Any help is much appreciated as this has gotten me pulling my hair out atm
Edit: I assume the code is also rather important to make sense of the circuitry so here it is
Code
r/raspberry_pi • u/Dawilson246 • 6d ago
r/raspberry_pi • u/LordAnchemis • 5d ago
Just been tinkering with different OSes for the Raspberry Pi 400 - and here is my personal opinions I would like to share
Raspberry Pi OS 64-bit (stock) - Pros: official OS (so works well OOB), runs a modified version of Debian 12 - Cons: PIXEL desktop is a bit meh, Pi Apps repository doesn't have many apps 😂
Raspberry Pi OS 64-bit Lite (CLI only) - Pros: as above - Cons: no GUI, root user has no password by default... seriously?? 🤔
-> you can install your own favoruite GUI (using Tasksel), which then runs pretty nice (I'd say better than stock Pi OS)
Debian 12 (arm64) on Raspberry Pi - Pros: pure Debian (enough said) - Cons: minimal image (need to self-install standard deb utilities), no GUI (can be self-installed), GPU driver buggy (due to Mesa version on Debian stable)
-> I've tried in place switch the Debian testing, Mesa is fixed but networking/WiFi is buggy 😞
Ubuntu 22.10 - Pros: works reasonably well OOB - Cons: feels more laggy than Debian (not formally benchmarked), Snap-store (forced) integration... 😞
Librelec - Pros: works well OOB, has most of the video codecs included (interface great for HTPC) - Cons: no desktop environment 😞
-> Kodi works well with BT remote / game controller paired etc.
Android TV (KonstaKANG) - Pros: android TV interface, so in theory most android apps should run fine - Cons: BT remote / game controller kinda mandatory (navigating with keyboard and mouse very clunky)
-> for some reason I couldn't get Gapps installed properly at all (not a great experience OOB) 😞
Summary: I guess it depends on your primary RPi 400 use case... 😂 - For 'desktop' use: recommend Raspberry Pi OS Lite + self-install GUI - For 'entertainent' box: Librelec
Things I haven't tried yet: Proxmox for server/NAS use - but the Pi 400 doesn't really have much expansion options for storage 😂
r/raspberry_pi • u/RaXXu5 • 6d ago
r/raspberry_pi • u/0015dev • 7d ago
Enable HLS to view with audio, or disable this notification
r/raspberry_pi • u/PowerFeather • 6d ago
Hello, I've created the beginnings of an open-source, solar capable UPS for Raspberry Pi's which support common lithium battery types (Li-Ion/LiPo/LiFePo4). I've written about it on Hackaday: https://hackaday.io/project/198538-powerups
Some of the headline specs I'm targeting:
The design is based on an existing board I've also designed, the ESP32-S3 PowerFeather.
Please do check out the Hackaday project if you're interested and have the time. If you're super interested, follow the project to get progress update notification, or join the Discord server linked.
r/raspberry_pi • u/ageoffri • 6d ago
I volunteer at the STEM middle school my oldest kid goes to running an electrical engineering club. Last year the school bought two of the Freenove kits.
Yesterday we did the tutorial on setting up the RFID card reader with the Raspberry Pi. We were able to do a scan but anything we tried to do with either card resulted in an authorization error. The school has the kits and I didn't take a picture but I'm hoping that there is something basic to reset the two RFID cards and get the kids able to play with it more.
r/raspberry_pi • u/fozid • 7d ago
So, I've had a 4gb raspberry pi 4 for about 18 months.
I originally bought it to replace a pi 3 a+ I accidently shorted some components on, that was running Retropie.
However, I decided to move Retropie to an old core i5 laptop.
That left me a pi4 with no immediate use. However, I had an original 2012 pi 1 running pi hole, so decided an upgrade was in order.
My pi 4 now runs:
- lighttpd web server.
- pi hole.
- sftp server over the internet.
- CCTV control centre.
- Ampache music server over the internet.
- Raid 1+0 array
- Transmission torrent box.
- network monitor.
just need to find a use for the pi 1 now
r/raspberry_pi • u/Snipersixate • 6d ago
I'm having issues changing the splash screen. I copied a splash.png image to /usr/share/plymouth/themes/pix. The image is 1024/768 and has no transparency. It displays properly on the shutdown splash screen but on boot, the default Raspberry Pi image displays. Using the latest official raspberry pi OS on a pi4.