Module 2 - Internet enabling the Pi, General Purpose Inputs and Outputs
Our second module will jump into the use of the Flask webserver and the Raspberry Pi's input/output ports. Flask will let us control our Raspberry Pi from any smartphone, tablet or laptop. Then we'll learn about how to use the Raspberry Pi to control actuators or light up LEDs. We'll also discover how to read digital inputs like switches and sensors.
- Running a webserver with Flask
- Digital Logic
- Breadboard Connections
- Controlling an LED
- Controlling things larger than an LED
- Polled and Interrupt Driven Input
- Case Study: Home Automation
To retrieve a personal copy of the source code for the class, you may use either the Adafruit WebIDE or the git command line client. You are welcome to fork, modify, improve and contribute your changes back. Help make the class better for everyone.
Adafruit WebIDE: Click the "Clone Repository" button and enter the repository url:
Command Line: Run
git clone https://github.com/raspberrypi-aa/raspberrypi-aa
To use the interrupt features of the RPi-GPIO library, you may need to upgrade to the latest version. You can check which version you have by running the following command:
You should see the value "0.5.11" printed out. If the version is lower than 0.5.11, run these commands on your Raspberry Pi to upgrade to the latest version.
- Bash Control of GPIO
- LED Blink and Stopwatch
- Reaction Timer
- Simon Says
- R2R Analog to Digital Converter using Shift Register
- Frequency Counter