EmbeddedRelated.com

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

Microcontroller
Top Pick ESP32-S3-WROOM-1 Espressif Systems From our database
Top pick: ESP32-S3-WROOM-1 (Espressif Systems). ESP32-family module with more modern peripherals and extra RAM options, useful if you later add a display, richer UI, or OTA features. Still stays within the user's ESP32 ecosystem and is widely available through major distributors.
ESP32-WROOM-32E Espressif Systems From our database
Production-friendly ESP32 module with integrated WiFi/BLE, mature toolchain support, and enough GPIO/PWM for a feeder controller. The module form factor simplifies RF and certification compared with a bare chip, and it fits the user's existing ESP32 ecosystem.
ESP32-WROOM-32UE Espressif Systems From our database
Same ESP32 family and software ecosystem, but with an external antenna connector for better RF performance if the feeder is installed in a metal cabinet or far from the access point. Good choice when WiFi reliability matters more than BOM simplicity.
Actuator
Top Pick DRV8462DDVR Texas Instruments From our database
DRV8462DDVR is the best pick if you are using a stepper-based dispensing mechanism, because it gives the most precise control over feed quantity and is the most production-robust option in this set.
Mouser $10.42 (4,769 in stock) Digikey
MAX22203ATU+ Analog Devices Inc./Maxim Integrated From our database
Dual high-voltage brushed DC motor driver with integrated current sensing, useful if you drive a DC motor for a spinner or gate and want fault visibility. The current sensing helps detect stalls or jam conditions, which is valuable in unattended production equipment.
BTN8982TA Infineon Technologies From our database
High-current half-bridge driver that is well suited to a single brushed DC motor or solenoid-style actuator. It is rugged and simple to interface from an MCU PWM output, making it a practical option for a feeder with a single motorized dispense mechanism.
Power Supply
Top Pick TPS5430 Texas Instruments From our database
TPS5430 is the best overall production choice here because it is active, widely available, and gives a good balance of efficiency, input range, and design simplicity for a feeder powered from an external adapter.
Mouser $4.46 (1,898 in stock) Digikey

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