You are on page 1of 5

Smart Locker

Circuit Action :

In our project we use PIC12F675 Microcontroller to open and close locker


door.

PIC12F675 is an 8-Bit CMOS Microcontroller made by MICROCHIP TECHNOLOGY


and is developed on high-performance RISC architecture. This microcontroller is very
popular among hobbyists and engineers due its cost and small size.

Pin configuration

PIC12F675 is an 8 pin device and many of the pins can perform multiple functions as
shown in above PIC12F675 pin diagram. The description for each of these functions
is given below.

Pin Function Description

1 VDD Positive Power Supply

2 GP5/T1CKI/OSC1/CLKIN GP5: General purpose I/O pin 5

T1CKI: Timer1 external clock input

OSC1:Oscillator pin 1

CLKI: External clock source input

3 GP4/ AN3/ T1G/OSC2/CLKOUT GP4: General purpose I/O pin 4

AN3: Analog input 3

T1G: Timer1 gate


OSC2: Oscillator pin 2

CLKO: Clock source output

4 GP3/MCLR/VPP GP3: General purpose I/O pin 3

MCLR: Master Clear Input or Reset pin

VPP: Programming voltage

5 GP2/AN2 /T0CKI/INT/COUT GP2: General purpose I/O pin 2

AN2: Analog input2

T0CKI: Timer0 clock input

INT: External Interrupt

COUT: Comparator output

6 GP1/AN1/CIN-/VREF/ICSPCLK GP1: General purpose I/O pin 1

AN1: Analog input1

CIN-: Comparator input

VREF: External Voltage reference

ICSPCLK: Serial Programming Clock

7 GP0/AN0/CIN+/ICSPDAT GP: General purpose I/O pin

AN0: Analog input0

CIN+: Comparator input

ICSPDAT: Serial Programming Data I/O

8 VSS Ground
PIC12F675 Features and Electrical characteristics

CPU 8-bit

Total number of pins 8

Programmable pins 6

Communication Interface ICSP or In-Circuit Serial Programming Interface (13,14 Pins) [Can be
programming this controller]

ADC Feature 4 channels of 10-bit resolution

Timer Feature One 8-bit counter, One 16-bit counter

PWM channels Not available

Analog Comparator Available-1

External Oscillator Up to 20MHz

Internal Oscillator 4MHz Internal R-C Oscillator factory calibrated to ±1%

Program memory / Flash 2Kbytes[100000 write/erase cycles]


memory
CPU Speed 1MIPS @ 1MHz

RAM 64bytes

EEPROM 128bytes

Watchdog Timer Available and is featured with Independent

Oscillator for Reliable Operation

Power Save Modes Available

Operating Voltage 2.0V to 5.5V

Maximum current to any IN :25mA


I/O pin
OUT : 25mA

Operating Temperature -40°C to +125°C

Maximum current into VDD 250mA


pin

In this circuit microcontroller connect to laptop by using usb to serial converter

A servo motor and buzzer are connected to microcontroller.

If image or password not match then MATLAB code send No to microcontroller


the buzzer on for 5 second that indicate something wrong with Locker
When image and password are match then MATLAB code send OK to
microcontroller than microcontroller open locker using servo motor and after 5
second it lock again.

You might also like