(8.8 MB PowerPoint)

57
Mike Loptien Kirk Spowart Mike Gauthiere Chris Reid Vincent Wu

Transcript of (8.8 MB PowerPoint)

Page 1: (8.8 MB PowerPoint)

Mike LoptienKirk Spowart

Mike GauthiereChris ReidVincent Wu

Page 2: (8.8 MB PowerPoint)

Read an RFID tag from 10 feet Implement WIFI capabilities GPS integration Use microcontroller

Page 3: (8.8 MB PowerPoint)

Current technology cannot read a passive tag from more than 5 inches

Active tags are generally encrypted and very hard to use

Active tags would require construction of our own antenna and reader hardware

Wifi too difficult for this semester alone GPS too costly and not necessary for our

project

Page 4: (8.8 MB PowerPoint)

Read a passive tag from 3-4 inches Implement a touch screen and high-resolution

display Store data on an SD card Audio output NIOS II on Cyclone II FPGA

Page 5: (8.8 MB PowerPoint)

Grocery store: embed a passive tag in the price tags of items and store data about that item in the reader

Retail stores: similar idea Museum: scan a tag near an exhibit to get info

about it Basically a good way to tie information to a

physical object

Page 6: (8.8 MB PowerPoint)

ID-12 Passive tag reader Max read range: 4” Simple Circuit and

data reading

Page 7: (8.8 MB PowerPoint)
Page 8: (8.8 MB PowerPoint)
Page 9: (8.8 MB PowerPoint)
Page 10: (8.8 MB PowerPoint)
Page 11: (8.8 MB PowerPoint)

Collision detection is handled by the ID-12

It only outputs data when it correctly reads and decodes a tag

Page 12: (8.8 MB PowerPoint)

Output on D1, pin 8

LED Control on LED, pin 10

Format Select on +/-, pin 7

176 bits of output

Page 13: (8.8 MB PowerPoint)

Output is inverted 176 bits at 9600 baud 16 serial packets, 1

start bit, 8 data bit, 2 stop bits and 0 parity bits

Least significant bit first

Transmits ASCII characters

Page 14: (8.8 MB PowerPoint)
Page 15: (8.8 MB PowerPoint)
Page 16: (8.8 MB PowerPoint)
Page 17: (8.8 MB PowerPoint)
Page 18: (8.8 MB PowerPoint)
Page 19: (8.8 MB PowerPoint)
Page 20: (8.8 MB PowerPoint)

Checksum XOR of all output

packets

Page 21: (8.8 MB PowerPoint)

The Cyclone II

Page 22: (8.8 MB PowerPoint)

Up to 50MHz Will contain the NIOS II, SPI bus, Graphics

controller, and RFID translation logic Cyclone II has good documentation, good

supporting software, good expandability

Page 23: (8.8 MB PowerPoint)

Implemented on the Cyclone II FPGA Fully customizable processor Customizable onboard RAM C compatible through the Altera IDE

Page 24: (8.8 MB PowerPoint)

Used to control data input and output Video controller RFID input analyzer SD interface Programmed through USB blaster SPI bus, UARTs, Ram, Interrupt Priority,

Custom Pin selection

Page 25: (8.8 MB PowerPoint)
Page 26: (8.8 MB PowerPoint)
Page 27: (8.8 MB PowerPoint)

COM : Common - Connects to the housing WP : Write Protect Detect Switch CD : Card Detect Switch P9 : Not used in SPI mode (Pin 9 on SD Card) IRQ : Not used in SPI mode (Pin 8 on SD Card) DO : Serial Data Out GND : Ground - Connect this to

COM to ground the housing CLK : Serial Clock VCC : 3.3V Power DI : Serial Data In CS : Chip Select

Page 28: (8.8 MB PowerPoint)

Standard Capacity SD Memory Card: Up to and including 2 GB High Voltage SD Memory Card – Operating voltage range: 2.7-3.6 V Default mode: Variable clock rate 0 - 25 MHz, up to 12.5 MB/sec interface

speed (using 4 parallel data lines) Card removal during read operation will never harm the content Built-in write protection features (permanent and temporary) Card Detection (Insertion/Removal)

Page 29: (8.8 MB PowerPoint)

Learn to communicate with SD/MMC on Altera Board Connect our own SD/MMC breakout board and communicate

Page 30: (8.8 MB PowerPoint)

Six-wire communication channel

(clock, command, 4 data lines) Error-protected data transfer Single or Multiple block oriented

data transfer

Page 31: (8.8 MB PowerPoint)

When reading and writing to the SD card, the key problem is timing. The program must adhere to strict read/write timing to read and write data to/from the SD card.

Read Timing

Write Timing

Code Description

S Start bit (= 0)

T Transmitter bit (Host = 1; Card = 0)

P One-cycle pull-up (= 1)

E End bit (= 1)

Z High impedance state (-> = 1)

Code Description

D Data bits

X Don’t care data bits (from SD card)

* Repetition

CRC Cyclic redundancy code bits (7 bits)

Gray / White Card Active / Host Active

Page 32: (8.8 MB PowerPoint)

Command from host to card is fixed 6 bytes packet NCR-Command Time Response 0-8 bytes for SD DI signal must be kept high during read transfer When a command frame is transmitted to the card, a response to the

command will be sent back to the host

Page 33: (8.8 MB PowerPoint)
Page 34: (8.8 MB PowerPoint)

One or more data blocks will be sent/received after command response Data block is transferred as a data packet that consist of Token, Data Block

and CRC Stop Tran token means the end of multiple block write, it is used in single byte

without data block and CRC

Page 35: (8.8 MB PowerPoint)

Single Block Read

                                                

                                                        

                                     Multiple Block Read

                                                   

                                                                                                                                                                                 

                                                    

Page 36: (8.8 MB PowerPoint)

Single Block Write

                                                                  

                                                                          

     Multiple Block Write

                                                               

                                                                                                                                                                                                                  

       

Page 37: (8.8 MB PowerPoint)

Sharp PSP Screen: 480x272 Resolution 24 bit color (8 for each R,

G, B) CLK, Hsync, Vsync, DISP

Control pins CLK = 9MHz Vsync = 17.1 KHz Hsync = 60 Hz

Hantouch Touch Panel 4 wire analog resistive Requires A to D converter

to determine location of touch

Page 38: (8.8 MB PowerPoint)

Goal: Accept commands from NIOS processor to create image and control output to the LCD screen

Solution: Create a “Soft Graphics Controller” on the Cyclone II FPGA Command set

Write text Write vector shapes Write bitmaps Manage image ‘layers’

Page 39: (8.8 MB PowerPoint)

Rasterizer Convert characters into bitmaps & write to layer Convert vector shapes into bitmaps & write to layer Write bitmaps to layer

Layer Parser Determine layer order, size & position Write parsed layers to frame buffer

Screen Control Logic Manage LCD control pins Clock dividers, etc.

Layer Example

Page 40: (8.8 MB PowerPoint)
Page 41: (8.8 MB PowerPoint)

Texas Instruments TSC2102 PDA Controller Chip Configuration & communication via SPI A to D converter for touch panel A to D converter for battery voltage level

measurement Stereo audio DAC & headphone amp

Multiple audio codecs

Page 42: (8.8 MB PowerPoint)
Page 43: (8.8 MB PowerPoint)
Page 44: (8.8 MB PowerPoint)

Two ways to design battery power system for RFID reader

Main option is to use a flyback regulator and transformer with three secondary windings

Alternate option is to use three linear voltage regulators

Page 45: (8.8 MB PowerPoint)
Page 46: (8.8 MB PowerPoint)
Page 47: (8.8 MB PowerPoint)
Page 48: (8.8 MB PowerPoint)
Page 49: (8.8 MB PowerPoint)

Pros: May use less power, parts may be less expensive,

we would gain practical knowledge and experience Cons:

More time would be required, voltage regulators still needed so flyback regulator and transformer may be superfluous, not a very big part of project so may not be worth several weeks of effort that can be spent on other parts of the project

Page 50: (8.8 MB PowerPoint)

Pros: Much simpler to implement battery system, can

handle the amount of juice we’ll need to power devices

Cons: May consume more power

Page 51: (8.8 MB PowerPoint)

Example of Planned Battery Pack

Page 52: (8.8 MB PowerPoint)

6 V, 1400 mAH nickel metal hydride battery pack

Two ways to build our battery pack Solder end to end Connect with the battery bars

Page 53: (8.8 MB PowerPoint)
Page 54: (8.8 MB PowerPoint)
Page 55: (8.8 MB PowerPoint)

• CDR: Order components, PCB design, board & processor familiarization, begin hardware modules

• Milestone 1: Finish RFID transceiver, memory, tag ID database

• Milestone 2: Finish touch screen interface, finish graphics controller, finalize control software

• Expo: Finish and test the final software, audio output, construct casing

Page 56: (8.8 MB PowerPoint)

• Embedded systems & microprocessors: Mike L Mike G

• Power & batteries: Vince / Chris• SD Card: Kirk • Circuit construction: Chris / Vince• Low level software: Kirk / Mike L• High level software: Vince / Mike G / Chris

Page 57: (8.8 MB PowerPoint)