Eventually perhaps building in some moisture sensors and some pi/arduino logic to then control the pump.
For a more DIY solution you can install Node-RED onto a Raspberry Pi for a GUI flow editor: https://hackaday.com/2020/01/15/automate-your-life-with-node...
Alternatively, if you'd like to do everything on the Raspberry Pi, use its GPIOs to control a relay module with optocoupler isolation (~$4) which can turn the pump on or off: https://www.aliexpress.com/item/2251832713449142.html
If you're more hardcore, you could flash a smartplug like Sonoff S31 with Tasmota and add rules that trigger based on various events (eg: timer). https://tasmota.github.io/docs/Rules/#rule-variables https://tinkerman.cat/post/sonoff-s31-now-serious
I wanna do this in N scale.
I doubt i'll ever get the full vision of the idea realized but i've got a few seconds of footage from train POV as it runs around the table from a taped together prototype test and that may be enough to keep me interested in the idea.
- https://www.youtube.com/watch?v=nrK3tGIC33E
- https://www.aliexpress.com/wholesale?SearchText=Eachine+TX06
- Eachine TX06: https://www.aliexpress.com/item/2255800455864759.html
- SkyDroid Receiver: https://www.aliexpress.com/item/2255800153959032.html
For pan/tilt, you could wire up a servo motor to an RC receiver.
https://hackaday.com/2020/01/15/automate-your-life-with-node...
Alternatively, if you are interested in making or playing back music, one idea is to turn the Raspberry Pi into a MIDI synthesizer:
MiniDexed: 8 DX7 Tone Generators
- https://github.com/probonopd/MiniDexed
- https://www.youtube.com/watch?v=Z3t94ceMHJo
MT32-Pi: Roland MT-32 emulator
- https://github.com/dwhinham/mt32-pi
- https://www.youtube.com/watch?v=vaSD_wbzJRw
Optionally, buy a PCM5102/PCM5122 or ES9018K2M I2S DAC to improve the output sound quality:
https://raspberrypi.stackexchange.com/questions/76188/how-to...
PCM5102 (~$7): https://www.aliexpress.com/wholesale?SearchText=PCM5102+DAC
ES9018K2M (~$12): https://www.aliexpress.com/wholesale?SearchText=es9018k2m+i2...
https://en.wikipedia.org/wiki/The_Clapper
I'm very anti "internet of things" but I used to wire that to an AM/FM radio and/or lamp so it would give the appearance of someone waking up if you jiggled the door handle at night, after one too many times exactly that happened when I was home.
(Just before I came to town a white woman had gone missing, so I was surprised at how many weirdos they let just wander around under the pretense they were selling magazines or Jesus or whatever.)
—edit—
And the doorknob thing, just balance an aluminum can on it so it makes a terrible racket if someone messes with the knob. Wakes you up, they’ll hear it and having a shotgun handy will make them seriously reconsider their life choices if it comes to that.
Citing them for disorderly conduct, ticketing them if they blow a stop sign or something, or otherwise making them feel unwelcome if someone reports they're literally wandering around trying doorknobs under the pretense they're selling something
There’s something so fun about using small, cheap, and efficient hardware for interacting with the real world.
It’s also a good stepping stone to the world of esp32 (which is more suited to most tasks like this, IMO).
Warning to OP: it can get really addictive! Next thing you know you have entire collections of random microcontrollers, SBCs, and drawers full of relays, sensors, servos, etc!
I always wanted to try this for having bluetooth to aux in my car, but I never finished it.
Here is a project, that tried to accomplish this: https://github.com/BaReinhard/Super-Simple-Raspberry-Pi-Audi...
And my personal notes and scripts: https://github.com/sandreas/raspberry-bluetooth-receiver