Author Topic: GPIO Turn On Off Switch or Switches over web  (Read 398 times)

0 Members and 1 Guest are viewing this topic.


  • Administrator
  • Full Member
  • *****
  • Posts: 221
  • Karma: +0/-0
    • View Profile
    • cBrandon
GPIO Turn On Off Switch or Switches over web
« on: June 14, 2018, 06:54:09 PM »
1. Installing and Using the Wiring Pi Library     
  At raspberry prompt type:        git clone git://
if you need git type:   apt-get install git-core
Then cd ~/wiringPi   and ./build
To check if installed type: gpio -v then gpio readall
Install Apache and PHP on the Pi with    apt-get install apache2 php5 libapache2-mod-php5
You might have to chmod -R 777 /var/www/html  to copy over the files  copy all the file in the to the web server folder /var/www/html
navigate to using a webrowser to the pi ip address and see if working.
in the index.php  change the  $i= 0; $i<1  1 =One Button on the screen or whatever number you want up to 8

button 0= Gpio pin 11

Credit to

« Last Edit: November 05, 2018, 01:30:35 PM by branx86 »