Sad Cat Project
For this project I used a Servo Motor, Arduino, 2 cans, Electrical Tape and a Knife. My final product did not quite look like the diagram I drew before building. I decided to take out the double bowl and just have the cat feeder raised to where a bowl can be placed under.
The Code
In the beginning of the code I declared the integers and said the Pin numbers, I then set the inputs and set the outputs. The code then moved the servo motor and waited for the delay. In the loop the button was read, the servo then motioned and then the food was released.
Building the Tinkercad
Building the tikercad was simple, all I needed to do was connect the servo to the Arduino as well as connect the button to the Arduino.
Put It All Together
The last step was putting the project together. I used to 2 cans as my holders for the food. I cut holes in the top and bottom of the first can and then cut holes in the top, bottom and side of the second can. These holes were made so that the food was able to travel from the top can into the bottom, and the holes in the bottom can were made to release the food as well as hold the Arduino. I put the Arduino in the bottom of the bottom can and put the Arduino through the cans and connected it to the top can so that it could rotate.