

- #Codevisionavr for android verification#
- #Codevisionavr for android software#
- #Codevisionavr for android code#
The program code for the display function is shown below. If the show option=1 then digits are shown as they are and if show option=0 then the ‘G’ segment of the displays is enabled instead of the entire digit. The display function presented in this article uses one for loop and it can be modified easily if the number of digits is varied. There is an option to show/hide the password while entering. Program Code for ‘get_key’ function – 4X4 matrix keypadĪs the password is of four digits, four seven segment LED’s are multiplexed. The ‘get_key’ function can be easily modified for keypads other than the 4X4 matrix. Below is the program code for the functions ‘get_key’. Soon after the key is released, again the key value is set out of range. After execution of these statements, the display function is called until the pressed key is not released. Now, the ‘run_key_function’ is executed and corresponding statements for the pressed key are executed. Whenever a key is pressed this default value is replaced by the currently pressed key. The ‘get_key’ function refreshes the columns and reads the rows for detecting the pressed key (if any). As there are 16 keys in the keypad, key value ranges from 1 to 16 and by default, the key value is set out of this range during initialization of the key variable. A function called the ‘get_key’ function is used to read the pressed key and this key information is passed to the ‘run_key_function’ which is a ‘switch statement’ with 16 cases, and is assigned with one case for each key. In this circuit, a 4X4 matrix keypad is used to enter the password and to interact with the system. A detailed explanation on this procedure is provided in the article, “ Virtual Comports in Proteus”. The circuit diagram for connecting the GSM module to the computer is shown below. Circuit Diagram – Password Based Keypad Door Lock
#Codevisionavr for android software#
There is a real-time feature called the ‘Virtual Terminal’ in this software which is used in this article to send the SMS through a GSM Module connected to the computer.

The circuit is developed using the Proteus Simulation software to demonstrate the operation. In this article ATMEGA16 microcontroller is used. Based on these requirements, any microcontroller with 3 I/O ports and one UART peripheral is sufficient. The system contains a seven segment display array, a 4X4 matrix keypad and a GSM module to send the status message. The password is stored in the EEPROM of the microcontroller so that, power failure or reset of the system does not affect the password recognition. The password can be changed whenever required, but only after correctly entering the present password. The system alarms through a buzzer if a wrong password is entered for 3 times continuously and an SMS is sent to a predefined contact number. The system uses a seven segment display array to show the password, a matrix keypad to enter the numbers/password and operates a relay (to activate the solenoid valve) for locking and unlocking purpose.
#Codevisionavr for android verification#
In this article, a digitally secured lock based on password verification is explained.
