Sunteți pe pagina 1din 8

LCD based digital alarm clock with digital thermometer using 8051 microcontroller (AT89C51)

This project works as a digital clock wherein a user can also set alarm. Additionally, it also works as a digital thermometer to specify the ambient temperature. Both, the clock and temperature are displayed on a 16x2 LCD screen using the 8051 microcontroller (AT89C51). AT89C51 is an eight bit controller which belongs to the 8051 family of microcontrolers. Description : This project incorporates the functionality of a digital clock and a digital thermometer. The digital clock works in 12 hour mode and is configured by programming the 8051 microcontroller (AT89C51). The program uses a delay function for producing a delay of 1 second. The clock and alarm times can be set through a set of external tactile switches. The digital thermometer employs a temperature sensor LM35. The sensor responds to the temperature change by giving varying output. These analog signals of LM35 are converted to digital equivalent by ADC0804. The reference voltage (Vref) should be set properly corresponding to the desired temperature range. The data bits are taken as input by the microcontroller at port P0. The microcontroller AT89C51 also gives control signals to ADC0804.

How to interface RFID with 8051 microcontroller (AT89C51)


An RFID (Radio-frequency identification and detection) reader is a device which is used to communicate with RFID tags by receiving and transmitting signals. These signals use radio waves for wireless communication.RFID tag is applied to products, individuals or animals to identify and track them. The identification is done through a unique serial number. This topic covers the interfacing of a passive RFID system with AT89C51. The code of RFID tag is also displayed on an LCD interface. An RFID module basically consists of two parts, namely, a tag and a reader. A typical RFID system consists of an antenna, a transceiver and a transponder (RF tag). The radio frequency is read by the transceiver and the information is transferred to a device for further processing. The information (the unique serial number) to be transmitted is stored in the RF tag or transponder. The transponder contains a chip and an antenna mounted on a substrate. The chip transmits the relevant information through antenna. The antenna also receives the electromagnetic waves sent by the RFID reader. Different RFID tags work on different frequencies. Here low frequency, 125 kHz, RFID tags have been used. These tags work within a range of 10 cm. When an RFID tag comes in this range, the reader detects it and sends a unique code of the tag serially. This serial code, consisting of 12 bytes, is received by the microcontroller.

A serial level converter is required for

AT89C51 to receive these serial signals. IC MAX232 has

been used for this purpose to interface the RFID reader with microcontroller. The circuit connections are as follows:

Electronic code lock with user defined password using 8051 microcontroller (AT89C51)
An electronic lock or digital lock is a device which has an electronic control assembly attached to it. They are provided with an access control system. This system allows the user to unlock the device with a password. The password is entered by making use of a keypad. The user can also set his password to ensure better protection. The major components include a keypad, LCD and the controller AT89C51 which belongs to the 8051 series of microcontrollers. This article describes the making of an electronic code lock using the 8051 microcontroller. A 4x3 matrix keypad and a 16x2 LCD have been used here. Keypad and LCD are very commonly used input & output devices, respectively. A four digit predefined password needs to be specified the user. This password is stored in the system. While unlocking, if the entered password from keypad matches with the stored password, then the lock opens and a message is displayed on LCD. Also an output pin is made high to be used for further purpose. The connections in the circuit are as following: port P2 of microcontroller AT89C51 is used as data input port which is connected to data pins (7-14) of LCD. P1^0, P1^1 and P1^2 pins of microcontroller are connected to control pins RS, RW and EN of LCD. Port P0 is used to take input from keypad. P0^7 has been used as lock output pin of controller. As the program starts, string Enter Password is displayed on LCD. The keypad is scanned for pressed digits one by one. Every time, row and column of the key pressed is detected and a * is displayed on LCD corresponding to the entered number. After the four digits are entered, the user is prompted to Confirm Password and again the input is taken through LCD. If the passwords do not match, a message is displayed to indicate Wrong Password; otherwise the user is prompted to unlock the device. To unlock, user needs to Enter Password through keypad. Again the keypad is scanned for pressed keys and corresponding digits are identified. The passkey is displayed as **** on the LCD screen. After the four digits are entered, they are compared with the pre-set password. If all the four digits match with set password, LCD displays Lock Open and the lock output pin goes high. If the security code is wrong, Wrong Password is sent to be displayed on LCD. The system gets locked if more than three attempts are made with wrong password to open the electronic lock. The system needs to be reset in such a case.

S-ar putea să vă placă și