21
Proximity Sensor Theremin Khoa Nguyen Walter Hudson Dennis Gilbert G. Hewage Thushara

Proximity Sensor Theremin

  • Upload
    adila

  • View
    78

  • Download
    3

Embed Size (px)

DESCRIPTION

Proximity Sensor Theremin. G. Hewage Thushara. Walter Hudson. Dennis Gilbert. Khoa Nguyen. OUTLINE. Needs and Objectives. Design. Design Implementation. Testing and Results. Team work and Lessons. Group 9: Theremin. Needs and Objectives. Practicum project requirements 1 actuator - PowerPoint PPT Presentation

Citation preview

Page 1: Proximity Sensor Theremin

Proximity Sensor Theremin

Khoa Nguyen

Walter Hudson

Dennis Gilbert

G. Hewage Thushara

Page 2: Proximity Sensor Theremin

Group 9: ThereminSlide 1

OUTLINENeeds and Objectives

Design

Design Implementation

Testing and Results

Team work and Lessons

Page 3: Proximity Sensor Theremin

Group 9: ThereminSlide 2

Needs and Objectives• Practicum project requirements• 1 actuator• 1 sensor• 1 processing module

• Motivation of project• Implement core knowledge into a working project• Actually build something• Experience the steps of project development,

organization, design and testing

And, of course, to be cool and creative enough to get an A …

Page 4: Proximity Sensor Theremin

Group 9: ThereminSlide 3

Needs and Objectives

• Traditional Theremin• Plays music without contact• Controls frequency and volume• Antennas act as sensors

• Proximity Sensor Theremin• Use proximity sensors as alternatives• Use a MCU for digital signal processing of volume

and frequency• Have same functionality with integrated speaker

Moog Theremin

Page 5: Proximity Sensor Theremin

Group 9: ThereminSlide 4

Needs and Objectives• Objective: Functional Prototype• Initial Approach

Volume Sensor

Frequency Sensor

MCU

•ADC Conversion•Output PWM•Indicator LEDs•Record •Playback•Battery power

• Analog voltage

• Analog voltage

User Interface•Switches

Speaker• Create sound

Sensor Module Microprocessor Module Speaker Module

Page 6: Proximity Sensor Theremin

Group 9: ThereminSlide 5

Microprocessor Module

• Accept all voltage levels of sensor inputs

• Operation modes: playback, record, loop

• Indicator LEDs

• On board memory for 10s of recorded music

• Pushbutton interface

Sensor Module

• Measure distance up to 400mm

• Reaction time <50ms

• Accountable for background noise

Speaker Module

• Audible range sound >5m

• Master volume control

• 50mW -1W power without heat sink

• frequency range 300Hz -3.4kHz

Design • Module Requirements Specifications• Test Plan: acceptance, integration, unit

Page 7: Proximity Sensor Theremin

Group 9: ThereminSlide 6

DesignSensor Module

• IR sensors with individual LED and phototransistor

IR LEDPhototransistor

IR LEDPhototransistor

5VDC Supply

VDC output

VDC output

Hand position

Hand position

• Optimize signal range• Background noise is unpredictable under different light

conditions

5VDC Supply

Page 8: Proximity Sensor Theremin

Group 9: ThereminSlide 7

Design

MCUATMega

328P

5VDC Supply

VDC output volume sensorPWM for Frequency

Indicator LEDs•Main power•Record•Playback

Interface Switches•Main power •Record•Reset

ACITVE LOW

5VDC

VDC output freq sensorPWM for Volume

ADC

PWM outputsFrequency

• 16 bit resolution Volume

• 8 bit resolution

8MHz internal RC oscillator

Microprocessor Module

Page 9: Proximity Sensor Theremin

Group 9: ThereminSlide 10

DesignSpeaker Module

Speaker

5VDC Supply

PWM Freq

NMOS

GND

PWM Vol

Volume PWM• Fixed at 31250Hz• Duty cycle varies from 0 -50%

Frequency PWM • Fixed 50% duty cycle• variable frequency approx.

480Hz – 5500Hz

• By anding signal average DC level is controlled- Volume

Page 10: Proximity Sensor Theremin

Group 9: ThereminSlide 8

DesignSoftware Algorithm Play through

read adc from sensors

Is measurement > max value?

yes Mode 1 play through

Measure freq sensor

Update freq PWM timer

Measure volume sensor

Update volume PWM timer

Is measurement < min value?

no

no

yesMode 0 No output

Turn off freq PWM

Turn off volume PWM

Executable on timer overflow interrupt

Return main idle loop

Page 11: Proximity Sensor Theremin

Group 9: ThereminSlide 9

Design Software Algorithm Record Interrupt

REC pushbutton pressed

Is vec index at max?

Incr

emen

t ind

ex

Are vectors fully populate?no

yes

Mask pushbutton interrupt

Mode 3Playback

Update freq PWM timer from freq vec

Executable on timer overflow interrupt

Mode 2 REC / play through

Measure freq sensor

Update freq PWM timer

Store freq sensor measurement

Measure volume sensor

Update volume PWM timer

Store volume sensor measurement

Update vol PWM timer from vol vec

Rese

t ind

ex

no

yes

Resettable on reset pushbutton interrupt

Page 12: Proximity Sensor Theremin

Group 9: ThereminSlide 11

Design Implementation Behavioral Schematic

Page 13: Proximity Sensor Theremin

Group 9: ThereminSlide 12

Design ImplementationPCB Board Wire Diagram

Page 14: Proximity Sensor Theremin

Group 9: ThereminSlide 13

Design ImplementationOff -Board Wire Diagram

Page 15: Proximity Sensor Theremin

Group 9: ThereminSlide 14

Design ImplementationPCB Board Layout

Top Fill Ground Plane Bottom Fill Ground Plane

Page 16: Proximity Sensor Theremin

Group 9: ThereminSlide 15

Design Implementation• Project Box• Locate Frequency and volume Sensors on opposite sides• Speaker placed on top• Create a DJ tool

Page 17: Proximity Sensor Theremin

Group 9: ThereminSlide 16

Testing and ResultsMicroprocessor Module• AVR Studio 5 with Debugger• Prototype type board with LEDs and Pushbuttons• Code blocks were modularized tested/ integrated

Sensor Module• Different sensors were tested for voltage outputs• Ambient level • Optimizing dynamic range of sensors

Speaker Module• Most difficult was creating waveform• Configuration was prototyped in capstone lab• High voltage levels from inductive speaker kick back

Page 18: Proximity Sensor Theremin

Group 9: ThereminSlide 17

Microprocessor Module

• Accept all voltage levels of sensor inputs

• Operation modes: playback, record, loop

• Indicator LEDs

• On board memory for 10s of recorded music

• Pushbutton interface

Sensor Module

• Measure distance up to 400mm

• Reaction time <50ms

• Accountable for background noise

Speaker Module

• Audible range sound >5m

• Master volume control

• 50mW -1W power without heat sink

• frequency range 300Hz -3.4kHz

• Results of Alpha Test

Testing and Results

Page 19: Proximity Sensor Theremin

Group 9: ThereminSlide 18

Team work and LessonsExperience of work division in

• Individual tasks:• Work in parallel: quickly done• Limitations on learning

• Whole team does every step:• Work in series: slower process• Every member knows every process, equal learning

opportunity• Some members do more some do less

Page 20: Proximity Sensor Theremin

Group 9: ThereminSlide 19

Team work and LessonsWhat we got and learned

• Divide and conquer

• No conflict between team members

• Design process is in constant flux waterfall/ spiral method

• “Work in series” is better for learning and preparing for capstone

• “Work in parallel” is better for Capstone project and real working environment

• Achieve the ultimate goal: have fun with the project

Page 21: Proximity Sensor Theremin

Thank you for your attentionQ&A