#Automatic Cat Feeder

10 messages · Page 1 of 1 (latest)

fervent acorn
#

This is the prototype for my fully automatic cat feeder. I'm currently working on Version 2. I typically program ESP controllers using ESP Home (in YAML) to connect them with Home Assistant. Since I couldn't control the stepper motor directly via the ESP8266 (using YAML), I implemented the stepper motor control using an Arduino. The feeding automation is running (hard coded) on the ESP8266 (as I can control it through Home Assistant), which sends signals to the Arduino to rotate the stepper motor . Additionally, I have placed a vibrator at the opening to prevent the food from getting stuck.

#

For some reason, sometimes the stepper motor rotates when I activate the vibrator. The stepper motor receives its signal only from the ESP8266, not from the Arduino. The stepper motor is programmed to open/close by approximately 40° upon receiving a signal. The problem now is that when I open the lid and then start the vibrator, the lid sometimes opens another 40°. When the lid is supposed to close again, it only rotates back by 40°, leaving the lid still open by 40° due to the error signal from the vibrator.

#

On request, I can share the Arduino and YAML code here.

ruby geyser
#

Not enough duct tape

#

Why couldn't you control the stepper directly from esphome?

fervent acorn
wintry vigil
#

yeah I've used that type of stepper before with esphome. Do you have the driver boards?

ruby geyser
fervent acorn
fervent acorn