ESP32-Based Industrial Automatic Fish Feeder
An ESP32-based automatic fish feeder for scheduled, reliable dispensing in a production environment.
Intermediate Project
— This is an intermediate production design because it combines an ESP32-based controller with motor drive, power regulation, enclosure/environmental protection, and calibration of a real mechanical dispensing system.
Assumptions:
- The feeder dispenses dry pellets or flakes from a hopper using a motorized mechanism.
- The system needs local autonomous operation with optional WiFi for configuration/monitoring.
- Production use implies a custom PCB and enclosure, not a dev board.
- No camera, weight sensing, or water-quality sensing was explicitly requested, so those are not included.
Bill of Materials
Compatibility Notes
- ESP32 modules use 3.3 V logic, so the motor driver and regulator design must keep MCU I/O at 3.3 V-compatible levels.
- If the feeder motor runs from a higher supply rail, keep motor power and MCU power separated with proper decoupling and a shared ground.
- The recommended stepper driver and DC motor drivers are compatible with PWM/step-direction style control from an ESP32 GPIO set.
- For WiFi reliability, prefer the ESP32-WROOM-32UE if the enclosure is metal or the feeder is installed far from the access point.
You'll Also Need
- Motor, gearbox, auger, or dispensing wheel are not included and must be selected based on the food type and portion size.
- You will need a custom PCB, enclosure, hopper, food-safe mechanical parts, fasteners, wiring harness, and connectors.
- Add flyback/EMI suppression, bulk capacitance, and protection components appropriate to the chosen motor and supply.
- If you want portion verification, you may also need a load cell or optical sensor, but that was not explicitly requested.
Estimated BOM Cost: $30-35 (based on live distributor pricing)
Design Considerations
Dispense Mechanism Choice
For production, the mechanical dispenser matters more than the MCU. A stepper-driven auger gives repeatable portioning and is easier to calibrate than a free-spinning DC motor, but it can jam if pellets bridge in the hopper. If you use a DC motor, add stall detection or a timeout so a jam does not burn out the motor.
Jam and Stall Handling
Unattended feeders fail most often from food bridging, moisture, or motor stalls. Use current sensing if possible, or at minimum a watchdog plus a maximum run-time limit per dispense cycle. A retry strategy with a short reverse pulse can clear minor jams, but do not retry indefinitely.
Power Integrity
Motor startup current can be several times the running current, so size the supply and bulk capacitance for the worst case, not the average case. Keep the ESP32 rail isolated from motor transients with a buck regulator, local 10 uF to 100 uF decoupling near the MCU, and a star-ground layout. Brownout resets during motor start are a common first failure in feeders.
Connectivity and Reliability
WiFi is useful for scheduling and alerts, but the feeder must still operate autonomously if the network is down. Store schedules locally in flash and treat cloud/app connectivity as optional. Add a heartbeat or status page so you can detect when the feeder has stopped responding before the fish are affected.
Environmental Protection
Fish feeders live near humidity, salt spray, and condensation, so the enclosure and cable exits need more attention than the electronics. Use conformal coating or a sealed compartment for the PCB, and keep the motor and food path isolated from electronics. Corrosion and moisture ingress are common long-term failure modes in production deployments.
Validation and Calibration
Calibrate by weight, not just by motor steps or run time, because pellet size and humidity change the dispense rate. Test across the full hopper fill range, since head pressure changes the flow behavior. Run long-duration soak tests with repeated cycles to catch drift, thermal issues, and mechanical wear before production release.
Want to customize this project or build something different?
Try the Project Advisor


