Exploring output devices this week showed me how important feedback is in user experience. Whether it's lights, sounds, or displays, output devices bring the system to life by communicating information clearly and effectively.
Digital Hall Sensor & Noise Alarm System
We used a multimeter to detect the digital signal of the Hall sensor. (The connection method and code for controlling the LED with the Hall sensor are detailed below.) We tested the voltage difference transmitted to the development board when the Hall sensor was exposed to a magnet and when no magnet was present.
Set the multimeter to DC voltage mode.
No magnet nearby: Most modules output High level ≈ 4.436V on DO
Magnet nearby: DO outputs Low level ≈ 0.367V
A Digital Hall Sensor is a magnetic field sensor based on the Hall effect. It can detect the presence or absence of a magnetic field and outputs a digital signal (HIGH or LOW). It is commonly used for position detection, speed measurement, and switch control.
Component | Arduino Pin |
---|---|
WS2812B Data | D2 |
WS2812B VCC | 5V |
WS2812B GND | GND |
Hall Sensor OUT | D3 |
Hall Sensor VCC | 5V |
Hall Sensor GND | GND |
When a student puts their apple near the Hall sensor, the LED lights up and a happy “Great job!” plays.
Connection layout
code
Test
A sound sensor is a component that receives sound waves and converts them into electrical signals. It works like a microphone to detect the sound intensity in the surrounding environment. It has various applications, such as noise monitoring, voice control, and security alarms.
Component
Pin | Function |
---|---|
A0 | Analog Output (Range 0~1023) |
VCC | Power Input (5V) |
G | Ground |
A buzzer is an audio signaling device that can be controlled by electrical signals to produce sounds of different frequencies and intensities. It is commonly used for alarms, notifications, and sound feedback applications.
Pin | Function |
---|---|
VCC | Power Inpuy (5V) |
I\O | Connected to D9 via tone() control |
GND | Ground |
Feature | Active Buzzer | Passive Buzzer |
---|---|---|
Internal Oscillator | ✅ Built-in Oscillator | ❌ Requires PWM |
Control Method | Simply turn on/off with HIGH/LOW signal | Requires PWM signal for sound generation. Requires tone() |
Sound Types | Fixed frequency | Can produce multiple tones and melodies |
Sound Modulation | ❌ Fixed Frequency | ✅ Can Play Melodies |
Wiring | Directly Connect to Arduino | Requires PWM Control |
Common Uses | Alarms, simple notifications | Music tones, sound effects |
Component | Function |
---|---|
Arduino UNO | Controls the entire system |
Sound Sensor | Detects sound intensity in the environment |
Passive Buzzer | Generates alarm sounds |
Jumper Wires | Connects components |
Breadboard | Used for circuit assembly |
Sound Sensor | Arduino |
---|---|
A0 | A0 |
VCC | 5V |
G | GND |
Passive Buzzer | Arduino |
---|---|
VCC | 5V |
I/O | D9 |
GND | GND |
Upload the code and test it by monitoring sound intensity in the Serial Monitor.