Skip to main content
AmigoFish

i wired my toilet to a Raspberry Pi

From NetworkChuck · · 11 min

The player loads from YouTube only when you click. It uses YouTube's privacy-enhanced mode.

If the video does not play, the owner may have turned off embedding. Watch it on YouTube instead.

Watch on YouTube

Not rated yet

Description

Companies still have to ship AI, and their AI agents now have real access to real servers and real data. Wiz gives you the complete context and runtime protection to adopt AI fast and safely. See Wiz AIDR in action with a demo and tell them Chuck sent you: https://ntck.co/WizAIDR

My toilet officially has an IP address. Every time my editors flush, all of our computers drop off the NAS and even the internet kind of hiccups, so I put a float switch in the toilet tank and wired it to an old Raspberry Pi. Now I know exactly when that toilet flushes, down to the millisecond, and my whole team gets a Slack alert. It took a Lego, a few tries, a few zip ties and way too much hand washing. That's just good IT work. In this video you'll learn how a float switch works (two metal strips, a glass tube and a magnet), how to wire one to the GPIO pins on a Raspberry Pi, why the Pi's built-in pull-up resistor keeps stray electrical noise from faking a flush, and how a small Python script checks the pin every tenth of a second and logs every flush to a JSON file. Whether you have never touched a GPIO pin or everything in your house already has an IP address, this is a very dumb project with a real IT lesson inside it: when something weird happens on your network, log everything around it.

Join the NetworkChuck Academy!: https://ntck.co/NCAcademy

RESOURCES / LINKS: 🔌 Jumper wires (buy a million of these): https://geni.us/qSh67 🚽 Toilet monitor code + step-by-step guide: https://github.com/theNetworkChuck/toilet-monitor-guide 📺 My Paperclip video (where the flush problem started): https://www.youtube.com/watch?v=7RVf25Rg0Mc 📺 You SUCK at Subnetting EP 1 (where I first joked about giving my toilet an IP address): https://www.youtube.com/watch?v=5WfiTHiU4x8

**Sponsored by Wiz

SUPPORT NETWORKCHUCK: ☕☕ COFFEE and MERCH: https://ntck.co/coffee

READY TO LEARN?? 🔥🔥Join the NetworkChuck Academy!: https://ntck.co/NCAcademy 📚 CCNA Course: https://ntck.co/ccna

FOLLOW ME EVERYWHERE: Instagram: https://www.instagram.com/networkchuck/ X/Twitter: https://x.com/networkchuck Facebook: https://www.facebook.com/NetworkChuck/ Join the Discord server: https://ntck.co/discord

Some links in this description are affiliate links. If you buy through them, I may earn a small commission at no extra cost to you. #sponsored

#raspberrypi #homelab #networkchuck

Back to NetworkChuck · Report a problem