Building Raspberry Pi Controllers with Python

Slides:



Advertisements
Similar presentations
10 Ways to Ruin Your Mini-Max microcontroller (and lose $69)
Advertisements

V Avon High School Tech Club Agenda Old Business –Executive Committee –LCCUG meeting volunteer(s) –Reward Points Program New Business –Weekly.
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
Introduction to the Raspberry Pi ® Saman Amighi 10/2013 ® Raspberry Pi Foundation.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
RASPBERRY PI IMPLEMENTING BINARY COUNTING Marlon Myers Computer Hardware Systems: EMT 2370 Instructor: Prof. Carranza.
Coding By: Katie XXXXXX. Agenda Programming Languages Hardware Coding Example 1: Hello World Coding Example 2: Fibonacci Sequence Coding Example 3: Balloon.
1 Basic Electronics Voltage (V or E): Potential difference between 2 points. Volts. (+) - A lack of electrons (-) – A surplus of electrons When a circuit.
NPN Foundations of Technology NPN © 2013 International Technology and Engineering Educators Association, STEM  Center for Teaching and Learning™ Foundations.
Development Environments Raspberry Pi ® Saman Amighi 04/2014 ® Raspberry Pi Foundation.
Embedded Programming and Robotics
Digital Electronics Board-of-Education : Input. Board of Education - Input This presentation will explain, both from a hardware and software perspective,
LOGIC GATES. Electronic digital circuits are also called logic circuits because with the proper input, they establish logical manipulation paths. Each.
Electronic Schematics How we can draw electronic circuits.
How an NPN Transistor Works
Circuits and Schematic Diagrams Chapter 35. Circuits  ~a set of components that give current a path to follow  You need:  Voltage source  resistor.
ECE 477 Final Presentation Team 1  Spring 2013 Zelun Tie Xin Jin Ranmin Chen Hang Xie.
Welcome to Week 4 at the Summer Computer Club Raspberry Pi (contd)
Introduction :  In the beginning, the calculator is the basic idea of computers out, then that arrived at the large computers.  in1980 or late seventies.
Service Learning Project SLICE Prototype Fabrication Experience Ability Switch Test Box.
Detection Circuit ENGR Pre Lab.
Electricity Notes 6 - Circuits Electric Circuit – _______________________________________ All electrical circuits have 4 parts: 1.____________________________________________________.
Raspberry Pi Project Control Your Home Lights with a Raspberry Pi.
Bdps 2 Lecture 2. Circuits and Ohm's Law For resistive circuits.
Transistors to Gates © 2011 Project Lead The Way, Inc.Magic of Electrons.
Controlling an LED with a switch. 2 breadboard place where you can build electric circuits really quickly the magical breadboard.
1 Transistor. 2 Transistors are used to turn components on and off They come in all different shapes and sizes.
Embedded Software Design Week III Processor Basics Raspberry Pi -> Blinking LEDs & pushing buttons.
Prototyping Home Automation Concepts
Building Raspberry Pi Controllers with Python
Class 1: Building a Raspberry Pi LED Flasher
RASPBERRY PI WORKSHOP.
Prototyping Home Automation Concepts
IoT 101 with Raspberry Pi and Azure
Internet of Things (internet of everything?)
Circuit Simulation Training
Get Your Project Started with Arduino
Prototyping Home Automation Concepts
WORKSHOP LED CONTROL.
RASPBERRY PI WORKSHOP.
Get Your Project Started with Arduino
Get Your Project Started
Lighting LEDs with a RASPBERRY PI
Pushbutton Piano using an Arduino Redboard
Chapter 2 Push button and Potentiometer
CS-4540 Robotics Lab 00 - Introduction and OHM's law.
Internet-of-Things (IoT)
“Breadboarding” a Simple FM Transmitter Assembly Instructions
Building Raspberry Pi Controllers with Python
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Learning Outcomes List all Edison’s Sensors and actions
Raspberry Pi with Pibrella
Building Raspberry Pi Controllers with Python
Transistors to Gates Transistors to Gates Gateway To Technology
Reading / Writing analogue devices LED + Game-controller
Basic circuits Electrical circuits Electrical properties Ohm’s law
Introduction to Wiring Logic Gates
Building Raspberry Pi Controllers with Python
Raspberry Pi 2/3 GPIO - LED, Button
How a PNP Transistor Works
How an NPN Transistor Works
Chapter Twenty: Electric Circuits
LED and a Button.
Chapter Twenty: Electric Circuits
Arduino 7 Segment Display Lab
Light Dependent Resistor
Passive Infrared Sensor
I/O Experiments Assignment 1.
ECE 3567 Microcontrollers Lab
Presentation transcript:

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?