This catfeeder features quite a lot of tech! Besides its main funtion of a feeder itself, it also has:
An ultrasonic sensor to tell us when the feeder is low.
And ESPHome to tie it into your Home Automation system!
And it is really cheap!
- Feeding the cat by manual operation or automated by HA.
- Measure remaining food by ultrasonic
- Notify via Alexa TTS and Telegram about remaining food
- Whatever you can imagine with Home Assistant!
- Can run from a USB Powerbank, so it can run on the go or as a security feature as UPS
Thanks for checking this out! Here is what my prototype cat feeder looks like:
HA:
The cards named "test" is under a tab named development, so I can control and calibrate all the values from here, while I only show the "pretty" card in the main screen.
Hardware:
- 1x NodeMCU v3 ESP8266 (I use an Lolin NodeMCU, but any NodeMCU or WeMos D1/ D1 Mini will work) https://ebay.us/EqwFiP ~5€
- 1x Servo Motor Continuous SM-S4303R: https://amzn.to/2YpssPv ~10€
- 1x Ultrasonic Module HC-SR04 Distance Transducer Sensor For Arduino Robot https://ebay.us/ei9Pcy ~2€
- 1x Whatever Smartphone Charger https://amzn.to/2OTBqS0 ~15€
- 1x takestop Dry-Food Dispenser https://amzn.to/2YlzHs1 ~15€
- Various header wires (male-male, male-female, female-female)
- A USB-A to Micro USB cable.
- Dremel or drill.
Around 35€ if you a have a spare charger at home. Even cheaper if you get bulk sensors and Lolins or WeMos from Bangood or Aliexpress. The most expensive item is the Dispenser and usually they aren't very well made... But if we got the mechanics and automations, a cilinder and a D shape rotary axis is really easy to make in 3d ;)
- Clean ultrasonic values (no negative values, no over 100% values)
- Automate my excel list with my food providers to automatically show the cheapest one and trigger it by a commmand on Telegram/HA. Also scrapping prizes?
- Some scale or sensor to detect the bowl placed below, to stop the automation if not or if it is full.
- Some 3d printing:
- Lolin case: https://www.thingiverse.com/thing:2850128
- Servo mount: https://www.thingiverse.com/thing:3269637
- Adonno salt meter
- Lance36 catFeeder, my original inspiration
- 335iguy, with a very similar approach
- The amazing Community of Home Assistant!!:
- Automate my excel list with my food providers to automatically show the cheapest one and trigger it by a commmand on Telegram/HA.
- Compile the code inside EspHome and download the binary to install it with EspHome Flasher.
- Fit the ultrasonic sensor below the lid with screws, some hot glue, whatever fits for you.
- With a drill or dremel, drill a passthrough to connect the ultrasonic sensor to the Lolin. I use four pins, to make it detachable.
- Screw the servo motor to the rotary handle.
- Connect the pins as set below.
- Connect your MicroUSB
- Create the package for Home Assistant and restart the server.
- Test your values with the test-card and hardcode the correct values as initial number in each input_number.
- Define your automation