Introduction: Raspberry Pi Cabinet
This project was for an engineering course, and i made this with my interest in programming in mind. Will freely answer any questions regarding this project!
Step 1: Step 1: Get a Raspberry Pi
The Raspberry pi is the backbone of this whole project. Make sure you buy some kind of power supply that supplies sufficient power for your new RPi.
Step 2: Install Lighttpd
In order for us to be able to control this servo wirelessly, we need to install lighttpd to create a webserver that can execute CGI Files.
Type "sudo apt-get update"
Type "sudo apt-get install lighttpd"
Type "sudo lighttpd-enable-mod fastcgi
Step 3: Step 3: Create Test Page
Now, we need to create a test page. Lighttpd already comes with a default one, but has no fuctionality.
Type "cd /var/www"
Type "sudo nano index.html"
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Press "Ctrl + X"
press Y and hit enter
Step 4: Step 4: Create Test CGI Scripts :]
Now, type sudo nano forward.cgi
Make sure that this is in var/www/cgi-bin
gpio -g write 5 1 gpio -g write 6 0 gpio -g write 13 1 gpio -g write 19 0
Step 5: Step 5:
Give the cgi files permission to run by typing sudo chmod 755 "filename"
Step 6: Step 6: Free for You to Do As You Want
Design the web-page however you want, although i would recommend also looking at https://www.instructables.com/id/IoT-Controlling-a-...
It gives lots of helpful pointers
We have a be nice policy.
Please be positive and constructive.