1 of 24

Analog Circuit� (2)

Parmida Amngostar

2 of 24

Objective

To create a simple sound-reactive light display where LEDs light up in response to the volume or beat of ambient sound, like music or voice.

3 of 24

Dancing Light LEDs with Music

What is it?�An analog circuit that makes LEDs flash in response to sound/music volume and rhythm.

How it works:�Microphone picks up audio signal → Signal amplified → LEDs flash based on audio signal amplitude.

4 of 24

Required Components

  • Transistor
  • LEDs
  • Microphone
  • Capacitors
  • Resistor
  • Breadboard
  • Wires

LEDs

Transistor

Breadboard

Wires

Microphone

Capacitor

Resistor

5 of 24

The Purpose of Each Component

Transistor

Transistors are semiconductor devices primarily used for amplifying or switching electronic signals and power. 

6 of 24

  • Transistor

Transistors are fundamental semiconductor devices used for amplification and switching.

  • Op-amp

Op-amps (operational amplifiers) are integrated circuits, constructed mostly out of transistors and resistors. These integrated circuits multiply an input signal to a larger output.

Transistor and Op-amps

7 of 24

Transistors

  • BJT Transistors: A Bipolar Junction Transistor (BJT) is a three-terminal semiconductor device that acts as a switch or an amplifier. It's composed of two p-n junctions, typically a PNP or NPN configuration.

  • FET Transistors: A Field-Effect Transistor (FET) is a type of transistor that controls the flow of current using an electric field, rather than a current, like a Bipolar Junction Transistor (BJT). FETs are known for their high input impedance and fast switching speeds.

8 of 24

How Use Bread Board

Breadboards are composed of three (3) parts:

  1. Horizontal Rows (yellow and green lines)
  2. Vertical Columns
  3. Power (red) /Ground (blue) Rails

The middle divider separates both sides. So, if you wire power and ground to one side of the breadboard, you will also need to power/ground the other side.

9 of 24

Circuit Schematic

  • Transistor: four 2N3904 (NPN)
  • Electret Microphone
  • Capacitors: 0.1uF
  • Resistor: three100Ω, two 10kΩ, one 1MΩ
  • LEDs: three LEDs of different color

10 of 24

Required Systems for Measurement

  • DC Power Supply
  • Alligator clip Cables

11 of 24

Wiring Up Step by Step

Step 1: Place four transistors on the breadboard according to the picture below.

GND

VCC

Emitter

Base

Collector

Amplifier

Switch

12 of 24

Wiring Up Step by Step

Step 2: Place three LEDs on the breadboard for switches

Collector

VCC

VCC

Collector

Collector

Collector

13 of 24

Wiring Up Step by Step

Step 3: Place three 100Ω resistors for switches

Resistors:

All resistors can be connected in either direction.

Place them between GND and the Base of a transistor.

Base

Base

Base

GND

14 of 24

Wiring Up Step by Step

Step 4: 10kΩ and 1MΩ resistors placement for the amplifier

Resistors:

10kΩ: Place between GND and Collector

1MΩ: Place between GND and Base

1MΩ

10kΩ

15 of 24

Wiring Up Step by Step

Step 5: 10kΩ and 0.1uF capacitor placement for the amplifier

Resistors:

10kΩ: Place between VCC and an empty hole

0.1uF: Place between Base and the chosen empty hole

10kΩ

0.1uF

Empty

Hole

16 of 24

Wiring Up Step by Step

Step 6: Connect Wires

Connections:

  1. Base T1 to Base T2
  2. Base T2 to Base T3
  3. Base T3 to Collector T4
  4. Emitter T4 to GND

T1

T2

T3

T4

17 of 24

Wiring Up Step by Step

Step 7: Connect Microphone and Powe wires

Microphone:

Connect the red and black wires according to the picture

Power Wires:

Connect two wires to the GND and VCC pins

18 of 24

Setting Up Power Supply

DC Power Supply

  1. Turn on the device
  2. Choose channel 2 🡪 Set to 5V 🡪 Push “Enter” pin
  3. Connect the “Black” output of channel 2 to GND
  4. Connect the “RED” output of channel 2 to VCC
  5. Push the “On” button for channels 2 & 3

(1)

(2.1)

(3)

(5)

(2.2)

(4)

VCC

GND

19 of 24

Turn On Circuit

20 of 24

Visualize Signal using Oscilloscope

2 Probes

GND

Signal

21 of 24

Setting Up Oscilloscope

  1. Connect two probs to pins 1 and 2
  2. Turn on the Oscilloscope
  3. Turn on both channels (you should be able to see two signal on the monitor (yellow and green)
  4. Turn off the board first and connect the probs to the specific pins to see the signal (next slide)
  5. Use Auto Scale and  Run/Stop button to see the signal

(1)

(2)

(3)

(5)

(5)

22 of 24

Channel 1 Connection

Channel 1 is the original signal:

�1. Conncet the black pin to the GND �2. Connect signal prob to interconnection of CAP and RES

GND

Signal

23 of 24

Channel 2 Connection

Channel 2 is the amplified signal:

�1. Conncet the black pin to the GND �2. Connect signal prob to collector of T4

GND

Signal

24 of 24

Visualize the Signals

  1. Turn on the board 
  2. Start playing a sound
  3. Click on Auto Scale button
  4. Click on the Run/Stop Button

Amplified Signal

Original Signal