Fixing a broken smart cat feeder with ESP32
pdx.su
pdx.su
The list of supported components is extensive: https://esphome.io/components/index.html
Either way, I am sure this was a fun project and he achieved what he wanted to do. But if this happened to me I would probably try to reverse engineer the device to free it from PetNet cloud. It would be fun and cool and interesting and I would probably never finish it..
And yeah, I'm not an embedded guy, but I've updated the article with an addendum
[1]: https://github.com/feedernet/petnet-feeder-service/wiki/Gett...
The best feature is the little speaker inside that plays the Meowmix jingle when dispensing. My cat is now conditioned to come running when she hears that sound.
I connected it to my Apple Home network via Home Assistant, and it works great. I can tell Siri to give the cat a snack, and off she goes.
Are you sure you don't have that backwards? Maybe she conditioned you to spend your time building a gadget to play her favorite tune.
https://en.wikipedia.org/wiki/.su
For weird reasons, the Soviet Union still officially exists in the Internet and it seems to be growing.
Bad for business if your cat feeder fails to feed the customer's cat and they return from a trip to a very hungry cat.
If he made his own automatic litter box (the rotating drum kind) for his cat, he'll also not see the point of all those sensors that "aren't really needed", and one day he'll come home to find his cat chopped in half.
Consumer electronics are generally made cheaply, so they don't put sensors in there for no reason at all. Usually there's a very good reason they're in there.
If this is intended for serious usage, i.e. the cat won't eat if it fails to dispense, a different design would be more resilient: maybe still define the schedule in Home Assistant or another control plane, but then have it "push" the whole schedule to the device. The device will also need time sync and a realtime clock. Then, the device manages its scheduled dispensation autonomously, even if the network or control plane are unavailable. And, the dispenser should have a little battery so it can run for a couple days with the power out.
But since this is mostly supplemental food for dental concerns, and he still gets two bowls of wet every day, its not really an issue
You'll likely need to do soldering if you want to connect sensors, batteries and the like.
Personally I really like what SEEED Studio [2] does with their ESP32 boards and they have nice docs.
1. https://esphome.io/ 2. https://www.seeedstudio.com/home-assistant
See this kit for example: https://a.aliexpress.com/_EyZhdw5
Tasmota has a setup package of you don't mind manually setting up each device. You can also configure them with code if you learn a little c and platformio. At this point, I batch my devices and flash them with wires for initial configuration (Wi-Fi, mqtt, etc), then run updates wirelessly using an http server on my network and mqtt to coordinate.
Side note, the esp8266 is older and less powerful than the esp32. In practice, the esp8266 can't handle https but the esp32 can. This has never been an issue for me and most of my devices are 8266.
So depending on what you're doing, they're an excellent place to start.
I'd love if Surefeed, a competitor, had gone the way of shipping more sensors. Instead, they just monitor the current going through the motor to detect if the lid is closed or opened (the current will spike when it reaches either end position)... and the motor is relatively powerful, powerful enough in fact to shred the plastic gears. It's laughable - this thing consists of a few pieces of plastic, an RFID antenna loop, a motor and a tiny PCB, but costs 160€.
I would say the current sensor is probably the right engineering design for reliability, but clearly poor implementation choices were made in this case.
An even better design is a BLDC motor with saliency feedback. That avoids brushes (wear component), and gives both angle and torque feedback. Unfortunately I think someone must have patented it because nobody uses such a design for cheap stuff, despite it being far cheaper.
If there were even a <350EUR cat feeder with that kind of controls and features - it'll be flying off the shelf into university labs and hobbyists sheds. There will be drones and 3D printers built on that. Perhaps even some guided missiles.
Unfortunately they normally need a control loop that runs at at least 10kHz for saliency measurement, which means all the other code on the microcontroller needs to be well behaved and not have millisecond long critical sections. If you can't do that, you need to add another 5 cents for another microcontroller.
Thanks, I didn't know these existed. Another useful "midwit" device to add to the list.
KISS in action is beautiful, don't let anyone tell you otherwise.
Edit: Ah, if it's from goodwill that might be not as easy...
https://www.homehealthcareshoppe.com/buy-ergo-auto-pet-feede...
Big hopper with a plastic auger at the bottom, driven by a gear motor similar to the one that runs a dryer timer. Very simple, no sensors beyond motor overheat. Mine is slightly modified because the idiot cat ate the spout off the end of the auger mechanism. I cobbled together a replacement that's tougher than her.
But thanks! Always good to have more options.
Basically a big metal bin with a powerful auger and chute out the side of it
If I hadn't found this one I'd planned on using the auger system from a chocolate fondue fountain, just placed on its side.