_pixy.
August 30, 2024, 16:09

Raspberry Pi5 Drill

so, I got the Michael Reeves drill thing to work a couple days ago, then overnight, it broke and didn't work. I then yesterday, fixed it, and then it broke this morning. I'm at school right now so i'm not able to get the code, but I have a wiring diagram. Pi is being powered by the official wall plug.
shadeslayah
August 30, 2024, 11:04

RFID RC522 not working

Operating system: Raspberry Pi OS (64bit) Build number: raspberry pi 6.6.31+rpt-rpt-v8 Debian 1:6.6.31-1+rpt1 (2024 - 05-29) arch64 GNU/Linux Have you read #information?: Yes Board: Raspberry Pi 3B+ Hello, i'm doing a personal project but i cant really get to the end of it. The main objective is simply to make the RFID RC522 scanner work and let it scan cards and chips (i tried different ones including the one that comes with the scanner). It's about the RFID RC522 scanner that apperently doesn't work. I've changed scanners twice when the first and second one didn't work, but they don't work either, so i'm starting to think that the problem is my python coding (which i've mainly obtained thru chatGPT). I've connected all of the cables correctly multiple times, so that doesn't seem to be the problem either. I'll attach all of the lines of code i've written in order on the terminal in order so you can understand better. It would be great if someone could help me since i've been stuck for over a week on this project and really need to finish it.
sudo apt-get update
sudo apt-get upgrade
sudo raspi-config (SPI activation)
sudo reboot
sudo apt-get install python3-spidev python3-rpi.gpio
mkdir ~/rfid_project
cd ~/rfid_project
git clone http://github.com/pimylifeup/MFRC522-python.git
cd MFRC522-python
python3 setup.py install
cd ~/rfid_project
nano rfid_test.py
#the following lines of code are part of the py file to execute
import RPi.GPIO as GPIO
from mfrc522 import SimpleMFRC522

reader = SimpleMFRC522()

try:
    print("Avvicina la tua carta al lettore RFID...")
    id, text = reader.read()
    print(f"ID: {id}\nTesto: {text}")

finally:
    GPIO.cleanup()
#last command to execute the py file
python3 rfid_test.py
thatsquareguy
August 30, 2024, 00:27

Rendering an image over VLC (Raspberry Pi OS Lite)

I am hoping I can get some help with what I would have expected would be a trivial task (isn't that always the way!) I am working on a media player which essentially plays random videos via VLC. I am using a Raspberry Pi 4B running Raspberry Pi OS Lite - command line only. The intention is for the Pi to boot and play a video as quickly as possible. I'm trying to get an image to render over the VLC player, specifically a logo in the corner (like on a tv channel). VLC includes a logo filter which sort of accomplishes this, and I am currently using it, but the size of the logo on screen is tied to the resolution of the video - if I play a 480p video, the logo appears larger than if I play a 720p video. I have videos of varying resolutions, so this isn't ideal. I feel like I've tried everything at this point, but I've gotten nowhere. The closest I have found to what I'm looking for is here: https://youtu.be/W6KhRiMtu4g?si=olSn1mrLAdjBfbeL&t=172 In this video, he does exactly what I'm trying to do, using raspidmx/DispmanX: https://github.com/AndrewFromMelbourne/raspidmx Unfortunately I wasn't able to build out pngview as it relies on deprecated libraries - as discussed in the comments here: https://raspberry-projects.com/pi/programming-in-c/display/dispmanx-api/raspidmx-pngview I guess what I'm hoping for is some kind of workaround to implement the above, or any other ideas to draw an image to the framebuffer and have it render over the VLC instance. This has been driving me completely crazy, and my google-fu has been entirely failing me, so I'm open to any ideas 😄
catguy12321
August 29, 2024, 16:06

How to read from keyboard when no monitor is connected

I need to run a script on boot that reads from a usb keyboard. I have tried pygame, keyboard and some other modules but they all failed. I am trying to make a secure radio messaging pi for fun, but I need to type in the message. I connected a USB keyboard to the pi, but can't get the pi to get input from the keyboard. I have setup the pi to run a python script at boot, and have tested it with LEDs, but I'm unable to get the input from the keyboard. Any form of help is appreciated, pls leave suggestions
microphonebeam
August 29, 2024, 13:53

PIR Motion Sensor is not working (script and logs included)

I have a PIR Motion Sensor from the Edukit Camjam 2, and i am experiencing problems, it either doesn't output anything, outputs one signal, outputs another, outputs both, or sometimes doesn't work at all. Does anyone know a fix for that?
prefluence
August 28, 2024, 14:50

Pico seems to freeze every 1.5ms

Hello, im trying to communicate with ws2812/ws2813 leds and i ran into problem. The pico seems to freeze or at least slow down every 2.7ms for around 30us and its interfering with communication. Im using Arduino IDE to program it.
nex0rion
August 27, 2024, 12:51

Master & slave mode with Pi Zero 2

Hi, is there a way to achieve a Master + Slave mode using the Pi Zero 2? With the USB data port I can connect a hub and have multiple usb devices attached to the Pi host, removing all of that I can use the port and configfs to use the Pi as a HID device. Given the single USB controller on the Pi, I don't think it's possible to use both mode at the same time. So, is there a cable or a hub that can do this type of thing? If it doesn't exist, does a USB switch cable exist? A cable that can toggle between Master and Slave mode?
imaustralia
August 27, 2024, 10:29

anyone code in python, mainly robotics with the raspberry pico and mit app inventor. Keep getting er

can send images
zemangofur
August 27, 2024, 01:06

Python Script works on PC but not on Raspberrypi

Hey guys so for some reason the python file i'm trying to run only works on my pc but not on my raspberry pi, i've fixed some issues, but there is one i got no idea about
py
data = {
                        "sample": "some sample message"
                }
with open("./file.json", "w") as outfile:
  json.dump(data, outfile)              
for some reason this just does not work, ignore that some stuff is weirdly out of place, it's not like that in the file, it just happened because i copied it over
dannyboy3210
August 26, 2024, 21:09

Samba share using an external hard drive on your pi using the default mount location?

Does anyone know offhand if you can set up a samba share using an external hard drive on your pi with the default mount location? I've got a samba share working from the internal drive, and windows can access the /home folder for my user. My research has me thinking I may need to somehow mount the drive inside the Home folder or something? Edit: I remember trying to get this working at various points in the past without luck and this time decided to finally ask for help XD Edit 2 (for context): I am booting off an external SSD without issue. I have an external 2TB HDD I want to share with my local network (So Windows, android, etc.)
unkgba
August 26, 2024, 20:06

Pibooth

Hello, I would like to run pibooth on my raspberry pi 5. But, when I'am starting the application, this is what I see : I can take pictures but I don't see anything; I use a Canon EOS M50 Mark ii as camera
thunder07337
August 26, 2024, 11:37

Slow Pi shutdown

What does your shutdown command look like?
helgem
August 26, 2024, 10:19

BT and wifi for CM4 - dongle?

Dear friends, new to this place, so hi! Bought a CM4 w/o wireless capabilities a while ago for learning/tinkering (linux, not hardware). Will now move the learning/tinkering to a desktop PC which frees up the CM4 for other purposes. Goal: Turn a wires-only CM4 into a headless and wireless media player that can connect to bluetooth devices. Question: Does anyone have experience with wifi-BT-dongles on a CM4? Alternatives, pitfalls? Thanks!
jufieeee_15927
August 25, 2024, 12:19

Power issues 4 model 4

I'm using my Raspberry Pi model 4 b to run Home Assistant. Suddenly the local URL just stopped working. When I checked the pi, I noticed the fan was off. Now I see the red power light is on, but the green ACT light is either completely off, or turning on and off quickly. How can I fix this? I use the official pi cabel that came with it.
thesomebody0
August 23, 2024, 16:47

Wireless Android Auto dongle project

Hello, i have a car that supports only wired Android Auto and Apple Car Play. I'm gonna make a wireless Android Auto dongle project with Raspberry Pi Zero W or Zero 2W and using this repo https://github.com/nisargjhaveri/WirelessAndroidAutoDongle. Here's my question: What would happen if I connect a cable that supplies both data and power to the only OTG port instead of Power port of my Raspberry Pi Zero W? In other words, how would powering the device through the OTG port instead of the Power port affect its operation? I don't want to be 2 seperate cable connection and cable clutter in my car.
louisvdwl
August 22, 2024, 17:44

Wifi issue Raspberry PI 0

Hey ! I installed Rapsbian via Raspberry pi imager on my Raspberry pi 0. It connected to wifi correctly. Subsequently I tried to activate the access point then from there it was impossible to connect it again to the wifi even after a complete reinstallation of Raspbian as at the beginning. Anyone have an idea? Thank you in advance
10ur24
August 22, 2024, 10:21

Send data to Pico W.

I'll make some little calculations on my computer then I want to send this results to my circuitpython Pico. How can I do that? Can Pico read file or my computer send data?
protitprollegro
August 21, 2024, 23:10

Wordpress Install Rasberry Pi Docker

Should be able to access via browser but can't unfortunately
root@joshua:/mnt/sata/docker/symphonyyoga# sudo docker-compose logs wordpress
wordpress-1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.2. Set the 'ServerName' directive globally to suppress this message
wordpress-1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.2. Set the 'ServerName' directive globally to suppress this message
wordpress-1  | [Wed Aug 21 21:08:42.481666 2024] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.61 (Debian) PHP/8.2.22 configured -- resuming normal operations
wordpress-1  | [Wed Aug 21 21:08:42.481790 2024] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:09:53 +0000] "GET / HTTP/1.1" 500 2719 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:09:58 +0000] "GET /favicon.ico HTTP/1.1" 500 2719 "http://192.168.50.91:8080/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:10:13 +0000] "GET / HTTP/1.1" 500 2719 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:10:21 +0000] "GET /wp-admin/install.php HTTP/1.1" 403 497 "http://192.168.50.91:8080/" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:10:31 +0000] "GET / HTTP/1.1" 500 2719 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:16:26 +0000] "GET / HTTP/1.1" 301 423 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:38:41 +0000] "GET / HTTP/1.1" 301 423 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:38:49 +0000] "GET /wp-admin/install.php HTTP/1.1" 403 497 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:39:05 +0000] "GET /wp-admin HTTP/1.1" 301 596 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:39:05 +0000] "GET /wp-admin/ HTTP/1.1" 302 465 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | 192.168.50.113 - - [21/Aug/2024:21:41:13 +0000] "GET / HTTP/1.1" 301 423 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0"
wordpress-1  | [Wed Aug 21 21:55:58.358004 2024] [mpm_prefork:notice] [pid 1:tid 1] AH00170: caught SIGWINCH, shutting down gracefully
wordpress-1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.3. Set the 'ServerName' directive globally to suppress this message
wordpress-1  | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.20.0.3. Set the 'ServerName' directive globally to suppress this message
wordpress-1  | [Wed Aug 21 22:14:29.996782 2024] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.61 (Debian) PHP/8.2.22 configured -- resuming normal operations
wordpress-1  | [Wed Aug 21 22:14:29.996935 2024] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
wordpress-1  | [Wed Aug 21 22:41:32.617161 2024] [mpm_prefork:notice] [pid 1:tid 1] AH00169: caught SIGTERM, shutting down
wordpress-1  | [Wed Aug 21 22:41:33.290713 2024] [mpm_prefork:notice] [pid 1:tid 1] AH00163: Apache/2.4.61 (Debian) PHP/8.2.22 configured -- resuming normal operations
wordpress-1  | [Wed Aug 21 22:41:33.290848 2024] [core:notice] [pid 1:tid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
niiiko.username
August 21, 2024, 22:35

IMX 290-83 camera module not working with Pi-5 camera ports, don't know how to fix. (Hardware+Softw)

Im trying to get an imx290-83 camera to work with my raspberry pi 5, but its not working. When i attempt to look at the camera using the libcamera list devices command, nothing appears, nor does it work using cv2 in python. I have tried all the instructions on this website "https://www.waveshare.com/wiki/IMX290-83_IR-CUT_Camera" But to no avail, nothing seems to work. Im using a cable adapted setup to get the cameras to work, using a FFC 22-15 pi zero camera cable adapter (because thats the connection type) but i noticed that the camera is flipped in the wrong direction using this setup looking at the image on the site, so I also got a 15-15 pin adapter and a 15-15 pin reversed cable so that I could make it connect. This still didnt work, but upon connection the cable got hot whenever connected. However, this was only done to one of the two cameras / cable sets / ports, so we know that this isnt the reason it doesnt render. I tried to check out picamera, but imx290-83 isnt supported, and ive also tried to redownload the libcamera imx290 drivers, also to no avail. Im genuinely at a loss for what to do, ive been trying at this over the course of like 2 months, ive followed every tutorial and tested every combination of things i could think of, and I cant find a way to conenct my camera. Any help would be greately appreciated, I attached some images of my unplugged in cable setup of the cameras for context (longer one with the adapter is the one that got hot, other is the standard.) (the two orange cables look different in the image, but they are the same type of cable and work identically, just not with the camera) I also dont know if this is a software or hardware issue, ive tried both and nothing worked. Camera was bought from here: https://www.aliexpress.com/item/1005004547062523.html Adapter cable was bought here: https://www.aliexpress.com/item/1005007015374924.html 15-15 FFC adapter bought here: https://www.aliexpress.com/item/1005006653501793.html
iamnotmega_
August 21, 2024, 17:24

Help needed with getting Pi 4b replaced

p.s: if your suggestion was to just buy a new one, then sadly this isnt possible because my parents already said no
.phoenix75.
August 21, 2024, 17:10

Raspi 5 freezes after 1 minute

Hello! I use a Raspi 5, 8GB RAM with active cooler starter kid. It arrived yesterday. I installed the Raspberry Pi OS 64 bit & Retropie yesterday. Today, I couldn’t open RetroPie anymore, so I updated. The error messages I became was: Error installing packages -the following packages have unmet decencies: libsdl2-dev: hängt von: libsdl2.2.0(=2.26.3+1rpi) but 2.26.5+dfsg-1 is to be installed I then installed the 2 packages manually. sudo apt upgrade libsdl2-2.0-0 libsdl2-dev After the installation, I could open RetroPie again. I rebooted the raspi and after about one minute it froze completely. I rebooted the raspi again but the same problem occurred.
ebcfireball
August 21, 2024, 16:45

Remapping caps lock to control.

Hey guys I have been trying to remap caps lock to control for about 3 hours now and I can't seem to get it to work. I keep getting wayland warning. Any help would be awesome.
iamnotmega_
August 21, 2024, 11:23

Raspberry Pi 4B issue

so when i tried to fix my pi with using the bootloader pi4 family option in the imager, it just gave me 8 flashes upon powering on and then continued blinking in the same pattern forever. according to the pi forum, 8 short flashes mean a SDRAM failure. i also found that pieeprom.upd is missing from the sd card.
lord0fthedogs
August 18, 2024, 19:58

magic mirror

Hi guys I want to make touchable magic mirror as cheap as possible like max 10-15 inch screen it will be good enough. Can anybody help me build it? But I need it as cheap as it could be. Thanks for helping guys!
redstoner507
August 18, 2024, 11:16

Build a telegraph (Morse key) with a Raspberry PI

Hi there, I wanted to build a morse key because i want to practice morse with it ! I have a 3d printer, a switch (10A, 250V), a Raspberry Pi 3B+ and some electronics. Do you have an idea on how I can connect it and collect the output, I don't know much about electronics. Thanks !
lodekennes
August 18, 2024, 07:38

Raspberry Pi Zero 2W and SPH 0645

Hi, It's been a while (+- 8y) since I've fiddled around with a raspberry pi but decided to give it another go. I want to be able record audio with a Raspberry Pi Zero 2W and an SPH0645 from Adafruit. I'm unable to get the audio recording working. This is my pin layout (SPH0645 -> Pi ZERO 2W): SEL -> GND (PIN 9) LRCL -> GPIO19 (PIN 35) DOUT -> GPIO21 (PIN 40) BCLK -> GPIO18 (PIN 12) GND -> GND (PIN 6) 3V -> 3.3V (PIN 1) I'm running the latest raspbian lite image (bookworm). I've followed this tutorial: https://learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/raspberry-pi-wiring-test Also tried running this script: https://github.com/adafruit/Raspberry-Pi-Installer-Scripts/blob/main/i2smic.py I also tried installing raspberrypi-kernel-headers seperately and not updating the device. When running arecord -l the recording device shows up. When running arecord -D plughw:1 -c1 -r 48000 -f S32_LE -t wav -V mono -v file.wav the volume meter stays at zero. I'm quite stuck at this point. Anyone who could help me out or got any ideas on what I did wrong?

rikkrt
August 18, 2024, 03:30

RP2040 based handheld

Hi guys! I am making a RP2040 based LED matrix handheld, and this is my schematic drawing of it. Do I need to change anything about it?
jackson321_
August 17, 2024, 22:22

future project assistance needed

Good afternoon I am new to the community and just joined a few moments ago. I have a few questions regarding raspberry pi projects and I hope to receive some assistance. I currently do not own any raspberry pi products but for the project, I am looking to work on I will need some assistance on product selection, compatibility, and Electrical technical support the current questions I have are as follows 1) I am unsure of which raspberry I should purchase because I am new to this whole thing. The project in mind would be setting up a row of buttons which once pressed tells the program to play a specific video so my question for the first one would be which raspberry computer would be best suited for playing different videos when a corresponding button is pushed 2) my second question is on compatibility. I know there are buttons that are sold either with a computer or separately, but I noticed the raspberry computer has USB ports. Would I for example, be able to use a stream deck to run the videos once the corresponding button linked to the video has been pushed. 3) my third question is relating to power supply and technical assistance. What is the power supply needed to run such a device? Would I be able to plug it straight into a wall or a power source that is always live so it will run all the time unless I click the power switch, or when power is added to the system 4) how big of a screen can the raspberry systems control if that is the correct word I should use basically how big of a screen can be used 5) also would I be able to store the files and the code on a USB or a SD card and be able to run the programs from there? For example if I wanted to add more videos or change the videos, would I be able to take a USB or SD card with the files on that and then plug it into the raspberry computer and push a button and it will play the video that is set up for that button if that makes sense
edenpa77_05518
August 17, 2024, 13:46

E: Unable to find package xfce4-statusnotifier-plugin Failed to install dependencies

I wanted my raspberry pi 400 to look like a mac so i searched for a theme I found https://github.com/techcoder20/MacOSBigSurThemeConverter so i type the command and it tells me E: Unable to find package xfce4-statusnotifier-plugin Failed to install dependencies. pls help
pipsqueeeek
August 17, 2024, 06:58

How many sensors?

Device: Raspberry pi 4B can I plug 2 or more sensors on a single SDA/SCL pin? for example: I plugged in an SHT20 i2c together with another digital sensor on a single SDA(GPIO 2) and SCL(GPIO 3), will it work?