Pick a Project or Test Any Component
Materials + Code + Wiring + Hints & Outcome
Whether you want to build a complete project (like the Dual-Sensor Room Counter or Gas Leak Alarm) or simply calibrate and test a single sensor (like the HC-SR04 or MQ-2), get instant schematics, ready-to-flash code, and real-time outcomes.
Choose a project → See required materials list → Follow wiring table → Copy code → Review hints & expected outcome.
Search or select any component (Ultrasonic, MQ-2, DHT11, PIR, Buzzer) → Get isolated test circuit → Verify calibration code → Test with live simulator.
Choose Any Project by Name
Select a project below to instantly inspect its required materials, complete code, wiring pin connections, hints & expected outcome.
Blinking LED & Buzzer
Master digital pin output control by driving a visual indicator (LED) and audible alert (Buzzer) in synchronization with timed delays.
LED illuminates and the buzzer emits a continuous beep for exactly 1 second, then both silence and switch off for 1 second continuously.
- Anode (+) is the longer lead of the LED; flat notch side is cathode (-).
- Always insert the 220Ω resistor in series with the LED to protect the digital pin.
- Active buzzers will sound a steady pitch as soon as 5V HIGH logic is supplied.
Required Materials for this Project (6)
Live Circuit Simulator & 9600 Baud Serial Monitor
Directly test virtual sensor controlsLive Virtual Testbed • Blinking LED & BuzzerInteractive
Real-time breadboard logic & Serial Monitor simulator
Wiring Connections
5V Logic Standard| Arduino Pin | Connect To Module | Notes |
|---|---|---|
| D13 | LED Anode (+) via 220Ω Resistor | Cathode (-) connects to GND |
| D8 | Buzzer Positive (+) | Buzzer Negative (-) connects to GND |
| GND | Common Ground Rail | — |
Connect the LED anode (long leg) through a 220Ω resistor to UNO pin D13, with cathode (short leg) to GND. Connect the positive terminal of the active buzzer to pin D8 and the negative terminal to GND.
const int LED_PIN = 13;
const int BUZZER_PIN = 8;
void setup() {
pinMode(LED_PIN, OUTPUT);
pinMode(BUZZER_PIN, OUTPUT);
}
void loop() {
digitalWrite(LED_PIN, HIGH);
digitalWrite(BUZZER_PIN, HIGH);
delay(1000);
digitalWrite(LED_PIN, LOW);
digitalWrite(BUZZER_PIN, LOW);
delay(1000);
}