4
\$\begingroup\$

I'm new to electricity & electronics and am fumbling my way through some Raspberry Pi tutorials. One in particular has caught my interest, which hooks an RPi up to LEDs, pushbuttons and a piezo buzzer.

On page 2 of that PDF, you see the main wiring configuration for the project:

enter image description here

The one thing that caught my attention was that all the LEDs, as well as the pushbutton, all use resistors. The only component that doesn't use a resistor is the buzzer. It seems to just be wired directly to the breadboard/RPi. I'm wondering why?

Is there something special about buzzer that allows them to not draw too much current, and hence prevents them from needing resistors of any kind? Thanks in advance for any clarification!

\$\endgroup\$
1
  • 1
    \$\begingroup\$ Just a caution: you have provided a wiring diagram of your circuit when you should have provided a schematic diagram. In this case the schema is obvious but on anything more complex the wiring diagram doesn't show what the circuit is supposed to do. As a result the wiring diagrams are discouraged, rated as "cartoons" and the questions get down-voted. \$\endgroup\$
    – Transistor
    Commented Sep 8, 2017 at 18:40

2 Answers 2

4
\$\begingroup\$

The description in the article you linked to says:

The buzzer supplied in the EduKit is an 'active' buzzer, which means that it only needs an electric current to make a noise.

Notice that it calls it an active buzzer. An active device generally takes care of the fiddly parts for you, like oscillating and limiting current (within voltage limits which should be in its datasheet).

\$\endgroup\$
3
  • \$\begingroup\$ Ahh, so does that mean LEDs & pushbuttons are "non-active" (passive?) devices then? Thanks @Andrew Morton, and +1 ! \$\endgroup\$
    – smeeb
    Commented Sep 8, 2017 at 18:36
  • \$\begingroup\$ @smeeb Here's an explanation: Differentiation between passive and active components. \$\endgroup\$ Commented Sep 8, 2017 at 18:55
  • 3
    \$\begingroup\$ It is important known the difference between active/passive when talking about generic component (the link provided by @AndrewMortin); with the difference between active and passive buzzers (see electronics.stackexchange.com/questions/224374/…) \$\endgroup\$ Commented Sep 8, 2017 at 19:03
3
\$\begingroup\$

When we connect a light bulb to a voltage source (230 v, 125v, 12v, ...) the light bulb offers a resistance that, applying ohms law, gives the amount of current that will go across the bulb. The bulb is designed to support this amount of current. Thus, everything ok. Same for the buzzer.

The push button is nothing else than a near than infinite resistance (when not pushed) or zero resistance (when pushed). So, when pushed, as it offers near than zero resistance, the amount of current across it could be very high, enough high to destroy to push button or the arduino. For this reason, a resistor is add.

A led connected to a source of more than 2v offers a very small resistance, being the amount of current so big that, before to reach the maximum, the led burns. For this reason, an external resistor is add, that increase the resistence, limiting the amount of current across it and across the led to a value that both can support.

In particular, the led is not a lineal component, so it doesn't follows the ohms law. We can say, in a educative way, that it offers an infinite resistance to the first 2v and none to the remainder voltage. The exact relation between the voltage applied and the current is show in this draw (from here), it depends also of the led color.

enter image description here

The real number are: if you use a 5v source and you want connect a red led (1.9v and 20 mA for an optimal performance), the resistor must be:

R=(5v-1.9v)/0.02A=155 ohms.

For these reason we have always a box with a lot of 220 ohms resistors :-) Hope you enjoy these experiences in electronics.

\$\endgroup\$
7
  • \$\begingroup\$ Why is your white LED having a different curve than the blue one? This should either read "UV" or be left out. \$\endgroup\$
    – Janka
    Commented Sep 8, 2017 at 19:22
  • \$\begingroup\$ @Janka: It considers SiC for blue and GaInN for white. But this subject is far, very far, from the original question. \$\endgroup\$ Commented Sep 8, 2017 at 19:43
  • \$\begingroup\$ Then it should read "UV". \$\endgroup\$
    – Janka
    Commented Sep 8, 2017 at 19:49
  • \$\begingroup\$ I'd just like to note for future readers that LEDs do in fact follow Ohm's law (V = I R), as does everything. It's just that where for a simple resistor, you only have to solve for one variable (e.g. you know V and R and want to know I), but with an LED you only know V (until you look up the corresponding I in the graph, that is). \$\endgroup\$ Commented May 19, 2020 at 22:31
  • \$\begingroup\$ @BartVanHeukelom: not all components follows Ohm's law, even linear ones: capacitors relates dV / I , inductors V/dI, ... (that could be converted to V/I only after a space transform as Fourier or Laplace). LED are memory less (relates V / I ) but non-linear, no Ohms law is applicable. Moreover, LED curve is a construction characteristic, exactly as R is for resistors. \$\endgroup\$ Commented May 19, 2020 at 23:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.