r/rasberrypi • • 1h ago

raspiBackup release 0.7.4.1 is available now

Thumbnail reddit.com
1 Upvotes

r/rasberrypi • • 11h ago

Need help with my project

Thumbnail reddit.com
1 Upvotes

Hi so I am working on a project where I am using opencv to detect bands of a resistor I'm using a webcam with a raspberry pi 3 but the thing is that the the webcam is not able to detect the color of the band doesn't matter how close I keep it, if it's too close the resistor become more blur and if it's a little far it's very to identify tbh the code works fine but I don't understand if the problem is my code, the webcam or the raspberry pi ( cause the frames are really slow) just need some opinion on what might be the thing causing the issue


r/rasberrypi • • 23h ago

Raspberry pi 4 for java Web application ... Performance??

4 Upvotes

Hi

I need to install in raspberry pi 4 with:

Wireguard for VPN

Tomcat

Maria DB

I need to run a Java web application in a little office about 7 users.

I know there are few details.

Do you know if I can have performance problems? What components do you suggest me to improve performance?

Thanks


r/rasberrypi • • 17h ago

I built an open-source MicroPython mini-OS and virtual display for the Raspberry Pi Pico W over USB

1 Upvotes

Hey everyone,

I wanted to share an open-source embedded project I've been working on called ArmaX. It's a lightweight MicroPython mini-OS running directly on a Raspberry Pi Pico W that uses a native C++ desktop application as a virtual display over USB.

If you've ever built graphical interfaces on a microcontroller, you know how annoying it is to constantly wire up physical screens just to test UI layouts—and how easily streaming raw frames over USB serial can bottleneck the connection. I built ArmaX to handle the entire OS logic, shell, and 1-bit framebuffer rendering locally on the Pico W, using a dirty-row framing protocol that only sends the pixel rows that actually changed.

Here is what it currently supports:

- Dirty-Row USB CDC Streaming

- Real-Time Hardware Telemetry

- On-Board Filesystem Management

- Drag-and-Drop File Transfer

- Instant Script Execution

GitHub Repository:

https://github.com/ArmanJabari/ArmaX


r/rasberrypi • • 18h ago

Pushing a single-core Pi Zero W with Pi-hole, Unbound, Caddy, Tailscale, Log2Ram & ZRAM (benchmarks + DNS fix)

Thumbnail reddit.com
1 Upvotes

Most Pi-hole builds I see run on Pi 4s or Pi 5s, so I wanted to share how a single-core Raspberry Pi Zero W Rev 1.1 holds up running a self-hosted network stack paired with a cloud exit node, SD-card wear mitigation, and a customized `tty1` PADD display.

Hardware & Display

* Board & Thermals: Pi Zero W Rev 1.1 (32-bit Raspberry Pi OS) with a passive flat heatsink holding steady around `~41.2°C`

* Dashboard & Access: Attached `tty1` LCD running customized PADD (`v4.2.0`) with status indicators, bracket formatting, and a `paddphone` helper for viewing PADD over mobile SSH; `wlan0` (`<PI_LAN_IP>`) with no router port forwarding

DNS, Proxy & Tailscale + Cloud Exit Node

* Pi-hole (`6.6` / Web `6.6.1` / FTL `6.9`) + Unbound: ~582,896 blocked domains (~52% block rate across ~28 clients) backed by a local recursive Unbound resolver (1 server configured, DNSSEC disabled on forwarder)

* Caddy: Local reverse proxy using a local root certificate (`<LOCAL_CA_CERT>`) for internal HTTPS on desktop and mobile clients, with the router admin panel kept off the reverse proxy

* Tailscale: Advertises subnet routes and exit nodes alongside an always-on cloud ARM exit node (`<EXIT_NODE_HOSTNAME>`), with Override DNS servers pointing to Pi-hole (`<PIHOLE_TAILSCALE_IP>`) and MagicDNS (`<MAGICDNS_IP>`) active

Longevity, Single-Core Tuning & Self-Healing Updates

* SD Card & Load Tuning: `Log2Ram` (~40% log usage, ~20% SD usage) + `ZRAM` compressed swap, hardware watchdog enabled, `sleep 10` in PADD preserved via `/usr/local/bin/apply-padd-custom.sh`, and disabled `fail2ban.service`, `ntfy-power.service`, and `triggerhappy.socket` while keeping `mDNS` active (single-core load can dip as low as `~0.05` when quiet)

* Updates & Alerts: Weekly update job in `/etc/default/pi-sunday-update` with a weekly overwriting backup and rollback on boot/service failure, paired with Healthchecks.io and `ntfy` email alerts for up/down status

Fixing Mobile "DNS unavailable" Warnings

Keeping Override DNS servers enabled with MagicDNS initially triggered false `DNS unavailable` health warnings on mobile clients and extra DNS retry noise. Standardizing device machine names in the Tailscale admin console (`Machines > Edit machine name`) to clean, lowercase hyphenated hostnames cleared up the warnings while keeping network-wide filtering active.

Steady-State Benchmarks (~28 Clients)

* 1-Min CPU Load: `0.36 – 0.43` (5- and 15-min averages around `~0.49–0.55`)

* CPU Temp: `~41.2°C`

* RAM Usage: `~29.8% – 31.7%` (with `Log2Ram` + `ZRAM`; ~94,100–94,800 DNS cache insertions and `0` deletions/evictions)

* Query Volume: `40 – 75 Qrs/min` normally, handling bursts up to `92–206 Qrs/min` at ~1.1%–2.6% FTL CPU before settling back to ~`60 Qrs/min`

Next up once this stays settled is testing a Nebula overlay network (indicator slot already prepared on PADD). How do you keep single-core boards, SD cards, and Tailscale DNS smooth in your setups?

Pi Zero W Build & Maintenance Write-Up (Expanded Sanitized)

Raspberry Pi Zero W Network Appliance & Cloud Exit Node — Deep-Dive Build & Operations Guide

An in-depth engineering write-up for running a single-core ARMv6 Raspberry Pi Zero W (Rev 1.1) on 32-bit Raspberry Pi OS as a network appliance—combining Pi-hole, Unbound, Caddy, and Tailscale alongside an always-on cloud ARM exit node, Log2Ram, ZRAM, hardware watchdog recovery, systemd service pruning, automated weekly updates with rollback, Healthchecks.io + ntfy alerting, and a customized tty1 PADD dashboard.

Disclaimer: This guide documents a personal homelab build and tuning process, not a universal production architecture. Choices such as keeping Tailscale Override DNS servers enabled, advertising subnet routes and exit nodes alongside a cloud exit node, and keeping mDNS active reflect specific personal preferences and trade-offs.

  1. Hardware, Thermal Envelope & Local Display (tty1)

Compute Platform: Raspberry Pi Zero W Rev 1.1 (single-core ARMv6 CPU, limited RAM, 32-bit Raspberry Pi OS) running over wlan0 (<PI_LAN_IP>) with zero router port forwarding.

Why Single-Core Tuning Matters: Without multiple cores to absorb background spikes, frequent polling loops, heavy logging, or chatty background daemons can quickly push load up or stall interactive SSH/console work.

Thermal Management: A passive flat heatsink mounted directly to the SoC keeps steady-state temperatures around ~41.2°C without fan noise or fan failure points.

LCD Status Display & Mobile Access:

Drives an attached LCD on tty1 running customized PADD (v4.2.0) with status indicators, bracket formatting, and a Nebula: - status slot staged for future overlay testing.

Refresh loop tuned to sleep 10 inside padd.sh so PADD doesn't hammer a single ARMv6 core every second.

Customizations re-applied automatically via /usr/local/bin/apply-padd-custom.sh so PADD updates don't wipe out your layout tweaks.

Paired with a paddphone command so you can check the PADD dashboard from a mobile SSH session instead of walking over to the physical LCD.

2. Core Network Stack: Pi-hole, Unbound, Caddy & Tailscale

DNS Layer: Pi-hole + Unbound

Pi-hole (v6.6 / Web 6.6.1 / FTL 6.9): Handles network-wide ad/tracker blocking (~582,896 blocked domains, ~52% block rate across ~28 clients) and local DNS resolution.

Unbound: Acts as a local recursive DNS resolver (1 server configured, DNSSEC disabled on forwarder) so queries resolve recursively rather than depending solely on third-party public DNS resolvers.

Security Boundary: No router port forwarding is used, keeping DNS and local services off the public internet edge.

Reverse Proxy Layer: Caddy

Terminates internal HTTPS for self-hosted services using a local root certificate (<LOCAL_CA_CERT>) installed on desktop and mobile clients so browsers trust internal endpoints cleanly.

The router admin panel is intentionally kept off the reverse proxy rather than proxied through Caddy.

Mesh VPN & Cloud Exit Node: Tailscale

Configured to advertise both subnet routes and exit nodes on the Pi Zero W while working alongside an always-on cloud ARM exit node (<EXIT_NODE_HOSTNAME>).

Override DNS servers is enabled pointing to Pi-hole (<PIHOLE_TAILSCALE_IP>) with MagicDNS (<MAGICDNS_IP>) active so connected devices get ad/tracker blocking and MagicDNS name resolution.

3. SD-Card Longevity, Systemd Pruning & Self-Healing Maintenance

Protecting Flash Storage & Memory

Log2Ram: Keeps volatile logs in RAM and flushes cleanly to disk (~40% log usage, ~20% SD usage), cutting constant small writes to the microSD card.

ZRAM: Provides compressed swap in RAM so memory spikes avoid slow, wear-heavy microSD swap thrashing.

Hardware Watchdog: Enabled at the system level to recover automatically if the board locks up or hangs.

Systemd Service Pruning

Disabled non-essential services (fail2ban.service, ntfy-power.service, triggerhappy.socket) to keep single-core load comfortably below 1.00 (with single-core load able to dip to ~0.05 during quiet stretches), while keeping mDNS active.

Automated Weekly Updates, Rollback & Alerts

Scheduled Updates: Configured in /etc/default/pi-sunday-update to handle weekly updates across OS packages, Pi-hole, gravity lists, PADD, Tailscale, Unbound, Caddy, and Log2Ram.

Backup & Automatic Rollback: Uses a weekly overwriting backup paired with rollback if a boot or critical service fails after an update.

Monitoring & Notifications: Uses Healthchecks.io heartbeats together with ntfy email alerts so you receive up and down notifications.

4. Real-World Debugging: Tailscale Mobile "DNS unavailable" Warnings

What Happened

With Override DNS servers (<PIHOLE_TAILSCALE_IP>) and MagicDNS active, mobile Tailscale clients showed DNS unavailable health warnings and generated extra DNS retry chatter.

How It Was Fixed

Standardized device machine names in the Tailscale admin console (Machines > Edit machine name) to clean, lowercase hyphenated names.

That resolved the false mobile health warnings and cut down DNS retry noise without turning off Override DNS servers or MagicDNS.

5. Steady-State Benchmarks (~28 Clients) & Roadmap

Observed Performance

1-Minute CPU Load: 0.36 – 0.43 (5- and 15-min averages around ~0.49–0.55)

CPU Temperature: ~41.2°C steady state

Memory Usage: ~29.8% – 31.7% (with Log2Ram + ZRAM; ~94,100–94,800 DNS cache insertions and 0 deletions/evictions)

DNS Query Volume: 40 – 75 Qrs/min typical steady state, handling bursts up to 92–206 Qrs/min at ~1.1%–2.6% FTL CPU before settling back to ~60 Qrs/min

Future Roadmap

Nebula Overlay Network: Planned once the current Pi Zero W + cloud exit node stack remains settled, with a status indicator slot already staged on PADD.


r/rasberrypi • • 1d ago

Raspberry Pi 5: choose between two bootable SD cards (or OS) remotely, without touching the Pi ?

2 Upvotes

Hi,

I have a Raspberry Pi 5 connected to a TV, and I use two systems:

  • LibreELEC
  • LineageOS ATV 23 (KonstaKANG), for an Android streaming app

I want to switch between them without getting up, using only a remote or my phone. I don't care about the method, any solution is fine.

What I tried:

  • PINN on a single 128 GB SD card with both systems installed. It works, but the TV remote (HDMI-CEC) does not work in the PINN boot menu, so I can't pick the OS without a keyboard.
  • From LibreELEC over SSH, "systemctl reboot --reboot-argument=6" boots straight into Android. This works, and I'm planning a Kodi favourite to trigger it.

My questions:

  1. Is there a dual microSD slot board or HAT for the Pi 5, or any SD card switcher / multiplexer, that lets me select the active card remotely or by software ?
  2. Is there a way to make the PINN boot menu respond to a remote (CEC, IR or Bluetooth) ?
  3. From Android (LineageOS), is there a way to reboot into a specific PINN partition, so I can go back to LibreELEC without the PINN menu ?
  4. Any other approach I'm missing (network boot, NVMe, USB, etc.) ?

Thanks !


r/rasberrypi • • 1d ago

Help with Raspberry zero 2w

2 Upvotes

Does anybody recommend any types of small battery to power a zero 2w?


r/rasberrypi • • 1d ago

Sharing is Caring

Thumbnail
gallery
7 Upvotes

Here’s a few more shots to share.


r/rasberrypi • • 1d ago

New to Raspberry

Thumbnail
gallery
5 Upvotes

I got my Pi 5 8GB with a Geekpi P33 (metal case and PoE/NVMe Hat) and a nowadays cheap SSD.

PCIe3.0 is running stable so far. PoE works fine. It negotiated as PoE++ with my Switch.

The first thing I did was of course Pi-Hole and Unbound.

Now I'm testing some predefined Stevenblack and hagezi lists.

Next thing I want to do is a monitoring system for my Unifi Network stuff and Synology NAS. Maybe something with Grafana, Prometheus and Unpoller

Let's see what comes next. Maybe something with Home assistant and my Shelly Plugs


r/rasberrypi • • 2d ago

It’s here 😭

Thumbnail gallery
14 Upvotes

r/rasberrypi • • 2d ago

Can Raspberry Pi 4 (8GB) handle a local AI agent with LLM, RAG, and chatbot?

9 Upvotes

Hi everyone,

I'm exploring the possibility of running a completely local AI agent on a Raspberry Pi 4 (8GB).

The requirements are:

  • Run a local LLM without cloud APIs.
  • Build an AI agent with tool/function calling.
  • Implement RAG for application-specific knowledge.
  • Connect to a local database for data retrieval and analysis.
  • Build a chatbot that interacts with users.
  • Everything should run locally on the Raspberry Pi.

Proposed architecture:

User
  ↓
Chatbot
  ↓
AI Agent
  ├── RAG
  ├── Database Tools
  ├── Data Analysis
  └── Local LLM
        ↓
   Raspberry Pi 4 (8GB)

I'd like advice on a few things:

  1. Is Raspberry Pi 4 (8GB) capable of handling this entire workload?
  2. Which small LLM would you recommend? Would a quantized 1B–3B model work reasonably well?
  3. Is llama.cpp the best option for running local models?
  4. Which framework would be suitable for the agent: LangGraph, LangChain, LlamaIndex, or a custom lightweight implementation?
  5. Which vector database would you recommend for local RAG?
  6. How much RAM and CPU would the agent, LLM, and RAG consume together?
  7. What kind of response speed can I realistically expect?
  8. Would upgrading to Raspberry Pi 5 make a significant difference?

If anyone has experience running local LLMs, AI agents, or RAG systems on Raspberry Pi, I'd really appreciate your recommendations and real-world experience.

Thanks!


r/rasberrypi • • 1d ago

Limited Edition Blue Pi

Post image
0 Upvotes

The only thing better than owning one 2013 Limited Edition Blue Raspberry Pi Model B… is owning two. 😊


r/rasberrypi • • 2d ago

rissing

Thumbnail
reddit.com
1 Upvotes

r/rasberrypi • • 3d ago

Rapsberry Pi 3 B uses?

Thumbnail reddit.com
1 Upvotes

r/rasberrypi • • 3d ago

Raspberry Pi Zero 2W shortage... Now what?

Thumbnail reddit.com
2 Upvotes

r/rasberrypi • • 3d ago

Rasberry pi not booting

Thumbnail
gallery
0 Upvotes

I have a rasberrypi 3 b+ and its not booting on i have tried putting it in rice but now it shows nothing but one time it showed the apple logo then it shut off.

Its running pi os if anyone is wondering


r/rasberrypi • • 4d ago

GILIUS is a bare-metal Mega Drive emulator for Raspberry Pi 1 and Zero

Post image
4 Upvotes

r/rasberrypi • • 4d ago

Raspberry pi camera/screen combo help

Post image
0 Upvotes

r/rasberrypi • • 5d ago

When will the pi zero 2 be restocked?

11 Upvotes

I have been trying to get a pi zero 2w but all the official stores have been sold out. Does anyone when they will be restocked and if there is a way to get alerts when they do?


r/rasberrypi • • 5d ago

Pi alternatives for video livestreaming device

5 Upvotes

Hey, as pi prices skyrocketed and availability is worse than poor, im looking for alternatives for small livestreaming device, with 60+fps capabilities, 480 p is acceptable,
hardware video encoder preferred like h.264,
Low latency is critical(like around 50 ms)

I found so far Radxa Zero 3W but i really cant believe this is the only existing alternative with reasonable price around 30$

Any other alternatives?


r/rasberrypi • • 5d ago

Pls help a tech-illiterate girl find the right Raspberry Pi for her boyfriend !

3 Upvotes

Hi! I'll preface by saying I have absolutely zero knowledge of computers and tech. My boyfriend, however, is a software engineer, web developer, game designer, and more. Needless to say, he adores tech. He's been talking a lot about Raspberry Pi, and I'd love to get him something he really wants for Christmas. The thing is, I don't know what I need. For context, he codes a lot, does SaaS (I think that's the right name lol), and uses Claude a lot. He has the full-package Claude subscription and uses it religiously. What Raspberry Pi thing would be best for him? I saw a Raspberry Pi 5 8GB on Vinted and have whittled the seller down to £120. Alas, the budget is £100 max- his rules, not mine (though I probs will ignore them). Besides, I don't even know if this is the right thing. Any help would be super appreciated <3


r/rasberrypi • • 5d ago

HELP: Active Cooler + RP5

Thumbnail
gallery
1 Upvotes

I bought a sealed RP 5 from RasTech.

I need advice on which components of the board the adhesives go on, in between the board and the heatsink

I have 3 adhesives, super slight difference in thickness. length and width difference is a bit more obvious between 1 and the other 2.

Which components should get covered, so that the heatsink sits flat and even on top.

I am asking because there is one chip that would lift it so high, that the rest of the adhesives may not touch the heatsink. And that one chip that sits the highest, is the CPU.

So which should primarily be covered?

  1. RP1 I/O controller (Red)
  2. Main Processor ( Purple )
  3. RAM( Yellow )
  4. PCIC ( Blue)

I have watched 7 videos and 4 people place them on different parts.

Please help!!!!


r/rasberrypi • • 5d ago

Need Help with a Present, habe zero experiance

1 Upvotes

Hey, I'm looking for a rasberry pi for Christmas. It's a present for my boyfriend, but I have zero experience. What should I get for him? What Stufe do i need? Thanks for your help


r/rasberrypi • • 5d ago

5V relay module with Pi

Thumbnail
reddit.com
1 Upvotes