![]() In Part 1 of Smart Pet Feeder, Make a Smart Automatic Pet Feeder with Arduino Uno, we set up an automatic platform that determines whether your pet is fed or not and counts the hours to the next feed. Click on the Feed me button and watch your creation dispense food to feed your pet.Click here to read Part 1 of this article > Setup someplace comfortable where your pet cannot knock it down and attach a feeding bowl under the trapdoor. Open your cloud dashboard and open the product associated with your Bolt.Īdd pet food (not the mushy kind, but rather the dry treats) from the top of the housing and close it with a lid. $.get(""+"Your API Key Here"+"/serialBegin?baud=9600&deviceName="+"Your Bolt ID here") Īlso, don't forget to associate the page with your product. $.get(""+"Your API Key Here"+"/serialWrite?data="+data_val+"&deviceName="+"Your Bolt ID here") Write the code for the front-end and upload it to the Bolt cloud. Servo.write(CLOSE_ANGLE) // Send te command to the servo motor to close the trap door Servo.write(OPEN_ANGLE) // Send the command to the servo motor to open the trap door ![]() put your main code here, to run repeatedly:Ĭhar c = Serial.read() // Read data sent by the cloudĬase 'a' : digitalWrite(LED_PIN,HIGH) // If character received is 'a', dispense the treatĬase 'b' : digitalWrite(LED_PIN,LOW) // If charecter received is 'b', close the trapdoorĬase 'c' : digitalWrite(LED_PIN,HIGH) // If charecter received is 'c', open the trapdoor Servo.write(CLOSE_ANGLE) // Close the trapdoor when it first boots up ![]() put your setup code here, to run once: Int OPEN_ANGLE = 60 // The opening angle of the servo motor arm Int CLOSE_ANGLE = 0 // The closing angle of the servo motor arm Int SERVO_PIN = 9 // The pin which the servo is attached to #includeĬonst int LED_PIN = LED_BUILTIN // The number of the LED pin Write code for Boltduino using the Arduino IDE and upload it to the Boltduino. The servo motor should have three wires coming out of it which may be Black(GND), Red(5V) and White(PWM input) in colour.Ĭonnect the jumper cables from the Servo motor to the Boltduino in the fashion given below:įor further clarity, refer the Fritzing diagram. Note - I will be creating and adding a step by step video showing how to make the housing. You can increase the storage if your pet's appetite is voracious. The completed housing would be enough to store treats for feeding a cat a couple of times in my design. Insert part B through the slits in the now joined parts A1 and A2 and check if it moves freely through the slits.Īttach the spoon to the servo motor and your now completed housing should look like the completed product without the Bolduino attached to it. Now glue A1 and A2 together so that they form a rectangular box and the cuts that you have made in the step above line up. In parts A1 and A2, cut a rectangular hole which is roughly 1 cm in height and slightly lesser than the width of parts A1 and A2. In part A1, about 8 cm from the bottom, glue a rectangular piece of cardboard which is equal to the length and breadth of A1.Ĭut a rectangular hole in cardboard above which is roughly in the center. Make a rectangular hole 2cm by 2cm in part B which is roughly 3cm left of the centre. Next heat up the gun glue and glue the nail to the part labeled B. Make sure that the spoon can rotate freely about the nail like a fidget spinner. ![]() Make a hole in the spoon which is slightly larger than the nail that you are using as a pivot and insert the nail through it. Next cut a rectangular piece of cardboard that is about 7 cm longer than the width of your housing and about 3 cm smaller than the thickness of your housing. Label the two 'L's as A1 and A2 respectively. Refer the image below for any clarification. Mark 5cms from the bottom of the short hand of the 'L'. Next, form two 'L' shapes with the cardboard pieces which are identical. You can also choose different materials for your housing if you like. In order to make the housing of your pet feeder, select a few pieces of cardboard that are sturdy enough. Power up the Boltduino and make sure that the Bolt device is connected to a working WiFi network and the green LED is glowing. Connect the Bolt device to the Boltduino.
0 Comments
Leave a Reply. |