Basic Electronics and Raspberry Pi IO Programming
|
|
- Aileen Rodgers
- 5 years ago
- Views:
Transcription
1 Basic Electronics and Raspberry Pi IO Programming Guoping Wang Indiana University Purdue University Fort Wayne IEEE Fort Wayne Section February 18, 2016
2 Table of Contents 1 Safety Guideline 2 Pi Electronic Kits 3 Electronics Electricity Circuit Components 4 Raspberry Pi I/O 5 What Next G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
3 Table of Contents 1 Safety Guideline 2 Pi Electronic Kits 3 Electronics Electricity Circuit Components 4 Raspberry Pi I/O 5 What Next G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
4 Project Guideline Disconnect the power before making any connections! Before power on your Raspberry Pi, make sure that your circuit has been checked by the instructor. Do NOT short circuit the power. Failure to follow these steps may fry the Raspberry Pi kit G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
5 Table of Contents 1 Safety Guideline 2 Pi Electronic Kits 3 Electronics Electricity Circuit Components 4 Raspberry Pi I/O 5 What Next G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
6 Parts List CanaKit GPIO to Breadboard Interface Board GPIO Ribbon Cable GPIO and Resistor Colors Quick Reference Cards Breadboard one RGB LED 32 x Jumper Wires 2 x Red LEDs, 2 x Green LEDs, 2 x Yellow LEDs, 2 x Blue LEDs 2 x Push Button Switches 10 x 220 Ohm Resistors, 5 x 10K Ohm Resistors G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
7 about Parts Polarized vs non-polarized Physics and chemistry in a tiny package Explain Data Sheets Sparkfun online tutorial G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
8 Table of Contents 1 Safety Guideline 2 Pi Electronic Kits 3 Electronics Electricity Circuit Components 4 Raspberry Pi I/O 5 What Next G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
9 Electricity What is electricity? What kinds are there? What can it do? What are the dangers? What is DC vs AC? What are some power sources? G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
10 Circuit Breadboard A breadboard allows us to neatly wire circuits without the need for soldering. It is good for prototyping a circuit. Literally started out as a bread board with nails. G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
11 Circuit Electric Circuit Combination of electronic parts, wires connected between power sources. It s like a physical program. It s also like setting up dominoes in sequence. 220 ohm 3.3V G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
12 Components Electricity vs water Electricity is like water. Voltage is the height, measured in Volts (V) Current is the amount of water, measured in Amps (A). Resistance is any obstacle that slows down the water, measured in Ohms Ω. G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
13 Components Ohm s Law V = I R Voltage = Current * Resistance I (current) R (resistor) V (power source) G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
14 Components Resistors Resistors provide a specific amount of resistance to a path in a circuit or wire. Ohm s law is used to calculate the propertiesrelatedto resistance. Resistors are color coded. G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
15 Components Resistor Reading ohm resistor? How can I read resistor s value? To distinguish left from right there is a gap between C and D bands. band A is the first significant figure of component value (left side) band B is the second significant figure (Some precision may have a 3rd significant figure) band C is the decimal multiplier band D if present, indicates tolerance of value in percent (no band means 20 G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
16 Components Resistor Codes in table G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
17 Components LEDs Light Emitting Diodes (LED) Diode Symbol + Arrows for light Points to Ground G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
18 Components. G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
19 Components LED-RGB Clear Common Anode LED - Common Anode, Datasheet and product information at: RGB- Common Anode LED G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
20 Components Serial vs Parallel Circuits in serial Share the same current Have different voltages Circuits in parallel Have different currents Share the same voltage G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
21 Table of Contents 1 Safety Guideline 2 Pi Electronic Kits 3 Electronics Electricity Circuit Components 4 Raspberry Pi I/O 5 What Next G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
22 Python and C Package supports for Raspberry Pi Rpi.GPIO Package for beginner WiringPi Package for C and Python for intermediate learner PIGPIO Package for C and Python for advanced programmer G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
23 RPi.GPIO Install and Tutorial Rpi.GPIO Package Install/Upgrade RPi.GPIO Tutorial from raspi.tv RPi.GPIO Official Website G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
24 RPi.GPIO Installation The newest version of Raspbian has the RPi.GPIO library pre-installed. You ll probably need to update your library, so using this command line, run: RPi.GPIO Version sudo python import RPi.GPIO as GPIO GPIO.VERSION The current version of RPi.GPIO is You need to update to a newer version, run RPi.GPIO Update sudo apt-get update sudo apt-get upgrade G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
25 GPIO.cleanup() GPIO.cleanup() needs to be called when you exit your program to clean up all the ports you ve used. import RPi. GPIO as GPIO # the rest of your code would go here # when your code ends, the last line before the program exits would be GPIO. cleanup () # remember, a program doesn t necessarily exit at the last line! G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
26 Better Way to use GPIO.cleanup() When keyboard interrupt (CTRL+C), GPIO.cleanup() is called. import RPi. GPIO as GPIO # here you would put all your code for setting up GPIO, # we ll cover that tomorrow # initial values of variables etc... counter = 0 try : # here you put your main loop or block of code while counter < : # count up to takes ~20 s counter += 1 print (" Target reached :", counter ) except KeyboardInterrupt : # here you put any code you want to run before the program # exits when you press CTRL +C print ("\ n", counter ) # print value of counter except : # this catches ALL other exceptions including errors. # You won t get any error messages for debugging # so only use it once your code is working print (" Other error or exception occurred!") finally : GPIO. cleanup () # this ensures a clean exit G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
27 Safety Guideline Pi Electronic Kits Electronics Raspberry Pi I/O What Next RPi.GPIO Pin Numbering Two pin numberings in Raspberry Pi: BCM and BOARD. You can use only one number system in one program. For example, GPIO14 (pin number 8), BCM: pin number 14 BOARD: pin number 8 ($, ($, G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
28 Setup RPi.GPIO number system At the top of every script, after importing the RPi.GPIO module, we can set our GPIO numbering mode. (either BCM or BOARD). import RPi. GPIO as GPIO # for GPIO numbering, choose BCM GPIO. setmode ( GPIO. BCM ) # or, for pin numbering, choose BOARD GPIO. setmode ( GPIO. BOARD ) # but you can t have both, so only use one!!! G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
29 Set up GPIO as input import RPi. GPIO as GPIO GPIO. setmode ( GPIO. BCM ) # set up BCM GPIO numbering GPIO. setup (25, GPIO. IN) # set GPIO 25 as input Reading Inputs: Inputs are Boolean values: 1 or 0 (True or False), (GPIO.HIGH or GPIO.LOW) (all of them are the same). For example, import RPi. GPIO as GPIO GPIO. setmode ( GPIO. BCM ) # set up BCM GPIO numbering GPIO. setup (25, GPIO. IN) # set GPIO 25 as input if GPIO. input ( 25): # if port 25 == 1 print (" Port 25 is 1/ GPIO. HIGH / True " ) # or store its value in a variable to use in a different button_ press = GPIO. input ( 25) G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
30 GPIO Input sample code import RPi. GPIO as GPIO GPIO. setmode ( GPIO. BCM ) # set up BCM GPIO numbering GPIO. setup (25, GPIO. IN) # set GPIO 25 as input if GPIO. input (25): # if port 25 == 1 print (" Port 25 is 1/ GPIO. HIGH / True " ) else : print (" Port 25 is 0/ GPIO. LOW / False " ) GPIO. cleanup () # clean up after yourself The above is not really complete yet, what we need to do is add: loop, so we can make it read more than once time delay, so it wont read the port thousands of times per second circuit with a button, so we can change the status of the port and see the input status change on the screen try: except KeyboardInterrupt: block so we can exit cleanly (we covered this yesterday) G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
31 Pin 25 input Circuit 3.3V 220 ohm Pi pin 25 10K When the switch is NOT closed, the 10K resister pulls down pin 25 to 0 Volts. When the switch is pressed, the voltage to pin 25 is digital High. G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
32 GPIO Input Reading Python code import RPi. GPIO as GPIO from time import sleep # this lets us have a time delay ( see line GPIO. setmode ( GPIO. BCM ) # set up BCM GPIO numbering GPIO. setup (25, GPIO. IN) # set GPIO 25 as input try : while True : # this will carry on until you hit CTRL +C if GPIO. input (25): # if port 25 == 1 print (" Port 25 is 1/ GPIO. HIGH / True - button pressed ") else : print (" Port 25 is 0/ GPIO. LOW / False - button not pressed ") sleep (0.1) # wait 0.1 seconds except KeyboardInterrupt : GPIO. cleanup () # clean up after yourself G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
33 RPi.GPIO Outputs import RPi. GPIO as GPIO # import RPi. GPIO module GPIO. setmode ( GPIO. BCM ) # choose BCM or BOARD GPIO. setup ( port_or_pin, GPIO. OUT ) # set a port / pin as an output GPIO. output ( port_or_pin, 1) # set port / pin value to 1/ GPIO. HIGH / GPIO. output ( port_or_pin, 0) # set port / pin value to 0/ GPIO. LOW / F You can also set the initial value of the output at the time of setting up the port with initial=x optional extra argument GPIO.setup(port_or_pin, GPIO.OUT, initial=1) or GPIO.setup(port_or_pin, GPIO.OUT, initial=0) G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
34 Pin 24 Output Circuit Pi pin ohm When pin 24 outputs digital 0 (0V), LED is turned off. When pin 24 outputs digital 1 (3.3V), LED is turned on. G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
35 RPi.GPIO Outputs Sample code import RPi. GPIO as GPIO # import RPi. GPIO module from time import sleep # lets us have a delay GPIO. setmode ( GPIO. BCM ) # choose BCM or BOARD GPIO. setup (24, GPIO. OUT ) # set GPIO24 as an output try : while True : GPIO. output (24, 1) # set GPIO24 to 1/ GPIO. HIGH / True sleep (0.5) # wait half a second GPIO. output (24, 0) # set GPIO24 to 0/ GPIO. LOW / False sleep (0.5) # wait half a second except KeyboardInterrupt : # trap a CTRL +C keyboard interrupt GPIO. cleanup () # resets all GPIO ports used by thi G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
36 Inputs/Outputs and Pull-ups and Pull-downs Recaptures of inputs/outputs with RPi.GPIO package. import RPi. GPIO as GPIO # import RPi. GPIO module GPIO. setmode ( GPIO. BCM ) # choose BCM or BOARD GPIO. setup ( port_or_pin, GPIO. IN) # set a port / pin as an input GPIO. setup ( port_or_pin, GPIO. OUT ) # set a port / pin as an output GPIO. output ( port_or_pin, 1) # set an output port / pin value to 1/ GPIO. output ( port_or_pin, 0) # set an output port / pin value to 0/ i = GPIO. input ( port_or_pin ) # read status of pin / port and assign G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
37 Combined Input/Output Circuit Pi pin ohm Pi pin ohm 10K 3.3V Every 0.1s, the program checks the button status: If pressed, button status is displayed and LED is switched on. Otherwise, if not pressed (input port 25 ==0), button status is displayed and LED is switched off. It keeps going until CTRL+C is pressed, then the ports are cleaned up before exit. G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
38 Python Sample Code import RPi. GPIO as GPIO from time import sleep # this lets us have a time delay ( see line GPIO. setmode ( GPIO. BCM ) # set up BCM GPIO numbering GPIO. setup (25, GPIO. IN) # set GPIO25 as input ( button ) GPIO. setup (24, GPIO. OUT ) # set GPIO24 as an output ( LED ) try : while True : # this will carry on until you hit CTRL +C if GPIO. input (25): # if port 25 == 1 print (" Port 25 is 1/ HIGH / True - LED ON ") GPIO. output (24, 1) # set port / pin value to 1/ HIGH / else : print (" Port 25 is 0/ LOW / False - LED OFF ") GPIO. output (24, 0) # set port / pin value to 0/ LOW / F sleep (0.1) # wait 0.1 seconds finally : # this block will run no matter how the try GPIO. cleanup () # clean up after yourself G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
39 Pull-up and Pull-down In the button circuit, were using resistors to pull-down the port. This gives it a default state of 0V (0, LOW, False). If you have no pull-up or pull-down resistors attached to an input port, its status is not clearly defined. It is floating. It is susceptible to random electromagnetic radiation from you, from any devices near or far and from the environment. Any wires attached to the GPIO ports act as antennae for this radiation (its mostly radio waves). Internal Pull-up and Pull-Down: Raspberry Pi CPU has built-in pull-up and pull-down resistors which can be enabled in software. We can eliminate our pull-down resistors for the button - as long as we enable the internal ones. GPIO.setup(port or pin, GPIO.IN, pull up down=gpio.pud DOWN) G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
40 Circuit with Pull-Down enabled Pi pin V 220 ohm 220 ohm GPIO.setup(25, GPIO.IN) # set GPIO25 as input (button) to GPIO.setup(25, GPIO.IN, pull up down=gpio.pud DOWN) # set GPIO25 as input (button) Pi pin 25 G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
41 Python Sample Code with Pull-down import RPi. GPIO as GPIO from time import sleep # this lets us have a time delay ( see line GPIO. setmode ( GPIO. BCM ) # set up BCM GPIO numbering GPIO. setup (25, GPIO.IN, pull_up_down = GPIO. PUD_DOWN ) # set GPIO25 as GPIO. setup (24, GPIO. OUT ) # set GPIO24 as an output ( LED ) try : while True : # this will carry on until you hit CTRL +C if GPIO. input (25): # if port 25 == 1 print (" Port 25 is 1/ HIGH / True - LED ON ") GPIO. output (24, 1) # set port / pin value to 1/ HIGH / else : print (" Port 25 is 0/ LOW / False - LED OFF ") GPIO. output (24, 0) # set port / pin value to 0/ LOW / F sleep (0.1) # wait 0.1 seconds finally : # this block will run no matter how the try GPIO. cleanup () # clean up after yourself G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
42 Table of Contents 1 Safety Guideline 2 Pi Electronic Kits 3 Electronics Electricity Circuit Components 4 Raspberry Pi I/O 5 What Next G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
43 What Next Book: Python for Kids focus on software Book: Hello World!: Computer Programming for Kids and Other Beginners Software Book: RPi.GPIO Package, WiringPI Package, PIGPIO Package Raspberry Pi I/O Interface Raspberry Pi Sunfounder Super Kit: Sunfounder Project Super Starter Kit for Raspberry Pi Model B+ $41.99 Sunfounder Super Kit online Resource G. Wang (IPFW, IEEE FW Section) Electronics and Pi I/O February 18, / 41
Raspberry Pi Activity 2: My Binary Addiction...Reloaded
The Science of Computing II Living with Cyber Raspberry Pi Activity 2: My Binary Addiction...Reloaded In this activity, you will re-implement the one-bit binary adder that was the subject of Raspberry
More informationTWO PLAYER REACTION GAME
LESSON 18 TWO PLAYER REACTION GAME OBJECTIVE For your final project for this level for the course, create a game in Python that will test your reaction time versus another player. MATERIALS This lesson
More information9 Output Devices: Buzzers
9 Output Devices: Buzzers Project In this project, you will learn how to connect and control LEDs (Light Emitting Diode) and a buzzer with the Raspberry Pi. Components In addition to your Raspberry Pi,
More informationF28HS Hardware-Software Interface: Systems Programming
F28HS Hardware-Software Interface: Systems Programming Hans-Wolfgang Loidl School of Mathematical and Computer Sciences, Heriot-Watt University, Edinburgh Semester 2 2016/17 0 No proprietary software has
More informationGooligum Electronics 2015
The Wombat Prototyping Board for Raspberry Pi Operation and Software Guide This prototyping board is intended to make it easy to experiment and try out ideas for building electronic devices that connect
More informationSF Innovations Ltd. User Instructions (5th January 2016) Contents. Introduction
SF Innovations Ltd Custard Pi 1 - Breakout Board with protection for the Raspberry Pi GPIO Custard Pi 1A - Breakout Board for the Raspberry Pi GPIO User Instructions (5th January 2016) Contents Introduction
More informationCamJam EduKit Sensors Worksheet Five. Equipment Required. The Parts. The Passive Infrared Sensor
CamJam EduKit Sensors Worksheet Five Project Description Passive Infrared Sensor In this project, you will learn how to wire and program a passive infrared sensor that detects movement near it. Equipment
More informationCustard Pi 5 - Breakout board with protection for 8 digital I/O and stacking connector for the Raspberry Pi GPIO
SF Innovations Ltd Custard Pi 5 - Breakout board with protection for 8 digital I/O and stacking connector for the Raspberry Pi GPIO User Instructions (11th November 2016) Contents Introduction CE Compliance
More informationHandson Technology. 2 Channel 5V Optical Isolated Relay Module. User Guide. 1
User Guide Handson Technology 2 Channel 5V Optical Isolated Relay Module This is a LOW Level 5V 2-channel relay interface board, and each channel needs a 15-20mA driver current. It can be used to control
More informationRaspberry Pi GPIO Zero Reaction Timer
Raspberry Pi GPIO Zero Reaction Timer Tutorial by Andrew Oakley Public Domain 1 Feb 2016 www.cotswoldjam.org Introduction This Python programming tutorial, shows you how simple it is to use an LED light
More informationSEAS Computing Facility Raspberry Pi Workshop 2: I/O Camera & Motion Sensor. October 21, 2017
SEAS Computing Facility Raspberry Pi Workshop 2: I/O Camera & Motion Sensor October 21, 2017 Overview for Today Learn about new components Program a push-button ON/OFF input system for LED Connect and
More informationTechgirlz Workshop Scratch and Raspberry Pi
Techgirlz Workshop Scratch and Raspberry Pi Ruth Willenborg coderdojortp@gmail.com in conjunction with CoderDojo RTP Introduction: Thanks IBM: Raspberry Pi grant to Techgirlz Coderdojo and VMware: Raspberry
More informationDAQCplate Users Guide
DAQCplate Users Guide Contents Overview 2 Board Layout 3 Address Selection Header 4 Digital Outputs (DOUT) o 4. Connector o 4.2 Specifications o 4.3 Functions o 4.4 Examples 4.4. Simple External LED 4.4.2
More informationOPi.GPIO Documentation
OPi.GPIO Documentation Release 0.3.1 Richard Hull and contributors Jan 01, 2018 Contents 1 Installation 3 2 API Documentation 5 2.1 Importing the module.......................................... 5 2.2
More informationCOOKING WITH TEAM 279
COOKING WITH TEAM 279 ANALOG SIGNALS WITH MCP3002/MCP3008 ADC The RPi does not have analog input pins. To read analog signals, and Analog to Digital Converter (ADC) should be used. The MCP3002 and MCP3008
More informationArduino 05: Digital I/O. Jeffrey A. Meunier University of Connecticut
Arduino 05: Digital I/O Jeffrey A. Meunier jeffm@engr.uconn.edu University of Connecticut About: How to use this document I designed this tutorial to be tall and narrow so that you can read it on one side
More informationTitelei :33 Seite 1. Franzis Raspberry Pi Maker Kit
65292-6 Titelei-2014 02.11.15 15:33 Seite 1 Franzis Raspberry Pi Maker Kit 65292-6 Titelei-2014 02.11.15 15:33 Seite 2 65292-6 Titelei-2014 02.11.15 15:33 Seite 3 TURN ON YOUR CREATIVITY RASPBERRY PI 65292-6
More informationCamJam EduKit Robotics Worksheet Four Driving & Turning camjam.me/edukit
- Driving and Turning Project Description Driving and Turning You will learn how to make your robot move in the direction you want it to. Equipment Required For this worksheet, you will require: Your robot
More informationDigital Circuits. Page 1 of 5. I. Before coming to lab. II. Learning Objectives. III. Materials
I. Before coming to lab Read this handout and the supplemental. Also read the handout on Digital Electronics found on the course website. II. Learning Objectives Using transistors and resistors, you'll
More informationA Slice of Raspberry Pi
A Slice of Raspberry Pi Roadmap Introduction to the Raspberry Pi device What can you use a Raspberry Pi for? Talking to the Hardware A Raspberry Pi Arcade table Q & A Raspberry Pi Introduction What is
More informationSF Innovations Ltd. Custard Pi 3-8 Analogue input board for the Raspberry Pi GPIO. User Instructions (13th December 2016) Contents.
SF Innovations Ltd Custard Pi 3-8 Analogue input board for the Raspberry Pi GPIO User Instructions (3th December 206) Contents Introduction CE Compliance and Safety Information Circuit Description Parts
More informationRPi General Purpose IO (GPIO) Pins
GPIO RPi Setup for Today Because the cobbler connector has a notch, you can only put the cable in the right way But, it is possible to put the cable in upside down on the Raspberry Pi The colored wire
More informationConnecting LEDs to the ADB I/O
Application Note AN-2 By Magnus Pettersson September 26 1996 Connecting LEDs to the I/O Introduction The following notes are for those of you who are a bit inexperienced with hardware components. This
More informationRaRa Academy: Raspberry Pi. Karl Heinz Kremer - K5KHK
RaRa Academy: Raspberry Pi Karl Heinz Kremer - K5KHK Why Are We Here? I cannot convert you into a Raspberry Pi (or Linux) expert in two hours I cannot teach you everything there is to know about using
More informationBCS Raspberry Pi Launch Events Getting started with Raspberry Pi
BCS Raspberry Pi Launch Events Getting started with Raspberry Pi Department of Computer Science 16 th & 17 th April 2013 Who are you? How many of you.. are teachers in STEM subjects in non STEM subjects
More informationHere's how the 4 channel receiver attaches to a Raspberry Pi B+, A+ or Pi 2.
Here's how the 4 channel receiver attaches to a Raspberry Pi B+, A+ or Pi 2. You can attach an optional antenna wire to the hole in the top left of the receiver board marked ANT. It can be soldered or
More informationDEV-1 HamStack Development Board
Sierra Radio Systems DEV-1 HamStack Development Board Reference Manual Version 1.0 Contents Introduction Hardware Compiler overview Program structure Code examples Sample projects For more information,
More informationManual of ET-LCD SW HAT
ET- LCD SW HAT ET-LCD SW HAT is Board I/O that is specifically designed for connection with Board Raspberry Pi through Connector 40-PIN; this board includes LCD 16x2, SW, Buzzer, RTC DS3231 with Connector
More informationPhysics 120/220 Lab Equipment, Hints & Tips
Physics 120/220 Lab Equipment, Hints & Tips Solderless Breadboard... 2 Power supply... 4 Multimeters... 5 Function generator... 5 Oscilloscope... 6 10X probe... 7 Resistor color code... 7 Components...
More informationF28HS Hardware-Software Interface: Systems Programming
F28HS Hardware-Software Interface: Systems Programming Hans-Wolfgang Loidl School of Mathematical and Computer Sciences, Heriot-Watt University, Edinburgh Semester 2 2017/18 0 No proprietary software has
More informationUniversity of Hull Department of Computer Science
University of Hull Department of Computer Science Talking to Hardware with a Raspberry Pi Vsn. 1.1 Rob Miles 2013 Introduction Welcome to our Raspberry Pi hardware sessions. Please follow the instructions
More informationLab 2.2 Ohm s Law and Introduction to Arduinos
Lab 2.2 Ohm s Law and Introduction to Arduinos Objectives: Get experience using an Arduino Learn to use a multimeter to measure Potential units of volts (V) Current units of amps (A) Resistance units of
More information1.44inch LCD HAT USER MANUAL
1.44inch LCD HAT USER MANUAL OVERVIEW This product is 1.44-inch resistive screen module with resolution 128 x 128. It has internal controller and uses SPI communication interface. It has already basic
More informationUniversity of Hull Department of Computer Science C4DI Interfacing with Arduinos
Introduction Welcome to our Arduino hardware sessions. University of Hull Department of Computer Science C4DI Interfacing with Arduinos Vsn. 1.0 Rob Miles 2014 Please follow the instructions carefully.
More informationDischarge by touching: BNC coax shield, outlet metal cover plate, wire connected to GND
Step-down transformer Very High Voltage Very Low Current Lower Voltage, 110V Power Station Grounding contact (3rd wire) Faulty wiring makes box hot!! Current path splits: 1) to ground (mostly) 2) through
More informationPower over Ethernet (PoE) Adaptor
Power over Ethernet (PoE) Adaptor For the Raspberry Pi model B+, Pi2 and Pi3 User Manual www.circuitsurgery.com Page 1 of 6 Description N.B.: In this manual the term "Raspberry Pi" will refer to the Raspberry
More informationMicro-Controllers. Module 2: Outputs Control and Inputs Monitoring. IAT Curriculum Unit PREPARED BY. August 2008
Micro-Controllers Module 2: Outputs Control and Inputs Monitoring PREPARED BY IAT Curriculum Unit August 2008 Institute of Applied Technology, 2008 2 Module 2: Outputs Control and Inputs Monitoring Module
More informationConstruction Construction Instructions
Semi-Virtual Diskette SVD Construction Construction Instructions PCB version 2.0 September 2004 Eric J. Rothfus Table of Contents Table of Contents... i Parts List...1 Construction Overview...5 PCB Construction...
More informationUSER MANUAL FOR HARDWARE REV
PI-REPEATER-2X 1. WELCOME 2. CONTENTS PAGE 1 3. GETTING STARTED There are many features built into this little board that you should be aware of as they can easily be missed when setting up the hardware
More informationPreassembled 40-pin Pi Wedge Hookup Guide
Page 1 of 9 Preassembled 40-pin Pi Wedge Hookup Guide Introduction The preassembled 40-pin Pi Wedge is the newest member in our Pi Wedge family. It s an excellent way to get those pesky Pi pins broken
More informationugreen DAB Board Instructions v6
ugreen Instructions v6 1 Introduction The v4 is a revised and more efficient new version of the. Its smaller layout allows a better integration into most Raspberry Pi enclosures. It is available in two
More informationacknowledgments...xiii foreword...xiv
Contents in Detail acknowledgments...xiii foreword...xiv Introduction... xv Why Build and Learn About Robots?...xvi Why the Raspberry Pi?... xvii What Is in This Book?... xvii Who is This Book For?...xix
More informationThis Presentation Will
Investigating Basic Circuits Pre-Activity Discussion Digital Electronics 2014 Project Lead The Way, Inc. This Presentation Will Introduce you to basic circuits and their symbols. Introduce you to components
More informationInterfacing with Raspberry Pi 3 Model B Updated: 9/19/17
Interfacing with Raspberry Pi 3 Model B Updated: 9/19/17 A. Objectives 1. Learn about basics of Python programming 2. Learn how to use Python and Shell scripts to control GPIO ports on the Pi B. Time of
More informationFor Raspberry Pi - Getting started
For Raspberry Pi - Getting started Connect to the real world in minutes, with the most popular interface board for Raspberry Pi. PiFace Digital 2 For step by step help and ideas for projects visit: http://www.piface.org.uk/guides/
More informationBob Rathbone Computer Consultancy
Raspberry PI Traffic Lights I²C Project Notes Bob Rathbone Computer Consultancy www.bobrathbone.com 16 th of August 2013 Bob Rathbone Raspberry PI Traffic Lights (I²C)/ 1 Contents Introduction... 3 Raspberry
More informationPHYC 500: Introduction to LabView. Exercise 16 (v 1.2) Controlling hardware with DAQ device. M.P. Hasselbeck, University of New Mexico
PHYC 500: Introduction to LabView M.P. Hasselbeck, University of New Mexico Exercise 16 (v 1.2) Controlling hardware with DAQ device This exercise has two parts. First, simulate a traffic light circuit
More informationLK-RB-Shield Ausgabe Copyright by Joy-IT
LK-RB-Shield LK-RB-Shield Index 1. Introduction 2. PIN Assignment 3. Setting up the Raspberry Pi 4. Activating the modules 5. Code example: Digital Channels 6. Code example: Analog Channels Dear customer,
More informationStep 1 - Modifying the power-supply from 12 to 16 Volts Increasing the power-supply voltage to 16V increases the headroom and reduces distortion. Also
Dada Electronics - Quad 33 Revision - Illustrated Guidelines V 2.4 First of all, thanks for your purchase of our upgrade kit! Hereunder, you will find the step-by-step guidelines for upgrading the Quad
More informationTrigger I/O Board for the LogiComm Gun Driver
Instruction Sheet Trigger I/O Board for the LogiComm Gun Driver P/N 1084488A WARNING: This trigger I/O board is not directly compatible with the previous versions (P/N s 1069804 and 1069805). Refer to
More informationStenBOT Robot Kit. Stensat Group LLC, Copyright 2018
StenBOT Robot Kit 1 Stensat Group LLC, Copyright 2018 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and documentation. There is a 90 day warranty for the
More informationSierra Radio Systems. Making a Keyer with the. HamStack. Project Platform
Sierra Radio Systems Making a Keyer with the HamStack Project Platform Introduction The HamStack Project Board includes primary interface elements needed to make a high quality CW keyer. Using the LCD
More informationHome Automation & Security Projects for Raspberry Pi (Book 2) Tim Rustige
Home Automation & Security Projects for Raspberry Pi (Book 2) Tim Rustige Home Automation & Security Projects for Raspberry Pi (Book 2) Tim Rustige First published: May 2017 Published by TR Computers Limited.
More informationFinite State Machine Lab
Finite State Machine Module: Lab Procedures Goal: The goal of this experiment is to reinforce state machine concepts by having students design and implement a state machine using simple chips and a protoboard.
More informationSend Raspberry Pi Data to COSM
Send Raspberry Pi Data to COSM Created by Mikey Sklar Last updated on 2014-12-16 12:00:28 PM EST Guide Contents Guide Contents Overview To follow this tutorial you will need Connecting the Cobbler to the
More information1.8inch LCD Module USER MANUAL
1.8inch LCD Module USER MANUAL OVERVIEW This product is 1.8inch resistive screen module with resolution 128x160. It has internal controller and uses SPI interface for communication. It has already basic
More informationCOS 116 The Computational Universe Laboratory 7: Digital Logic I
COS 116 The Computational Universe Laboratory 7: Digital Logic I In this lab you ll construct simple combinational circuits in software, using a simulator, and also in hardware, with a breadboard and silicon
More informationIntroduction to Internet of Things Prof. Sudip Misra Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur
Introduction to Internet of Things Prof. Sudip Misra Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture - 30 Implementation of IoT with Raspberry Pi- I In the
More informationA Beginners Guide to Raspberry Pi
A Beginners Guide to Raspberry Pi WHAT IS THE RASPBERRY PI? Features It is a low-cost, credit-card sized computer developed in the UK by the Raspberry Pi Foundation. It has been designed with education
More informationBLiSo - Buttons, Lights, Sound
BLiSo - Buttons, Lights, Sound For the Raspberry Pi Introduction Thank you for purchasing this small module, designed to make exploring the GPIO port safe and easy. Hopefully the information provided in
More informationStrain gauge Measuring Amplifier GSV-1A8. Instruction manual GSV-1A8, GSV-1A8USB, GSV-1A16USB
Strain gauge Measuring Amplifier GSV-1A8 Instruction manual GSV-1A8, GSV-1A8USB, GSV-1A16USB GSV-1A8USB SubD1 (front side) GSV-1A8USB M12 (front side) GSV-1A16USB (rear side) GSV-1A8USB K6D (front side)
More informationPiRyte Mini ATX PSU Revision User Manual
Revision 1.1.0 User Manual Overview Congratulations on your purchase of the PiRyte Mini ATX PSU! Please read this entire manual before using to ensure you receive maximum benefit from this board while
More informationLaboratory of Sensors Engineering Sciences 9 CFU
Laboratory of Sensors Engineering Sciences 9 CFU Contacts Alexandro Catini catini@ing.uniroma2.it Phone: +39 06 7259 7347 Department of Electronic Engineering First Floor - Room B1-07b Course Outline THEORY
More informationThursday, September 15, electronic components
electronic components a desktop computer relatively complex inside: screen (CRT) disk drive backup battery power supply connectors for: keyboard printer n more! Thursday, September 15, 2011 integrated
More informationStep 1 The tools & the Components The tools you need: A good quality soldering iron with a fine point (max 30) Watt or a soldering-station. A desolder
Upgrade/revision manual Quad 44 pre amplifier. V2.5 These are the illustrated step-by-step guidelines for upgrading your Quad 44 with the Dada Electronics upgrade-kits. The Quad 44 preamp was the first
More informationDigital Design and Computer Architecture
Digital Design and Computer Architecture Lab 6: C Programming Introduction In this lab, you will learn to program an ARM processor on the Raspberry Pi in C by following a tutorial and then writing several
More informationChapter 4: Programming with MATLAB
Chapter 4: Programming with MATLAB Topics Covered: Programming Overview Relational Operators and Logical Variables Logical Operators and Functions Conditional Statements For Loops While Loops Debugging
More informationDevice: FDRV-04S. This document version: v1. Matches module version: v2 [2 Oct 2015] Document revision date: 9 November 2015
Device: FDRV-04S This document version: v1 Matches module version: v2 [2 Oct 2015] Document revision date: 9 November 2015 Description: I2C 4 Device Motor / Solenoid Driver Board FDRV-04S HWv2 datasheet
More informationAppendix D: Equipment
Appendix D: Equipment ELECTROSTATIC PAPER AND ACCESSORIES: To investigate electric fields with the electrostatic paper, you need to do the following: Lay the electrostatic paper flat.. Distribute the pieces
More informationHow-To: Make an RGB combination door lock (Part 1)
How-To: Make an RGB combination door lock (Part 1) Written By: Feitan 2017 www.botsbits.org Page 1 of 14 INTRODUCTION Part 2 can be found here 2017 www.botsbits.org Page 2 of 14 Step 1 How-To: Make an
More information6 GPIO 84. Date: 29/09/2016 Name: ID: This laboratory session discusses about writing program to interact with GPIO of Reapberry Pi.
6 GPIO 84 Date: 29/09/2016 Name: ID: Name: ID: 6 GPIO This laboratory session discusses about writing program to interact with GPIO of Reapberry Pi. GPIO programming with Assembly Code:block installation
More informationIntroduction to Internet of Things Prof. Sudip Misra Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur
Introduction to Internet of Things Prof. Sudip Misra Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture - 23 Introduction to Arduino- II Hi. Now, we will continue
More informationDrexel University Electrical and Computer Engineering Department ECE 200 Intelligent Systems Spring Lab 1. Pencilbox Logic Designer
Lab 1. Pencilbox Logic Designer Introduction: In this lab, you will get acquainted with the Pencilbox Logic Designer. You will also use some of the basic hardware with which digital computers are constructed
More informationUsing PSpice to Simulate Transmission Lines K. A. Connor Summer 2000 Fields and Waves I
Using PSpice to Simulate Transmission Lines K. A. Connor Summer 2000 Fields and Waves I We want to produce the image shown above as a screen capture or below as the schematic of this circuit. R1 V1 25
More informationJava_Embedded_Open_Onli...
Homework 2 - Working with GPIO and I2C Developing Java ME Embedded Applications by Using a Raspberry Pi: Homework for Lesson 2 Assumptions Team Collaboration Java_Embedded_Open_Onli... You have successfully
More informationJoy-IT Ultrasonic Distance Sensor
Joy-IT Ultrasonic Distance Sensor Export 03.11.2017 Copyright by Joy-IT 1 Index 1. Using with an Arduino 1.1 Connecting the Module 1.2 Code-Example 2. Using with a Raspberry Pi 2.1 Installing the System
More informationPrototyping & Engineering Electronics Kits Basic Kit Guide
Prototyping & Engineering Electronics Kits Basic Kit Guide odysseyboard.com Please refer to www.odysseyboard.com for a PDF updated version of this guide. Guide version 1.0, February, 2018. Copyright Odyssey
More informationLesson 8: Digital Input, If Else
Lesson 8 Lesson 8: Digital Input, If Else Digital Input, If Else The Big Idea: This lesson adds the ability of an Arduino sketch to respond to its environment, taking different actions for different situations.
More informationRaspiDigiHamClock. Raspberry Pi Amateur Radio Digital Clock. v WA4EFH R.Grokett
RaspiDigiHamClock Raspberry Pi Amateur Radio Digital Clock v2018-07-08 WA4EFH R.Grokett Overview Amateur Radio Operators (aka HAM Radio) use 24 hour UTC (Universal Coordinated Time) for much of their operation.
More information2.Raspberry PI: Architecture & Hardware Specifications
Course Contents: 1.Introduction to RASPBERRY PI Introduction to Open Source Hardware About Raspberry PI Brief Introduction to Hardware Parts & Usability 2.Raspberry PI: Architecture & Hardware Specifications
More informationRN-174 WiFly Super Module
RN- WiFly Super Module Features Evaluation board for the RN- module Supports chip antenna (RN--C), PCB trace antenna (RN--P), wire antenna (RN--W), and U.FL connector for an external antenna (RN--U) Ultra-low
More informationDigital Pins and Constants
Lesson Lesson : Digital Pins and Constants Digital Pins and Constants The Big Idea: This lesson is the first step toward learning to connect the Arduino to its surrounding world. You will connect lights
More informationContents. Please read and remember the following warnings before using the RELAYplate:
Contents 1 Warnings o 1.1 What is a Relay? o 1.2 Basic Features of the RELAYplate o 1.3 Attaching a Load to the RELAYplate o 1.4 The RELAYplate Command Set 1.4.1 RELAY Control Functions 1.4.2 LED Control
More informationProduct Datasheet: DWM1001-DEV DWM1001 Module Development Board. Key Features and Benefits
Product Datasheet: DWM1001-DEV DWM1001 Module Development Board Plug-and-Play Development Board for evaluating the performance of the Decawave DWM1001 module Easily assemble a fully wireless RTLS system,
More informationSi4703 FM Radio Receiver Hookup Guide
Page 1 of 5 Si4703 FM Radio Receiver Hookup Guide Introduction This breakout board enables you to tune in to FM radio stations, using the Si4703 FM tuner chip from Silicon Laboratories. This IC also works
More informationCS4141 IDL Notes. I. Quick Overview of IDL Prototyping Unit
CS4141 IDL Notes IDL-800 Prototyping System The IDL-800 logic panels are powerful tools for any logic designer. They enable a wide range of IC s to be used in a breadboard experiment. I. Quick Overview
More informationRedBoard Hookup Guide
Page 1 of 11 RedBoard Hookup Guide CONTRIBUTORS: JIMB0 Introduction The Redboard is an Arduino-compatible development platform that enables quick-and-easy project prototyping. It can interact with real-world
More informationUCTRONICS Ultimate Starter Kit for Raspberry Pi
UCTRONICS Ultimate Starter Kit for Raspberry Pi #K0064 User Guide 1 www.uctronics.com Table of Contents 1. Introduction...5 2. Kit contents...6 3. Assembly...7 3.1 ADXL345 Triaxial Accelerometer Sensor
More informationRASPBERRY PI MEGA-IO EXPANSION CARD USER'S GUIDE VERSION 2.3
RASPBERRY PI MEGA-IO EXPANSION CARD www.sequentmicrosystems.com USER'S GUIDE VERSION 2.3 GENERAL DESCRIPTION... 2 BOARD LAYOUT... 3 BLOCK DIAGRAM... 4 COMPONENT DESCRIPTION... 5 CONFIGURATION JUMPERS...
More informationAlaMode User Manual Revision
AlaMode User Manual Revision 1.0 www.wyolum.com info@wyolum.com 1 Introduction The AlaMode is an integrated Arduino compatible board. It is designed as versatile, general purpose data acquisition and control
More informationQuick Reference Tables
Quick Reference Tables Chapter 1 Raspberry Pi Startup Command Quick Reference Table Command startx sudo sudo shutdown -h now sudo shutdown -r now Launches the Raspbian desktop environment (GUI). Gives
More informationLesson6_7segments digital LED score board
Lesson6_7segments digital LED score board 7 segments digital LED score board is a digital LED display, and made by 7 LED lights, there are share a common ground pin, so we can control each pin to show
More informationThorlabs Model LD1100
Thorlabs Model LD1100 Constant Power Laser Driver THORLABS, Inc. PO Box 366 435 Route 206N Newton, NJ 07860 (973) 579-7227 Phone (973) 383-8406 Fax http://www.thorlabs.com Page 1 of 15 Table of Contents
More informationIME-100 ECE. Lab 3. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE,
IME-100 ECE Lab 3 Electrical and Computer Engineering Department Kettering University 3-1 1. Laboratory Computers Getting Started i. Log-in with User Name: Kettering Student (no password required) ii.
More informationAUDIO AMPLIFIER PROJECT
Intro to Electronics 110 - Audio Amplifier Project AUDIO AMPLIFIER PROJECT In this project, you will learn how to master a device by studying all the parts and building it with a partner. Our test subject:
More informationEL Wire sequencer / power supply PART NO
EL Wire sequencer / power supply PART NO. 2206213 The EL Wire sequencer is a EL wire power supply capable of powering 50 plus feet of 2.6mm El Wire and 8 ports controlled by a BS2sx. A menu driven command
More informationCARLETON UNIVERSITY Department of Systems and Computer Engineering
CARLETON UNIVERSITY Department of Systems and Computer Engineering SYSC 3203 Project Title: EMG-Controlled Mouse Laboratory: Deliverable #1A: Isolated Mouse Interface Introduction The project for the SYSC
More informationExperiment 1 Electrical Circuits Simulation using Multisim Electronics Workbench: An Introduction
Experiment 1 Electrical Circuits Simulation using Multisim Electronics Workbench: An Introduction Simulation is a mathematical way of emulating the behavior of a circuit. With simulation, you can determine
More informationZero2Go. User Manual (revision 1.03) Wide Input Range Power Supply for Your Raspberry Pi. Copyright 2017 UUGear s.r.o. All rights reserved.
Zero2Go Wide Input Range Power Supply for Your Raspberry Pi User Manual (revision 1.03) Copyright 2017 UUGear s.r.o. All rights reserved. Table of Content Product Overview... 1 Product Details... 3 Package
More informationRaspberry Pi board. EB080
Raspberry Pi board www.matrixmultimedia.com EB080 Contents About this document 3 Board layout 3 General information 4 Circuit description 4 Circuit diagram 5 2 Copyright Matrix Multimedia Ltd. About this
More information