Biometric Access Control System y Designed By: Paolo Bruno, Bilal - - PowerPoint PPT Presentation
Biometric Access Control System y Designed By: Paolo Bruno, Bilal - - PowerPoint PPT Presentation
Biometric Access Control System y Designed By: Paolo Bruno, Bilal Ahmed Senior Design Summer 2009 Serial Communication 8 data bits, 1 stop bit, and no parity Uart1 TTL Uart0 RS-232 Uart0 TTL Uart0 TTL Uart1 TTL Fingerprint Module Serial
Serial Communication
8 data bits, 1 stop bit, and no parity
Uart0 RS-232 Uart0 TTL Uart1 TTL Uart0 TTL Uart1 TTL
Fingerprint Module Serial Protocol
*NOT *NOTE * E * Header Checks Header Checksum = = Command Command + + Param1 + Param1 + Param2 + Param2 + Data Size Data Size + + Erro Error Cod
- de
Erro Error Cod Code
- Ex. Communication Between Fingerprint Module and AVR
Request Request Connection Comma Connection Command – d – Determines if etermines if you are you are connected to connected to the the FIM3 FIM304 040
Command Command 0x01 Command Command 0x01 Parameter 1 Parameter 1 X Parameter 1 Parameter 1 Result Succeeded Parameter 2 Parameter 2 X Parameter 2 Parameter 2 Fingerprint Count Data Data Size Size Data Data Size Size Error Code Error Code X Error Code Error Code Error Code HDR HDR Checksu Checksum 0x01 HDR HDR Checksu Checksum N / A HDR HDR Checks Checksum 0x01 HDR HDR Checks Checksum N / A
* NOTE OTE * When When a command
- mmand packet
packet is is sent sent to to the the fingerprint ingerprint module module it it returns returns an acknowledgement cknowledgement packet packet that that informs informs you you whether whether or
- r not
not the the command command sent sent was was successful successful. you you whether whether or
- r not
not the the command command sent sent was was successful successful.
The Structure of a Command Packet
Request Request Connection Command
- nnection Command
0 00
i
0 00
Start Byte Start Byte
0x00 0x00 0x00 0x7E
Data Data Size ze
0x00 0x00 0x00 0x00
Command Command
0x00 0x00 0x00 0x01
Error Code Error Code
0x00 0x00 0x00 0x00
Parameter 1 Parameter 1
0x00 0x00 0x00
HDR HDR Checksu Checksum
0x00 0x00 0x00 0x00 0x00 0x00 0x01
Parameter 2 Parameter 2
0x00 0 00 0x00 0x00 0x00
AVR Programming Basic Framework
(1) Enable Rx / Tx on Uart1 and Uart0. (2) Set Baud Rate by setting up UBRR registers. (3) Decide between polling and using interrupts? Interrupts Chosen. (4) Decide on terminal interface or GUI using Visual C#. Could not implement a GUI due to shortage of time. (5) Store Fingerprint Module (FIM3040LV) Commands in EEPROM. (5) Store Fingerprint Module (FIM3040LV) Commands in EEPROM. (6) Read and learn FIM3040 communications protocol manual. (7) Buffer the incoming FIM3040 packets properly! Compare command packet with ( ) u e t e co g M30 0 pac ets p ope y Co pa e co a d pac et w t acknowledgement packet before proceeding. (8) Make sure you have an updated version of the communication protocol. The fingerprint module had many quirks that needed to be figured out. Often times the communication protocol had rong information and bad English! protocol had wrong information and bad English!
PCB Advanced Circuits Barebone
Analog Security Breach Alarm
l d d l
- An alarm was designed as a security measure, after several
unsuccessful authentication attempts the alarm becomes active. O ill t d NE555 ti d t t i l t
- Oscillator and NE555 timer were used to generate signals at
500MHZ. Mixer Analyzer circuit was designed to select certain output based
- Mixer Analyzer circuit was designed to select certain output based
- n the input voltage using the N-Channel MOSFETs (IRF510).
- With the use of diodes non ideal OpAmp can produce a steady
- With the use of diodes non-ideal OpAmp can produce a steady
state oscillation.
- Output of the oscillator is fed into a mixer amplifier
Output of the oscillator is fed into a mixer amplifier.
PCB Security Breach Alarm
Finished Product
Possible Improvement Possible Improvement
- One of the possible improvement is to design
One of the possible improvement is to design the Access system with keypad as an alternate entry solution entry solution
- Design GUI to make it easy to use interface