Building Raspberry Pi Controllers with Python Class 3: A Detailed Look at the RPi.GPIO Module July 8, 2015 Don Wilcher
A Detailed Look at the RPi.GPIO Module Day 3 Agenda: What is the RPi.GPIO module? RPi.GPIO module website Installing the RPi.GPIO module on the Raspberry Pi Controlling an LED with the RPi.GPIO module Reading a switch with the RPi.GPIO module
A Detailed Look at the RPi.GPIO Module Learning Objectives: Learn about the RPi.GPIO module Learn about the resources available on the RPi.GPIO website Learn how to install the RPi.GPIO module on a Raspberry Pi Learn how to control an LED with the RPi.GPIO module and interpretive programming
A Detailed Look at the RPi.GPIO Module… Learning Objectives: Learn how to read switch data with the RPi.GPIO module and interpretive programming
What is the RPi.GPIO Module? Its a small python library that take some of the complexity out of driving the GPIO pins A package providing a class to control the GPIO on a Raspberry Pi It’s a software module that conveniently allows the Raspberry Pi GPIO pins to be manipulated for electronic controls applications.
RPi.GPIO website https://pypi.python.org/pypi/RPi.GPIO
RPi.GPIO website…
RPi.GPIO website…
RPi.GPIO Question 1: True or False: Basic is not part of the Natural Languages package for RPi.GPIO?
Installing the RPi.GPIO module on the Raspberry Pi
Installing the RPi.GPIO module on the Raspberry Pi…
Rpi.GPIO Question 2: What’s the linux command line instruction used to install RPi.GPIO into the Raspberry Pi?
Controlling an LED with the RPi.GPIO module LED-Raspberry Pi wiring diagram
Controlling an LED with the RPi.GPIO module… 330ohms (orn,orn,brn) red LED Pin 25 ground LED-Raspberry Pi circuit schematic diagram
Rpi.GPIO Question 3 What pin on the Raspberry Pi is the 330 ohm resistor wired to?
Controlling an LED with the RPi.GPIO module… Turning a LED ON
Controlling an LED with the RPi.GPIO module… LED is ON
Controlling an LED with the RPi.GPIO module… Turning a LED OFF
Controlling an LED with the RPi.GPIO module… LED is OFF
RPi.GPIO Question 4 How do you set a Raspberry Pi pin as an output?
Reading a switch with the RPi.GPIO module… Switch-Raspberry Pi wiring diagram
Reading a switch with the RPi.GPIO module… Pushbutton Switch 3.3V ground Pin 18 10Kilohms (brn,blk,orn) Switch-Raspberry Pi circuit schematic diagram
Reading a switch with the RPi.GPIO module… Prototyped Switch Circuit
Reading a switch with the RPi.GPIO module… Creating a new window (module)
Reading a switch with the RPi.GPIO module… Switch Response
RPi.GPIO Question 5: What is the linux command for executing the button.py module?