Thingiverse
Raspberry Pi powered Cat Feeder
door henryloc5
273
Downloads
278
Likes
2
Makes
Original Dispenser: https://www.amazon.com/Petmate-Replendish-Microban-Automatic-Available/dp/B0057LAICC/ref=sr_1_10?dchild=1&keywords=pet+food+dispenser&qid=1585784987&sr=8-10
Servo motor used: https://www.amazon.com/gp/product/B019TOJPO4/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1
I used the circular attachment from the servo motor kit and hot glued it on to the Auger screw.
The python script is simple. The way I wrote it is just to have to motor seek its minimum point, but there isn't one because the servo is 360 continuous rotation, it will just keep spinning counter clockwise till the script ends.
power the servo with the pi's 5V. I have my servo signal connected to GPIO 17.
The script:
Servo.py
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
from gpiozero import Servo
import time
from time import sleep
myGPIO=17
start = time.time()
Duration = 3
myServo = Servo(myGPIO)
while True:
myServo.min()
sleep(1)
if time.time() > start + D
Servo motor used: https://www.amazon.com/gp/product/B019TOJPO4/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1
I used the circular attachment from the servo motor kit and hot glued it on to the Auger screw.
The python script is simple. The way I wrote it is just to have to motor seek its minimum point, but there isn't one because the servo is 360 continuous rotation, it will just keep spinning counter clockwise till the script ends.
power the servo with the pi's 5V. I have my servo signal connected to GPIO 17.
The script:
Servo.py
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
from gpiozero import Servo
import time
from time import sleep
myGPIO=17
start = time.time()
Duration = 3
myServo = Servo(myGPIO)
while True:
myServo.min()
sleep(1)
if time.time() > start + D
Heb je dit model geprint? Inloggen en deel je make!
Log in om een reactie achter te laten
InloggenNog geen reacties – wees de eerste!