Thursday, February 2, 2012

8 candidate quiz buzzer using 8051 microcontroller (AT89C51)

Posted by Unknown at 9:47 PM 0 Comments
8051 Microcontroller based quiz buzzer project
The quiz buzzer systems are widely used in school, colleges and TV programs. The team which presses the buzzer earliest is entitled to give the answer. At times it becomes very difficult to identify which team has pressed the button when two teams press the buzzer within a very small time gap. In such cases the decision can be biased due to human intervention. The quiz buzzer presented here takes care of the aforesaid problem. This quiz buzzer disables the other inputs as soon as the first buzzer is pressed. This quiz buzzer can be used for a maximum of eight teams. It is build around 8051 microcontroller (AT89C51).

DESCRIBTION(click here)
  • This quiz buzzer system has eight input pins corresponding to eight teams. The output is displayed on a seven segment display (interfaced with microcontroller), which shows the number corresponding to the team which has pressed the button first. A buzzer is also sounded for a small duration to give an acoustic alarm. The connections of the seven segment, input pins and output pins is shown in the circuit diagram.
    For more details, refer ‘seven segment interfacing ’. There are a total of nine input pins. Eight pins of port P1 of the microcontroller are corresponding to eight inputs and one stop pin for resetting the buzzer system. On the output side a seven segment is connected to display the corresponding output number. There is also a provision for sounding a buzzer for a small duration.
    When the system starts, the seven segment does not displays any output. The microcontroller keeps scanning the input pins. As soon as any one of the inputs is pressed, the buzzer sounds for a small duration. The seven segment displays the number corresponding to the input pressed. Now even if any other input pin is pressed, there will be no effect on the system till the time the stop pin is pressed to reset the system.
CODE(click here)
  • 
    // Program to make a quiz buzzer using seven segment
    
    
    
    #include<reg51.h>
    
    unsigned int digi_val[10]={0x40,0xF9,0x24,0x30,0x19,0x12,0x02,0xF8,0x00,0x10};        // Hex value corresponding to the digits 0 to 9
    
    sbit output_on_pin = P3^0;        // Enable pin to enable the seven segment.
    
    sbit stop_pin = P3^1;        // Stop pin to reset the buzzer.
    
    sbit buzzer_pin=P0^0;        //  Buzzer pin to sound the buzzer.
    
    int flag;
    
    
    
    void delay()        // Time delay function
    
    {
    
        int i,j;
    
        for(i=0;i<200;i++)
    
        for(j=0;j<1275;j++);
    
    }
    
    
    
    void display(unsigned int current_dig)        // Function to display the resultant digit on the seven segment and sound the buzzer.
    
    {
    
        P2=digi_val[current_dig];
    
        output_on_pin = 1;
    
        buzzer_pin=0;
    
        delay();
    
        buzzer_pin=1;
    
        while(stop_pin != 0);
    
    }  
    
    
    
    void buzzer() //Function to monitor the input switches
    
    {
    
        flag = 0;
    
        while(1)
    
        {
    
            while (P1 == 0xFF);
    
            
    
            while (P1 == 0xFE)        //Check if switch 1 is pressed
    
            {
    
                flag = 1;
    
                display(1);
    
            }
    
    
    
            while (P1 == 0xFD)        //Check if switch 2 is pressed
    
            {
    
                flag = 2;
    
                display(2);
    
            }    
    
    
    
            while (P1 == 0xFB )        //Check if switch 3 is pressed
    
            {
    
                flag = 3;
    
                display(3);
    
            }
    
    
    
            while (P1 == 0xF7 )        //Check if switch 4 is pressed
    
            {
    
                flag = 4;
    
                display(4);
    
            }
    
    
    
            while (P1 == 0xEF )        //Check if switch 5 is pressed
    
            {
    
                flag = 5;
    
                display(5);
    
            }
    
    
    
            while (P1 == 0xDF)        //Check if switch 6 is pressed
    
            {
    
                flag = 6;
    
                display(6);
    
            }
    
    
    
            while (P1 == 0xBF )        //Check if switch 7 is pressed
    
            {
    
                flag = 7;
    
                display(7);
    
            }
    
    
    
            while (P1 == 0x7F )        //Check if switch 8 is pressed
    
            {
    
                flag = 8;
    
                display(8);
    
            }
    
          
    
            P1 = 0xFF;
    
            stop_pin = 1;
    
            output_on_pin = 0;
    
        }
    
    }
    
    
    
    void main()
    
    {
    
        output_on_pin=0;
    
        stop_pin = 1;
    
        P1 = 0xFF;
    
        buzzer();
    
    
    
    }
    
    
COMPONENTS(click here)
  • Seven Segment Display
  • Transistor BC548 
  • AT89C51 Microcontroller 
  • Piezo Buzzer
Tags:

Share This Post

Get Updates

Subscribe to our Mailing List. We'll never share your Email address.

0 comments:

THANKS FOR UR COMMENT ....

Categories

Labels

AERONAUTICAL AEROSPACE AGRICULTURE ANDROID Android project titles Animation projects Artificial Intelligence AUTOMOBILE BANK JOBS BANK RECRUITMENTS BIG DATA PROJECT TITLES Bio instrumentation Project titles BIO signal Project titles BIO-TECHNOLOGY BIOINFORMATICS BIOMEDICAL Biometrics projects CAREER CAT 2014 Questions CHEMICAL CIVIL Civil projects cloud computing COMP- PROJ-DOWN COMPUTER SCIENCE PROJECT DOWNLOADS COMPUTER(CSE) CONFERENCE Data mining Projects Data protection. Design projects DIGITAL SIGNAL PROCESSING IEEE Project titles Dot net projects EBOOKS ELECTRICAL MINI PROJECTS ELECTRICAL PROJECTS DOWNLOADS ELECTRONICS MINI PROJECTS ELECTRONICS PROJECT DOWNLOADS EMG PROJECTS employment Engineering projects Exams Facts final year projects FOOD TECHNOLOGY FREE IEEE 2014 project Free IEEE Paper FREE IEEE PROJECTS GATE GAte scorecard GOVT JOBS Green projects GSM BASED Guest authors HIGHWAY IEEE 2014 projects ieee 2015 projects IEEE computer science projects IEEE Paper IEEE PAPER 2015 ieee project titles IEEE projects IEEE Transactions INDUSTRIAL INNOVATIVE PROJECTS INTERFACING IT IT LIST Java projects labview projects LATEST TECHNOLOGY list of project centers Low cost projects m.com MARINE Matlab codes MATLAB PROJECT TITLES MATLAB PROJECTS MBA MBA 2015 projects MCA MECHANICAL MECHANICAL PROJECTS DOWNLOAD MINI PROJECTS modelling projects MP3 MP3 cutter Mp4 Networking topics ns2 projects online jobs PETROCHEMICAL PHYSIOLOGICAL MODELLING projects physiotheraphy Projects Power electronics power system projects PRODUCTION project centers project downloads Prosthesis projects RAILWAY RECRUITMENT 2012 Recent RECENT TECHNOLOGY RECENT TECHNOLOGY LIST RECRUITMENT Rehabilitation projects renewable power respiration projects RESUME FORMAT. Ring Tone Cutter Robotics projects. Robots in medical social network jobs Solar projects Songs Cutter Speech-music separation-Abstract structural engineering TECHNOLOGY technology management TELE COMMUNICATION TEXTILE TOP ENGINEERING COLLEGES Training VLSI

Disclaimer

This blogs is an effort to club the scattered information about engineering and project titles and ideas available in the web. While every effort is made to ensure the accuracy of the information on this site, no liability is accepted for any consequences of using it. Most of the material and information are taken from other blogs and site with the help of search engines. If any posts here are hitting the copyrights of any publishers, kindly mail the details to educations360@gmail.com It will be removed immediately.

Alexa Rank

back to top