Raspberry Pi Cabinet

Intro: 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.

Step 1:

Type "sudo apt-get update"

Step 2:

Type "sudo apt-get install lighttpd"

Step 4:

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.

Step 1:

Type "cd /var/www"

Step 2:

Type "sudo nano index.html"

Step 3:

Type

<!DOCTYPE html>

<html>

<title>RPi webserver</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<body>
<h1>Hello!</h1>

</body>

</html>

Step 4:

Press "Ctrl + X"

Step 5:

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

Code

#!/bin/bash
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

Share

    Recommendations

    • Fix It! Contest

      Fix It! Contest
    • Metalworking Contest

      Metalworking Contest
    • Tiny Home Contest

      Tiny Home Contest

    Discussions

    0
    None
    tomatoskins

    9 months ago

    Hello there!

    We're glad you want to share something with the Instructables community!

    And we’re here to help you out.

    In order to be published live on the site, Instructables must consist of the following things:

    - Multiple steps showing how you made your project

    - Written instructions in each step

    - Your own original images

    Beyond making your Instructable simply publishable, this guide (https://www.instructables.com/id/How-to-Create-a-Feature-Worthy-Instructable/) explains what is required to have your Instructables featured by our site editors. It’s very helpful, and definitely worth checking out.

    We would love to review your project again after you have made the necessary edits, and we will publish your project if it is eligible.

    If you have any questions, please feel free to ask right here or send us an email at service@instructables.com.

    Best,

    Instructables Community Manager