Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor:...
-
date post
18-Dec-2015 -
Category
Documents
-
view
216 -
download
1
Transcript of Proximity Sensor Board: Final Report Sarat Bhogavalli Nathan Ellefsen Ryan Fig Michel Kinsy Mentor:...
Proximity Sensor Board: Proximity Sensor Board: Final ReportFinal Report
Sarat BhogavalliNathan Ellefsen
Ryan FigMichel 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
» 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
• 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
Applications for BoardApplications for Board
• Automotive control • Industrial control/networking• Motion control• Home appliances• General purpose inverters• Medical monitoring
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.
Sine Table ModificationSine Table Modification
•Modify current buzzing noise
•Make sound more appealing
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
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
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
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;
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
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
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