Presentation is loading. Please wait.

Presentation is loading. Please wait.

Building Raspberry Pi Controllers with Python

Similar presentations


Presentation on theme: "Building Raspberry Pi Controllers with Python"— Presentation transcript:

1 Building Raspberry Pi Controllers with Python
Class 3: A Detailed Look at the RPi.GPIO Module July 8, 2015 Don Wilcher

2 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

3 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

4 A Detailed Look at the RPi.GPIO Module…
Learning Objectives: Learn how to read switch data with the RPi.GPIO module and interpretive programming

5 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.

6 RPi.GPIO website

7 RPi.GPIO website…

8 RPi.GPIO website…

9 RPi.GPIO Question 1: True or False: Basic is not part of the Natural Languages package for RPi.GPIO?

10 Installing the RPi.GPIO module on the Raspberry Pi

11 Installing the RPi.GPIO module on the Raspberry Pi…

12 Rpi.GPIO Question 2: What’s the linux command line instruction used to install RPi.GPIO into the Raspberry Pi?

13 Controlling an LED with the RPi.GPIO module
LED-Raspberry Pi wiring diagram

14 Controlling an LED with the RPi.GPIO module…
330ohms (orn,orn,brn) red LED Pin 25 ground LED-Raspberry Pi circuit schematic diagram

15 Rpi.GPIO Question 3 What pin on the Raspberry Pi is the 330 ohm resistor wired to?

16 Controlling an LED with the RPi.GPIO module…
Turning a LED ON

17 Controlling an LED with the RPi.GPIO module…
LED is ON

18 Controlling an LED with the RPi.GPIO module…
Turning a LED OFF

19 Controlling an LED with the RPi.GPIO module…
LED is OFF

20 RPi.GPIO Question 4 How do you set a Raspberry Pi pin as an output?

21 Reading a switch with the RPi.GPIO module…
Switch-Raspberry Pi wiring diagram

22 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

23 Reading a switch with the RPi.GPIO module…
Prototyped Switch Circuit

24 Reading a switch with the RPi.GPIO module…
Creating a new window (module)

25 Reading a switch with the RPi.GPIO module…
Switch Response

26 RPi.GPIO Question 5: What is the linux command for executing the button.py module?


Download ppt "Building Raspberry Pi Controllers with Python"

Similar presentations


Ads by Google