food feeder

Terry DeMott

Active Member
View Badges
Joined
Jul 19, 2017
Messages
475
Reaction score
90
What state or country do you live in
New York
Rating - 0%
0   0   0
anyone have a program for food feeder
 
Need more details? Like Apex programming? Which feeder are you using?
 
15 12,16 * * * ./feed_tank.py

#!/usr/bin/python3
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
MOTOR_PIN = 18
GPIO.setup(MOTOR_PIN, GPIO.OUT)
try:
# Turn the motor on
print("Feeding Fish!")
GPIO.output(MOTOR_PIN, GPIO.HIGH)

# Wait for 15 seconds
time.sleep(15)

# Turn the motor off
print("Feeding Complete")
GPIO.output(MOTOR_PIN, GPIO.LOW)
finally:
# Clean up GPIO settings
GPIO.cleanup()
print("Sleeping...")
 
OSC 000:00/000:30/000:30 Then ON
If Time 00:00 to 15:00 Then OFF
If Time 15:02 to 00:00 Then OFF
If FeedA 000 Then ON

is this prorgam ok for feeder
 

TOP 10 Trending Threads

As a buyer, how important are auctions to you on the NEW market?

  • As a buyer I like them

    Votes: 26 35.1%
  • As a buyer I don’t care for them

    Votes: 28 37.8%
  • I don’t care either way.

    Votes: 20 27.0%
Back
Top
Home
Post thread…
Market
What's new