Docsity

Machine Access System - Lecture Notes | ETEC 471, Study Guides, Projects, Research of Engineering

Partial preview of the text

Download Machine Access System - Lecture Notes | ETEC 471 and more Study Guides, Projects, Research Engineering in PDF only on Docsity!

Machine Access System

Reed Henderson

ETEC 471

Project Description

Functional Description

Introduction The machine access system is a device that monitors and controls the ability for people to use machinery. It has the ability to read ID cards and determine based on its database whether or not to activate the machine. It also has a key pad that will allow administrators to enter and remove users and change user access privileges. Its secondary function is to keep a log of who has been using the machine and for how many hours. This functionality is critical in an environment where many people are using the machine in order to make sure that the machine receives maintenance at proper intervals.

Hardware Description The maximum dimensions of the machine access system are 7in x 6in x 2.5in. This dimension does not include the magnetic strip reader. I am using a 4 by 20 character LCD screen that will display the menus and information. I will be using a 4 by 4 keypad which will allow for easy menu navigation. One of the most important parts of the machine access system is the relay. I will be using a relay to shut down power to the machine.

6 inches

7 inches

2.5 inches

63.5 mm

71 mm

76 mm 25 mm

0 1 2 3 4 5 6 7 8 9 ▲ ◄▼ ►

21 mm 24 mm 90 mm

Amplifier and Comparator The signal from the card reader will need some work before it is read by the microcontroller. For this I will use an op amp and a voltage comparator. This will allow me to get a decent square wave that the microcontroller can read.

LCD Screen The LCD that I am using is a 4 by 20 character display. It measures 98mm by 60mm. This LCD will be large enough for the menus to be easily used without having to page down. It has an input voltage rating of 4.7V-5.5V and a current rating of 1.5mA. The LCD will also have a backlight so that it will be easy to read.

Keypad The keypad that I will be using has 16 buttons but I will only be using 14 of the buttons in the configuration seen below. The dimensions of the keypad are 76.2mm by 68.58mm.

Relay I will be using a 280VAC relay. This will allow me to control equipment that is running on 110V AC and 220V AC. The relay will be connected directly in the power line running to the machine and will shut off all power to the machine when the relay is disabled. Most machines are wired directly into the wall, so the power will have to be shut off to splice into the wire. The control range for the relay is 3V-32V DC. This will allow me to easily control it with 5V from the microcontroller. The current rating for the relay at 5V is 10mA. The current rating for the machine side of the relay at 280VAC is 25 Amps.

Current Sensing Transformer The machine access system will have a current sensing transformer so that it can determine if the machine has been left idle. This transformer will be connected directly into the power line to the machine following the relay. Its current rating is .1 to 30 Amps at frequencies from 50Hz to 400Hz. The typical output is 110mV/Amp. I will be using an A/D port so that I can easily determine if the voltage from the transformer is below the level at which the machine operates.

Software Requirements I will be doing all of my programming in C. There is a significant amount of software involved in this project, so a higher level language will help keep things as simple as possible. I will also be using Micro C/OS in order to simplify how I run tasks. Four modules will be needed to perform specific operations. There will be an LCD module, a keypad module, magnetic strip reader module and a relay control module.

Module Description Main Module The main module is the top level module. It will run all of the other modules. I will be using Micro C/OS. LCD Module The LCD module will control the LCD display. Keypad Module The Keypad module will take inputs from the keypad and will also include switch de-bouncing. Magnetic Strip Reader Module The magnetic strip reader module will take input from the card reader in order to produce an ID number when a card is swiped. Relay Control Module The relay control module will control whether or not the relay is active in order to control access to the machine. Current Sense Module This will determine if the voltage from the current sensing transformer has dropped below the level of when it is in use. PC Interface This will control the transfer of data from the machine access system to a computer. Any time a computer is connected the log will be transferred to the computer.

User Interface The machine access system will have a menu system with seven different screens as seen below.

Home Screen

Password Prompt Machine Active

Settings

Clear Log

1

2

Correct

Incorrect

1

2

Card Scanned Card Scanned

◄

◄

◄

1: Machine Log 2: Settings

Enter Password:

1: Add/Delete Users 2: Clear Log

1: Add User 2: W 3: W 4: W

Machine Active W Time 0:

W00000004 1: W00000007 0: W00000004 1: W00000005 0:

◄ or Machine Inactive

Add/Delete Users

Page Up ▲

Page Down ▼

Machine Log

Add/delete Users The add/delete users menu will display the user ID list. The up and down arrows will allow you to page up and down. If a user is selected it will delete them from the system. If a card is scanned it will add them to the system. You can also add users by typing in there ID number. If “1” is pressed it will prompt you to enter a user ID number to be added to the user list. Once 8 characters have been entered it will add the ID number to the user list and return to the add/delete users menu. If the back button is pressed from the add/delete users menu it will go back to the settings menu.

Computer Interface It will also be possible to connect the machine access system to a computer using an RS- interface. Any time a computer is connected it will transfer the log data to the computer. This will make it easy to monitor the use of the equipment.

Protocols and Standards The protocol for reading the Western ID cards is called ISO 7810. It is a standard describing the recording technique on ID cards. The machine access system will have to comply with this standard in order to properly read ID cards. It is important to make sure that the card can be read regardless of how fast it is swiped.

Development Plan

Winter Weekly Schedule It will be very important during winter quarter for me to set up the circuitry needed in order for the microcontroller to be able to read information coming from the card reader. I will also need to order all of the parts that I will need as soon as possible. Since I will not have enough background in writing C until near the end of winter quarter, I will need to complete other non programming tasks instead.

Week Development Goals Week 1 Order Parts Week 2 Determine device connections Week 3 Continue research on device connections Week 4 Begin assembling hardware Week 5 Finish assembling hardware Week 6 Test magnetic strip reader Week 7 Determine method for reading from magnetic strip reader Week 8 Begin writing software for magnetic strip reader Week 9 Continue writing software for magnetic strip reader Week 10 Study for finals

Spring Weekly Schedule Much of spring quarter will be spent writing software in C. The largest piece of software that I will be writing is the software for reading ID cards. I will make sure to begin working on this portion well ahead of time. Other than writing software, the other large item that I will need to complete is the hardware design. The hardware design should go pretty smoothly because I will have already spent time working on it during winter quarter.

Week Development Goals Week 1 Finalize hardware design Week 2 Continue hardware design, begin hardware documentation Week 3 Finish hardware design Week 4 Finish hardware documentation, work on software, design review Week 5 Continue working on software Week 6 Software system presentation Week 7 Join all components together Week 8 Prepare for final presentation Week 9 Code reviews Week 10 Final presentation

Development Hardware and Software The main piece of software that I will be using is Metroworks Codewarrior. Metroworks Codewarrior is available on the computers in the 340 lab and will also be on my home computer. This will allow me to be very flexible about when I work on the software component of my project. The second piece of software that I will be using is Eagle. I will be using Eagle to create my project schematic. There is a lot of development hardware in the labs that I will be utilizing throughout the course of this project. This includes the DMMs, mixed-signal oscilloscopes, and power supplies. The mixed-signal oscilloscopes will be particularly useful when I begin looking at the output from the card reader.

Description of Prototype My prototype will be built using all of the components described in the parts list. I will inevitably solder some of these components together for my prototype. It will be built as close to a final product as possible but will use the Freescale development board instead of the final PCB. This may cause the prototype to be slightly larger than the final product would be but for the most part this will be insignificant. I will also create a housing for the machine access system. For the purposes of presenting my project I will not use the housing because it would hide the hardware components of my project. To be able to demonstrate my project in the labs I will be controlling access to a scroll saw.

Sustainability Design Issues Power consumption is a concern of mine in designing the machine access system. I am being careful to choose components that minimize its power consumption. If this device were to be replaced with a different product or removed from the machine, most of its components could be recycled. The card reader is rated for 300,000 swipes so is not likely to need replacement very