Rather than throwing away our worn out cat feeder, we hacked it and got it working again using a low cost microcontroller board. This not only saved us some bucks but also kept some plastic out of the landfill.
The electronics of the cat feeder consist of a motor that turns the platter, a motor control board, an optical sensor that determines when the platter is aligned correctly, and a control module. Poking around in the electronics, we figured out that the control module had failed. This page describes our use of a RPi Pico W to replace the control module. The Arduino code for this project can be found here.
The back side of the original control module is shown on the left. On the front side, it had a display and a set of buttons that allowed the user to set the time.
The platter containing the cat food turns the pin labeled "OUT2" is pulled LOW, sending a signal to the motor control board.
We replaced the control module with a breadboarded Raspberry Pi Pico W and programmed it using the Arudino IDE. On startup, the microcontroller connects to WiFi and queries the time from an ntp server. Once the time is received, the microcontroller disconnects from WiFi. When the programmed feeding time equals the current time, the microcontroller sends a LOW signal to the motor control board and the platter turns. Once per day, the microcontroller checks to see if the time needs to be updated to account for a change to or from Daylight Savings Time.
In addition to the microcontoller board, we added a couple of buttons. One button signals a manual rotation. The other signals a general reset of the software. Not shown in the photo is a lcd display that shows the current time. The microcontroller board is powered over a usb cable that is plugged into a charger. The motor is powered by batteries. The original control module ran from the batteries but we were lazy and have not incorporated a voltage regulator for the microcontroller.