![]() ![]() ![]() To find the Pi's IP address, type ifconfig at the command line.īy default, Apache puts a test HTML file in the web folder. To test the web server whether it is working or not, go to your browser and type the Pi’s IP address in the tab. Now, install the apache2 package by using this command in the terminal: sudo apt-get install apache2 -y To Install Apache web server, we will use the following commands: In our project, we are using an HTTP server and its PHP extension. Apache Web Server can be enhanced by manipulating the code base or adding multiple extensions/add-ons. Now obtain WiringPi using git by this command:Īpache is a very popular webserver, designed to create web servers that have the ability to host one or more HTTP-based websites. Now we will install git by using this command:ģ. First we will update our Pi with the latest versions of Raspbian using the command:Ģ. It’s released under the GNU LGPLv3 license and is usable from C, C++, and RTB (BASIC) as well as many other languages with suitable wrappers.ġ. WiringPi is a PIN-based GPIO access library written in C for the BCM2835, BCM2836, and BCM2837 SoC devices used in all Raspberry Pi versions. The connections in this project are quite simple - the positive pin of LED is connected to GPIO 27 pin and the negative pin to a 270 ohm resistor, the other side of which is connected to GND pin. If you have a separate monitor for your raspberry pi, then it's better to connect raspberry pi with the monitor and you don’t have to use any SSH client.Ĭontrolling LED using Raspberry Pi Webserver For this, the raspberry pi needs to be connected to a network via LAN or Wi-Fi. Raspberry pi board (With Raspbian operating system)Īn SSH client (Putty) is used to connect the Raspberry pi using a Laptop or computer.For this, we create an HTML/php web page which has two buttons - one for turning on the LED and the second for turning off the LED. Here we control an LED connected to Raspberry Pi by using Apache web server. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |