Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

Pi-hole on Raspberry Pi Pico: Full Setup Guide

This guide walks you through setting up Pi-hole on a Raspberry Pi Pico. While the Pico is a microcontroller, not a full computer, it can run a lightweight DNS server that blocks ads and trackers at the network level. This is a fun, low-power project that teaches networking basics and gives you a private, always-on ad blocker for your whole home network. You’ll need a Pico (any variant with Wi-Fi, like the Pico W), a micro-USB cable, and a computer to write the firmware. No soldering or extra hardware is required.

What You’ll Need

  • Raspberry Pi Pico W (or Pico WH) – the version with Wi-Fi is essential.
  • Micro-USB cable (data-capable, not just charging).
  • A computer (Windows, macOS, or Linux) with a USB port.
  • Internet access to download firmware and blocklists.
  • Optional: a microSD card module if you want to store logs (not required for basic blocking).

Step-by-Step

  1. Download the Pi-hole Pico firmware. Go to the official Pi-hole Pico project page (search for “Pi-hole Pico GitHub”) and download the latest UF2 file. This is a precompiled firmware that turns your Pico into a DNS sinkhole.
  2. Put the Pico into bootloader mode. Unplug the Pico, hold down the BOOTSEL button on the board, and plug it into your computer via USB. Keep holding BOOTSEL for about 2 seconds, then release. A new drive named “RPI-RP2” should appear on your computer.
  3. Flash the firmware. Drag and drop the downloaded UF2 file onto the RPI-RP2 drive. The Pico will reboot automatically, and the drive will disappear. The Pico is now running the Pi-hole firmware.
  4. Connect to the Pico’s Wi-Fi access point. After flashing, the Pico creates its own Wi-Fi network named something like “pihole-pico” (check the project docs for the exact SSID). Connect your computer or phone to that network. The password is usually printed in the documentation or on the device’s serial output.
  5. Configure your home Wi-Fi. Once connected to the Pico’s AP, open a web browser and go to the configuration page (typically at 192.168.4.1). Enter your home Wi-Fi network’s SSID and password, and save. The Pico will restart and connect to your home network.
  6. Find the Pico’s IP address. After it connects, the Pico’s IP address will be shown on the configuration page or via a serial monitor. Alternatively, check your router’s DHCP client list for a device named “pihole-pico” or similar. Note this IP address.
  7. Set your router to use the Pico as DNS. Log into your router’s admin panel (usually at 192.168.1.1 or 192.168.0.1). Look for DHCP settings or DNS settings. Change the DNS server to the Pico’s IP address. If your router doesn’t allow custom DNS, you can manually set DNS on individual devices instead.
  8. Test the blocking. On a device that uses your router’s DNS, visit a site known for ads or trackers. You should see blank spaces or blocked messages. To verify, use an online DNS leak test or check the Pi-hole’s block page.
  9. Optional: Update blocklists. The firmware includes a default blocklist. To update it, you’ll need to connect to the Pico’s serial console (via USB) and follow the project’s instructions for updating. This is done rarely, as the list is baked into the firmware.

Common Mistakes

  • Using a non-Wi-Fi Pico. The original Pico (without W in the name) has no Wi-Fi and cannot run this project. Always check you have a Pico W.
  • Incorrect Wi-Fi credentials. If you mistype your Wi-Fi password during setup, the Pico won’t connect. Double-check the SSID and password, and note that the password is case-sensitive.
  • Forgetting to change router DNS. Simply flashing the Pico does nothing until you tell your network to use it as the DNS server. If you skip this step, no blocking occurs.
  • Using a charge-only USB cable. Some cables lack data lines, so the Pico won’t appear as a drive or serial port. Try a different cable.

Tips

  • Use a static IP reservation. In your router’s DHCP settings, reserve the Pico’s IP address so it never changes. This prevents your DNS from breaking after a reboot.
  • Keep the Pico powered via a wall adapter, not just your computer’s USB port, for 24/7 operation.
  • Test with a single device first. Before changing your router’s DNS, manually set the DNS on one device (like your phone) to the Pico’s IP and confirm blocking works. This isolates issues.
  • Monitor via serial. Plug the Pico into a computer and open a serial monitor (e.g., PuTTY or screen) at 115200 baud to see DNS queries and status messages. This helps debug.

Troubleshooting

  • Pico not appearing as a drive. Ensure you’re holding BOOTSEL while plugging in, and try a different USB port or cable. If it still fails, try a different computer.
  • Pico connects to Wi-Fi but no internet. Check that your router’s DHCP is assigning an IP to the Pico. If not, try a static IP configuration on the Pico (via the config page). Also verify that your router doesn’t have client isolation enabled, which blocks communication between devices.
  • Ads still showing. First, confirm that your device is actually using the Pico as DNS. Visit a DNS testing site (like dnsleaktest.com) to see which DNS server you’re using. If it’s not the Pico’s IP, your router may be overriding DNS or your device has a hardcoded DNS (e.g., from a VPN).
  • Pico resets frequently. This can be due to insufficient power. Use a high-quality 5V/1A adapter and a short USB cable. Also, avoid powering it from a laptop’s USB port that may provide less power.
  • Cannot access the configuration page. If you’ve already configured Wi-Fi, the AP is disabled. To reconfigure, hold the BOOTSEL button while powering on to reset the Pico to AP mode (this clears settings). Refer to the project docs for the exact reset procedure.

Frequently Asked Questions

  • Can the Pico handle a large network? The Pico is limited by its memory and CPU. It can handle a typical home network (a few dozen devices) easily, but it may struggle with hundreds of devices or heavy DNS traffic. For most homes, it’s fine.
  • Does this block ads on HTTPS sites? Yes, because it blocks at the DNS level. When a domain is blocked, the device can’t resolve it, so it can’t connect to the ad server, regardless of HTTPS.
  • Will this slow down my internet? DNS lookups are fast, and the Pico adds only a few milliseconds. Most users won’t notice any difference. The Pico’s response time is comparable to a typical router’s DNS.
  • How do I update the blocklist? The blocklist is compiled into the firmware. To update, you need to reflash the Pico with a newer UF2 file. Check the project’s GitHub releases for updates.
  • Can I use a Raspberry Pi Pico 2? The Pico 2 (with RP2350) is not officially supported by the current Pi-hole Pico firmware. Stick with the Pico W for now, or check the project’s documentation for compatibility updates.
  • Is this as powerful as a full Pi-hole on a Raspberry Pi? No. The Pico version is a simplified, lightweight version. It lacks features like a web dashboard, detailed statistics, and custom DNS records. It’s a great minimal solution, but if you need advanced features, use a Raspberry Pi (or a virtual machine) with the full Pi-hole.
Pi-hole on Raspberry Pi Pico: Full Setup Guide
Scroll to top