25
Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au Massachusetts Institute of Technology April 2016

Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

  • Upload
    lediep

  • View
    235

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

Automatic Bedtime Audio Volume Adjuster

Brandon Avila and Christopher AuMassachusetts Institute of Technology

April 2016

Page 2: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

Introduction- Goal: Improve audio experience before sleep- Audio compressor:

- Decreases sudden loud sounds- Gradually decreases volume over time

- Relaxing imagery: responsive LEDs

1

Page 3: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

High Level Block Diagram2

Page 4: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

Power- 12V 4.16A DC power supply

- 120V AC wall outlet power

- Common power rail throughout project

3

Page 5: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

Line Level- Standard audio-out line level used for each

module- Low impedance load expected from

speaker/headphone- Intermediate steps require voltage

amplification

3

Page 6: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

Audio Compression- Reduce volume spikes with voltage controlled amplifier

(VCA)- Possible strategies (VCA):

1. Control resistor value with a voltage (MOSFET, JFET) 2. Multiply signal voltage with gain voltage

Voltage

Time Time

Voltage

4

Page 7: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

Possible Voltage Controlled Amplifier Implementations

● Build new circuit● Study past VCA with

linear response

Source: [1] Electronotes by Bernie Hutchenshttp://electronotes.netfirms.com/

5

Page 8: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

Possible Voltage Multiplier Solution

● Multiply to input - a gain function that depends on input signal

■ Use comparators to see if voltage breaches certain loud voltage

■ Attenuate signal if loud voltage breached

6

Page 9: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

Gain function ~ 0 to significantly decreasefinal output voltage

Gain function ~1 to keep volume closer to original

Illustrative Example7

Page 10: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

Gradual Volume Reduction- Timing circuit using a 555 timer and RC - Time decay constant 20-30 seconds- Gradually decrease the signal over time

8

Page 11: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

Frequency Visualization- Band-pass filters supply a DC voltage to

different colors for different frequencies

9

BPF20-200Hz

BPF200-2000Hz

BPF2000-20000Hz

Delay

Delay

Delay

Delay ...

Delay ...

Delay ...

Page 12: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

Delay Line Element- Sample and hold DC signal

10

Page 13: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

- Sample and hold DC signal

- Takes smooth input

- Produces periodically stepping output

?

10

Delay Line Element

Page 14: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

- Sample and hold DC signal

- Takes smooth input

- Produces periodically stepping output

- Stores charge in a capacitor

10

Delay Line Element

Page 15: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

- Sample and hold DC signal

- Takes smooth input

- Produces periodically stepping output

- Stores charge in a capacitor

10

Delay Line Element

Page 16: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

- Sample and hold DC signal

- Takes smooth input

- Produces periodically stepping output

- Stores charge in a capacitor

- Allows current through periodically

10

Delay Line Element

Page 17: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

- Sample and hold DC signal

- Takes smooth input

- Produces periodically stepping output

- Stores charge in a capacitor

- Allows current through periodically

10

Delay Line Element

Page 18: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

- Sample and hold DC signal

- Takes smooth input

- Produces periodically stepping output

- Stores charge in a capacitor

- Allows current through periodically

10

Delay Line Element

Page 19: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

10

Delay Line Element

Page 20: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

Alternating clock signals

10

Delay Line Element

Page 21: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

Timeline Weeks 1-2- Week 1 (Apr 15)

- DC Voltages produced by LED BPFs- Spikes in audio successfully compressed

- Week 2 (Apr 22)

- Audio timer used to decrease signal over time- LEDs lit in response to audio

Page 22: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

- Week 3 (Apr 29)- Spike decrease / gradual volume decrease- Audio and visual components combined- Debugging

- Week 4 (May 3)- Full written documentation / presentation

Timeline Weeks 3-4

Page 23: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

Conclusion- Project changes audio and visual stimuli

before bedtime- Potential Difficulties:

- Decrease loud volume spikes to appropriate levels

- Return to line level specifications reliably

11

Page 24: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

Additional Goals- Adjustable volume decay- Switch to immediately turn off sound- Different mode to not decrease volume until

halfway time- Sound equalizer to change bass levels- Create a net or other geometry of LED lines

12

Page 25: Automatic Bedtime Audio Volume Adjuster - MITweb.mit.edu/6.101/www/s2016/projects/auc_Project_Design... · Automatic Bedtime Audio Volume Adjuster Brandon Avila and Christopher Au

References

Source: [1] Electronotes by Bernie Hutchenshttp://electronotes.netfirms.com/

Source: [2] http://users.ece.gatech.edu/~lanterma/sdiy/datasheets/transistors/vcr2n4n7n.pdf

Source:[3]http://www.analog-innovations.com/SED/MC1594-DataSheet.pdf