← About PHYS 252

Spring 2024 · Final project

SonicGlow — project brief


rxyan2@wm.edu

SonicGlow
PHYS 252 Final Project 2024

Objective

In the SonicGlow project, you design and build a circuit that shows audio volume levels with a row of LEDs. You will work with three audio input sources: a sine wave from a function generator, a microphone, and an MP3 player connected through a 3.5 mm audio jack. The project gives you hands-on practice in audio signal conditioning, LED control and circuit design.

Project requirements

Circuit design and function

LED display. Display the volume level of the audio input signal with at least 12 LEDs, in 4 levels of 3 LEDs each.

  • Level 1: 3 green LEDs that light up at a threshold voltage of 0.5 V.
  • Level 2: 3 yellow LEDs that light up at a threshold voltage of 1.0 V.
  • Level 3: 3 orange LEDs that light up at a threshold voltage of 1.5 V.
  • Level 4: 3 red LEDs that light up at a threshold voltage of 2.0 V.

Input compatibility. The circuit must work with three types of audio input: a sine wave from a function generator, a microphone, and an MP3 player through a 3.5 mm audio jack.

Adjustable sensitivity. Use a potentiometer to adjust the sensitivity, so the circuit handles the different signal levels of the different audio sources.

Circuit components and schematic.

  • Op-amp or comparator IC: the LEDs respond accurately to the audio signal amplitude.
  • Signal amplification: a preamplifier with adjustable gain raises the audio input signal to a level suitable for processing.
  • Signal conditioning: a low-pass filter reduces noise on the audio input, so the LED display is clear and stable.
  • Schematic: a clear, detailed schematic drawn in Multisim, with every component and its value labeled and the connections between them shown.

Building and testing

  • Build the circuit on a breadboard or prototype board, with no short circuits or loose connections.
  • Place and orient every component as the schematic shows.
  • Keep the wiring neat and color coded, with as few wire crossings as possible.
  • Demonstrate the circuit with all three audio input sources.
  • Explain the purpose and operation of each functional block and component.
  • Demonstrate the adjustable sensitivity, and answer at least two questions about the circuit design and how it works.

Bonus points (up to 10 points)

  • Make the LED response logarithmic, so the display is easier to read. Demonstrate the working circuit, present the circuit diagram and explain it.
  • Add a peak hold feature that keeps the highest volume level on display for at least 1 second. Demonstrate the working circuit, show the circuit diagram and explain how it works.

Project phases

Phase 1: circuit design and bill of materials (week of April 22)

Work with a pre-assigned partner to design the SonicGlow circuit and write a bill of materials (BOM). No purchase orders are allowed.

You will have these materials and equipment during the project:

  • Breadboard prototype station
  • Dual-rail power supply (±5\pm 5 V)
  • Function generator with several waveform types
  • Various operational amplifiers and comparator ICs
  • Transistors
  • Various resistors
  • Potentiometers
  • Various capacitors
  • Various LEDs
  • Connecting wires and jumper cables
  • Microphone module
  • 3.5 mm audio jack to two-wire converter

Submit the circuit schematic and the BOM to Gradescope by April 29 at 2:00 p.m.

Phase 2: prototype build and testing (week of April 29)

  • Build the SonicGlow prototype on your own, from your circuit schematic.
  • Test the prototype with the different audio input sources and check that it works.
  • Document the project: take pictures of the circuit, record test data, and write notes on the circuit's performance and your observations.

Rules for Phase 2:

  • Independent work. You must build and test your circuit on your own. No help from other students, the teaching assistants or the professor in troubleshooting the circuit or the equipment.
  • Equipment problems. If a piece of equipment does not work, raise your hand to ask for a replacement.
  • Finishing and examination. All building stops at 5:00 p.m. sharp. When you finish, raise your hand to join the queue for the circuit examination. The examination may run past 5:00 p.m., depending on the number of students, so be ready to wait.
  • Makeup sessions. A makeup session in Phase 2 is allowed only with an official accommodation from the Dean of Students. Tell Professor Yang about the accommodation before April 25 and work with the professor to schedule another time before April 29.

Phase 3: project report (due May 6 at 8:00 p.m.)

  • Write a full report on your SonicGlow project. It must be at least 2.5 pages and at most 3 pages. Pages beyond 3 will not be graded, and no appendices are allowed. Use an 11-point font, single-spaced text and 4-point paragraph spacing.
  • Cover the design process, component selection, circuit schematic, testing method, results, problems and possible improvements.
  • Submit the report to Gradescope by May 6 at 8:00 p.m. (during the exam period). Late submissions are not accepted.

← Past final projects