Make a Wifi Connected Pet Feeder For Home Assistant!

Published at : 23 Dec 2025

In this video I walk you through, start to finish, how to attach a servo to a dry food dispenser and configure it to work with Home Assistant using a Wemos D1 Mini

Links:

Here are the parts you'll need -

Food Dispenser: https://amzn.to/3inC7jW
Servo: https://amzn.to/3svhiYh
Ultrasonic Sensor: https://amzn.to/3p4LBmk
Buck Converter: https://amzn.to/35Mvoef
AC Adapter*: https://amzn.to/3inipoj
*Not the one I used because I had one laying around, but it should work great
Solderable Breadboard: https://amzn.to/39Al2z4
D1 Mini: https://amzn.to/3imr0rf
Solder: https://amzn.to/3qtxSWF
Jumper wires: https://amzn.to/2XPSKLm

I wish I had one of these:
Helping Hands: https://amzn.to/3bVCIb0

If you need the D1 Mini drivers or a flash utility, you can find them here:

Drivers: https://www.wemos.cc/en/latest/ch340_driver.html
Flash Utility: https://github.com/nodemcu/nodemcu-flasher

And this is the webpage that inspired me to try this project:
https://home-assistant-guide.com/2020/10/25/the-esphome-powered-automatic-cat-feeder-is-a-thing-of-genius/

Chapters -
00:00 - Intro
00:17 - What You'll Need
01:05 - setting up the D1 Mini in ESPHome
02:00 - Flashing the D1 Mini
02:28 - Adding the Servo Motor Code
04:20 - Wiring and Soldering the Hardware
09:15 - Modifying the Food Dispenser
10:09 - Final Assembly
11:53 - Adding the Ultrasonic Sensor Code
12:33 - Home Assistant Automations
13:13 - Plugging It In and Testing
14:05 - Conclusion