Top Banner
Proximity Sensor Proximity Sensor Board: Board: Final Report Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters
17

Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

Dec 18, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

Proximity Sensor Board: Proximity Sensor Board: Final ReportFinal Report

Sarat BhogavalliNathan Ellefsen

Ryan FigMichel Kinsy

Mentor: John Winters

Page 2: Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

IntroductionIntroduction

•Board Overview

•Applications for Board

•Original Problem Statement

•Our Analysis of the Problem

•Different Design Approaches & Implementation Phases•E-field Sensor

•Voice Recorder

•Hybrid System Attempt

•Conclusion

•Q & A

Page 3: Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

» 32K to 512K Flash memory» Up to 60 MIPS» DSP and MCU functionality» JTAG real-time debugging» Four 36-bit accumulators» Three 32-bit address buses» Large peripheral set» MCU-style software stack support» Controller-style operating modes

Board Hardware LayoutBoard Hardware Layout

Page 4: Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

• MC56F8323 CPU• MC33794 Electric Field Imaging Device• RESET button• IRQ button• SW1 button• GPIO / SERIAL Port (16 pin)*• TIMER / PWM Port (16 Pin)*• ADC Port (10 Pin)*• JTAG Port (14 pin)• 10 LED’s• Microphone with amplifier• Stereo Audio output with filters & AMP• 3.5mm Stereo jack• Speaker

Demonstration Board FeaturesDemonstration Board Features

Page 5: Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

Applications for BoardApplications for Board

• Automotive control • Industrial control/networking• Motion control• Home appliances• General purpose inverters• Medical monitoring

Page 6: Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

Original Problem StatementOriginal Problem Statement

- E-field• Initial loud clipping sound from speaker• Lack consistency of detecting nothing when no object present

- Microphone• Latencies in recording and lack of quality.

Page 7: Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

Our Analysis of the ProblemOur Analysis of the ProblemBoard Schematics

Page 8: Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

Sine Table ModificationSine Table Modification

•Modify current buzzing noise

•Make sound more appealing

Page 9: Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

““Alert” AnalysisAlert” Analysis

Page 10: Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

Original Sine Wave

-200

0

200

400

600

800

1000

1200

0 50 100 150 200 250 300 350

Time

Fre

qu

en

cy

Sine Table FrequenciesSine Table Frequencies

Page 11: Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

Design Approaches & Implementation Phases Design Approaches & Implementation Phases

E-Field Code

•Modified the PWM Interrupt method

- Checks for the calibrated board and an object in contact.

- if((SineTableStep == 21) && (Calibrate == 0))

If current state is less than 10; gives a note from the sine table

•Modified music note played in each state

- Tailored SineTable to middle C scale (8 notes)

- Adjusted SineTableStep variable for each state

Page 12: Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

New Sine Table FrequenciesNew Sine Table FrequenciesModified Square Wave

0

100

200

300

400

500

600

0 50 100 150 200 250 300 350

Time

Fre

qu

en

cy

Page 13: Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

Microphone CodeMicrophone Code

•Recorded voice onto board and playback•Modified PLL Lock

•Record up to 5 second message

•Press “IRQA” button to record

•LED’s react to voice

•Press “SW1” to playback

• Code // reenable buttonsBTN1_Enable();BTN2_Enable();

// change state to IDLEDemoState = IDLE;

Page 14: Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

Implementation DataImplementation Data

Code Sizes

• E-Field- Sine Table 4 KB

- Recorded Sample 24 KB

- Main file 17 KB

• Microphone- Main file 18 KB

•Bit Stream sizes•E-Field

•11.7 KB

•Microphone•6.8 KB

Page 15: Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

Merging E-Field & Microphone CodeMerging E-Field & Microphone Code

• Maximize functionality of board

• Not fully functional due to limitation of the on-chip RAM

• Combined code & bit stream sizes: - Main file 21 KB- 18.6 KB

Page 16: Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

ConclusionConclusion

•Not able to successfully combine E-Field & Microphone code to maximize functionality

•Implemented an new message into playback table for the E-field “Alert”

•Improved consistency of E-Field proximity detection

•Corrected and optimized the microphone code

Page 17: Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor: John Winters.

Q & AQ & A