omar_eldeeb112233
about 6 hours ago

my L298N motor driver isn't working with pi 5

Hi,i'm new to this server. so i'm making a project that requires 2 motors to move.so i decided to use 2 hobby gear motors and an l298n to control them, i also connected them to 3 18650 li-ion battery's. all good so far, but when i tried controlling them, nothing happened. so i tried a few things to do: 1:check the wiring multiple times 2:check the code multiple times 3:i tried adding a heat sink but it didn't work 4:tried directly giving commands to it using the terminal instead of code 5:tried using 2 18650 battery's because it worked a long time ago with 2 battery's but now it didn't work, even if it did work it was slow 6: i tried using an external 5v regulator because i had a suspicion that the internal 5v regulator wasn't working but it still changed nothing 7: tried using another driver like the l293d but it still didn't work 8:tried connecting the motor directly to the power supply and it did work so it's not the motor or the battery's that are broken and some other minor stuff like switching jumper wires and things. but non worked. this is the code(the code is for testing just one motor) and i posted an image of the whole thing too(i know the image isn't very clear cause i have messy wiring). i also just wanted to point out that buying other components is like the last resort, so don't go in and say"just buy a new driver or something", i would appreciate any help possible, Omar. import lgpio import time # Define GPIO pins IN1 = 24 IN2 = 23 ENA = 22 h = lgpio.gpiochip_open(0) # Set pins as outputs lgpio.gpio_claim_output(h, IN1) lgpio.gpio_claim_output(h, IN2) lgpio.gpio_claim_output(h, ENA) # Enable motor lgpio.gpio_write(h, ENA, 1) # Full speed # Run forward lgpio.gpio_write(h, IN1, 1) lgpio.gpio_write(h, IN2, 0) time.sleep(3) # Stop motor lgpio.gpio_write(h, IN1, 0) lgpio.gpio_write(h, IN2, 0) l # Cleanup lgpio.gpiochip_close(h)
astraaa5475
about 11 hours ago

Connecting RPi cam v1 with CM4 using waveshare Nano baseboard (CM4-NANO-A)

I am trying to connect my Pi cam (ov5647) with CM4 and waveshare nano baseboard. I updated the config file by adding following lines in the end:
dtoverlay=ov5647,cam0
gpu_mem=128
start_x=1
Libcamera commands are working perfectly but the ffmpeg commands are giving errors. I listed my camera devices and /dev/video0 is listed under unicam. Here it is:
bcm2835-codec-decode (platform:bcm2835-codec):
        /dev/video10
        /dev/video11
        /dev/video12
        /dev/video18
        /dev/video31
        /dev/media3

bcm2835-isp (platform:bcm2835-isp):
        /dev/video13
        /dev/video14
        /dev/video15
        /dev/video16
        /dev/video20
        /dev/video21
        /dev/video22
        /dev/video23
        /dev/media1
        /dev/media2

unicam (platform:fe800000.csi):
        /dev/video0
        /dev/media4

rpivid (platform:rpivid):
        /dev/video19
        /dev/media0
Here is the ffmpeg error:
[video4linux2,v4l2 @ 0x558c9e5490] ioctl(VIDIOC_G_PARM): Inappropriate ioctl for device
[video4linux2,v4l2 @ 0x558c9e5490] Time per frame unknown
[video4linux2,v4l2 @ 0x558c9e5490] ioctl(VIDIOC_STREAMON): Invalid argument
/dev/video0: Invalid argument
Basically, I am trying to use the legacy camera stack to use ffmpeg instead of libcamera but no matter what I do, ffmpeg is giving invalid argument but libcamera is working fine. Ps: I am really a newbie with RPi so really sorry for any mistakes and kindly let me know if any other config details are needed to debug my error.
sinnlosishere
about 15 hours ago

PI refuses connection trough ip adress in browser

I recently installed AdGuard trough the ssh terminal over the network and when I try to get on the ui of AdGuard trough the IP daress of the pi on the browser is says: "ERR_CONNECTION_REFUSED"
tolek3.0
March 15, 2025, 13:30

Needing help to setup a web-ui server

Hello there! So, im trying to set up a local web-ui server (for reference, im just using it for coding purposes.) How can i set up a link for my local network, instead of having to type the entire ip everytime i want to access it? Been through the forums, even asked AI for help (i dont recommend it, ai sucks 🙏). I understand if its not possible
hmwhatever
March 15, 2025, 11:45

How to use Picamera2/3 on RaspberryPi5

Hi y'all, i need a little bit of help to get my camera run on rapsberrypi 5.
pi@berry:~/Projects $ uname -a
Linux berry 6.6.74+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.74-1+rpt1 (2025-01-27) aarch64 GNU/Linux
I have a newly bought and installed pi5 and a camera module v2 ( https://www.rasppishop.de/Kameramodul-Raspberry-Pi-Kamera-V2 , with new cable that fits pi5) and one for pi5 ( https://www.rasppishop.de/IMX219-Kameramodul-fuer-Raspberry-Pi-5-8MP-MIPI-CSI-Schnittstelle-FOV-120-26185 ) but none of them works for me.. If i excute libcamera-hello I receive the following output:
[0:00:46.401910093][1498] INFO Camera camera_manager.cpp:327 libcamera v0.4.0-53-29156679
Made X/EGL preiew window
ERROR.  no cameras available 
As i'm very new to linux and pi5 (pi in general) every step would be helpful to debug this. starting from the correct direction of the cable to put in.. If someone needs more information i do my best to provide everything. Any help is appreciated. Thanks in advance 🙂
_newmxn_
March 13, 2025, 12:31

Pi Pico Potentiometer noise

Hey, I made a handbrake through the arduino IDE with just a 10k ohm pot, i have it working but there is a lot of noise in it. Whats the best way to reduce the noise through the schematic/code?
axrzz
March 9, 2025, 14:51

I want to connect in ethernet my PS4 to the Raspberry Pi 5 (my Pi 5 is connected to my rooter)

When i connect the PS4 to the Raspberry the PS4 she cant get an IP

Warning: Undefined array key "author" in /var/www/html/index.php on line 102

Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/index.php on line 102
axrzz
March 7, 2025, 07:04

Permission problem to launch my bot in my venv

Hello I recently took a Raspberry Pi 5 to put a Discord bot in python the problem is that I struggle to use it. for example when I put the bot on my user (not root) I create my venv, I install the modules in the requirements but as soon as I launch the bot it gives me a python error that I do not have the necessary permissions etc ... Nothing to do but even when I do sudo su I still can not access the root folder
fylgja_
March 6, 2025, 20:03

Error reading from storage. SD card may be broken

My Raspberry Pi imager fails during verifying how do I fix this Im using a 1Tb sandisk sdxc on a windows 11 error says: "Error reading from storage. SD card may be broken"
axrzz
March 6, 2025, 19:48

Noobs, need help with boot config.txt

I have pi5 and i want to disable all hdmi ports, bluethooth etc... and idk how to do that. why? I took the lite version because I'm going to make sure it heats as little as possible etc...
thedeha420
March 6, 2025, 09:20

Connecting 3.5” ST7796 as main display

Hi, I’m sick of trying to connect a 3.5 inch display to Raspberry Pi zero 2… I was tryin like in this repo: https://github.com/jobitjoseph/fbcp-ST7796 but errors on every possible steps. Have you guys any tips how to connect it as a main display? It’s a cheap screen from AliExpress, I can find link. For example on esp32 simple codes works perfectly, I know it is completely different thing
thedeha420
March 6, 2025, 09:03

Connecting 3.5” st7796 trouble

Hi, I’m sick of trying to connect a 3.5 inch display to Raspberry Pi zero 2… I was tryin like in this repo: https://github.com/jobitjoseph/fbcp-ST7796 but errors on every possible steps. Have you guys any tips how to connect it as a main display? It’s a cheap screen from AliExpress, I can find link.
samlikespixels
March 6, 2025, 07:51

Raspberry Pi 3B Boot Loop Issue

System Details: Model: Raspberry Pi 3B Operating Systems Tried: Raspberry Pi Lite & Full OS (Official Raspberry Pi OS images) SD Card: 128GB microSD (integrity verified) Power Supply: Official 5V supply (used previously without issues) Symptoms: Pi hangs at the “done.” message and then restarts after about 10 seconds. RGB display shows rapid, alternating green and red flashes. Boot log shows USB device events (e.g., “new high-speed USB device found”) even when no USB peripherals are attached. Issue occurs regardless of attached peripherals (ethernet, keyboard, or none). Recent Changes: WiFi configuration updated via raspi‑config. WiFi Country Code: Set to “UK” (should be “GB” for the United Kingdom). Boot loop began after making this configuration change. Troubleshooting Steps Already Taken: Tried multiple OS images and repeatedly wiped/reflashed the SD card. Tested with different peripheral setups (with and without ethernet/keyboard/display). Verified SD card integrity and power supply consistency. No explicit error messages besides the continuous reboot loop. Current issue: The Pi won’t fully boot, preventing access to raspi‑config to correct the WiFi country code. Need guidance on modifying the configuration offline or other workarounds to resolve the boot loop.

Warning: Undefined array key "author" in /var/www/html/index.php on line 102

Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/index.php on line 102
mossed_1
March 4, 2025, 10:51

Audio Problem

I have a rasberry pi 5 4gb and I cannot get the audio to work. I am using an Adafruit MAX98357 I2S Class-D Mono Amp, and have followed the instructions (https://cdn-learn.adafruit.com/downloads/pdf/adafruit-max98357-i2s-class-d-mono-amp.pdf ) audio does not come out still. But the rasberry pi detects the audio device.
mandr_441
March 3, 2025, 15:38

Open ports on pi5

I want to cate gmod sever, but i can't open ports on my pi5, help pls
navadix
March 3, 2025, 13:24

Has anyone ever tried to install FreeBSD on a rasp4?

I'm trying to install version 14.2, in RPI, but when booting, I have a rainbow screen, whereas if I try to boot on an ubuntu, or raspOS, everything is fine, does anyone have an idea?
buuurrrak
March 2, 2025, 17:17

Apache2 Server Public

Hello, I have a Raspi 4 with Apache2 on it, I want to make the website accessible to my colleagues on the internet, I have already released port 80 and 442 in my wifi router but nothing happens when my colleagues open the IP
sedia1
March 2, 2025, 00:10

wifi problem

help!! wifi works in all devices but doesnt work in my pc in any way, is it a pc or router problem? what should i do?
daddy_punisher
February 27, 2025, 19:25

Raspberry pi 5 stuck at red light Tried new sd card new hdmi cable Has pi charger

Had one long blink and 2 short blinks Tried EEPROM recovery it's just blinking green and not stable
b_r1t
February 27, 2025, 19:24

solar power problems with pi pico

v2dtp
February 26, 2025, 16:36

Internal Network Domain Problem (Apache2, Pi-hole)

Hey, I am hosting a website and Pi-hole on my Raspberry Pi. The website is accessible to anyone on the internet and operates correctly; however, for some reason, I cannot access it locally. Within the LAN, it seems to work intermittently, and I cannot access it at all over Wi-Fi. The browser displays a 'connection timed out' error. The Raspberry Pi is correctly registered as a DHCP server in the router. Unfortunately, I have tried various solutions and still do not know what the issue could be.

Warning: Undefined array key "author" in /var/www/html/index.php on line 102

Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/index.php on line 102
dsmartiz
February 25, 2025, 18:26

Minecraft server

Hello, I'm a French newbie and I want to make a minecraft server but my rasberry don't want to help me I can't connect or even find the IP of my rasberry pls help 😭😭 (btw it's a rasberry pi4)

Warning: Undefined array key "author" in /var/www/html/index.php on line 102

Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/index.php on line 102
bouvreuil_
February 22, 2025, 17:48

Specific Boot Failure from SSD on Raspberry Pi 5 with Radxa Penta SATA Hat – SDRAM Error

Hey everyone, I've been troubleshooting an issue with my Raspberry Pi 5 (8GB) using a Radxa Penta SATA Hat and four SSDs (one for boot, the rest for NAS storage). I'm trying to boot from the SSD, but I'm getting 8 flashes on the RPi, indicating an SDRAM error (firmware issue or SDRAM damage). I've set the boot order correctly using a micro SD card, and everything works fine that way. However, when I remove the micro SD card and try to boot from the SSD (with Raspberry Pi OS Lite already configured and SSH enabled), I hit this error. Any ideas on how to resolve this? Thanks in advance for your help
chockamacock
February 18, 2025, 21:46

camera not taking picture

im using fswebcam, but i get a error message. And its not working
raalf_
February 17, 2025, 07:50

Picamera2 and libcamera

I have a problem with picamera2. When I run the script, I get the following error:
   

Traceback (most recent call last):

File "<string>", line 2, in <module>

File "/home/pi/Projekt/lib/python3.11/site-packages/picamera2/ Init.py", line 4, in

odule>

import libcamera

ModuleNotFoundError: No module named libcamera
I am working on a Raspberry Pi Zero 2W. I am a beginner with Raspberry Pi. How can I solve this error?
_lord_duck_
February 16, 2025, 22:16

Apache2 server won't expose to internet

Hey there, so I've been trying to setup a simple webpage using apache2. I've been able to set it up so I can connect to it through local ip, but if I search for my public ip I don't get the webpage. I've already setup the needed port forwarding of port 80 to the static ip of the raspberry pi and configured the ufw of to allow 80/tcp Anywhere. I'm kinda lost here, I've previously setup my raspberry pi (same static ip) to have a public webpage, that worked but I wanted to restart and now it doesn't work (so I would think it's not a problem with port forwarding) Do you guys have any idea of what to try?