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
 

WHAT MOST MAKES A BLACK FRIDAY REEF DEAL WORTH CONSIDERING?

  • A real discount on something already on my list

    Votes: 60 75.0%
  • Free or reduced shipping

    Votes: 13 16.3%
  • A useful bundle of gear or supplies

    Votes: 4 5.0%
  • A good price on livestock I’ve already researched

    Votes: 19 23.8%
  • A rare chance to get something hard to find

    Votes: 16 20.0%
  • A seller or brand I trust

    Votes: 16 20.0%
  • I buy when I need something, sale or not

    Votes: 15 18.8%
  • Other (Post in the comments)

    Votes: 2 2.5%
Back
Top
Home
Post thread…
Market
What's new