I/O Experiments Assignment 1.

Slides:



Advertisements
Similar presentations
Interfacing Lab Part Guide. The Solderless Breadboard Rows along the top and bottom are connected horizontally along the length of the board Holes in.
Advertisements

Chapter 10 Electricity Section 10.1 Static Electricity
Resistor Circuit Symbol
Electricity and Circuits
1 Boe-Bot Parts BOE-BOT Lecture #1b DE - Digital Electronics.
Chapter 1 Quick review over Electronics and Electric Components Prepared By : Elec Solv.
HOPE- Hands On Practical Electronics Lesson 1: Introduction and Voltage, Current, and Resistance.
Technion-Israel Institute of Technology Electrical Engineering Department High Speed Digital Systems Laboratory Project subject: wireless biofeedback system.
Electronic Component Functions What is this component doing my in electronic device?
Microprocessor Block Diagram
Motors Make the world go ‘round By Jackson Greer, Room 305.
Ch4 Electronic Components Circuit/Schematic Symbols.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
Concurrent Assessment DC Electronics 1 1.When you have a complete series circuit, is the current flow the same at every place in the circuit? 2.What is.
Experiments Day 1 & 2 Resistors, Potentiometers and Photocells.
Chapter 7 Electricity. What is Charge? Protons have a (+) charge Electrons have a (-) charge Charge (q) is measured in Coulombs The elementary charge.
Digital Electronics Board-of-Education : Input. Board of Education - Input This presentation will explain, both from a hardware and software perspective,
Electronic Components Circuit/Schematic Symbols. RESISTOR Resistors restrict the flow of electric current, for example a resistor is placed in series.
Introduction 2 Electrical Design
ME456: Mechatronics Systems Design Lecture 3 Chapter 2: Lights On –Lights Off Prof. Clark J. Radcliffe Mechanical Engineering Michigan State University.
IB Physics 12 Mr. Jean November 5 th, The plan: Video clip of the day More on circuits Looking through components.
 Electric Current- net movement of electric charges in a single direction ◦ Example- powering electronics.
Analog to Digital Converter David Wallace English 314.
PHY 235 Robotics Workshop Day 4 Robotic Behaviors, Light Sensing, Voltage Dividers, LCD-MOD.
Basic Stamp OEM module By Wilmer Arellano. 2  The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form. 
Concepts of Engineering and Technology Basic Electricity and Electronics: DC Circuits Copyright © Texas Education Agency, All rights reserved. 1.
Welcome to Week 4 at the Summer Computer Club Raspberry Pi (contd)
For week three go over electron flow and conventional flow. Electrons only flow in one directions.
IB Physics 12 Mr. Jean November 4 th, The plan: Video clip of the day Circuit diagrams Circuit symbols How to draw circuits.
1 Electrical Fundamentals We need some understanding of electrical fundamentals to do the lab exercises. Electric Circuit Consists of: –Power Source: Battery,
Basic Stamp OEM module By Wilmer Arellano. 2  The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form. 
Concepts of Engineering and Technology Copyright © Texas Education Agency, All rights reserved. 1.
Current, Voltage and Resistance Electronic Training Course Slide# 1.
Electricity and Circuit. Types of Electricity Static Electricity – no motion of free charges Current Electricity – motion of free charges – Direct Current.
The third prong on a plug The third prong on a plug is a ground wire (neutral wire) It actually grounds the device, instead of being used to pull current.
IAT 267 Introduction to Technological Systems 1 Week 2 Workshop Basics of Electronic Circuits.
SENSORS.
Prototyping with Microcontrollers and Sensors
Electricity and Circuit
Do Now: Why does current not come from a battery? Explain.
Chapter 11: Inter-Integrated Circuit (I2C) Interface
Arduino Development for Beginners
Administrative stuff Turn in your HW #3!
November 27: Static Electricity − Coulomb’s law
Lighting LEDs with a RASPBERRY PI
Communication Lines Fundamentals.
Programming Boe-Bots (Part 1)
How to avoid catching things on fire.
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
Internet-of-Things (IoT)
Chapter 7 section 2 Electric Current
Electric Current.
Internet-of-Things (IoT)
Basic Electronics Part Two: Electronic Components.
Basic circuits Electrical circuits Electrical properties Ohm’s law
COSMOS Summer 2008 Necessary Electronics
COMPONENTS.
Arduino Part 4 Let there be more light.
November 26: Static Electricity − Coulomb’s law
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Electricity and Circuits
UNIT 9 Relays.
Voltage Difference The difference in electrical potential between two places. Unit of measure = V (volts) Voltage causes current to flow through an electric.
Basic Circuits.
Intro to Arduino Part 2 The Breadboard
UNIT 9 Relays.
Voltage, Current and Resistance
Buttons.
2019 Investing Now Summer Program
Presentation transcript:

I/O Experiments Assignment 1

Electronic Circuits, Voltage and Current Electronic circuits can be of three types- closed, open and short. Closed circuit forms a loop and the electricity flows in this loop from the given start and end points. Open circuit on the other hand, electricity does not move at all. A short circuit though can be a little risky because there is a direct connection between the + and – on the battery. Voltage is the amount of force that pushes electricity around a circuit and it is measured in volts(V). Current is the amount of electrical charge in a circuit. It is current that makes things happen, like lightening an LED. It is measured in amps. The resistance of a circuit limits the amount of current that flows and protects components. It is measured in ohms. Resistors have color-coded stripes that indicate the amount of resistance that they put in a circuit.

Solderless Breadboards They provide an easy way of connecting components temporarily.

The gpio header A 40 pin GPIO header is located on the top left side of the Pi. The pins are numbered from left-to right, but odd-numbered pins are on the lower row. The even numbered pins are on the top- row. Each of these have varied uses.

Basic output Here we are making an LED work. We will be making a circuit using a LED and 270 ohm resistor. We will learn to setup the GPIO pin to the output. We will also aim for making an LED work from the terminal window.

Basic input Here we focus on detecting whether a switch is open or closed. We use the 4- terminal tactile push buttons for this purpose. We use the concepts of pull-up and pull-down resistors. In a normal circuit consisting of switch and a resistor, when the switch is open electricity flows through the resistor and into the GPIO pin. So when switch is open, the GPIO pin is high. This is pull-up resistor. Pull-down resistor works in the opposite way: when the switch is open, the GPIO pin is tied to ground and is low. But when the switch is closed, electricity flows into the GPIO pin and it is high. We show this execution with the terminal window in Pi.

Communication between 3.3V and 5V devices This can be done in two ways. Using voltage Divider and using a Diode and pull-up resistor. In the voltage divider principle, the two resistors form a potential divider. This divides the voltage and allows enough of it to pass to the ground so that the GPIO pin only receives around 3.3V. Diodes are passive components that allow electricity to flow in one direction

Serial Peripheral interface (spi) The SPI is a serial data protocol that is used by microcontrollers and small electronic devices to exchange information. The term “serial” means that each bit of a binary number(for example, the number 255 is made up of eight bits in binary- 11111111) is sent one at a time, on the same wire. SPI divides devices into two categories: masters, slaves. The master is the device that starts the communication. The slave receives instructions from the master and does what is told. A master can talk to many slave devices, nut usually only one at a time. SPI usage needs 4 pins- MOSI(Master Output, Slave Input), MISO(Master Input, Slave Output), SCK(Serial Clock) and SS(Slave Select).

I2c communication It is a serial communications protocol that uses fewer wires precisely. The master device controls I2C communications, and you connect all slave devices to the same wires. Each slave device has a unique number and it only responds to messages that it receives which specify this address. The two I2C lines are called SDA and SCL. You need to use pull-resistors on these lines. I2C can be convenient on Pi because one has to only convert the logic level of the SDA wire to interface with 5V devices. Any GPIO pins can be used for I2C, if you want to write all of the code. But it is a more complicated protocol to implement from scratch. To use prebuilt I2C libraries and modules, the two I2C wires are pin 3 and pin 5 of the GPIO header.