У нас вы можете посмотреть бесплатно How to build an easy automatic watering system for seedlings using a Raspberry pi или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
How to set up a simple automatic watering system for seedlings using a raspberry pi, a solenoid, a relay, and a bucket. No pump required. This setup does assume standard Earth gravity. (9.8m/s^2) The script is below. I wish I could take credit for it, but I used some sample code. It was last year and I cannot remember where I got it. I would be happy to credit the author. There are a million tutorials on how to use the GPIO of the raspberry pi. I execute the script with a cronjob. Parts (prices appear to have gone up from what I paid): 1 Raspberry Pi or Arduino or similar device https://amzn.to/2WPai7P 1 four channel relay from Amazon. https://amzn.to/2LnOKLm 1 1/2" Hose Barb Gravity Feed Electric Solenoid Valve: https://ebay.to/2WNH9dm 1 five gallon bucket (Home Depot https://homedepot.sjv.io/ejKGz) 1 1/2" barb connector with a male thread: (Home Depot https://homedepot.sjv.io/PnyZQ) 1 piece of female thread PVC compatible with your barb connector 1 rubber washer Some 1/2" ID hose clear: https://amzn.to/2LekvWY black: https://amzn.to/2ElBKnF 1 hose clamp that will fit around your hose Here is the script: #!/usr/bin/python import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) init list with pin numbers pinList = [2, 3, 4, 17] for i in pinList: GPIO.setup(i, GPIO.OUT) GPIO.output(i, GPIO.HIGH) time to sleep = how long the solenoid is open SleepTimeL = 4 main loop try: #set this to the pin where your solenoid is connected GPIO.output(17, GPIO.LOW) time.sleep(SleepTimeL); GPIO.cleanup() print "Good bye!" End program cleanly with keyboard except KeyboardInterrupt: print " Quit" Reset GPIO settings GPIO.cleanup()