Hi,
I think that most people that are really into home automation too often ask themselves this question: What else can I automate in my home? Recently for me, that answer was feeding my cat.
So, with the following electronic hardware:
1- ESP8266 (NodeMCU) (https://www.amazon.ca/Yizhet-ESP8266-ESP-12E-Internet-Development/dp/B08C52BCZQ/ref=sr_1_8?keywords=esp8266&qid=1653527962&sr=8-8)
2- servo motor (Hitec HS-422 Servo Motor - RobotShop)
3- HX711 (HX711 Load Cell Amplifier - RobotShop)
4- Load cell (5 Kg Micro Load Cell - RobotShop)
I was able to create a animal feeder connected to hubitat that automatically feed my cat
I cannot say it was easy. The coding was easy, you can find the hubitat driver and the program for the ESP8266 here. What was more complicated was to have a continuous flow of food that is falling into the food bowl.
So, I've finish to make a hole of 2 in (50 mm) and continuously opening and closing the hole until the wanted amount of food have fallen into the bowl. The video that shows the process can be download here.
With the shared driver, the load cell can be easily calibrated. First, with nothing on the tray, we measure the zero value (setZero command), then with a known weight on the tray, we click calibrate with the know weight indicated in the command.
Then, the animal is fed with the GiveFood command by sending the amount of food we want to give.
The open and close position needs also to be determined by doing some test by varying the position of the servo with the servo command. Once find, those positions are set in the preferences afterwards.
Here some picture of the device!