Sound Reactive LED Circuit Using LM358 Op-Amp and Mic

CircuitGuru
12 Aug 202008:33

Summary

TLDRThis video tutorial guides viewers on constructing a sound-reactive LED circuit. It explains the theory behind the circuit, detailing the function of each component including voltage dividers, an op-amp, feedback resistor, diode, and capacitor. The video also covers the step-by-step assembly process, emphasizing the importance of a condenser microphone to detect sound and trigger the LED. The goal is to create a circuit that lights up the LED in response to sound.

Takeaways

  • 🎵 The video demonstrates how to create a sound-reactive LED circuit.
  • 📚 It explains the theory behind the circuit and the purpose of each component.
  • 🔊 The LED turns on in response to sound, as shown by the presenter speaking.
  • 👍 The video encourages viewers to like and subscribe for more content.
  • ⚡ Voltage dividers are used extensively in the circuit to regulate voltage levels.
  • 🔗 A voltage divider is created by two resistors in series, explained with an example.
  • 🔄 The script references another video on Ohm's law for further understanding of series and parallel circuits.
  • 🔌 The first step in building the circuit involves connecting specific pins to the positive and negative rails.
  • 🔄 A feedback resistor is used for negative feedback in the op-amp circuit.
  • 💡 A diode is used to drop voltage when there is no sound, ensuring the LED turns off.
  • ⏲️ A capacitor is included to filter out noise and prevent the op-amp from getting confused by extraneous signals.
  • 🔋 The circuit is designed to work best with a 5-volt battery supply.
  • 🎤 A condenser microphone is used to detect sound, changing its capacitance based on the sound it receives.
  • 🔧 The final circuit allows sound signals to be processed and the LED to react accordingly.

Q & A

  • What is the main purpose of the video?

    -The main purpose of the video is to demonstrate how to make a sound-reactive LED and explain the theory behind its operation.

  • What is a voltage divider and how is it used in the circuit?

    -A voltage divider is a circuit with two resistors in series that creates a smaller voltage at its node by combining positive and negative voltages. It is used in the circuit to drop the voltage at specific points.

  • Why are there many voltage dividers in the circuit?

    -There are many voltage dividers in the circuit because they help to regulate and adjust the voltage levels where needed, which is essential for the proper functioning of the circuit.

  • What is the role of the operational amplifier (op-amp) in the circuit?

    -The operational amplifier (op-amp) takes two input voltages (inverting and non-inverting) and produces an output. It is used to amplify the difference between the two input voltages.

  • How is the voltage divider formed with resistors?

    -The voltage divider is formed by connecting a 10 kilo ohm resistor between pin 3 (non-inverting input) and the negative rail, and another 10 kilo ohm resistor from pin 3 to the positive rail.

  • What is the purpose of the feedback resistor in the circuit?

    -The feedback resistor, which is a high resistance resistor, provides negative feedback to the op-amp. It is connected between the inverting input and the output to stabilize the circuit.

  • Why is a diode used in the circuit?

    -A diode is used to drop the voltage when there is no sound, ensuring the LED turns off. The diode's characteristic of dropping voltage when current runs through it is utilized here.

  • What is the function of the capacitor in the circuit?

    -The capacitor, specifically a 0.47 microfarad capacitor, is used to filter out excess noise from the signal, preventing it from confusing the op-amp.

  • How is the LED connected in the circuit?

    -The LED's negative (cathode) is connected to the diode, and its positive (anode) is connected to the positive rail through a 270 ohm resistor.

  • What is a condenser microphone and how does it work?

    -A condenser microphone changes its capacitance based on the sound it receives. When it receives sound, the capacitance increases and this change is sensed by the circuit.

  • How does the sound signal travel through the circuit?

    -Sound signals enter through the condenser microphone, get regulated by the voltage divider, filtered by the capacitor, and then travel through the feedback resistor to the op-amp, where it is compared and ultimately controls the LED's state.

Outlines

00:00

💡 Building a Sound-Reactive LED Circuit

This paragraph introduces the project of creating a sound-reactive LED using an op-amp circuit. The host explains the importance of each component and how they work together. Voltage dividers are discussed, which are essential for regulating voltage levels in the circuit. The role of resistors, specifically 10 kilo ohm resistors, in creating these voltage dividers is highlighted. The operational amplifier (op-amp) is briefly reviewed, explaining its function of taking two input voltages and producing an output. The first step in the circuit assembly involves connecting pin 8 to the positive rail and pin 4 to the negative rail. A voltage divider is then formed with two 10 kilo ohm resistors at pin 3, which is the non-inverting input, to lower the voltage. The necessity for a feedback resistor, which is a high resistance resistor, is explained, and its placement between the inverting input and the output is detailed.

05:00

🔊 Completing the Sound-Reactive LED Circuit

The second paragraph continues the explanation of the sound-reactive LED circuit. It discusses the use of a diode to drop voltage when there is no sound, allowing the LED to turn off. The placement of the diode in relation to the op-amp output is described. A 0.47 microfarad capacitor is introduced to filter out excess noise and prevent the op-amp from getting confused by unwanted signals. The assembly of the circuit is detailed, including the connection of an LED to the diode and the positive rail through a 270 ohm resistor. The importance of using a 5-volt battery supply is mentioned, as a 9-volt battery may not provide the necessary sound sensitivity. The function of a condenser microphone, which changes its capacitance based on the sound it receives, is explained. The final steps of connecting the microphone to the circuit and the flow of sound signals through the circuit are outlined, concluding with the complete setup of the M358 op-amp circuit.

Mindmap

Keywords

💡Sound-Reactive LED

A sound-reactive LED is a type of LED light that changes its state (typically turns on or off) in response to sound. In the video, the LED turns on as the presenter talks, demonstrating the sound reactivity. This is the central project of the video, where the presenter explains how to create such a device.

💡Voltage Divider

A voltage divider is a passive linear circuit that produces an output voltage (Vout) proportional to the input voltage (Vin). In the script, voltage dividers are used to drop the voltage at certain points in the circuit, such as at the non-inverting input of the op-amp. They are essential for regulating the voltage levels that various components in the circuit receive.

💡Op-Amp

An operational amplifier (op-amp) is a DC-coupled high-gain electronic voltage amplifier with a differential input and, usually, a single-ended output. In the video, the LM358 op-amp is used to process the sound signal and control the LED's state. The op-amp takes two input voltages (inverting and non-inverting) and outputs a signal that is used to drive the LED.

💡Feedback Resistor

A feedback resistor is used in an op-amp circuit to provide negative feedback, which stabilizes the amplifier's operation. In the video, a one mega ohm resistor is used as a feedback resistor between the inverting input and the output of the op-amp. This helps to control the gain of the amplifier and ensures that the LED responds appropriately to the sound signal.

💡Diode

A diode is a two-terminal electronic component that allows current to pass predominantly in one direction. In the script, a diode is used to drop the voltage when there is no sound, which helps to turn off the LED. The diode's voltage drop特性 is utilized to ensure that the LED only lights up in response to sound.

💡Condenser Microphone

A condenser microphone is a type of microphone that uses a capacitor as its transducing element. In the video, a condenser microphone is used to detect sound. It changes its capacitance based on the sound it receives, which is then sensed by the circuit to control the LED.

💡Resistor

A resistor is a passive two-terminal electrical component that implements electrical resistance as a circuit element. In the video, 10 kilo ohm resistors are used to form voltage dividers, while a 270 ohm resistor is used to connect the LED to the positive rail, limiting the current through the LED.

💡Capacitor

A capacitor is a passive two-terminal electrical component that stores electrical energy temporarily in an electric field. In the video, a 0.47 microfarad capacitor is used to filter out excess noise from the op-amp circuit, ensuring that the LED only responds to the intended sound signals.

💡Ohm's Law

Ohm's Law states that the current through a conductor between two points is directly proportional to the voltage across the two points. The video mentions Ohm's Law in the context of explaining series and parallel circuits, which is foundational knowledge for understanding how voltage dividers work in the circuit.

💡Series Circuit

A series circuit is an electrical circuit configuration where the components are connected end-to-end so that there is only one path for the current to flow. In the video, resistors are connected in series to form voltage dividers, which is a common practice in electronic circuit design to control voltage levels.

💡Voltage Regulation

Voltage regulation is the process of maintaining a nearly constant voltage level despite changes in load or input voltage. In the video, voltage regulation is achieved through the use of voltage dividers and the op-amp, ensuring that the LED receives a stable voltage that can respond dynamically to sound signals.

Highlights

Introduction to creating a sound-reactive LED

Explanation of the theory behind the sound-reactive LED

Demonstration of LED turning on with sound

Importance of voltage dividers in the circuit

Detailed explanation of how a voltage divider works

Purpose of multiple voltage dividers in the circuit

Brief review of the operational amplifier (op-amp)

Step-by-step guide to connect the op-amp pins

Formation of a voltage divider with 10 kilo ohm resistors

Role of the feedback resistor in the circuit

Use of a one mega ohm resistor for feedback

Explanation of how a diode drops voltage in the circuit

Placement of the diode for optimal voltage drop

Necessity of a capacitor to filter out noise

Use of a 0.47 microfarad capacitor for noise filtering

Connecting the LED to the circuit

Explanation of why a 270 ohm resistor is used for the LED

Optimal voltage for the circuit operation

Function of a condenser microphone in the circuit

Connection of the condenser microphone to the circuit

Final assembly and completion of the op-amp circuit

Detailed explanation of how the circuit operates with sound

Transcripts

play00:01

[Music]

play00:05

[Laughter]

play00:07

[Music]

play00:11

hello everyone

play00:13

in this video we will make a sound

play00:15

reactive led

play00:17

we will learn how it works the theory

play00:19

behind it

play00:20

and why each component is there so as

play00:23

you can see

play00:24

as i'm talking the led is turning on

play00:27

so i hope you enjoy this video and if

play00:29

you do please leave a thumbs up and

play00:31

subscribe to my channel

play00:32

so as you may have noticed in this

play00:34

circuit diagram

play00:36

there are a lot of voltage dividers

play00:40

so for example this right here is a

play00:42

voltage divider

play00:43

and this right here is a voltage divider

play00:45

a voltage divider

play00:46

is where there are two resistors in

play00:48

series

play00:49

just like this and if you don't know

play00:52

what series in parallel is

play00:53

you can check out my video on ohm's law

play00:56

in the description

play00:58

so we have here the 10 kilo ohm resistor

play01:01

is like this

play01:02

it takes positive voltage and negative

play01:04

voltage

play01:05

it brings them together like this and

play01:08

then it stops at the node right here

play01:10

and an output is fed off so basically

play01:14

it takes a regulated voltage combines

play01:17

the positive and negative together

play01:19

and then it creates a smaller voltage at

play01:22

its node right there

play01:24

there are a lot of these in the circuit

play01:25

because sometimes

play01:27

you don't want a certain amount of

play01:28

voltage and you want it to drop

play01:30

increase or decrease so that is why in a

play01:33

lot of circuits that you need to use

play01:34

these voltage dividers

play01:37

a quick review on the op-amp

play01:40

is it's an operational amplifier it

play01:42

takes two input voltages and inverting

play01:45

and non-inverting

play01:46

and splits out an output so guys our

play01:49

first step is to connect

play01:50

pin 8 to the positive rail and pin 4 to

play01:53

the negative rail

play01:55

after that we want to form a voltage

play01:57

divider with two 10 kilo ohm resistors

play02:00

so right here at pin 3 or the

play02:03

non-inverting

play02:04

input you want to create a voltage

play02:05

divider because we want to drop down the

play02:07

voltage right there

play02:09

so we take a 10 kilo ohm resistor

play02:13

and we put it on pin 3 we put that to

play02:17

the negative rail

play02:18

and put the other one to the positive

play02:19

rail just like this

play02:26

and then pin 8 to the positive row

play02:38

so next after the voltage divider our

play02:41

circuit needs a feedback resistor

play02:44

so what a feedback resistor is it's a

play02:48

high resistance resistor and it goes on

play02:51

one of the inputs and one of the outputs

play02:53

it acts as negative feedback for this

play02:56

optic

play02:58

so we're going to take a one mega ohm

play03:00

resistor

play03:01

and place it between the inverting input

play03:04

and the output

play03:05

so like this we're going to place it on

play03:07

pin two

play03:09

which is the inverting input and we're

play03:11

going to place it

play03:12

also on pin one

play03:18

we for our led to be sound reactive

play03:21

and turn off when there is no um

play03:25

sound coming we need something to drop

play03:28

the voltage

play03:29

and a diode is a really good candidate

play03:32

to do that

play03:33

this is because if current runs through

play03:35

a diode

play03:36

what happens is the voltage drops a lot

play03:40

because of its characteristics as you

play03:43

can see in the video

play03:44

in the description about diodes so we're

play03:47

going to place this cathode

play03:49

facing the output so the cathode

play03:52

is this little line right there so we're

play03:56

going to place it

play03:57

like this so we place this cathode

play04:00

on the output and its anode out in the

play04:03

distance

play04:04

so you can connect it to an led

play04:09

so there because this lm350 op-amp once

play04:13

you receive voltage divider and all the

play04:15

signals coming at it

play04:17

it releases so much extra voltage that

play04:19

we do not need

play04:21

so this diode drops it as heat

play04:25

our next thing is that we need capacitor

play04:28

to filter out

play04:29

excess noise that are coming from here

play04:31

so it doesn't get confused this little

play04:33

op-amp

play04:34

so we're going to use a 0.47 microfarad

play04:37

capacitor

play04:38

to do this so we're gonna take a wire

play04:43

and place it on the inverting input or

play04:45

pin two

play04:47

just like this then we're gonna take the

play04:50

capacitor

play04:51

and place one of its pins on that

play04:56

then we're going to form a voltage

play04:57

divider using 10k resistors again

play05:00

as we take the 10 kilo ohm resistor and

play05:03

place the other side of the capacitor

play05:05

this one one to the negative

play05:08

and one to the positive just like this

play05:31

so if you may have noticed that i um

play05:33

took out the 10 kilometer sister for a

play05:35

minute

play05:36

and i put it back right there so our

play05:38

next step

play05:39

is to take an led in place it's negative

play05:42

or it's cathode on the diode

play05:46

and take its anode or its positive

play05:50

and connect it to the positive rail and

play05:53

use a resistor to do this

play05:55

so you can use a 270 ohm resistor

play05:59

because this circuit works best on 5

play06:02

volts of battery

play06:04

because if you use a 9-volt battery

play06:06

supply

play06:07

sometimes it doesn't pick up that much

play06:10

sound

play06:11

and it um the led stays on because of so

play06:14

much

play06:15

voltage and there's not enough to get

play06:17

dropped by this

play06:18

diode denser microphone if you don't

play06:21

know

play06:22

a condenser microphone changes its

play06:23

capacitance based on the sound it

play06:25

receives

play06:26

so for example if it receives a lot of

play06:29

sound the capacitance

play06:30

increases and gets sensed by the circuit

play06:33

if there's no sound

play06:34

then it won't get sensed by the circuit

play06:36

and then

play06:37

the led will turn off it's a wire

play06:40

connecting

play06:40

to the negative rail so we connect the

play06:43

condenser mics negative over there

play06:46

and it's positive to the side of the

play06:49

capacitor where the voltage divider was

play06:52

so right over here now the sound and the

play06:55

signals can travel all around the

play06:57

circuit

play06:58

so now our m358 op-amp circuit is

play07:02

complete

play07:03

so how the circuit works is um sound

play07:06

gets traveled into this condenser mic

play07:09

the condenser rack is getting powered

play07:11

right here

play07:12

then the signal travels all the way over

play07:15

here and gets

play07:16

regulated and the voltage just gets

play07:19

smaller and

play07:20

gets better because of this voltage

play07:23

divider right here

play07:24

after that it travels out the node over

play07:26

here you can follow this arrow

play07:29

and then it travels to the 0.47

play07:31

microfarad capacitor to get filtered

play07:34

then right here it comes down here

play07:36

signal or the electrons or

play07:38

current and let me just write that down

play07:41

i stands for current by the way so then

play07:44

it goes right here and this acts as a

play07:48

feedback resistor for this op-amp

play07:50

so then it goes through the feedback and

play07:52

out in the output

play07:53

and this inverting um non-inverting

play07:56

input actually

play07:58

basically acts as just a another output

play08:01

so the comparators can have two inputs

play08:04

because it doesn't make sense if you

play08:05

have one input because then you just

play08:07

have that as an output

play08:08

so this right here acts as another input

play08:11

then it goes right here

play08:12

and this diode drops the voltage by

play08:14

about three volts

play08:16

and then it goes to this led to get

play08:24

power

play08:32

you

Rate This

5.0 / 5 (0 votes)

相关标签
DIY ElectronicsSound ReactiveLED CircuitVoltage DividerOp-AmpFeedback ResistorCondenser MicDIY TutorialCircuit TheoryNoise FilteringDIY Project
您是否需要英文摘要?