CAN Based Security System Project in Proteus and Arduino


CAN stands for control area network. This is a communication protocol in which more than one control communicates with each other without a host PC in between them. In this the target for each controller is defined but the task are interdependent that is some input will be taken at one controller and the output will be generated by the other controller likewise may more. This communication protocol finds application in large industrial automation.
In this project that is CAN based security design uses the same communication protocol where there are three microcontrollers each having its one specific task. The first control will be interfaced with the keypad to check the password. The second controller will be interface with buzzer and the gate opening circuit. The third controller will be interfaced with the 16x2 LCD. If the password entered is correct there will be no alarm and the gate will be opened with proper display of encrypted password on the LCD and the notifications also else vice versa will happen.
It describes a message based monitoring tool using the RS232 Rx Tx features of the MC to communicate between 3 MCs as per the circuit shown, one for input, one for display and the other for same load in a CAN protocol. The microcontroller used in the project is of AVR family (ATMEGA168) which is of 8 bit.

BLOCK DIAGRAM:


SECTION DESCRIPTION:
  • Keypad block: This consists of switches for entering the password.
  • Controller 1 block: This is used to check the keypad password.
  • Controller 2 blocks: This block is used to generate the alarm if password entered is wrong and control the gate when password entered is correct.
  • Buzzer block: Used to generate alarm.
  • Motor driver block: Used to control the motor of the door.
Motor Driver: Used to drive the DC motors as directed by the microcontroller. This is the OUTPUT block. Here we used L293D to drive the motors .whatever signals it receives from the microcontroller on the basis of that it will drive the motors.
  • Controller 3 blocks:  This block is used to control the LCD displays and the notifications.
  • LCD block: This block is used for display of required set of data.

ADVANTAGES:
*      Modernizes the entire tracking system.
*      It is a very user friendly.
*      Simple to operate and can be installed in a short time.
*      Easier to manage with very less demand on man-power.
*      It has a variable range of operation and hence it can be used at almost all places.

DISADVANTAGES:
Communication should be properly managed.

Programming (done in arduino)

The microcontrollers ATMEGA 168(AVR family) are programmed in arduino compiler to check for the proper input and generate proper output as per the interfacing. Each individual controller executes its input output task and conveys the message to next controller.
The output in the project is LCD interface, buzzer and motor driving unit. There is 16x2 LCD interface also to display the operation and other activities. The LCD is interfaced to the microcontroller through its 6 pins .Proper display on LCD is managed through programming

The motor is interfaced to the microcontroller by a motor driver IC. The signal is generated through the programming. This signal is fed to a motor driver IC L293D. The function of this is to provide proper current and voltage to the motor as well as control the direction of the motor and generate proper output.



LCD Interface:

From Below Circuit you can see connection diagram of LCD in 4-bit mode, where we only need 6 pins to interface an LCD. D4-D7 is the data pins connection and Enable and Register select are for LCD control pins. We are not using Read/Write (RW) Pin of the LCD, as we are only writing on the LCD so we have made it grounded permanently. If you want to use it, then you may connect it on your controller but that will only increase another pin and does not make any big difference.



Circuit Diagram in Proteus

  • ·         You can download the proteus circuit file and hex code for above project from given link
  • ·         Open the project CAN.DSN file and run it.
  • ·         LCD will display Enter Password.
  • ·         Default password is 1234.
  • ·         When you enter correct password LCD will show CORRECT PASSWORD
  • ·         Enter password and you will see motor running first in clockwise direction and then it stops and then it starts running in anticlockwise direction.

 Download PROJECT CAN Here


0 comments:

Post a Comment

 
Top