Raspberry Pi Pico weather display (MicroPython)
Your first MicroPython project: temperature and humidity on an OLED.
Shop by category
Shop all componentsPi-hole is a network-wide DNS filter. Devices ask it for the address of each website; it refuses the ones on ad and tracker lists, so those ads never load. It runs happily on a Raspberry Pi, and a Pi 5 is more than enough. You install it with one command, point your router's DNS at the Pi, and get a web dashboard showing what is blocked. It cuts data use on mobile and speeds up many pages, but it can also block a site you need, so you learn to allow-list.
Only change DNS on a network you own or manage.
Tick anything you already have and the total updates.
27 W power supply for the Pi 5
microSD card for the operating system
Follow the colours: red is power, dark grey is ground, blue is a signal.
Official 27 W USB-C supply for the Pi 5. Leave the Pi on all the time.
install.sh# on the Pi, after flashing and logging in over SSH
sudo apt update && sudo apt full-upgrade -y
curl -sSL https://install.pi-hole.net | bash # follow the installer
# set an admin password
pihole setpassword
# update the blocklists and check status
pihole -g
pihole status
Some devices use their own DNS or DNS over HTTPS. Set the DNS on the router and turn off 'private DNS' on the phone.
If the Pi is the only DNS server nothing resolves when it is down. Add a backup DNS in the router, or keep the Pi powered.
Open the Pi-hole query log, find the blocked domain and add it to the allow list.
It blocks many ad domains, but YouTube ads come from the same servers as videos, so they are not blocked.
No. Any Raspberry Pi with Ethernet works. A Pi 5 simply has lots of spare power.
Yes. It filters traffic on your own network.
4 parts: Raspberry Pi 5 with 4GB RAM, Official 27W USB-C PD Power Supply for Raspberry Pi 5 – IN Plug, Official Raspberry Pi 32GB A2 Class Micro SD Card and Official Raspberry Pi 5 Active Cooler. On this page you can tick the parts you already have and add only the rest to your cart.
It is a intermediate project and takes about 1 hour. The build on this page has 6 steps.
No. This page has the complete, tested code (install.sh).
About ₹16,756 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
How DNS filtering works; Installing Pi-hole on Raspberry Pi OS Lite; Changing the router's DNS and allow-listing sites.
Only change DNS on a network you own or manage.
Ideas that reuse this build: Build a Raspberry Pi 5 home server that boots from an NVMe SSD. They are listed under Take it further on this page.
Your first MicroPython project: temperature and humidity on an OLED.
A web page with ON and OFF buttons that switches a relay over Wi-Fi.
A warm ring light that fades up at dusk and down at dawn.
Turn a Pi and a touchscreen into a home command centre with a clock and to-do list.
Learning project. Check every circuit and the datasheet of each part before you power it up.