

I prefer to enable the SSH to allow me to work on the raspberry pi from anywhere in my network. I then did a software update to make sure the system was current. I prefer static IP addresses since they can be reliably mapped to a URL later. I then followed a normal configuration, specifically turning on SSH and giving the board a static IP address. I downloaded the Raspberry Pi software -raspbian-stretch-lite.zip and copied the image to an SD card. I could just as easily have attached relays to the GPIO pins.įor this demo I am only going to switch on and off some LEDs. This is a very simple design, but the idea is that I can now see if the GPIO pins are on of off. Note Pin 11 is also GPIO 0 and pin 12 is GPIO 1.

I will connect a yellow LED to pin 12 through a 330 ohm resistor to ground. I am going to connect a red LED to pin 11 then through a 330 ohm resistor to ground. Now there is no limit to what you can control once you understand how it is done. To test the interface I need something to control using the GPIO pins. The answer is to create a web interface for your application and use the browser to access your server. But you do not want to log into the raspberry pi every time you want to run the application. So you have just build an awesome server for your house using a Raspberry Pi and now you need to talk to it. This will provide a framework for how to control an application using a Web interface. But how we interface to the applications is often an issue that is over looked.įor this talk we will explore how to build a web interface for turning on an off some LEDs. Building applications to run on the Raspberry Pi is getting to be a common occurrence.
