November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B....

22
Oct 30, 2022 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey

Transcript of November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B....

Page 1: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

Apr 21, 2023

Timing is Everything

A software approach for a generalized profilometer

Dr. John B. FerrisStephen Chappell

Cameron Rainey

Page 2: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

2 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Motivation and Goals

Motivation:

Systems with integrated sensors can often require very specific processing methods. This can make upgrading and expanding such a system very difficult.

Goal:

To create a system which is able to easily incorporate new sensors with very little hardware or software modification.

Page 3: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

3 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Presentation Outline

The Importance of Timing and Synchronization

Software Timing and Synchronization

Hardware Timing and Synchronization

Laser Profilometer Overview

Page 4: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

4 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

VTPL Laser Profilometers

2006

2008

2011 (Current)

Page 5: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

5 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Parts of a Laser Profilometer

Scanning Lasers

INO LCMS

PSI PPS

Inertial Measurement Unit

Honeywell HG1700

GPS System

NovAtel SPAN System

GPS Antenna

Page 6: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

6 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

How XYZ Data is Generated

In-Vehicle

Base Station

Data Collection Data Processing

Page 7: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

7 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Presentation Outline

The Importance of Timing and Synchronization

Software Timing and Synchronization

Hardware Timing and Synchronization

Laser Profilometer Overview

Page 8: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

8 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Incorrect Surface Measurement

Laser

INS

Synchronized

Laser

INS

Unsynchronized

Consider an example: Vehicle bouncing on flat surface

Constructive Interference

Deconstructive Interference

Correct Surface Measurement

Synchronizing Laser and INS

Page 9: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

9 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Presentation Outline

The Importance of Timing and Synchronization

Software Timing and Synchronization

Hardware Timing and Synchronization

Laser Profilometer Overview

Page 10: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

10 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Common Hardware Timing Issues

Clock Timing Mismatch

Both sensors triggered at time t

Delay between sensors

• As time increases, clock timing mismatch increases while accuracy between each sensor decreases.

t0 t

• Sensor 1 believes 16 clock cycles have passed while Sensor 2 believes only 13 clock cycles have passed.

Page 11: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

11 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Common Hardware Timing Issues

Timing Pulse Latency

Constant latency between sensors

• Latency between sensors is always constant and time invariant

Both sensors are triggered

Pulse #16

Pulse #14

• Constant error when comparing data between multiple sensors

Page 12: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

12 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Common Hardware Timing Issues

Use ONLY one timing signal for all sensors!

How do we trigger each sensor simultaneously?

Method 1: Software Triggering

Method 2: Hardware Triggering

• All sensors must be connect to a common DAQ computer

• Software must be written to simultaneously control each sensor.

• More robust

• Does not need a common DAQ computer and software to operate.

Page 13: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

13 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Hardware Triggering Concerns

Trigger (switch) Bounce

RC low pass filtered

Schmitt Trigger

• Will cause each sensor to trigger multiple times.

• Must be Removed!!

• Removes most of switch bounce.

• Leading edge might not rise fast enough

• Different sensors might still trigger at different times!!

• Clean leading edge signal with high slew rate

Page 14: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

14 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Theory - Hardware

After triggering, different output signals synchronize each piece of equipment

Start recording of INS End recording of INS

Mark 2 (operator ends run)

Mark 1 (operator starts run)

Scanning Laser

Inertial Navigation System

Continuous pulse at user specified rate

Timestamp placed in the INS file

Page 15: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

15 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

In Conclusion

The Importance of Timing and Synchronization

Software Timing and Synchronization

Hardware Timing and Synchronization

Laser Profilometer Overview

Page 16: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

16 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Timing issues (Pulses)

Issues can arise when the length of sensor data is shorter than length of data collection.

Exact time offset of sensor must be determined through testing.

Page 17: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

17 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Timing issues (Internal clock)

Sometimes internal clocks are used for synchronizing

Time differences between clocks can be problematic.

Using time scaling can correct for the difference in internal clocks.

Synchronizing pulses

Page 18: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

18 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

How does it work?

Sensor DataGPS Data

•Location Data•Angular Orientation Data•GPS Time Data

•Measurements collected from sensor•Timing data

•External clock signal•Internal clock

Time Adjusted Sensor Data

•Measurements collected from sensor•Time Data (GPS Time)

Page 19: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

19 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Generalized form of data

Time Adjusted Sensor Data

Generalized Data Form

- X location (IMU-space)

- Y location (IMU-space)

- X location (IMU-space)

- Time (GPS)

- Additional data (future)

Page 20: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

20 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

General Data Processing Overview

GPS Translation and Body Roll Removal

Generalized Sensor Data (IMU space)

Generalized Sensor Data (Global-space)

•Data in IMU-Space with GPS timestamps

•Generalized Sensor then Translated to locate it in GPS space.•Sensor Data is then rotated to remove body roll

•Output is then placed back in the generalized Sensor Data format but now the locations are in Global-space.

Page 21: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

21 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Summary

Hardware:

• Designed to allow for simultaneous triggering of many different types of systems

• Modular, expandable, and robust

Software:

• Processing flow does not need to be modified for new sensors

• Very little new code is needed when system is expanded

Page 22: November 15 Timing is Everything A software approach for a generalized profilometer Dr. John B. Ferris Stephen Chappell Cameron Rainey.

22 Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Dr. John B. FerrisAssociate Professor www.me.vt.edu/VTPL

Thank you!

• Questions and Comments?