Mager Feeder

by kpratama25 in Circuits > Arduino

304 Views, 1 Favorites, 0 Comments

Mager Feeder

image_2022-01-11_222946.png

This is a guide on how to make the MagerFeeder project, which is a pet feeder that has a scheduling feature which allows it to be automatic and also a manual mode where the user sends a command through a bot to activate the device. Other features the device have includes, an ESP32-CAM module which is able to send the picture it takes to the user through the Telegram App, this allows the user to monitor the device and also their pet. A buzzer is also available as an indication that the device has been activated with a LED light that shows the device is on. Changin the setting of the device can be done using 4 buttons available at the top of the device, with a LCD screen for it's visual interface.

This project was made by BINUS UNIVERSITY Students:

  1. Billie Christianto - 2301855551
  2. Natario Thomas - 2301850065
  3. Febrioza Kevin Pratama - 2301872495

Supplies

The components needed for this project are:
  1. Arduino UNO
  2. Breadboard
  3. LCD 16x2
  4. Push Button (x4)
  5. Motor Servo SG90
  6. ESP32-CAM
  7. RTC DS1307
  8. FTDI Programmer
  9. PIR Sensor
  10. LED
  11. Buzzer
  12. Jumper Wire
  13. PVC Pipe
  14. Plastic Container
  15. Case

Setting Up the Components

skematik.png

The above picture is the schematic for the Mager Feeder project

Making the PCB

image_2022-01-11_165603.png
image_2022-01-11_165608.png
image_2022-01-11_165831.png

The above pictures contain the PCB layout for components such as the LCD, Push Button, RTC, Buzzer, and Resistor

Making the Bot

image_2022-01-11_164257.png
image_2022-01-11_164352.png
image_2022-01-11_164427.png
image_2022-01-11_164453.png
  1. Login into a Telegram account and search the "BotFather" account as shown in the first picture
  2. Send these messages:
    • /newbot = Command to create a new bot
    • BotFather will ask a name for the bot that you want to create
    • Here, we will type "MagerFeeder" as our bot name
    • You will then be asked to make a username for the bot. Make sure that the username is unique, here we will use "Project789_bot" as the username
    • BotFather will send the bot token to be used in the next step
  3. Copy the bot token that you recevied as shown in the second picture and paste it in line 17 of the ESP32-CAM code
  4. Go back to Telegram and search an account with the name of "get id bot" as shown in the third picture
  5. Send the command "/my_id" and wait for it to response. Copy your Chat ID and paste it into line 16 of the ESP32-CAM code

Writing the Code

  1. 1. Arduino UNO Code
    The first file contains the code for the Arduino
  2. 2. ESP32-CAM Code
    The second file contains the code for the ESP32-CAM

Libraries Needed:

  1. Arduino UNO
  2. ESP32-CAM

Assembling the Device

  1. Prepare all the needed tools and materials
  2. Make a hole in the middle of the casing for the PVC pipe which will serve as our food track
  3. Make a hole at the top of the case for wiring, motor servo, and also to connect the container to the PVC pipe
  4. Make a hole at the bottom of the container for the motor servo and also where the food will go through
  5. Connect the food container with the top of the case using the body of the motor servo at the bottom side and the propeller at the top side
  6. Make a pole / pillar to place the ESP32-CAM above the device
  7. Place the ESP32-CAM at the pillar and position it so the camera is facing the food container
  8. Place the assembled arduino according to the schematic into the case
  9. Make a hole at the back side of the case to connect the arduino cable
  10. Place the PCB at the front end of the top of the case
  11. Assemble the case
  12. Fill the container with pet food

How It Works