Electronic scratch paper l.jpg
This presentation is the property of its rightful owner.
Sponsored Links
1 / 30

Electronic Scratch Paper PowerPoint PPT Presentation

Electronic Scratch Paper Simon Huang Stamford Hwang Ted Wang Agenda Introduction Components Improvements Q&A Purpose Records information anywhere, anytime Reduces the use of paper Acts as a whiteboard Works as a portable device System Components Altera DE2 FPGA Board

Download Presentation

Electronic Scratch Paper

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Electronic scratch paper l.jpg

Electronic Scratch Paper

Simon Huang

Stamford Hwang

Ted Wang


Agenda l.jpg

Agenda

  • Introduction

  • Components

  • Improvements

  • Q&A


Purpose l.jpg

Purpose

  • Records information anywhere, anytime

  • Reduces the use of paper

  • Acts as a whiteboard

  • Works as a portable device


System components l.jpg

System Components

  • Altera DE2 FPGA Board

  • 17.1’’ Touch Screen

  • 17.1’’ LCD Monitor

  • Bilateral Switch (CD4016CN)

  • Microprocessor (PIC16F877A)

  • A/D Converter (AD573JN)


Block diagram hardware l.jpg

Block Diagram (Hardware)


Block diagram software l.jpg

Block Diagram (Software)


Agenda7 l.jpg

Agenda

  • Introduction

  • Components

  • Improvements

  • Q&A


Touch screen l.jpg

Touch Screen

  • Each Resistor

    • 300 Ω

  • Simple Voltage Divider

    • Output slightly less than 2.5V

  • Scratch of length < 20µm is ignored


Touch screen to a d l.jpg

Touch Screen to A/D

  • Bilateral Switch (CD4016CN) to automate

    • “On” resistance 300 Ω


Wiring l.jpg

Wiring

Obtain Y coordinate

Obtain X coordinate


A d converter ad573jn l.jpg

A/D Converter (AD573JN)

  • A/D Converter to convert analog to 10 bit digital signal


Wiring12 l.jpg

Wiring

  • All 10 bits desired

  • Unipolar input

    • 0V ~ 5 V

  • Input to Convert

    • At least > 500ns wide

1

2

3


Slide13 l.jpg

Tc = Conversion Time (30 – 40 µs)

Tcs = Convert Pulse Width (at least 500 ns)


Small spike l.jpg

Small Spike


Parallel to serial conversion l.jpg

Parallel to Serial Conversion


Protocol of transmission l.jpg

Protocol of Transmission

  • Operates at 10 kHZ


State diagram l.jpg

State Diagram


Why ps 2 l.jpg

Why PS/2?

  • Complication via USB coding

  • Successful testing via PS/2

  • i.e. make code of E = 24


Ps 2 vs rs 232 l.jpg

PS/2 vs. RS-232


Ps 2 vs rs 232 cont l.jpg

PS/2 vs. RS-232 (cont.)

  • Data

  • Not Implemented

  • Ground

  • Vcc (+5V)

  • Clock

  • Not Implemented


Lcd controller l.jpg

LCD Controller

  • Purpose: To control the display of LCD

  • Input:

    • PS/2 serial communication

    • Makecode of X and Y coordinate

  • Output:

    • 640 x 480 resolution

      10 bit RGB VGA signal


Block diagram of lcd controller l.jpg

Block Diagram of LCD controller


Decoder l.jpg

Decoder

  • Purpose: Translate PS/2 Protocol to X and Y

  • Input:

    • Makecode of X and Y coordinate

  • Output:

    • X position (0 – 640)

    • Y position (0 – 480)


State machine l.jpg

State Machine

  • Purpose: CPU to determine functionality

  • Input: X and Y coordinates

  • Output:

    • Clear

    • Draw

    • Save

    • Load

    • Erase


Memory unit l.jpg

Memory Unit

  • Purpose: grid like storage for 640 x 480 pixel info

  • Input:

    • operation determined by SM

    • XY coord of user touch

    • Current XY coord VGA is drawing

  • Output:

    • RGB signal


Vga driver l.jpg

VGA Driver

  • Purpose: Calculate correct VGA signals

  • Input: RGB of pixel

  • Output:

    • VGA Signals

    • XY of next pixel draw


Agenda27 l.jpg

Agenda

  • Introduction

  • Components

  • Improvements

  • Q&A


Improvements l.jpg

Improvements

  • Include an amplifier to increase the resolution

  • Utilize NIOS2 to program through USB A/D Converter

  • Improve the resolutions shown on the monitor

  • Improve circuitry through other means

  • Use RAM instead of registers to increase the amount of data stored


Agenda29 l.jpg

Agenda

  • Introduction

  • Components

  • Improvements

  • Q&A


Slide30 l.jpg

Q&A


  • Login