Free Essay

Final Project

In:

Submitted By sharsunny
Words 4867
Pages 20
T EAM T HUMB S TART
A keyless ignition system using a fingerprint scanner for motorcycles

Brandon Aldecoa Robert Rebich Anas Husain

Table of Contents
1. Background……………………………………………………………………………...1 2. System Architecture……………………………………………………………….....…...2 3. Concepts Considered………………………………………………………………….....4 3.1 Fingerprint Scanner…………………………………………………………….4 3.2 Radio Frequency Link…………………………………………………….…….4 4. Concepts Chosen………………………………………………………………….……..5 4.1 Fingerprint Module……………………………………………………….…….5 4.2 Microcontroller………………………………………………………….……...6 4.3 Transmitter…………………………………………………………….……….7 4.4 Receiver……………………………………………………………….………..8 4.5 Encoder/Decoder……………………………………………………..………..9 4.6 ATTINY45/Relay…………………………………………………….……….10 4. Future Work……………………………………………………………………….…....11 Appendix A…………………………………………………………………………….…13 Table 1. Backup system decision matrix……………………………………….…..13 Table 2. Budget breakdown………………………………………………….……13 Table 3. List of part for transmitter circuitry………………………………….…...14 Table 4. List of part for receiver circuitry…………………………………….…....15 Appendix B…………………………………………………………………………….…16 Figure 8. Transmitter schematic……………………………………………….…..16 Figure 9. Receiver schematic………………………………………………….…...17 Appendix C………………………………………………………………………….……18 Final board layout Appendix D…………………………………………………………………………..…...19 Code for ATMEGA48 in transmitter circuit Appendix E………………………………………………………………………...……...29 Code for ATTINY45 in receiver circuit Important Data Sheets…………………………………………………………………….30

1

1. BACKGROUND
Biketronics Inc, a local company in Moscow Specializing in motorcycle electronics requested the help of a senior design team from the University of Idaho. Team ThumbStart has been chosen to research and design a fingerprint scanner system that can replace the traditional key ignition system that is commonly used on motorcycles. The integration of a keyless ignition system using a fingerprint scanner into existing motorcycle technologies is possible. There are many different design considerations that have been taken into account. We have proposed a design and have a working final prototype that can successfully implement the fingerprint system into a wide variety of motorcycles. This system uses fingerprint data and allows the vehicle owner to operate the motorcycle without the need of keys. The system requires no hardware to be carried, but must maintain the same or higher level of security than the key ignition. The design only allows authenticated users to enroll a new fingerprint as well as start and operate the bike. The system will not activate if an authorized user is not authenticated. A method to train at least two sets of unique fingerprint has been implemented. Bikes have very little open space to store things. The entire package is small enough to fit on a wide variety of motorcycle designs. The final product must be reliable enough to withstand the harsh conditions of the road. The final product will be backed by a lifetime company warranty, which means the final design must be reliable and robust. This project consists of combining of the shelf technologies together in a new way that can be beneficial to motorcyclists and possibly others. Currently, all the main hardware components of our project have been developed by companies and are readily available for purchase. The circuitry and algorithm for the Suprema fingerprint scanner has been purchased in a stand-alone module. Other major components such as the ATMEL
1

microprocessor and the keypad are also available and have been purchased. A large portion of the overall design is coding an algorithm to implement the desired functions between each hardware block. Other major design criteria are the environmental conditions that the system will be exposed to. This means that the device will be exposed to rain, heat, cold, grease, dirt and many other harmful and possibly damaging factors. The device is designed so it can be mounted almost anywhere on the motorcycle. It is also small enough so it can be hidden under other parts of the motorcycle. The integration of this design required knowledge of laboratory equipment, C programming, circuit level board design and chip level communication.

2. SYSTEM ARCHITECTURE
Fingerprint Scanner Module

Microcontroller
Keypad

Radio Frequency (RF)

Receiver Circuitry/Relay

Figure 1. System Architecture

Above is a top-level block diagram of the system architecture. The design is relatively simple composing of five main components. The main components consist of a microcontroller, a fingerprint scanner module, a keypad, a radio frequency (RF) linkage, and
2

a relay that is controlled through another microprocessor. Some of the main components require external lower-level circuitry for practical operation, which is not depicted in the toplevel diagram. The heart of the system is the microcontroller that is capable of handling communications between the fingerprint scanner module, keypad and transmitter. All operations are controlled though the microcontroller. The microcontroller stores the main C program onboard, which is responsible for the entire system operation. Nothing will function independently of the microcontroller. The fingerprint scanner module is responsible for detecting the thermal signature of the fingerprint into a useable template image. The onboard computer determines if the scan was valid or not and relays that information to the microcontroller. There is two-way communication between the microcontroller and the fingerprint scanner module. The keypad is the only input to the system that the user will have. The keypad is connected directly into the microcontroller, which processes all button inputs. Every system will come with a default code. One first use the user must reset the code to ensure the code is unique to their system. This user code unlocks the system so that new fingerprint can be added to the system. The RF linkage takes place between the microcontroller and the motorcycle’s starter relay. The RF block consists of an encoder and transmitter pair and a receiver and decoder pair. The microcontroller communicates through the transmitter, letting the receiver know that a valid scan occurred. The encoder and decoder are used to convert a digital signal into a RF signal and also to encrypt the RF transmission using KEELOQ. When a valid scan occurs the microprocessor on the receiver will engage the relay.
3

3. CONCEPTS CONSIDERED
Among many different ideas that were considered over the scope of the project the following are the major considerations that we took into account when selecting the major components of the project.

3.1

Fingerprint Scanner
There are many different options for fingerprint scanners that could have met the

needs of this project. We researched various types of scanners, their reliability, and temperature range. Suprema Inc. offers many different solutions with products that offer thermal, optical, capacitive or electromagnetic scanners. Each scanner had it benefits and down sides whether it was fingerprint recognition speed, temperature range, or scanner footprint. All of these factors were taken into consideration when selecting a scanner. Some of the came with DSP that had the fingerprint algorithms already programmed onto them while others just offered the scanner as a stand alone module. We looked at some of the common algorithm methods used for pattern recognition. Though some seemed manageable to possibly implement this seemed unnecessary when there were products that already had the algorithm implemented with the scanner.

3.2 Radio Frequency Link
There are many different companies that produce small RF receivers and transmitters. We were looking for a simple, reliable, easy to implement transmitter and receiver that would meet our needs. Micrel Inc. produced a wide variety of transmitters and receivers. They have simple transmitters that are similar to garage door openers to transmitters that can transmit serial data and all the matching receiver packages. A low cost
4

and low power consumption unit that can transmit an on off signal are going to be the main factors for our selection. Another option is also available. A company produces wireless relays that are turned on using a key fob. We could use this to be our RF link to a relay. The draw back to this is that it is much more expensive. A circuit designed and built by us will be about a quarter of the cost of the wireless relay produced by this company.

4. CONCEPTS CHOSEN
4.1 Fingerprint Module

A company called Suprema Inc offers a stand-alone embedded fingerprint module. The module is comprised of scanner that is controlled directly though a digital signal processor (DSP). Suprema offers four different types of scanners that can be attached to the DSP. The thermal scanner has many advantages over the other scanner technologies. The thermal scanner is very simple with a robust design that can withstand the road conditions. The thermal scanner naturally cleans itself after each swipe, making it ideal for the situation. The DSP contains a built in fingerprint recognition algorithm. The algorithm can process a single fingerprint in less than one second and has the ability to read finger swipes from up to a 45-degree finger rotation. The on-board memory can store almost two
Figure 2 Suprema Scanner Module

5

thousand different fingerprint templates, which allows more than enough users to be enrolled into the system. The orange ribbon cable that connects the DSP with the scanner is only a few inches in length. The cable cannot be lengthened because of the serial communication that happens on the traces. If the cable is longer, the serial communication may become unrecognizable from cross talk and other forms of distortion. The two components are packaged together. The thermal scanner is folded over the bottom of the DSP and mechanically mounted together.

4.2 Microcontroller
There are many different types of microcontroller available for purchase. Biketronics has been using a microcontroller from Atmel in many of their other products. The decision to use an Atmel microcontroller was strongly suggested because of their wide range of chips that vary in memory size, capability and speed.

Figure 3 ATMEGA48 Layout

6

The ATMEGA48 microprocessor from the Atmel AVR family is chosen because it satisfied every need of the design. The 28-pin package is small in size, has industrial temperature ratings and can handle up to 23 input-output pins (I/O’s). Although not all the I/O’s are used, further expansion if the design can be easily implemented. The chip also has two forms of onboard memory: 4Kb Flash and 256b EEPROM. The C code is stored into Flash memory and the unique user code is stored into the EEPROM. The chip also supports serial communication. The universal synchronous asynchronous receiver/transmitter (USART) serial protocol is used to communicate between the fingerprint scanner DSP and the microcontroller. The onboard RC oscillator on the microcontroller cannot be calibrated well enough to maintain precise USART communication; an external crystal oscillator is used for the precise clocking. The operating voltage of this chip is between 3 and 5 volts. The fingerprint scanner module operates at 3.3 volts; the Atmel chip is also being operated at the same potential. The pins on the microcontroller supply up to 40mA of output current that are used to supply onsite power to other board components.

4.3

Transmitter
A transmitter is needed to send the radio frequency transmission to the starter relay

device to engage it.

Micrel Inc provides a wide variety of transmitters for easy

implementation. The MICRF113 is the ideal transmitter for our needs and is the chosen model. This transmitter has an operating voltage range from 1.8 to 3.3 volts and very low current consumption, typically 12.3mA. The device powers from an IO pin on the

microcontroller so that the device is only consuming power when there is a transmission. This keeps the power consumption of the entire system to a minimum. External resistors, capacitors and inductor are used to build a matching network for the antenna.

7

The MICRF113 transmits at a range of frequencies depending on the value of the crystal oscillator as well as capacitors connected to pins 1 and 4. We set our transmitter to transmit at 315MHz using a 9.84375MHz crystal oscillator. It operates with amplitude shift keying/on-off keyed protocol (ASK/OOK). This transmitter transmits up to 200m if
!"#$%&'

properly matched to the antenna. For this application, transmission is a maximum of 5m so '
'

'

antenna matching is not important and a simple Configuration Pin wire antenna is used. The small 6-pin SIOC package is the simplest transmitter produced by Micrel. In the pin layout the ASK pin is the input data pin.
'

Figure 4 Standard 8-Pin SOIC (M)
'

The oscillator and capacitors are connected MICRF010 Receiver Layout Pin Description
Pin pin is Pin Name across pins XTLIN and XTLOUT. The PAOUTNumberconnected to thePin Function antenna. -' 1' ;/0?'$%@/$0'@>'@D%'A>E% #KAK#"@>$'?%@K"&FH'

4.4 Receiver

J0@%00K'7(0A/@:B''$MK@">0N'L> A%$L>$MK0#%'@D%'K0@%00K'"MA%?K0#%'FD>/&?'O%'M

6'

S>E%$'F"@"T%'$'@D #KAK#"@>$'L$>M'@D"F'@>';0F'(0L>$MK@">0N'L>$'F%&%#@">0H'

transmitter.

The MICRF010 we selected on recommendation R"C"@K&']/@A/@'7]/@A/@:B')!]MAK@"O&%'? from a technical 2' R]'
5' _' 9' C"#4&%T%&'#>0

"F'A/&&%?4/A'"0@%$0K&&G'@>';RRH' representative from Micrel. This is also a small 8-pin SIOC package that operates at 5V.

This part also runs on a very low current, 2.9mA typically. The receiver is highly sensitive (104dBm) and has automatic tuning so there is no need to manually do this. An oscillator,

J=)')KAK#"@>$'7U\@%$0K&')>MA>0%0@:B''(0@%C$K@"0 $MK@">0N'L>$'#KAK#"@>$'F%&%#

*%L%$%0#%']F#"&&K@>$'7U\@%$0K&')>MA>0%0@'>$'(0A/ K&"C0M%0@H'

capacitors and inductors are used to set the center frequency at 315 MHz to match with the transmitter. The oscillator is connected to the REFOSC pin. The frequency is set by the values of inductors and capacitors connected to CTH, SHUT, and CAGC. The antenna on the receiver is connected to the ANT pin and again no matching between the antenna and chip

8

because the short distant these devices are transmitting over. The DO pin is the data out

pin. The data put into the ASK pin on the transmitter is the output on the DO pin on the receiver package.

HCS300

KEELOQ® Code Hopping Encoder
DESCRIPTION
The HCS300 from Microchip Technology Inc. is a code hopping encoder designed for secure Remote Keyless Entry (RKE) systems. The HCS300 utilizes the KEELOQ code hopping technology, incorporating high security, a of these fingerprint scanner systems. ThereThe HCS300 is a small package outline and low cost. needs perfect solution for unidirectional remote keyless entry receiver for systems and access control a receiver will security reasons so that systems.

FEATURES

4.5 Encoder/Decoder Security

• Programmable 28-bit serial number • Programmable 64-bit encryption key Biketronics will be producing many • Each transmission is unique • 66-bit transmission code length •to be a hopping code one transmitter to one 32-bit way to pair • 28-bit serial number, 4-bit button code, 2-bit status •engagekeys relay only when it receives a transmission Crypt the are read protected

PACKAGE TYPES from PDIP, SOIC

HCS515
HCS300

Operating its paired transmitter. An encoder OQdecoder are used to EE and ®

8 VDD • 2.0V - 6.3V operation LED 7 2 S1 •ensurebutton inputs Four pairing between only the two devices. Microchip FEATURES DESCRIPTION • No additional circuitry required 6 PWM 3 S2 The Microchip Technology Inc. HCS515 is a code hop•sells functions available 15 a variety of encoder and decoders that are very Security VSS ping decoder designed for secure Remote Keyless S3 4 5 • Selectable baud rate • Encrypted storage of manufacturer’s code Entry (RKE) systems. The HCS515 utilizes the pat•inexpensive; each unit is less that $2.00. Automatic code word completion ented code hopping system and high security learning • Encrypted storage of encoder decryption keys • Low battery signal transmitted to receiver mechanisms to make this a canned HCS300 BLOCK DIAGRAMsolution when used • Up to seven transmitters can be learned code • Non-volatile encoders anddata This synchronization decoders use a protocol with the HCS encoders to implement a unidirectional called hopping technology remote and Oscillator control systems. The HCS515 can access Figure 6 Power • Normal and secure learning mechanisms latching Other be are as a stand-alone decoder or in conjunction used and Controller KEELOQ to encrypt and decrypt data. The encoder we RESET circuit switching with a microcontroller. • Easy-to-use programming interface

K

L

Code HoppingS0Decoder 1

Operating

LED

HCS300 Encoder Layout

LED driver •using is the HCS300. It has an input voltage of 3.3V and also On-chip EEPROM PACKAGE TYPE • 4.5V – 5.5V operation • On-chip oscillator and timing components • Internal oscillator PDIP, SOIC •draws very low current when it is idle. This encoder has Button inputs have internal pull-down resistors EEPROM • Auto bit rate detection • Current limiting on LED output NC 1 •four input pins that are pulled high or low for input states. Low external component cost Other PWM

Encoder

14

NC NC

NC

• Stand-alone decoder Typical Applications

13 2 32-bit shift register

12 Vss VDD 3 These pins are for connectedstorage the ATMEGA48 to • Internal EEPROM transmitter The HCS300 is ideal for Remote Keyless Entry (RKE) VSS S1 • Synchronous serial interface 4 Button input11 port RF_IN applications. These applications include: • 1 Kbit user EEPROM microprocessor. The KEELOQ protocol encrypts these VDD 10 S_CLK 5 S0 • Automotive RKE systems • 14-pin DIP/SOIC package • Automotive alarm systems 9 S_DAT into a different unique 64-bit packet that it sends out on the MCLR 6 S3 S2 S1 S0 • Automotive immobilizers Typical Applications 8 NC 7 NC • Gate and garage door openers • Automotive remote entry systems The HCS300 combines a 32-bit hopping code, PWM line. Even for the same input the 64-bit packet is • Identity tokens generated by a nonlinear encryption algorithm, with a • Automotive alarm systems Figure 6 • Burglar alarm systems 28-bit serial number and 6 information bits to create a • Automotive immobilizers unique for every transmission. The PWM pin is connected word. The code word length eliminates the BLOCK DIAGRAM 66-bit code HCS515 Decoder Layout • Gate and garage openers threat of code scanning and the code hopping mechaElectronic door RFIN to• the ASK inputlocks on the transmitter. pin nism makes each transmission unique, thus rendering Reception Register • Identity tokens code capture and resend schemes useless. • Burglar alarm systems DECRYPTOR

HCS515

EE_DAT

Compatible Encoders
! 2001 Microchip Technology Inc.

Internal EEPROM

CONTROL EE_CLK

All encoders and transponders configured for the following setting: • PWM modulation format (1/3-2/3)
OSCILLATOR

S_DAT S_CLK S0 9 S1 MCLR DS21137F-page 1

The decoder, HCS515, is connected to the MICRF010 receiver. This also operates at 5V just like all the circuitry in the receiver module. The DO pin on the receiver is connected to the RF_IN pin on the decoder. This data is still encrypted and the KEELOQ protocol decodes the data stream and then outputs it on pins S0 and S1. The data has now traveled from the microprocessor, been encrypted, transmitted, received and then decrypted again. The HCS515 is not the smallest decoder Microchip manufactures but it is the smallest chip that has the data out pins S0 and S1. The smaller modules only output serial data, which is more complex and unnecessary for our application. An encoder and decoder are paired together. There are several different pairing techniques and we are using the most basic pair method. To do this we have purchased a KEELOQ Evaluation Kit. The decoder is put into a learn mode and then the encoder sends it a data stream. The decoder then knows the unique seed for the encoder and the two devices are paired and only work with each other.

4.6

ATTINY45/Relay
Each motorcycle has several relays that control different electronics, lights or ignition

of the bike. We modified the relay that controls the ignition so that a microprocessor controls when the relay is engaged. The microprocessor selected was the Atmel ATTINY45 due to the small package. There are 8 pins on the package and only 6 I/O’s. This is the smallest package Atmel produces.

10

When the receiver receives a good scan signal, an input pin is pulled high on the ATTINY45 for 50ms. The ATTINY45 then pulls an output pin high turning on a Nchannel enhancement mode MOSFET. The code on the microprocessor is very basic. It loops and waits for an input on one pin and when it gets an input on that pin it pulls a different pin high to turn on the MOSFTET. The MOSFET is connected and used as the switch is in Figure 7 to turn on the relay. The gate of the MOSFET is connected to the output from the ATTINY45, the drain is connected to relay and the source is connected to ground. The relay will not be able to be turned on until the MOSFET is turned on.
Figure 7 Bike Relay Circuit

5. FUTURE WORK
A working prototype of this product was produced and confirmed by starting a motorcycle. The user was able to set a new unique user code, enroll new fingerprints, delete all the fingerprints currently on the system and most important start the motorcycle. Though the prototype did function areas of the design still need to be improved before it can be sold as a reliable final product. The microcontrollers on both the receiver and transmitters have working code. The code for ATMEGA48 microcontroller on the transmitter needs to be expanded. The user needs to have a user code they program into the system when they first receive it. This user code needs to be stored to EEPROM so that it will not be lost when power to the system is

11

lost. The menu for a user to input a unique code is in place it only needs to be modified to store the value into the non-volatile memory. The RF link is functional and has shown to have a much greater range than is necessary for this application. When testing the RF we found that it is much more sensitive than we expected. The parts had to be handled with care not to damage any of them. For this reason a package that is very protective for the circuit is extremely necessary to minimize the amount of vibration, temperature swings, and overvoltage to the part. If these items are taken into consideration for the packaging the device should operate properly over the short distance range. The packaging for the entire transmitter module must also be considered. Though this module has shown to be more rugged than the receiver module this is still subject to temperature and other weather conditions. The enclosure holding the scanner module as well as the other transmitter circuitry also needs to be aesthetically pleasing on a motorcycle.

12

Appendix A Pros Key fob (RF)
·Wireless ·Already using RF for starter relay ·Need to have device with you

Keypad
·No hardware to carry ·Cheap, simple ·Universal: stock or custom ·Extra piece of hardware to implement

Handle bar combo
·No external device needed

Smart card
·Cheap ·Small, light

Bluetooth
·Ubiquity of Bluetooth phones

Cons

·Complicated to implement ·Near impossible to implement on a stock bike

·Smart card required

·Need cell phone with Bluetooth capability ·A diff. transceiver ·Licensing expensive

Table 1 Budget Part
Atmel AVR PIC Suprema SFM3010-FC Keypad Relay Oscillators All LED's, Capacitors, and Inductors Voltage regulators MICRF010 Receiver MICRF113 Transmitter HCS300 Encoder HCS515 Decoder Total Cost

Cost
$2.50 $125.00 $10 $15 $1.50 $5.00 $0.78 $2.21 $0.88 $1.63 $3.35 $152.85

Order size
1 1 1 1 1 20 of each 20 10 10 10 10 -

Table 2 Cost breakdown of various components

13

Part name
Suprema Abracon C1 C1_T C10_T C13_T ,C14_T C2 C2_T C3 , C4 C5_T C7_T Encoder I_lim1,2,3 IC1 L1_T

Value
N/A 1.8432 22 10 0.1 18 10 100 18 10 6.8 HCS300 147 MIRCF113 470

Unit
N/A MHz uF uF uf pF uF pF pF pF pF Encoder Ohm Transmitter nH

Package/Footprint
SFM 3010-FC HC49/U Threw hole 1.00mm _0805 _0603 _0603 _0805 _0603 _0603 _0603 _0603 8-SOIC _0603 SOT23-6 _0805

Manufacturer
Suprema INC Abracon Corporation Panasonic - ECG muRata muRata muRata muRata muRata muRata muRata muRata Microchip Technology Panasonic - ECG Micrel Inc Toko America Inc JW Miller A Bourns Company Micrel Inc

Digi‐key Part number
N/A 535-9009-ND P950-ND 490-1717-1-ND 490-1519-1-ND 490-3573-1-ND 490-1717-1-ND 490-1427-1-ND 490-3573-1-ND 490-3570-1-ND 490-3563-1-ND HCS300/SN-ND P147HCT-ND 576-3229-1-ND LLQ2012-ER47J-ND

L4_T LM340MP-05

150 5 ATMEGA 48 N-Channel 100 9.84375

nH V

_0603 SOT223

M1257CT-ND MIC2920A-5.0BS-ND

MEGA-48 Q4 - MOSFET R2_T Y1

N/A N/A kOhm MHz

28-DIP SOT 23-3 _0603 HC49/US

Atmel STMicroelectronics Vishay/Dale Abracon Corporation

ATMEGA48-20PI-ND 497-3111-1-ND 541-100KHCT-ND 535-9689-1-ND

Table 3 Parts List for the Transmitter side

14

Part name
C2_R C3_R C5_R, C10_R C7_R C8_R C9_R D1 Decoder IC2 L3_R L5_R L6_R, L7_R, L9_R Q3 Q4 MOSFET

Value
1.8 6.8 4.7 100 0.47 100 5.1V Zener HCS515 ATTINY45 51 39

Unit pF pF uF pF uF nF Diode Decoder N/A nH nH

Package
_0603 _0603 _0603 _0603 _0603 _0603 DO-214AC 14-SOIC 8 - DIP _0603 _0603

Manufacturer muRata Electronics muRata Electronics muRata Electronics muRata Electronics muRata Electronics muRata Electronics Micro Commercial Co Microchip Technology Atmel Taiyo Yuden muRata Electronics

Digi‐key Part number
490-1378-1-ND 490-3563-1-ND 490-3297-1-ND 490-1427-1-ND 490-3291-2-ND 490-1519-1-ND SMAZ5V1-TPMSCT-ND HCS515-I/SL-ND ATTINY45-20PU-ND 587-2057-1-ND 490-1176-1-ND

Ferrite bead 9.7941MHz

N/A Oscillator

_0603 HC49

muRata Electronics Abracon Corporation

240-2377-1-ND 535-9694-1-ND

N-Channel

N/A

SOT 23-3

STMicroelectronics Stackpole Electronics Inc

497-3111-1-ND RMCF1/24705%RDKRND

R2 R4_R, R6, PULLUP U1

470

Ohm

_2010

100 MIRCF010

kOhm Receiver

_0603 8-SOIC

Vishay/Dale Micrel Inc

541-100KHCT-ND 576-1962-5-ND

Table 4. Parts List for the Receiver side

15

APPENDIX B

Figure 8 Transmitter Circuit Schematic

16

Figure 9 Receiver Circuit Schematic

17

APPENDIX C

Figure 10 Final Board Layout (transmitting side)

18

APPENDIX D
/********************************************* * Team ThumbStart Univeristy of Idaho * Code Date: 12/07/2008 * Chip type : ATmega48 * Clock frequency : 1.843200 MHz * * PD0 RX PB1 Row 1 * PD1 TX PB2 Row 2 * PD2 COL1 PB3 Row 3 * PD3 COL2 PB4 Row 4 * PD4 COL3 PB5 Button for scanner * PD5 Power for Suprema PB6 XTAL1 * PC0 green LED PB7 XTAL2 * PC1 yellow LED * PC2 red LED * PC4 So for transmitter * PC5 Power for transmitter *********************************************/ #include #include #include #include #include #define F_OSC 1843200 #define baud 9600 #define baudnum F_OSC/16/baud-1 #define keyport PORTD #define keyportddr #define keyportpin PIND #define col1 #define col2 #define col3 #define TRUE #define FALSE #define RETRY #define EXIT #define LOCK #define UNLOCK #define EX #define OK //Clock Speed //Baud Rate //baudnum calculation //Keypad Port //Data Direction Register //Keypad Port Pins //Column1 PD2 //Column2 PD3 //Column3 PD4

DDRD PD2 PD3 PD4 1 0 2 3 0 1 2 3

//void led_on(int); int getkey(void); void setulock(void); void store_code(void); void keypad_init(void); void delayus(unsigned char); void delayms(unsigned char); void send_bytes(char *, int); char getinput(unsigned char); void init_usart(unsigned int);

//get input from keypad and buttons //used to set a new user code //stores the new user code //initializes all the ports

//initializes the USART serial communication

19

unsigned char usart_receive(void); void usart_transmit(unsigned char); unsigned char translate(unsigned char);//translates the key inputs to values int check(unsigned char *,unsigned char *,unsigned char); void reset_receive(void); //resets the receive array after receiving a string void get_scan(void); //decodes received string void transmit_signal(void); //turns on all transmitter parts and send data pulse unsigned char input[10], userlock[5], defaultulock[5], masterlock[10]; unsigned char masterlock[10]="1234554321", defaultulock[5]="96543", userlock[5], input[10]; char enroll[15] = {0x41,0x01,0x00,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x79,0xC0,0x0A}; //enroll char del[15] = {0x41,0x01,0x00,0x17,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x59,0x0A}; //delete char identify[15] = {0x41,0x01,0x00,0x11,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x53,0x0A}; //identify char en_no_scan[15] = {0x41,0x01,0x00,0x05,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6C,0xB5,0x0A}; char no_snan[15] = {0x41,0x01,0x00,0x11,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x6C,0xBF,0x0A}; volatile char receive[29]; char EEMEM storEEPROM[15]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; char hex = 0xB5; char hex1 = 0xBC; char hex2 = 0xBE; char hex3 = 0xB6; char hex4 = 0x6C; char hex5 = 0xBF; char hex6 = 0x05; char hex7 = 0xB6; char hex8 = 0x11; char hex9 = 0x6B; char hex10 = 0xB9; char hex11 = 0x61; char hex12 = 0x41; //Hex values to decode the received signal from Suprema

int lockstatus, keystatus=FALSE, newlock=FALSE, keyval; //declares/initializes int global variables unsigned char status; //declares unsigned char global variable volatile int z=0;//declares z volatile int, z is counter in the receive array void main() { init_usart(baudnum); UCSR0B |=(18); //set baud rate UBRR0L = (unsigned char)ubrr; //set baud rate UCSR0B = (1

Similar Documents

Premium Essay

Final Project

...IT 510 Final Project Guidelines and Rubric Overview The final project for this course is the creation of a System Proposal Document. In any modern enterprise, it is crucial that all of the different stakeholders, users, inputs, and outputs that relate to the business’s IT systems coalesce in a logical and cohesive way for the systems to be effective. As a member of an IT team, your overarching goal is to ensure that the IT systems ultimately do what the business needs them to do. In this course, you have learned about the key principles and practices underlying the analysis, design, implementation, and management of IT systems. In this final project, you will apply this knowledge by creating a systems proposal document. The project is divided into four milestones, which will be submitted at various points throughout the course to scaffold learning and ensure quality final submissions. These milestones will be submitted in Module Two, Module Four, Module Six, and Module Eight. The final submission will occur in Module Nine. In this assignment, you will demonstrate your mastery of the following course outcomes:     Assess the relationship of systems analysis, design, implementation, and development processes as they relate to the management of information technology systems Communicate the paradigms, processes, and activities of systems development to diverse audiences Apply structure and object oriented analysis modeling techniques to analyze, design, and...

Words: 2901 - Pages: 12

Free Essay

Ece 313 Week 5 Final Project

...ECE 313 WEEK 5 FINAL PROJECT To purchase this visit here: http://www.activitymode.com/product/ece-313-week-5-final-project/ Contact us at: SUPPORT@ACTIVITYMODE.COM ECE 313 WEEK 5 FINAL PROJECT The Final Project will illustrate how family-centered programs, theories, and concepts support the early childhood classroom and the child’s family. The family-centered approach asserts that family involvement is important for a young child’s cognitive and social development. The Final Project, which will be presented via PowerPoint, will address the following scenario: You are the director of a preschool program that serves children ages three to five. You are giving a presentation to teachers and parents to encourage partnerships in the education of the whole child. The objective of your presentation is to encourage adaptive skills and to facilitate strategies in which to maximize these abilities that can be taught in the classroom and extended at home. Address the following points: 1. Self-help skills. 2. Pro-social skills. 3. Self-regulation skills. For each of the three skill-sets: 1. Explain the desired skills and how they relate to the classroom and home. 2. Identify and discuss two to three strategies for teaching the skill-set to children in the classroom. 3. Explain how you will help parents to utilize the strategies to reinforce the desired ability at home. 4. Identify and describe a resource (either community or web-based) for the parents to use to continue...

Words: 1497 - Pages: 6

Free Essay

Ece 313 Week 5 Final Project

...A++PAPER;http://www.homeworkproviders.com/shop/ece-313-week-5-final-project/ ECE 313 WEEK 5 FINAL PROJECT The Final Project will illustrate how family-centered programs, theories, and concepts support the early childhood classroom and the child’s family. The family-centered approach asserts that family involvement is important for a young child’s cognitive and social development. The Final Project, which will be presented via PowerPoint, will address the following scenario: You are the director of a preschool program that serves children ages three to five. You are giving a presentation to teachers and parents to encourage partnerships in the education of the whole child. The objective of your presentation is to encourage adaptive skills and to facilitate strategies in which to maximize these abilities that can be taught in the classroom and extended at home. Address the following points: Self-help skills. Pro-social skills. Self-regulation skills. For each of the three skill-sets: Explain the desired skills and how they relate to the classroom and home. Identify and discuss two to three strategies for teaching the skill-set to children in the classroom. Explain how you will help parents to utilize the strategies to reinforce the desired ability at home. Identify and describe a resource (either community or web-based) for the parents to use to continue their learningat home. The PowerPoint presentation must be 18 to 20 slides in length, not including...

Words: 353 - Pages: 2

Premium Essay

Nt1310 Unit 8 Final Project

...Final Design Project The final design was a combination of a month’s worth of creativity, ingenuity, hard work and most importantly, team work. Although the preliminary design was determined to be mostly unusable, we did gain a vast amount of knowledge which was critical to the final design of our project. The first portion of the project was tasked with catching all of the marbles as they were going to be dropped all at once. Our goal was to create a mechanism which would all for the balls to be sent through the project one by one as we believed that this would allow for more efficient and more accurate sorting. Thankfully, we were able to use the same design for the ball delivery system as in the preliminary design as the entire team was very pleased with how well it worked. The final design for the mechanism was built on a cardboard shoe box which was flipped...

Words: 1616 - Pages: 7

Premium Essay

Capstone Final Project

...Capstone Greenway Bank Project Presented by: CISSA Amed Aplicano, Ivan Armendariz, Chris Christopher, Steven Smedley, Samuel Holman Table of Content 1. Table of content…………………………………………………………………………..……1 2. Project Charter………………………………………………………………………………....2-11 3. Change Management Plan…………………………………………………………………12-15 4. Change Management Procedure……………………………………………………….16 5. Project Schedule and Gantt Chart………………………………………………………17 6. Network Activity Diagram………………………………………………………………….18-20 7. Work Breakdown Structure……………………………………………………………….21 8. WBS Dictionary………………………………………………………………………………….22-24 9. Network Logical Diagram………………………………………………………………......25-26 10. Network Physical Diagram………………………………………………………………….27 11. Server Configuration…………………………………………………………………………..28-30 12. Active Directory Schema…………………………………………………………………….31 13. Client Configuration……………………………………………………………………………32-33 14. Infrastructure Configuration……………………………………………………………….34 15. Budget/Bill of materials……………………………………………………………………….35-37 16. Quality Plan…………………………………………………………………………………………38-40 17. Risk Management Plan………………………………………………………………………..41-48 18. Meeting Minutes…………………………………………………………………………………49-66 19. Final presentation slides……………………………………………………………………..67-77 20. Progress report………………………………………………………………………………….78- 1 NT2799.U1.HO4 Greenway Bank: Project ______________________________________________________________________________ Greenway Bank Project NSA Capstone Project Charter __________...

Words: 12136 - Pages: 49

Premium Essay

Project Management Final Paper

...1. Project Definition Form 1.1 Project Title Biaño’s Pizzaderia Inventory Management System 1.2 Project Context On March 27, 2007, the friends and neighbors of Alberto Biaño in Cebu City were treated to the first serving of Mr. Biaño's famous pizza.  This core group became his first loyal customers, as news spread far and wide of the pizza with the great homemade taste that everyone could afford.  Inspired by the resounding success of his initial offering, Alberto Biaño continued to develop his recipes to improve his pizzas' quality and taste until a perfect blend of crispy dough and aromatic sauce was achieved for everyone to enjoy. Another innovation was the concept of the “pizzaderia”, which  combined the words “pizza” and “carenderia”, to describe the little streetside eateries where Biaño’’s delicious but affordable pizzas were enjoyed by  people from all walks of life. Whether for birthdays, anniversaries, celebrations and get-togethers, everyone wanted to make a Biaño’s pizza part of their special treat. From that little pizzaderia in Mabolo, Mr. Biaño soon branched out to Capitol, Tabunok, USC Main, Mandaue and Mactan, making Biaño's pizza a truly well-loved snack in Cebu.  Realizing the potential for such great value in an affordable price, many franchisers from different places all over the country such as Cagayan de Oro, Oroquieta City, Butuan soon became part of the Biaño's Pizzaderia family 1.3 Statement of the Problem As of now, Biano’s Pizzaderia only...

Words: 3731 - Pages: 15

Premium Essay

Is535 Final Course Project

...Starting an E Commerce Online Business Keller Graduate School of Management Managerial Applications of Information Technology 11/12/2011 [Type the fax number] Jamie Lynch You want to start an E commerce business selling your products and services online but how to get started? Milestone 1 Problem: The business problem to be solved is how can an entrepreneur start and maintain a successful E commerce business online? Background: The first key to starting a successful online business is to first understand ecommerce and how it operates. Most people understand that ecommerce or electronic commerce refers to the buying and selling of products or services over electronic systems such as the Internet and other computer networks. However, it stretches beyond just the buying and selling of goods; it also includes an online process of developing, marketing, selling, delivering, servicing and paying for products and services.  “The use of commerce is conducted in this way, spurring and drawing on innovations in electronic funds transfer, supply chain management, internet marketing, online transaction processing, electronic data interchange (EDI), inventory management systems, and automated data collection systems. Modern electronic commerce typically uses the World Wide Web at least at one point in the transaction's life-cycle, although it may encompass a wider range of technologies such as e-mail, mobile devices and telephones as well”. (Electronic Commerce, modified...

Words: 3665 - Pages: 15

Premium Essay

Final Course Project Paper

...Tektronix Portfolio: Bringing Innovation and Satisfaction Week 7 Course Project Final Draft PROJ 587 Advanced Program Management Contents 1.0 Executive Summary 4 2.0 Organization’s Strategic Plan 5 3.0 Organization’s Strategic Capacity Plan 6 3.1 Defend the Core 6 3.2 Expansion of Sales and Products 6 3.3 Balance the Portfolio 6 4.0 Portfolio Management Process 7 4.1 Portfolio Strategic Plan 7 4.2 Portfolio Charter 7 4.3 Portfolio Management Plan 7 4.4 Portfolio Roadmap 8 4.5 Portfolio 9 5.0 Project Selection Criteria 9 5.1 Project Definition 9 5.1.1 Project Categorization 9 5.1.2 Project Prioritization 9 5.1.3 Weighted Scoring Method 10 5.2 Project Acceptance 11 5.2.1 Business Criteria 11 5.2.2 Logistical Criteria 11 6.0 Program Management Plan 11 6.1 Setup of Program Management Office (PMO) 11 6.1.1 Responsibilities: 11 6.2 Phase Gate Review Team 12 7.0 Plan to Identify/Resolve Triple Constraints Conflicts 12 8.0 Change Management Plan 14 8.1 Controlling Scope Change 14 8.2 Change Control Process 15 9.0 Resource Utilization Plan 16 9.1 Network Diagram 16 9.1.1 Utilization 16 9.1.2 Background Activities 16 9.1.3 Single-Tasking and Mulit-Tasking 16 9.1.4 Cross-Training 17 9.1.5 Identify Time-Critical Activities 17 9.1.6 Schedule Based on Deliverables 17 9.2 Requirements Plan 17 10.0 Works Cited 19 1.0 Executive Summary The primary purpose and goal of this report is to explain in detail the Portfolio Management...

Words: 4607 - Pages: 19

Premium Essay

Final Course Project(Rebuilding the Neighborhood Playground Project

...Rebuilding the Neighborhood Playground Project Lawanna Martin MGMT404 Course Project Professor Herbig 06/20/2012 Rebuilding the Playground Project Executive Summary: For several years now the Fifth Street neighborhood has been complaining that there playground is in need of being rebuilt or remodeled. They have found that their playground in the neighborhood is not meeting safety standards required by playground new guidelines. The official in the neighborhood has done some fundraising to have the playground rebuilt to meet these standards. They would like for the playground to be safer with much more activities for the entire family to enjoy by removing the old playground and replace it with new playground equipment. They would like for the kids in the neighborhood to enjoy more outdoor play and closer to their homes. Scope Statement: Goal Definition This project will include a 2,500 square-feet area, with structural plastic playground that includes climbing wall, slides, jungle gym which is attached to each other instead of the general wood finishing, as the old playground was. It will also contain monkey bars at a fixed height so that kids will not get hurt when jumping down. There will be three swing sets (belt swing, infant/toddler swing, and tire swing), so that parents have the choice of which is safer for their kids. A concrete side walk will be included, so that kids can ride their bikes and other things. Benches will be placed closely...

Words: 843 - Pages: 4

Premium Essay

Proj 587 Project Final

...Course Project Epsilon: Portfolio Management Plan Instructor: Stanley Mefford Oct 24, 2012 Table of Contents Introduction 3 Epsilon’s Strategic Plan 3 Strategic Capacity Plan 4 Portfolio Management Process 6 Project Selection Criteria 7 Program Management Plan 8 Quality 9 Scope 10 Internal Teams 10 External Teams 11 Scheduling 11 Conflict Resolution Plan 12 Change Management Plan 13 Resource Utilization 15 Conclusion 16 Resources 17 Introduction Deploying over 40 billion emails annually, Epsilon is ranked as the top database marketing services provider and is the world’s leading multi-channel marketing and technology organization (Palmer, 2012). Epsilon works with over 2,000 global clients that represent industries across many markets including financial services, customer packaged goods, retail, travel and pharmaceutical markets. Some of Epsilon’s service offerings include: database technology, email services, and reporting/analytics. As a leader in the market, an impressive 26 of the Fortune 100 companies trust them to provide marketing services (Epsilon, 2012). Since 2009, Epsilon had been experiencing unprecedented growth. In 2011, Direct Marketing News reported that Epsilon’s 2010 global revenues increased 19% as compared to the previous year and was expected to double its revenues (Gordon & Washkuck, 2011). From the outside, forecasts couldn’t be brighter for the company. Internally, however, it was a different story...

Words: 4958 - Pages: 20

Premium Essay

Bscs Final Project Proposal-Template

...BSCS FINAL PROJECT PROPOSAL Title of the Project Term of Registration: Fall 2014 Presented by: Registration No: | Name: | L1F01BSCS0001 | ABC XYZ | L1F01BSCS0002 | ABC XYZ | L1F01BSCS0003 | ABC XYZ | Faculty of Information Technology | University of Central Punjab Project Title Write down the brief project topic in four to five words only. However, the topic should not be ambiguous or very general. Project Advisor The Name of your advisor will come here. Particulars of the students: S.No | Registration# eg.L1F00BSCS0101 | Name in Full Use Block Letters | CGPA | Signatures | 1 | | | | | 2 | | | | | 3 | | | | | Advisor’s Consent I Prof./Dr./Mr./Ms. ________________________________________________ am willing to guide these students in all phases of above-mentioned project as advisor. I have carefully seen the Title and description of the project and believe that it is of an appropriate difficulty level for the number of students named above. Note:Advisor can’t be changed without prior permission of the Manager Projects and the duration for completion of the Project is 2 regular semesters (approx.) from the date of Registration of Research Project. | Signatures and Date | Advisor | EVALUATOR/REFEREE 1 I have carefully read the project proposal and feel that the proposed project is a useful one and of a sufficient difficulty level to justify 2 regular semesters workload for above mentioned students. I have made recommendations...

Words: 1146 - Pages: 5

Premium Essay

Final Project- Strategic Plan and Presentation

...Strategic Plan and Presentation STR/581 Strategic Plan and Presentation Contents Company Overview 2 Background 2 Company Structure 3 Environmental Scan 5 External Factors 5 Internal Factors 6 Strategies 7 Generic Strategies 7 Implementation 8 Company Overview Background KnowledgeNet Enterprises LLC is a business-to-business company that is currently based in Tempe, AZ. The company was formed in 2005 in Aberdeen, Washington in a small two bedroom home in hopes of providing businesses with affordable and high-end training for the Information Technology staff (D. Rottner, personal communication, 2014).Today, KnowledgeNet Enterprises LLC now serves over 6,000 companies world-wide. The company’s focus is to offer quality training that is backed by a customer service team that provides outstanding support to all of the company’s customers (KnowledgeNet, 2013). There are many different options of training available to the company’s customers that provide flexibility for the customers that have limited time to focus on training. The company offers instructor-led training live over the web so that customers get the classroom feel and interaction without having to be in the classroom. There are also recorded versions of all the live classes to provide flexibility for customers that cannot make it to the live class. KnowledgeNet Enterprises LLC also provides practice labs, exams, and full library of online books to assist with the training (KnowledgeNet,...

Words: 3172 - Pages: 13

Premium Essay

Nt1330 Unit 9 Final Project

...the progress of tasks/activities in a project. Also, another useful tool is a Work Breakdown Structure¹, which decomposes the project into smaller tasks to show relationships between the tasks. By combining project scheduling, project time estimation and risks analysis, there will be a higher chance of finishing the project successfully without delays. 2.3.3 Cost Overruns Cost overruns are closely related to project delays, but that is not always the case. Other cases could be changing the project direction from what was planned, or stakeholders...

Words: 605 - Pages: 3

Free Essay

Netw 202 Week 8 Final Project Latest

...NETW 202 WEEK 8 FINAL PROJECT LATEST To Purchase this tutorial visit following link http://wiseamerican.us/product/netw-202-week-8-final-project-latest/ Contact us at: SUPPORT@WISEAMERICAN.US NETW 202 WEEK 8 FINAL PROJECT LATEST Networking 202 Week 8 Final Project Graded NETW 202 WEEK 8 FINAL PROJECT LATEST To Purchase this tutorial visit following link http://wiseamerican.us/product/netw-202-week-8-final-project-latest/ Contact us at: SUPPORT@WISEAMERICAN.US NETW 202 WEEK 8 FINAL PROJECT LATEST Networking 202 Week 8 Final Project Graded NETW 202 WEEK 8 FINAL PROJECT LATEST To Purchase this tutorial visit following link http://wiseamerican.us/product/netw-202-week-8-final-project-latest/ Contact us at: SUPPORT@WISEAMERICAN.US NETW 202 WEEK 8 FINAL PROJECT LATEST Networking 202 Week 8 Final Project Graded NETW 202 WEEK 8 FINAL PROJECT LATEST To Purchase this tutorial visit following link http://wiseamerican.us/product/netw-202-week-8-final-project-latest/ Contact us at: SUPPORT@WISEAMERICAN.US NETW 202 WEEK 8 FINAL PROJECT LATEST Networking 202 Week 8 Final Project Graded NETW 202 WEEK 8 FINAL PROJECT LATEST To Purchase this tutorial visit following link http://wiseamerican.us/product/netw-202-week-8-final-project-latest/ Contact us at: SUPPORT@WISEAMERICAN.US NETW 202 WEEK 8 FINAL PROJECT LATEST Networking 202 Week 8 Final Project Graded NETW 202 WEEK 8 FINAL PROJECT LATEST To Purchase this tutorial visit following link http://wiseamerican...

Words: 495 - Pages: 2

Free Essay

Netw 202 Week 8 Final Project Latest

...NETW 202 WEEK 8 FINAL PROJECT LATEST To purchase this visit following link: https://coursehomework.com/product/netw/ Contact us at: HELP@APEXSEEKERS.COM NETW 202 WEEK 8 FINAL PROJECT LATEST Networking 202 Week 8 Final Project Graded Course Home Work aims to provide quality study notes and tutorials to the students of NETW 202 Week 8 Final Project Latest in order to ace their studies. NETW 202 WEEK 8 FINAL PROJECT LATEST To purchase this visit following link: https://coursehomework.com/product/netw/ Contact us at: HELP@APEXSEEKERS.COM NETW 202 WEEK 8 FINAL PROJECT LATEST Networking 202 Week 8 Final Project Graded Course Home Work aims to provide quality study notes and tutorials to the students of NETW 202 Week 8 Final Project Latest in order to ace their studies. NETW 202 WEEK 8 FINAL PROJECT LATEST To purchase this visit following link: https://coursehomework.com/product/netw/ Contact us at: HELP@APEXSEEKERS.COM NETW 202 WEEK 8 FINAL PROJECT LATEST Networking 202 Week 8 Final Project Graded Course Home Work aims to provide quality study notes and tutorials to the students of NETW 202 Week 8 Final Project Latest in order to ace their studies. NETW 202 WEEK 8 FINAL PROJECT LATEST To purchase this visit following link: https://coursehomework.com/product/netw/ Contact us at: HELP@APEXSEEKERS.COM NETW 202 WEEK 8 FINAL PROJECT LATEST Networking 202 Week 8 Final Project Graded Course Home Work aims to provide quality study notes and tutorials to...

Words: 859 - Pages: 4