Prerequisites
To build this setup, you will need:
- 1 ESP8266;
- 1 LF33CV regulator (5v to 3.3v);
- 1 1kΩ resistor (pull-up);
- 1 double relay module (5v).
Principle
The dispenser consists of a 12v motor that rotates a threaded rod to which a tray is attached.
The tray is locked in rotation by two thin rods at the base of the dispenser.
Consequently, depending on the rotation direction of the motor, the tray goes down or up.
A larger diameter tube surrounds everything to collect the food and pours it at the base through a spout.
The dispenser is connected to Jeedom via an ESP8266 and actuates the double relay on HTTP request.




Wiring
Code
Jeedom
Create a script to communicate with the esp8266 of the dispenser:

Create a virtual to interact with the previous script:

Create a scenario to automate food distribution:

