Adviser : Chao-Huang Wei Student ID : M9920106 Student : Shin-An Chen 指導教授 : 魏兆煌 學號 :M9920106 姓名 : 陳信安.

Slides:



Advertisements
Similar presentations
INPUT-OUTPUT ORGANIZATION
Advertisements

VHDL 8 Practical example
Programmable Interval Timer
Presentation by: Serena, Ann & Nicole
DH2T 34 Computer Architecture 1 LO2 Lesson Two CPU and Buses.
Basic Input Output System
Photolithography Machine Control System Ben Conrad and Mark Edwards Projects in Computer Engineering II December 9, 2003.
Initial Position Orientation Tracking System (IPOTS) Group Members: Keiichi McGuireHenry Pham Marc TakamoriScott Spiro.
Critical Design Review The Lone Rangers Brad Alcorn Tim Caldwell Mitch Duggan Kai Gelatt Josh Peifer Capstone 2007.
Introduction to Microprocessors Number Systems and Conversions No /6/00 Chapter 1: Introduction to 68HC11 The 68HC11 Microcontroller.
Registers  Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
Aztec PC Oscilloscope Michael Mason Jed Brown Josh Price Andrew Youngs.
1 Introduction to Computers Day 6. 2 Main Circuit Board of a PC The main circuit board (motherboard or system board) is the central nervous system of.
Introduction to Cameras Jim Rasche Samba Danfa Jaya Joseph 1.
Microcontroller Architecture PIC18F Family
Microcontroller: Introduction
Technion-Israel Institute of Technology Electrical Engineering Department High Speed Digital Systems Laboratory Project subject: wireless biofeedback system.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
Programming 8-bit PIC Microcontrollers in C Martin Bates Elsevier 2008.
INPUT-OUTPUT ORGANIZATION
2 Lines Electronics I 2 C Analyzer Ching-Yen Beh Robert S. Stookey Advisor: Dr. J. W. Bruce.
Camera Interfacing using ARM7
PIC microcontrollers. PIC microcontrollers come in a wide range of packages from small chips with only 8 pins and 512 words of memory all the way up to.
COMPONENTS OF THE SYSTEM UNIT
Critical Design Review 27 February 2007 Black Box Car System (BBCS) ctrl + z: Benjamin Baker, Lisa Furnish, Chris Klepac, Benjamin Mauser, Zachary Miers.
Lab 2: Capturing and Displaying Digital Image
Introduction to Computing: Lecture 4
©2008 The McGraw-Hill Companies, Inc. All rights reserved. Digital Electronics Principles & Applications Seventh Edition Chapter 13 Computer Systems Roger.
 Design model for a computer  Named after John von Neuman  Instructions that tell the computer what to do are stored in memory  Stored program Memory.
1 SERIAL PORT INTERFACE FOR MICROCONTROLLER EMBEDDED INTO INTEGRATED POWER METER Mr. Borisav Jovanović, Prof.dr Predrag Petković, Prof.dr. Milunka Damnjanović,
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
Memory and Storage Dr. Rebhi S. Baraka
MICROCONTROLLER SYSTEMS Part 1. Figure 1.1Elements of a digital controller CPU Central Processing Unit Input Peripherals Output Peripherals ROM Read Only.
Design of a Novel Bridge to Interface High Speed Image Sensors In Embedded Systems Tareq Hasan Khan ID: ECE, U of S Term Project (EE 800)
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
Microprocessors For a microprocessor to give a working microcomputer system, which can be used for control tasks, additional chips are necessary, e.g.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
1 Course Title: IT IN BUSINESS Course Instructor: ADEEL ANJUM Chapter No: 04 1 BY ADEEL ANJUM (MCS, CCNA,WEB DEVELOPER)
Computer Architecture Lecture 24 Fasih ur Rehman.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the serial communication.
Computer operation is of how the different parts of a computer system work together to perform a task.
Lab 1 Summary.
8051 Microcontroller Tutorial and Architecture with Applications.
SUBMITTED BY EDGEFX TEAM PORTABLE CODED WIRELESS MESSAGE COMMUNICATION BETWEEN TWO PARTIES SECRETLY WITH LCD DISPLAY.
TRANSMISSION LINE MULTIPLE FAULT DETECTION AND INDICATION TO EB
A Quick Start Guide to PIC16F877 microcontroller And Microchip Development Environment A Quick Start Guide to PIC16F877 microcontroller And Microchip Development.
CEng3361/18 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2007 Recitation 01.
BATCH MEMBERS R.ABHISHEK-08N41A0401 K.DHEERAJ REDDY-08N41A0412 S.RAJENDRA REDDY-08N41A0458 JYOTHISHMATHI COLLEGE OF ENGINEERING AND TECHNOLOGY,TURKAPALLY.
IR OBSTACLE DETECTION TO
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
Introduction to Microcontroller Technology
Obstacle avoiding robot { pixel }
Scrolling LCD using Arduino.
Home automation using Arduino & ‘PIR sensor’
PROPELLER DISPLAY OF MESSAGE BY VIRTUAL LEDS
DTMF BASED REMOTE INDUSTRIAL LOAD AND/OR AGRICULTURAL PUMP CONTROL
Computer Hardware – System Unit
Microprocessor Systems Design I
Chapter 11: Inter-Integrated Circuit (I2C) Interface
UNIT – Microcontroller.
Microprocessor Systems Design I
DIGITAL CALCULATOR USING 8051
Principles & Applications
Project Title EVM IN PIC Under the Guidance of Submitted by.
I2C PROTOCOL SPECIFICATION
Introduction to Microprocessors and Microcontrollers
EECE.3170 Microprocessor Systems Design I
Computer Memory.
Presentation transcript:

Adviser : Chao-Huang Wei Student ID : M Student : Shin-An Chen 指導教授 : 魏兆煌 學號 :M 姓名 : 陳信安

2 I. Introduction II. CMOS image sensor, Microcontroller and other devices III. Communication between microcontroller and CMOS image sensor IV. Design circuit and write program V. Results and Conclusions OUTLINE

3 Introduction  Solar energy has been used in many traditional technologies for centuries.  Solar energy is currently used in a number of applications: heat, electricity generation, desalination of seawater…  There are many ways to determine Sun’s angle and one of them uses sensors.  Using CMOS image sensor in Sun tracking system is both high productivity and low price

4 Algorithms to determine the Sun’s position  In the triangle ΔOAP, we have: (1)  Similarly, in the triangle ΔSOP (2)  Substituting (2) into (1), we get α H O (x 0, y 0 ) P (x, y) x y z β A B S Incident Sun ray CMOS Image sensor Lens Image of Sun 0 0 ycostanHy cosH yy H OP tan           0 0 costan sintan yHy xHx     cos OA OP xtan)yy(x yy xx     

5 This research study concentrates on how to use CMOS image sensor and microcontroller in Sun tracking system. PIC18F4520 CMOS Image Sensor SRAM Signal Data Counter Address

6  CMOS technology is used in many fields.  Advantages of CMOS imager sensors are low power consumption, low voltage, direct digital output, small size and simple to design.  CMOS image sensors are with high performance and reliability. Optics Sensor Digital Imaging Processing Storage Display Interface User Interface

7  CMOS: Complementary Metal- Oxide- Semiconductor  KODAK KAC-9647  Array format (number of pixels): Total: 488x 672 (pixels) Active: 488(V) x 648(H) (pixels)  Effective Image AreaTotal: 2.93mm x 4.03mm Active: 2.93mm x 3.89mm  Resolution: 300,000 pixels  Optical format: 1/4‘’  Pixel size: 6.0μm x 6.0μm  Video Output: 8 & 10 Bit Digital  Frame Rate: 68 frames per second KODAK KAC-9647

8  Microcontroller – PIC 18LF4520 -Package: 40-pin DIP -Program memory: Flash (32k) -Data memory: Sram (1536 bytes), Eeprom (256 bytes) -I/O Ports: Port A, B, C, D, E -4 timers -10-bit A/D module: 13 input channels  Other devices SRAM (Static Random Access Memory Counter 74AC161 RS232 MOSFET P channel 74HC14… SRAM CY7C1049CV33

9 Overall chip block diagram CMOS image sensor KAC-9647 Analog pixel values Digital pixel values

10 Inter-Integrated Circuit (I 2 C)  I²C is a multi-master serial computer bus and used to attach low-speed peripherals to a motherboard, embedded system, or cell phone. Write operation Read operation A = acknowledge (SDA LOW) Ā = not acknowledge (SDA HIGH) S = START condition P= STOP condition From sensor From master SWPAA Register Address Data Byte Device AddressSWAPAARegister AddressĀDevice AddressSR ‘1’ read ‘0’ write Data Byte Device Address A

11 Digital video port  The captured image is placed onto a flexible 10-bit digital port (d [9:0]). d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 KAC-9647Processor Pixel clock Row trigger Frame trigger

12 KAC-9647 has two ways to transfer data into microcontroller: “Master mode” and “Slave mode”. MASTER MODE Sensor sends the signal of row (hsync) and frame (vsync) to microcontroller after it finishes one row or frame.

13  Every pixel in every row is consecutively read out, one pixel at a time.  Scan direction can be programmed. CDS/Shift Register Analog Data Out Line Address

14 Microcontroller PIC 18LF4520 CMOS image sensor KAC-9647 RAM CY7C1049 WR RD Master Clock Pixel Clock Row trigger Frame trigger Row valid Frame valid I2C Clock I2C Data Data Computer Counter 74AC161 DATA Address Pixel Clock RS232 CLEAR INPUT, LOAD

15 5V PE TE Q0 Q1 Q2 Q3 CLOCK CARRY OUT PE TE Q0 Q1 Q2 Q3 CLOCK CARRY OUT PE TE Q0 Q1 Q2 Q3 CLOCK CARRY OUT Counter 1Counter 2Counter 3 PE TE Q0 Q1 Q2 Q3 CLOCK CARRY OUT Counter 4 PE TE Q0 Q1 Q2 Q3 CLOCK CARRY OUT Counter 5 Five counters 74AC161 are connected

16  The circuit was drawn by Protel 99SE program.  Schematic editor was transferred to the PCB editor. Electronic schematic Printed circuit board

17 Make the circuit Board Master LPKF ProtoMat C40 Circuit CAM

18 Write program  MPLAB IDE is a software program to develop applications for Microchip microcontrollers  MPLAB debug and compile program code, that write by C language or Assemble. Program Circuit MPLAB Power

19 Flowchart of C program code

20  The following picture is the circuit, which consists of Microcontroller PIC 18LF4520, CMOS image sensor KAC-9647, SRAM HM628512, 82C55, 74HCT245 and others. CMOS Image sensor Counter-74AC161 PIC18LF4520 RS232 ICSP SRAM IRF7422D2 74HC14

21  Graphical user interface (GUI) is written by Visual Basic 6.0 of Microsoft cooperation.  It can receive data from microcontroller and store all data into text format file or excel format file. Text file Excel file Interface Visual Basic code

22  GUI can read data of any 24-bitmap image and show it again.  It is also transfer to monochrome image.  However, GUI can not show clearly the image from KAC sensor. GUI read one image in computer and show it

23  The circuit operates well.  Counters and SRAM run synchronously  Microcontroller can control the CMOS image sensor  SRAM can store all data in to its memory.  Computer can receive data and save in text file or excel file.  However, the received image is not clear.

24  Using counters and SRAM is a good method to overcome a problem of fast transmitting data of sensor.  The circuit was made by CNC machine and welded by hand. Thus, it can put into practice in anywhere and utilize easily.  Without the framegrabber card in computer and low cost & high reliability of sensor, the price of the circuit decreases remarkably. It is also able to apply the circuit in devices that price is considered. However, it makes the data process and image display more sophisticated.  It concerns about the solutions to keep sensor clean from conditional environment (dust, noise…).

[1]Pham Thi Thu Hien, “Using CMOS image sensor andmicrocontroller in sun tracking system”, 2007