Momentum Measurement Card - PowerPoint PPT Presentation

1 / 31
About This Presentation
Title:

Momentum Measurement Card

Description:

Title: PowerPoint Author: Shahar Sabag Last modified by: fuji Created Date: 3/21/2003 4:11:27 PM Document presentation format: On-screen Show – PowerPoint PPT presentation

Number of Views:26
Avg rating:3.0/5.0
Slides: 32
Provided by: Shahar3
Category:

less

Transcript and Presenter's Notes

Title: Momentum Measurement Card


1
Momentum Measurement Card
  • Project supervised by
  • Mony Orbach
  • Project performed by Hadas Preminger, Uri Niv

2
Introduction
  • Developing an electronic card capable of
    measuring momentum.
  • Implementation
  • FPGA (Field Programmable Gate-Array)
  • USB to FIFO module.
  • C application.

3
Input Signals
  • Two 2bits signals
  • Each signal consists of two square waves, with
    90 phase difference.
  • Currently these signals are generated by the
    FPGA.
  • Usb connection to PC.

4
Output Signals
  • A file, consists of two dimension array
    position1_ , position2_ .
  • The length of the array 600 measurements (for
    each cart).
  • The position of the cart at the beginning of the
    experiment is set to be 0.
  • /- represents the position in reference to the
    zero point.

5
System Rates
  • Hardware Rates
  • Main clock rate 12MHz
  • Logical Unit to DLP data transfer 32
    bits/sample
  • Send/Receive data over USB up to 1Mbits/sec
  • Sampling Processing rates
  • Number of samples per cart 600 samples
  • Sample resolution 8 counts/mm
  • Time between samples (Tick length) 10ms or 5ms
  • Cart minimum/maximum speed 0-5 meter/sec

6
The Experiments System
  • The experiment consists of
  • Two carts on an air track moving towards each
    other.
  • On each cart there is a "Miller Strip.
  • Two positioning sensors.

7
The Exp. Sensor Output
We get better resolution
8
Block Diagram
USB Communication Unit
Logical Unit
Data
Software
Control
Position Measuring System
2 Optical Encoders
9
Electrical Structure
10
Electrical Structure Logical Unit
  • The FPGA and EPC2
  • The FPGA is a FLEX 10k100ARC by ALTERA which has
    240 pins.
  • The original ALTERA has 189 I/O pins. We
    currently use 51 of them.
  • The FPGA's configuration is done through the EPC2
    configuration device.
  • 3 TI Transceivers.

11
Electrical Structure USB Board
  • Consists of DLP Design USB245m a USB
    transmit/receive adapter, with a T/R FIFO buffer.
  • In the second part, the sensors will be connected
    to this board.

12
Electrical Structure Power and Clock
  • The Logical Unit
  • A 12MHz frequency oscillator.
  • Two power supply units
  • 3.3 Volts (FPGA and EPC2).
  • 5 Volts (TI transceivers).
  • The DLP uses bus power of 5volts (from PC).

13
FPGA Inner Structure
  • General
  • The Logical Unit has two main tasks
  • Sample and calculate the position of the cart.
  • Control the transmission process to the PC.
  • Those two tasks are done by two separate blocks.
    These two blocks are synchronized by specially
    designated signals.

14
FPGA Inner Structure- Top Level
15
Top Level structure
  • Consist of 5 main blocks
  • A block that samples calculates the
    coordination of the carts.
  • A control block that is synchronized with the PC
    and controls the transmission process to the PC.
    This control unit actually controls the DLP
    module.
  • Two Async to Sync units.
  • A data generator.

16
Data_Generator
  • The data_generator replaces the EM1 sensor's
    input signal during the first phase of the
    project.

17
Async to Sync Blocks
  • Convert the asynchronous input signals to
    synchronous signals by sampling the input signal
    using two D-Flip-Flops.

18
Calc_Coord Block
  • Samples the input signal and calculates the
    position of the carts.
  • Creates the signal Counts.
  • Determines the direction of the cart.
  • Counts the number of counts from the beginning.

B A
0 0
1 0
1 1
0 1
R
L
19
Operating_Machine Block
  • The core of the whole system.
  • It is synchronized with the PC application.
  • Controls the USB comm. module.
  • Implemented by a Finite State Machine.
  • The OM blocks main tasks are
  • Receiving the sampling interval from the PC.
  • Sampling the counter of the Calc_Coord block at
    every interval.
  • Sending the data to the PC via the USB module.

20
Operating_Machine Block
21
Read Byte Cycle
22
Operating_Machine Block
23
Write Byte Cycle
24
Application Drivers
  • A Visual C application was written to
  • Establish a real time connection between the
    peripheral hardware and the PC.
  • Supply a basic users interface.
  • We referred to the USB protocol as a Black Box.
  • The communication between the hardware and the
    software is done automatically by the operating
    system of the PC.

25
Application Drivers
  • DLP Design supplies two kinds of interfaces for
    the application software developer.
  • The solution of an Interface that uses a DLL was
    chosen.

26
Application Drivers
  • The drivers architecture for the DLL interface
    are

27
Application Drivers
Comments File description File Name
The file is one of the files included in the DLL package of drivers. This heeder file must be included to the project in order to use the DLP system calls. Ftd2xx.h 1.
In this header file, the declarations of the utility functions, which are used by main.cpp, are made. Function.h 2.
In this header file, the declarations of the main classes of the program are made. Momentum.h 3.
Implementation. Function.cpp 4.
Implementation. Momentum.cpp 5.
Implementation of the "main" program. Main.cpp 6.
28
Applications Flow Chart
29
Applications Flow Chart
30
Applications Classes
  • Based on two important classes Position and DLP.
  • The DLP class manages the communication between
    the application and the USB.
  • The Position class manages and stores the
    information that is received from the hardware.

31
Summary
  • We have learned a lot.
  • Main problems we dealt with
  • Communication.
  • Different ways of debug.
  • For the next part
  • Design a PCB.
  • Reduce costs.
  • Improve reliability.
Write a Comment
User Comments (0)
About PowerShow.com