Urbino`s University - Computing and digital innovation - Programmazione per l'internet of things
Raspberry Pi + Python + ThingSpeak Edition
Ever dreamed of sweet, peaceful silence in your office?
Tired of that one colleague who thinks "speaking up" means "shouting across the room"?
Meet the IoT Anti-Colleague Noise Device: a Raspberry Pi-powered gadget that keeps your workspace civil, and your eardrums intact!
This device is a DIY IoT system built with a Raspberry Pi, a USB microphone, and a speaker.
Its mission: detect excessive noise, gently "punish" the offender, and keep a cloud-based log of every incident.
- Continuous Noise Monitoring:
The Pi listens to the room using a USB microphone, measuring the volume in real time. - Threshold Detection:
Too loud? The device knows. You can set the sensitivity via a config file. - "Reprimand" via Speaker:
If the noise crosses the limit, the speaker plays back an echo or a funny sound.
(Think of it as a gentle, geeky way to say "shhh!") - Cloud Logging (ThingSpeak):
Every incident is recorded (timestamp, volume) and sent to ThingSpeak for analysis and beautiful graphs.
- Raspberry Pi 3B+ (or newer)
- USB Microphone (e.g., PS3 Eye Camera for extra nerd points)
- Speaker (3.5mm jack or USB)
- Power Supply (USB)
- Real-time audio monitoring using Python (
sounddeviceorPyAudio) - Noise threshold configurable on the fly (no need to restart)
- Echo/disturbance playback when someone gets too loud
- Local event logging (CSV or lightweight DB)
- Push events to ThingSpeak via REST API for cloud visualization
- Fully open source and hackable
Data is sent to ThingSpeak, a free IoT analytics platform.
You get:
- Online dashboard with incident graphs
- Aggregated stats (who's the loudest, when, etc.)
- Access from anywhere
- Fun: Tech-powered office pranks!
- Peace: Bring order to chaotic open spaces.
- Metrics: Finally, proof that Sbregò is too loud.
- Hackability: Extend it, automate alerts, add sensors, whatever you want.
















