Zibb

Design Idea

Single pin controls relay, intermittent buzzer, and status LED

One pin controls relay, buzzer, and status LED for control applications.

Kartik Joshi and Manik Chugh, Netaji Subhas Institute of Technology, Delhi, India; Edited by Martin Rowe and Fran Granville -- EDN, 4/9/2009

Switching applications involving controlling devices or appliances using digital-I/O lines through a relay often need to indicate the change of state of the I/O line and, hence, the connected device. This indication could be in the form of a buzzer that turns on for a few seconds every time the line changes state. Designers generally employ an additional I/O pin to trigger the buzzer whenever the state of the primary I/O line changes. This Design Idea discusses a circuit that controls a device through a relay and an intermittent buzzer with only one digital-I/O pin.

Pin PA1 of the digital device controls a relay, which switches an appliance on and off (Figure 1). NPN transistor Q3 activates the relay coil when the I/O line is in the high state. Status LED D1 connects in parallel to the relay coil and turns on when the I/O line is high and off when the line is low.

See all of EDN's
Design Ideas

The buzzer remains on for a small amount of time when the relay changes state. You accomplish this task by employing a push-pull-inverter topology using complementary BJTs (bipolar-junction transistors) NPN Q1 and PNP Q2. The output of this stage connects to a bridge rectifier with a buzzer as a load because buzzers usually are unidirectional. The bridge rectifier connects in series both with resistor R12 to regulate the maximum current through the buzzer and with capacitor C1 to ensure that the buzzer “fades off.” When the line is low, transistor Q2 is on, the capacitor charges to a positive voltage, and the buzzer operates until the current through it is sufficient. When the line goes high, transistor Q1 switches on, the capacitor discharges to approximately 0V, and the buzzer operates again for a short duration. The on-time of the buzzer depends on the values of REQ, the series combination of R12 and the buzzer resistance, and C6. To change the time constant and hence the on-time of the buzzer, you should change the value of the capacitor rather than that of the resistor. You can also design this circuit using only one BJT instead of two, but the transistor would always draw some current at steady state.

This topology is useful when no separate I/O lines are available for controlling the buzzer. You can also employ this topology to indicate the change of state of any input stage directly by connecting it to the given circuit or through a buffer. Figure 2 shows a Spice simulation of the buzzer circuit. This simulation replaces the buzzer with 50Ω resistance and plots the current through the buzzer along with the status of the I/O line.



Reed Business Information Resource Center

Featured Company


Related Resources

ADVERTISEMENT

ADVERTISEMENT

Feedback Loop


Post a CommentPost a Comment

There are no comments posted for this article.

Related Content

 

By This Author

There are no additional articles written by this author.


ADVERTISEMENT

Knowledge Center





Technology Quick Links

EDN Marketplace


©1997-2009 Reed Business Information, a division of Reed Elsevier Inc. All rights reserved.
Use of this Web site is subject to its Terms of Use | Privacy Policy

Please visit these other Reed Business sites