Skip to content

guevara777/tuya-pet-water-dispenser-with-distance-sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Tuya Pet Water Dispenser with Distance Sensor

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.

PXL_20221017_202828599 PXL_20221017_202726788

https://youtube.com/shorts/7VWicCwxIYM?feature=share

What is this?

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.

What do i need?

  • 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)

Hardware-Setup

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). PXL_20221017_202921697 Folie1

Software-Setup

ESPHOME

See ESPhome-Yaml-Code

About

Xiamoi Pet Water Dispenser with Distance Sensor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published