Automatic curtains / Automatische Vorhänge
Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.
Zapisane na tym urządzeniu.
Automatic curtains / Automatische Vorhänge
- Ocena
- 0 / 5
- Polubienia
- 11
- Pobrania
- 43
- Wydruki
- 0
- Wyświetlenia
- 769
- Oceny
- 0
Aktualizacja u źródła:
Informacje o modelu
- Źródło
- Printables
- Kategoria
- Other Ideas
- Licencja
- Creative Commons — Attribution — Noncommercial — Share Alike
# INSTALL
- Install required Software and Updates
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install python-smbus i2c-tools python-dev -y
- Download and extract Libary
wget https://sourceforge.net/projects/ugeek/files/HATs/Raspi_MotorHAT/Raspi_MotorHAT.tar && tar xvzf Raspi_MotorHAT.tar
- make php scripts like example below
- Copy the *php scripts to /var/www/html/
- make a folder in home, call it "Raspi_MotorHAT" -> only if your User is "pi" otherwise change the php script
- copy all files from "Main" folder to "/home/pi/Raspi_MotorHAT"
- Write in /boot/config.txt -> dtparam=i2c_arm=on,i2c_arm_baudrate=1200000
- Install required Software and Updates
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get install python-smbus i2c-tools python-dev -y
- for running python scripts over a php script you must add the following line in "/etc/sudoers" -> www-data ALL=(ALL) NOPASSWD:ALL
# PHP SCRIPT examlpe
<?php
exec("sudo python /home/pi/Raspi_MotorHAT/close_both.py");
?>
# END switches
End switches GPIO:
10kOhm resistors
GPIO 23 (16)
GPIO 24 (18)
GND (20)
3.3V (1)
# USEAGE:
Point your Browser to http://RASPBERRYS_IP/open_both.php or http://RASPBERRYS_IP/close_both.php