Actuators & Control · Study deck

Visual and Audio Actuators: Displays and Buzzers

An OLED is a screen made of tiny lights.

Motor Max is your guide for this deck.

visualaudio
Motor Max, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain: If a small OLED draws 20 mA from a 3.3 V rail while lit, the display load is 3.3 V x 0.020 A = 0.066 W.
  • Explain: The first pixel reads its color instruction, then passes the rest of the message down the chain -- like a game of telephone, but it actually works perfectly!".
  • Explain: Applying rated power starts its internal oscillator and fixed tone; firmware controls timing and pattern, while a passive buzzer is required when pitch itself must carry information.
  • Explain: That separation keeps urgent states noticeable while reducing unnecessary sound.
iotclass.org

Major section

Musical Note Frequency Reference

Active buzzers have built-in oscillators, so the controller supplies an on/off command rather than an audio-frequency waveform.

  • Applying rated power starts its internal oscillator and fixed tone; firmware controls timing and pattern, while a passive buzzer is required when pitch itself must carry information.
  • In the Two round piezoelectric sounder discs lie side by side below a matchstick for scale. Their metallic central electrodes and outer rings are visible; neither disc has an attached wire lead or enclosing buzzer housing in this photo diagram, trace the two leads into the enclosed sounder and note that no external resonant drive circuit is visible.
Two round piezoelectric sounder discs lie side by side below a matchstick for scale. Their metallic central electrodes and outer rings are visible; neither disc has an attached wire lead or enclosing buzzer housing in this photo.
Two round piezoelectric sounder discs lie side by side below a matchstick for scale. Their metallic central electrodes and outer rings are visible; neither disc has an attached wire lead or enclosing buzzer housing in this photo.
iotclass.org

Major section

Bedside Feedback Actuators

Scenario: A team is designing bedside monitors for a clinical ward.

  • Each monitor tracks several patient readings and must draw staff attention to urgent conditions while avoiding constant, low-value beeping.
  • A local high-visibility LED or strobe is simpler to verify.
  • That separation keeps urgent states noticeable while reducing unnecessary sound.
A small blue OLED module wired to an Arduino Nano and displaying text
A small blue OLED module wired to an Arduino Nano and displaying text
iotclass.org

Major section

For Kids: Meet the Actuator Crew!

"Time for the Output Show!" announced the LED, glowing all the colors of the rainbow. "We're the actuators that you can SEE and HEAR!".

  • She started dim, then slowly grew brighter and brighter. "Max controls my brightness with PWM -- the same trick he uses for motors!
  • Even though there are 30 of us, Max only needs ONE wire to talk to all of us.
  • I can even play songs!".
iotclass.org

Major section

For Kids: Meet the Actuator Crew! (continued)

The first pixel reads its color instruction, then passes the rest of the message down the chain -- like a game of telephone, but it actually works perfectly!".

  • "And I'm the screen!" said OLED Olivia, displaying a smiley face. "I can show Sammy's temperature readings, draw pictures, and even make progress bars.
  • I use tiny organic light-emitting dots -- each pixel makes its own light, so I'm super bright and clear!".
  • the battery whispered, "Just remember, all those pretty lights use MY energy.
iotclass.org

Major section

Deep Dive: Feedback Loads, Perception, and Timed LEDs

The panel encodes several user-facing states, while the companion circuit exposes the GPIO, resistor, LED, and return path that make each indication electrically safe.

  • The panel decides what a person can distinguish; the resistor and return path decide whether the controller can drive the chosen LED safely.
  • Displays need the same budget discipline.
  • That pairing connects perception, timing, and electrical load rather than treating feedback as decoration.

Why it matters

If the value changes only occasionally, e-paper is often a better human interface because it can keep an image visible between refreshes without continuous display power.

Status indicator LED array with a current-limited GPIO LED circuit
Status indicator LED array with a current-limited GPIO LED circuit
iotclass.org

Major section

Deep Dive: Feedback Loads, Perception, and Timed LEDs (continued)

LEDs, displays, and buzzers are simple only at the user interface.

  • Electrically, each one still has a load path and a control signal.
  • Choosing 150 ohms gives I = 1.3 / 150 = 0.0087 A, or 8.7 mA.
  • The design decision is not only electrical.
iotclass.org

Major section

Deep Dive: Feedback Loads, Perception, and Timed LEDs (continued)

An active buzzer has an internal oscillator and produces one fixed tone when powered.

  • The resistor dissipates 1.3 V x 0.0087 A = 0.011 W, so a small signal resistor has margin.
  • Feedback actuators differ in noticeability, power, and information density.
  • Buzzers split into two kinds that are often confused.
iotclass.org

Major section

Deep Dive: Feedback Loads, Perception, and Timed LEDs (continued)

At 25% PWM duty cycle, the average LED current is about 8.7 mA x 0.25 = 2.2 mA.

  • A single green LED is excellent for a healthy status, but poor for a fault that must be noticed across a room.
  • A buzzer interrupts attention, but repeated audio becomes annoying and may be masked by the environment.
  • On a small battery device, that can dominate the energy budget.
iotclass.org

Major section

Deep Dive: Feedback Loads, Perception, and Timed LEDs (continued)

Strong products combine channels: quiet visual status for normal operation, stronger visual patterns for warnings, and audio only when the state needs immediate attention.

  • If a small OLED draws 20 mA from a 3.3 V rail while lit, the display load is 3.3 V x 0.020 A = 0.066 W.
  • Left on for 24 hours, that is 0.066 W x 24 h = 1.58 Wh before regulator losses.
  • A passive piezo or magnetic buzzer needs the controller to supply an audio-frequency waveform.
  • The controller changes pitch by changing the period, not by changing the supply voltage.
iotclass.org

Major section

Deep Dive: Feedback Loads, Perception, and Timed LEDs (continued)

A 2 kHz passive-buzzer alert has a period of 1 / 2000 = 0.0005 s, or 500 microseconds; a 50% square wave is high for about 250 microseconds and low for about 250 microseconds.

  • A lower 500 Hz warning tone has a period of 1 / 500 = 0.002 s, or 2 ms.
  • Each pixel contains a driver chip, reads the first 24 bits as its green, red, and blue values, and forwards the rest downstream.
  • A 30-pixel strip therefore needs 30 pixels x 24 bits = 720 bits, or 720 x 1.25 = 900 microseconds, plus the reset interval.
iotclass.org

Major section

Deep Dive: Feedback Loads, Perception, and Timed LEDs (continued)

An interrupt that pauses the GPIO waveform halfway through a bit can corrupt the data seen by every later pixel.

  • That timing issue is separate from the power issue.
  • The same 30-pixel strip at full white can draw 30 x 60 mA = 1.8 A, which is 5 V x 1.8 A = 9 W.
  • A microcontroller pin can generate the data waveform, but the 5 V supply and ground return must carry the power.
iotclass.org

Major section

4. Active Buzzer and Passive Buzzer Confusion

Active buzzers contain an internal oscillator and produce a fixed tone when voltage is applied (just connect VCC and GND).

  • Passive buzzers require an external oscillating signal.
  • They look identical externally and share the same package styles.
  • Testing with a DC supply: active buzzers beep immediately; passive buzzers are silent.
iotclass.org

Deck summary

Key takeaways

Active buzzers have built-in oscillators, so the controller supplies an on/off command rather than an audio-frequency waveform.

  • Scenario: A team is designing bedside monitors for a clinical ward.
  • "Time for the Output Show!" announced the LED, glowing all the colors of the rainbow. "We're the actuators that you can SEE and HEAR!".
  • The first pixel reads its color instruction, then passes the rest of the message down the chain -- like a game of telephone, but it actually works perfectly!".
  • LEDs, displays, and buzzers are simple only at the user interface.
iotclass.org

Retrieval practice

Recall check 1 of 5

Motor Max says: answer from memory, then check your reasoning.

Q1What is the key difference between an active buzzer and a passive buzzer?

AAn active buzzer needs PWM, while a passive buzzer only needs DC power
BAn active buzzer makes its own tone; a passive buzzer needs a frequency signal
CAn active buzzer plays melodies; a passive buzzer is fixed to one pitch
DAn active buzzer is always lower power; a passive buzzer always uses more current
Show answer

Answer: B An active buzzer contains an oscillator and produces a fixed tone when powered.

iotclass.org

Retrieval practice

Recall check 2 of 5

Motor Max says: answer from memory, then check your reasoning.

Q2For a battery-powered IoT device that needs to display sensor readings and rarely updates, which display type is most appropriate?

ATFT LCD, because fast graphics are the main requirement
B16x2 LCD, because character modules are always the lowest-power choice
CE-paper, because it holds an image without display power between rare updates
DOLED display, because every pixel emits light for high contrast
Show answer

Answer: C E-paper retains the displayed image without continuous display power, so it is a strong fit for values that update rarely.

iotclass.org

Retrieval practice

Recall check 3 of 5

Motor Max says: answer from memory, then check your reasoning.

Q3An IoT factory safety system needs to alert workers of a chemical leak. The alert must be perceivable in a noisy 95 dB environment where workers wear hearing protection. Which combination of actuators is most effective?

AA loud buzzer alone, chosen to sit slightly above the measured noise level
BSend a phone notification, because workers will feel or hear their devices during the alert.
CHigh-intensity strobes paired with a low-frequency siren pattern
DA small status LED mounted only on the nearest IoT gateway
Show answer

Answer: C Critical alerts in noisy industrial spaces should not depend on one sensory channel.

iotclass.org

Retrieval practice

Recall check 4 of 5

Motor Max says: answer from memory, then check your reasoning.

Q4Place each output actuator where it lives so you can choose a cue that reaches the user without overloading the wrong sense.

ALED (Status Indicator)
BLCD/OLED Display
CRGB LED Strip
DBuzzer (Alert)
ESpeaker (Audio)
FHaptic Motor (Vibration)
Show answer

Answer: A Separate glanceable visual cues, audible cues, and private tactile cues so you can match urgency, information density, and user context to the right output channel.

iotclass.org

Retrieval practice

Recall check 4 of 5

Motor Max says: answer from memory, then check your reasoning.

Q5Complete the code to play a tone on a piezo buzzer:

Abuzzer = PWM(Pin(4))
Bbuzzer = Pin(4, Pin.OUT)
Cbuzzer = ADC(Pin(4))
Dbuzzer = Pin(4, Pin.IN)
Show answer

Answer: A A piezo buzzer can use PWM: freq() sets tone pitch and duty(512) gives a 50% duty waveform.

iotclass.org

Retrieval practice

Recall check 5 of 5

Motor Max says: answer from memory, then check your reasoning.

Q6A small device may add an OLED. Which check belongs in the design review?

AUse the OLED datasheet's nominal power and skip board-level frame-buffer measurement.
BCheck shared-bus wiring as sufficient evidence for the display's refresh behavior.
CCheck frame-buffer memory, lit-pixel power, and bus refresh for the chosen OLED.
DCheck enclosure fit and treat display power as covered by the prior screen design.
Show answer

Answer: C Memory, power, and interface speed all constrain the display choice.

iotclass.org

Print reference

Answers 1 of 2

Answer key.

  1. B · An active buzzer contains an oscillator and produces a fixed tone when powered.
  2. C · E-paper retains the displayed image without continuous display power, so it is a strong fit for values that update rarely.
  3. C · Critical alerts in noisy industrial spaces should not depend on one sensory channel.
  4. A · Separate glanceable visual cues, audible cues, and private tactile cues so you can match urgency, information density, and user context to the right output channel.
iotclass.org

Print reference

Answers 2 of 2

Answer key.

  1. A · A piezo buzzer can use PWM: freq() sets tone pitch and duty(512) gives a 50% duty waveform.
  2. C · Memory, power, and interface speed all constrain the display choice.
iotclass.org