I upgraded my Tuya Pet Water Dispenser with an ESP32 and a Distance Sensor to automaticly start the pump if a pet is in front of the dispenser and stop the pump as soon as there is not pet in front of the dispenser for 30 seconds.
https://youtube.com/shorts/7VWicCwxIYM?feature=share
I took my Tuya Pet Water Dispenser and replaced the orginal Board inside with an ESP32 and also added a distance sensor and a relay the start / stop the pump.
Now the pump will start as soon as there is an object (e.g. a pet) nearer than 90 cm in front of the pet water dispenser. The pump will run until there is no object 90cm oder nearer in front of it for 30 seconds or more.
- 1 x Tuya WiFi Cat Water Dispenser 2.5L Automatic Pet Water Feeder (~ 50 € got mine for 35 € - Link
- 1 x ESP32-Board (~ 10 Euros - Link)
- 1 x Ultrasonic Range Finder (~5 Euros - Link)
- 1 x Relay (~5 Euro - Link)
- 1 x Breadboard (~ 4 Euros - Link)
- 1 x USB-Power-Plug and USB-Cable (took one i had laying around here)
- some Jumper wires male-to-male and male-to-female
- Cable-Connectors (Wago-Klemmen)
All the needed hardware fits perfectly in the space between the water tank an the bottom of the case. I had to drill 3 holes in the case (2 for the ultrasonic sensor, 1 for the second power supply for the pump).