Letting strangers dispense chicken treats takes more than putting a motor behind a web button. Reddit user tfb414, sharing the project on r/esp32, built an ESP32-C3 feeder that gives internet visitors access to seven hens while keeping several limits inside the coop itself. Since July, the creator reports more than 2,000 feeds from over 100 people through the public coop website.
Each feed turns a 3D-printed drum and lights a neon FED sign. According to tfb414, the hens have learned the signal and come running. Behind that simple interaction are two separate engineering problems: getting oatmeal through a mechanism reliably, and making sure one online request produces only one dispensing event.
A single pocket replaces the auger and gate
The dispensing mechanism went through nine versions in about a week. An auger wrapped material and jammed; a gate could release the entire hopper. The replacement uses a rotating drum with one pocket, filled by an upside-down mason jar. As the drum turns, the pocket empties into a chute, while the rest of the drum seals the outlet.
That geometry limits how much material is exposed to the outlet at once. The creator describes the intended worst-case spill as one scoop rather than the jar’s contents.
The drum still jammed until version five. That revision relieved the housing bore, leaving only narrow contact surfaces, or lands, with 2.5 mm of clearance elsewhere. Tfb414 reports that flakes stopped getting pinched. Motor torque mattered too: a 28BYJ-48 proved insufficient, so the build moved to a NEMA 17 driven by a TMC2209.
The electronics also progressed from perfboard and a DevKit V1 to an ESP32-C3 SuperMini on a custom PCB designed in KiCad and manufactured by JLCPCB. But the most instructive mechanical change is the clearance: a stronger motor wasn’t the only answer to a feeder that resisted turning.
The coop can refuse the server
The firmware treats a feed command as an event to remember, not simply a message to obey. Each feed has an event ID stored in flash using NVS, the ESP32’s nonvolatile storage. If MQTT delivers the same command again, the device acknowledges the stored result instead of dispensing another portion.
Several other checks keep remote requests from becoming unconditional motor movements:
Failed feeds also trigger automatic credit refunds—23 at the time of the post. These are useful boundaries between the website and the physical mechanism: the server can request an action, but the device still decides whether it is allowed.
Viewers can steer the camera, too
A second ESP32, TMC2209 and NEMA 17 now pan the main camera. A 20-tooth pulley drives a 100-tooth pulley through a GT2 belt, giving a 5:1 reduction. A printed hub supported by two 6808 bearings carries the assembly, and viewers take turns steering it.
The camera base homes against a lever switch. If a later movement reaches that switch, the controller resets its position reference and logs the difference from its step count. After 30 seconds without input, it returns to center. That gives visitors control without leaving the camera indefinitely pointed wherever the last person chose.
Duplicate protection isn’t a daily feeding limit
The creator reports a busiest day of 65 feeds and one participant returning every day for 55 days. That sustained use makes the remaining questions worth separating from the safeguards already described.
People following the project asked about total food limits and whether the hens also forage. Another useful question concerned recovery after a firmware update or an NVS reset: how does the device reconcile its history if its stored event records disappear? The supplied discussion includes no answers to those questions.
For anyone adapting the idea, that distinction matters. Preventing a repeated message from dispensing twice is one job; limiting the total amount dispensed across many legitimate requests is another. This build offers concrete approaches to mechanical portioning and local command checks, while leaving the overall feeding policy an important detail to establish before copying it.
Written by the Visual Space editorial team.
Source: Strangers on the internet have fed my chickens over 2,000 times with an ESP32!

