0% found this document useful (0 votes)
5 views3 pages

EE-121_Basic_Electronics_Lab_Project

The document outlines a project for designing an add-on device to a workbench power supply that includes a buzzer for hourly reminders and an LED for power failure indication. It details the required components, circuit diagram, and Arduino code necessary for implementation. Testing and calibration steps are also provided to ensure functionality of the buzzer and LED.

Uploaded by

thestudentadeena
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

EE-121_Basic_Electronics_Lab_Project

The document outlines a project for designing an add-on device to a workbench power supply that includes a buzzer for hourly reminders and an LED for power failure indication. It details the required components, circuit diagram, and Arduino code necessary for implementation. Testing and calibration steps are also provided to ensure functionality of the buzzer and LED.

Uploaded by

thestudentadeena
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

EE-121 Basic Electronics Lab Project

Solution
Problem Statement
Design an add-on device for the workbench power supply that:
1. Sounds a buzzer every hour to remind users of the power-on status of connected devices.
2. Includes an LED that provides light during power failure.

Components Required
- Microcontroller (e.g., Arduino Uno)

- Buzzer

- LED

- Transistor (NPN BJT, e.g., 2N2222 or BC547)

- Resistors (1kΩ, 220Ω)

- Diode (1N4007)

- Power Supply (5V DC)

- Voltage Sensor (optional)

Circuit Diagram Description

1. **Buzzer Circuit:**
- Connect the buzzer's positive terminal to the collector of the transistor.
- Connect the emitter of the transistor to ground.
- Connect the base of the transistor to a 1kΩ resistor, and the other end of the resistor to a
digital pin (e.g., D9) on the Arduino.
- Place a diode (1N4007) across the buzzer terminals for protection.

2. **LED Circuit:**
- Connect the anode of the LED to a 220Ω resistor.
- Connect the other end of the resistor to the collector of another transistor.
- Connect the emitter of the transistor to ground.
- Connect the base of the transistor to a 1kΩ resistor, and the other end of the resistor to a
digital pin (e.g., D10) on the Arduino.
3. **Power Failure Detection:**
- Use a voltage sensor connected to an analog pin (e.g., A0) on the Arduino.

Arduino Code
```cpp
const int buzzerPin = 9; // Buzzer connected to digital pin 9
const int ledPin = 10; // LED connected to digital pin 10
const int powerSensorPin = A0; // Analog pin to sense power failure

void setup() {
pinMode(buzzerPin, OUTPUT);
pinMode(ledPin, OUTPUT);
pinMode(powerSensorPin, INPUT);
}

void loop() {
// Check for power failure
int powerStatus = analogRead(powerSensorPin);
if (powerStatus < 500) { // Assuming 500 is the threshold for power failure
digitalWrite(ledPin, HIGH); // Turn on LED
} else {
digitalWrite(ledPin, LOW); // Turn off LED
}

// Hourly buzzer reminder


static unsigned long lastBuzzerTime = 0;
unsigned long currentTime = millis();
if (currentTime - lastBuzzerTime >= 3600000) { // 1 hour = 3600000 milliseconds
digitalWrite(buzzerPin, HIGH); // Turn on buzzer
delay(15000); // Buzzer on for 15 seconds
digitalWrite(buzzerPin, LOW); // Turn off buzzer
lastBuzzerTime = currentTime; // Reset the timer
}
}
```

Testing and Calibration

1. Test the buzzer to ensure it sounds for 15 seconds every hour.


2. Test the LED to ensure it turns on during power failure.
3. Calibrate the power failure detection threshold in the code.

Conclusion

This solution meets all the requirements of the assignment. The buzzer reminds users of the
power-on status, and the LED provides light during power failures. The system is designed
using basic electronic components and can be easily implemented with a microcontroller.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy