Buzzer plug [v 1.1] Product Manual
Updated on: 27th November 2017
Product Manual: Buzzer Plug
Index About Elint Labz
2
Introduction
4
Specification
4
Operating voltage: 5V
4
Variants
4
Supported cables:
5
Details
5
How to interface?
6
Example Codes Code 1: Arduino
8 8
Code 2: 8051
9
Elint Labz (www.elintlabz.in)
Page 1 of 9
Product Manual: Buzzer Plug
About Elint Labz Elint Labz (usually abbreviated as EL) is an electronics design & development tools designer & manufacturer with headquarters in Bengaluru, India. We design, develop & manufacture development boards based on micro-controller & microprocessors, breakout boards for various sensors & actuators. Our domain & expertise is in the area of Electronics & Embedded Systems. Elint Labz was founded in 2014 however the actual operations started from 2015 when it became a full time subsidiary of Hogst Innovative Solutions Pvt. Ltd. & is presently a part of Ajaramara Group a conglomerate of various domains of industries, registered in India as Ajaramara Dynamics Pvt. Ltd. under Companies Act of 2013. As in the name company (Elint Labz) – Electronic intelligence (ELINT) is intelligence gathered by the use of electronic sensors, Laboratories (LABZ) are facilities that provides controlled conditions in which scientific or technological research, experiments and measurement may be performed. EL is an enterprise built to develop smart & intelligent electronics & EL is committed to help achieve electronics literacy in India. No matter the vision or skill level, our products and resources are designed to make electronics & programmable development hardware more accessible. Elint Labz as a platform helps developers & young engineers from prototyping to product development. We provide open source hardware solutions and small quantity manufacturing services using a design from manufacturing framework. We are a strong promoter of the maker movement in India, most of the manufacturing happens with support of our various Indian partners & couple of our collaboration partners who have manufacturing & sourcing facilities in Germany, Korea & Shenzhen. To know more visit the about us section on our website: http://elintlabz.in/about-us/ Elint Labz (HQ) ˗ #200 1st main Arekere MICO layout 2nd stage Bengaluru 560076 KA [Marked on Google Maps] ✆ +91 855 377 2525 ː
[email protected]
Elint Labz (www.elintlabz.in)
Page 2 of 9
Product Manual: Buzzer Plug
Elint Labz (www.elintlabz.in)
Page 3 of 9
Product Manual: Buzzer Plug
Introduction
A buzzer is a two terminal device which produces an audio signal. It can be mechanical, electromechanical or piezoelectric. Typical uses of buzzers include alarm devices, timers and confirmation of user input such as a mouse click or keystroke. Elint labz has built a plug for the buzzer to make use of it in the digital controlling systems. This PCB design enables you to mount the buzzer to any position as per the user’s need and also this plug can be mounted anywhere using screws.
Specification
● Operating voltage: 5V ● Size: 24mm x 26mm
Variants VERSION V2
Elint Labz (www.elintlabz.in)
PORT TYPE
SKU
Straight
EL-BUZZPLU-201
Right-angled
EL-BUZZPLU-202
Page 4 of 9
Product Manual: Buzzer Plug
Supported cables: ● 4-3A ● 3-3A
Details Buzzer plug is a digital output device for the interfacing system. It has a piezo buzzer with the transistor driver circuit in order to activate and deactivate the buzzer with logic levels of input signal. It has a 1KΩ resistor to control the input current. It has an interfacing port with three pins named as G, V and D. Here G represents ground. V represents VCC and D represents Data pin through which buzzer can be turned ON or OFF. when the Data pin (D) is made HIGH, the buzzer turns ON(make sound). When D pin is made LOW, buzzer turns OFF (stops making sound). It is provided with a white strip for indication purpose at the back of the PCB.
Elint Labz (www.elintlabz.in)
Page 5 of 9
Product Manual: Buzzer Plug
How to interface? Use either of the supported interfacing cables to connect this Buzzer plug to the controller board . ● If 4-3A cable is to be used then 3 pin end of the cable must be connected to the Buzzer plug and 4 pin end of the cable is connected to the controller board. ● If 3-3A cable is to be used then either end of the cable can be connected to the buzzer plug. Always make sure that the black wire of the cable connects to the G pin on both ends. In the below given pictures you can see that 4-3A cable is used to connect Buzzer plug to the Pluguino Board. The data pin of the Buzzer plug is connected to the 11th GPIO pin on the controller board. By controlling the voltage at the 12th GPIO pin of the controller you can control the buzzer.
Elint Labz (www.elintlabz.in)
Page 6 of 9
Product Manual: Buzzer Plug
Elint Labz (www.elintlabz.in)
Page 7 of 9
Product Manual: Buzzer Plug
Example Codes
Objective- This example demonstrates the working of a Buzzer plug. Here the
Buzzer turns on when the push button is pressed, when released Buzzer turns off.
Code 1: Arduino #define Button_Pin 12 is connected to 12th pin #define Buzzer_Pin 11 connected to 11th pin boolean Button_State = LOW; pushbutton status void setup() { pinMode(Buzzer_Pin, OUTPUT); pin pinMode(Button_Pin, INPUT); pin
// push button plug // Buzzer plug is // variable to store
// Make 11th pin as OUTPUT // Make 12th pin as INPUT
void loop() {
Elint Labz (www.elintlabz.in)
Page 8 of 9
Product Manual: Buzzer Plug
Button_State = digitalRead(Button_Pin); pushbutton and store it. if ( Button_State == HIGH) state with HIGH { digitalWrite(Buzzer_Pin, HIGH); then turn ON Buzzer } else { digitalWrite(Buzzer_Pin, LOW); then turn OFF Buzzer } }
// read the state of the //Compare button // If buttonstate is HIGH
// If button state is LOW
Output video: https://youtu.be/cdfTVpjirTc
Code 2: 8051 // Program to beep a Buzzer at Port pin P0.0 #include
// special function register declarations for 89s52 #include // prototype declarations for I/O functions sbit Buzzer = P0^0; // defining pin P0^0 as Buzzer void delay(void); //delay function prototype declaration void main (void) { Buzzer = 0; // Make Buzzer pin as Output while(1) //indefinite loop { Buzzer = 0; // Buzzer Off delay(); Buzzer = 1; // Buzzer ON delay(); } } void delay(void) { int j; int i; for(i=0;i<500;i++) { for(j=0;j<1000;j++) Elint Labz (www.elintlabz.in)
Page 9 of 9
Product Manual: Buzzer Plug
{ } } } Output video:
Example Codes
● Buzzer Plug
Elint Labz (www.elintlabz.in) 9
Page 10 of