# Rpi Home Automation
Baseline for home automation projects with the Raspberry Pi</br>
https://youtu.be/fRVAUob111A
# Hadware
Raspberry Pi</br>
Relay Module
# Flow Communication
App Android --> Web Server (Apache) --> PHP --> Python --> GPIO Raspberry
# App Android
Developed at MIT App Inventor 2 - http://appinventor.mit.edu/</br>
Source: automacao.aia </br>
APP: automacao.apk
# GPIO
Connection Devices</br>
DEVICE 1 --> <b>Pin7</b> (GPIO4)</br>
DEVICE 2 --> <b>Pin 11</b> (GPIO17)</br>
DEVICE 3 --> <b>Pin 12</b> (GPIO18)</br>
DEVICE 4 --> <b>Pin 13</b> (GPIO21)</br>
DEVICE 5 --> <b>Pin 15</b> (GPIO22)</br>
# Instructions
1. Copy directory <b>GPIO</b> to <b>/home/pi</b></br>
2. Copy file <b>php/index.php</b> to <b>/var/www/html</b> (DocumentRoot Apache)
