Light Sensors ECE 4437 Dr. J. Glover 10-15-2015 Team 9: Jitin George Zachary Freeman.

Slides:



Advertisements
Similar presentations
Khaled A. Al-Utaibi Interfacing an LED The Light Emitting Diode (LED) Applications DC Characteristics & Operation Interfacing to.
Advertisements

4-1 EE 319K Introduction to Embedded Systems Lecture 4: Arithmetic overflow, Branches, Control Structures, Abstraction & Refinement Bard, Erez, Gerstlauer,
OUTPUT INTERFACE – Microprocessor Asst. Prof. Dr. Choopan Rattanapoka and Asst. Prof. Dr. Suphot Chunwiphat.
Chung-Ta King National Tsing Hua University
4/22/ MAKING YOUR ROBOTS SEE Building and Testing Photosensitive eyes.
Data Acquisition ET 228 Chapter
Indian Institute of Technology Hyderabad ROBOTICS LINE FOLLOWER HARI KISHAN TANDEY – ES12B1008 DILIP KONDAPARTHI – ES12B1010 SAI KARTIK – CE12B1015.
Reflectance Sensor Array: Line sensing Team: Grounded Rachel Kmetz, Matthew Forsyth, Austin Meirick, and Levi Eisel.
10-1 Bard, Tiwari, Telang, Janapa Reddi, Gerstlauer, Valvano, Yerraballi EE 319K Introduction to Embedded Systems Lecture 10: Sampling, Analog-to-Digital.
ELECTRICAL. Circuits Outline Power Hub Microcontroller Sensor Inputs Motor Driver.
ECT 357 Ch 10 Analog to Digital COnversion. Today’s Quote: It’s better to die with a good name than to live with a bad one. It’s better to die with a.
Light Sensor by Jonathan Pham & Cherub Harder ECE 4437 Dr. Glover.
Digital Tachometer ENGR 4803 Electromechanical Systems & Mechatronics.
Timers in Hardware ECE152. Overview Why are timers important – Watchdog – Task switching – Accurate time of day Can use polling or interrupts.
IR Object Detection living with the lab IR light from LED IR light reflected off object IR LED IR receiver Infrared (IR) light leaving an LED reflects.
Sensors And Micro-Controllers
Digital I/O Connecting to the Outside World
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2011 LWTL faculty team.
Indian Institute of Technology Hyderabad CONTACTLESS TACHOMETE R Group members: Moruboyina Alekhya Kodi Padmasree D.Hima Varsha.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Timers and Interrupts Shivendu Bhushan Sonu Agarwal.
Embedded Systems – Shape the World Course Review: Jan – May 2015 edX – MOOC UT.6.02x University of Austin, Texas Jonathan Valvano & Ramesh Yerriballi Student:
Sensors Material taken from Robotics with the Boe-Bot.
1 ARM University Program Copyright © ARM Ltd 2013 General Purpose I/O.
Digital to Analogue Converter
ELN5622 Embedded Systems Class 7 Spring, 2003 Aaron Itskovich
1 ARM University Program Copyright © ARM Ltd 2013 General Purpose I/O.
EasyC Programming Workshop January 30, 2008 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
1 Chapter 6: Light Sensitive Navigation With Photoresistors Presentation based on: "Robotics with the Boe-Bot" By Andy Lindsay Parallax, Inc Presentation.
ECS642U Embedded Systems Digital I/O William Marsh.
1 LHO 13 The 8051CF020 and the University Daughter Card.
Lecturers: Professor John Devlin Mr Robert Ross
Experiment 21 Design a Traffic Arrow.
Material taken from Robotics with the Boe-Bot
ECS642U Embedded Systems Cyclic Execution and Polling William Marsh.
1 ECE 372 – Microcontroller Design Parallel IO Ports - Inputs.
7/23 Coldfire 5211 Signals and IO Multiplexing Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee
Project: security lock system Idea: –Create a 4bit password using switches –Send data serially (one bit at a time) using an LED –Receive the code serially.
EE365 - Microprocessors period 26 10/23/00 D. R. Schertz # Parallel Ports.
Line Sensing 101 TEAM SpeedRacers _______Team Leader _______ Hardware Specialist _______ Software Specialist _______ Assistant 1.
Intro. Interfacing & Electronics 1 Interfacing Introduction.
Microcontroller based Traffic signal Umer Butt Amna Rashid Izza Rabbani Rozab Naveed Ramesha Akram.
LINE FOLLOWER ROBOT Guided By: Made By: Mrs. Geetali Saha Parth Patil ( ) Arsh Patel( ) KishanPatel( )
IR Object Detection living with the lab IR light from LED IR light reflected off object IR LED IR receiver Infrared (IR) light leaving an LED reflects.
TITLE: 555 Timer OM INSTITUTE OF TECHNOLOGY Subject: Analog Electronics ( ) Semester: 03 Prepared By:
EE 319K Introduction to Embedded Systems
Microprocessors A practical approach..
1. PIC ADC  PIC18F877 has 8 analog input channels i.e. port A pins(RA0 to RA5) and port E pins(RE1 and RE2). These pins are used as Analog input pins.
Clock Signals: 555 Timer 555 Timer Digital Electronics TM
A project report on CHRISTMAS DECORATION LIGHT
CS4101 嵌入式系統概論 General Purpose IO
Application Case Study Security Camera Controller
Electronic Product Design Do it Yourself
EI205 Lecture 13 Dianguang Ma Fall 2008.
Introduction to Handshaking Communication with SSC-32U
INT. TO EMBEDDED SYSTEMS DEVELOPMENT
The Arduino Microcontroller: Atmel AVR Atmega 328
Arduino Analog I/O Analog input pins: 0 – 5
Internet-of-Things (IoT)
Line Sensing 101 TEAM SpeedRacers _______ Team Leader
ECE 354 Computer Systems Lab II
I/O Ports.
Presentation of Robotics (3)
EE 319K Introduction to Embedded Systems
8051 Micro Controller.
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Monostable AIM: To understand the operation of a monostable and be able to choose component values to give a required time period PRIOR KNOWLEDGE: Resistor.
Robotics System Lecture 11_12: DC Motor
PIC Analog Input Tom Igoe, NYU-ITP
A modular robot for use in the RoboSumo lab
Presentation transcript:

Light Sensors ECE 4437 Dr. J. Glover Team 9: Jitin George Zachary Freeman

Overview QTR-1RC Reflectance Sensor Reflectance time Initialize Pins for I/O Timer Interfacing outputs to digital I/O Data Check Works Cited

QTR-1RC Reflectance Sensor Carries a single infrared LED and phototransistor pair The LED current-limiting resistor delivers approximately 17 mA to the LED when VIN is 5 V The phototransistor uses a capacitor discharge circuit and the discharge time is used to take an analog reading of the reflected IR   Shorter capacitor discharge time is an indication of greater reflectance

Reflectance Time Strong Reflectance (White) - decay time can be as low as several microseconds Strong Reflectance (White) - decay time can be as low as several microseconds No Reflectance (Black) – decay time can be as high as a few milliseconds No Reflectance (Black) – decay time can be as high as a few milliseconds

Initialize Pins for I/O void PortE_Init(void) { volatile unsigned long delay; SYSCTL_RCGCGPIO |= 0x ; // Activate clock for Port E delay = SYSCTL_RCGCGPIO; // Allow time for clock to start GPIO_PORTE_CR_R = 0x10; // Allow changes to PE4 GPIO_PORTE_CR_R = 0x10; // Allow changes to PE4 GPIO_PORTE_AMSEL_R = 0x00; // Disable analog on PE GPIO_PORTE_AMSEL_R = 0x00; // Disable analog on PE GPIO_PORTE_PCTL_R = 0x ; // GPIO on PE GPIO_PORTE_PCTL_R = 0x ; // GPIO on PE GPIO_PORTE_AFSEL_R = 0x00; // Disable alt funct on PE7-0 GPIO_PORTE_AFSEL_R = 0x00; // Disable alt funct on PE7-0 GPIO_PORTE_DEN_R = 0x10; // enable digital I/O on PE4 GPIO_PORTE_DEN_R = 0x10; // enable digital I/O on PE4}

Timer Initialize Timer Initialize Timer SYSCTL_RCGCTIMER = 0x ; // Initializing Timer0 Clear residual bits Clear residual bits TIMER0_TAMR &= ~ 0x ; TIMER0_TAMR &= ~ 0x ; Write the GPTM Configuration Register (GPTMCFG) with a value of 0x Write the GPTM Configuration Register (GPTMCFG) with a value of 0x TIMER0_CFG = 0x ;

Timer Set the TnEN bit in the GPTMCTL register to enable the timer and start counting Set the TnEN bit in the GPTMCTL register to enable the timer and start counting TIMER0_CTL |= 0x01; // Starts the timer TIMER0_CTL |= 0x01; // Starts the timer

Interfacing Outputs to Digital I/O Set the I/O line to an output and drive it high Set the I/O line to an output and drive it high

Interfacing Outputs to Digital I/O Wait 10 microseconds for the 10[nF] capacitor to charge Wait 10 microseconds for the 10[nF] capacitor to charge

Interfacing Outputs to Digital I/O Make the I/O line an input (high impedance) Make the I/O line an input (high impedance) volatile unsigned long start, end, meas; start = TIMER0_TAR; Wait for the I/O line to go low Wait for the I/O line to go low

Interfacing Outputs to Digital I/O Read end time Read end time end = end = TIMER0_TAR; Calculating discharge time of the capacitor meas = end – start;

Data Check

Works Cited [1] J. Valvano and R. Yerraballi. (2014). Chapter 6: Parallel I/O ports [Online]. Available: Book/C6_MicrocontrollerPorts.htm Book/C6_MicrocontrollerPorts.htm Book/C6_MicrocontrollerPorts.htm [2] J. Pham and C. Harder. (2014). Light Sensor [PowerPoint]. [3] Polulu Robotics & Electronics. QTR-1RC Reflectance Sensor [Online]. Available: