An automatic pet feeder using WizFi360-EVB-Pico controlled via WiFi. We can wirelessly control the pet feeder with an app.
We will be building Automatic Pet Feeder using WizFi360-EVB-Pico that can automatically serve food to your pet timely. It has a DS3231 RTC (Real Time Clock) Module, which sets the time and date on which your pet should be given food. So, by setting up the time according to your pet’s eating schedule, the device drop or fills the food bowl automatically.
In this circuit, we are using the app to display the time using DS3231 RTC Module with WizFi360-EVB-Pico. Also, a servo motor is used to rotate the containers to provide the food, and a mobile app to manually set up the time for feeding the Pet. You can set the rotation angle and container opening duration according to the quantity of food you want to serve to your pet. The quantity of food may also depend upon your pet whether it’s a dog, cat, or bird.
WizFi360-EVB-Pico is based on Raspberry Pi RP2040 and adds Wi-Fi connectivity using WizFi360. It is pin compatible with the Raspberry Pi Pico board and can be used for IoT Solution development.
The RP2040 GPIO used inside WizFi360-EVB-Pico is as follows.
- DS3231 is an RTC (Real Time Clock) module. It is used to maintain the date and time for most of the Electronics projects. This module has its own coin cell power supply, which maintains the date and time even when the main power is removed or the MCU has gone through a hard reset. So once we set the date and time in this module it will keep track of it always.
- PIR sensors allow you to sense motion. They are often referred to as PIR, "Passive Infrared", "Pyroelectric", or "IR motion" sensors. They are used to detect whether a pet has moved in or out of the sensor’s range.
In our circuit, we are using DS3231 to feed the pet according to the time, set up by the Pet’s owner, like an alarm. As the clock reaches the set time, it operates the servo motor to open the container gate, and the food drops into the Pet’s food bowl.
- Open File -> Preferences, and enter the following into the Additional Boards Manager URLs
https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
- Now you can search for “wizfi” in the Boards Manager and install the latest package for Raspberry Pi Pico/RP2040. Add the WizFi360EVB library
- Select the WIZnet WizFi360-EVB-Pico board and run the following blink code.
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Now
we have uploaded the code and the board is ready for this project.
Connect the RTC module, Buzzer, LED, and Servo motor as shown in the circuit diagram. The Buzzer and LED are connected to GP8 & GP9. The servo motor is connected to GP28. PIR Sensor is connected to GP27. The RTC module is connected to the I2C1_SDA & I2C_SCL.
<image>
<code>
----------------------------------------------------------------------------------------------------------------
If you faced any issues in building this project, feel free to ask me. Please do suggest new projects that you want me to do next.
Give a thumbs up if it really helped you and do follow my channel for interesting projects. :)
GitHub - https://github.com/Rahul24-06
Happy to have you subscribed: https://www.youtube.com/c/rahulkhanna24june?sub_confirmation=1
Thanks for reading!
Comments