# Introduction gate has been provided at the entry of the parking space which opens on the arrival or departure of a car.A display section has been provided which consist of status signal and a display sowing the number of the number of the cars space available in the parking space at any point of time .after the maximum number cars have entered the parking space the gate is automatically disabled or closed for vehicles seeking entry into the parking lot. In this project Microcontroller ATtiny26 is used. The software for the microcontroller is written in BASCOM-AVR (a powerful basic complier) which is capable of creating a hex file. The hex file code can be burnt into the microcontroller using any commonly available programmer or kit or burner. The line LCD display, stepper motor, power supply also the key parameters of this project. Authors ? ? : B. Sc in Electrical & Electronics Engineering from Rajshahi University of Engineering & Technology (RUET), Rajshahi, Bangladesh. e-mails: mmisrafil@gmail.com, dhrubo_eee88@yahoo.com II. # Description of a ATtiny26(l) Microcontroller & IRFZ44 The ATtiny26(L) is a low-power CMOS 8-bit microcontroller based on the AVR enhanced RISC architecture. By executing powerful instructions in a single clock cycle,the ATtiny26(L) achieves throughputs approaching 1 MIPS per MHz allowing the systemdesigner to optimize power consumption versus processing speed.The AVR core combines a rich instruction set with 32 general purpose working registers.All the 32 registers are directly connected to the Arithmetic Logic Unit (ALU), allowing two independent registers to be accessed in one single instruction executed in one clockcycle. The resulting architecture is more code efficient while achieving throughputs up toten times faster than conventional CISC microcontrollers. The ATtiny26(L) has a high precision ADC with up to 11 single ended channels and 8 differential channels. Sevendifferential channels have an optional gain of 20x. Four out of the seven differential channels, which have the optional gain, can be used at the same time. The ATtiny26(L)also has a high frequency 8-bit PWM module with two independent outputs. Two of the PWM outputs have inverted nonoverlapping output pins ideal for synchronous rectification.The Universal Serial Interface of the ATtiny26(L) allows efficient softwareimplementation of TWI (Two-wire Serial Interface) or SM-bus interface. XTAL2 Output from the inverting oscillator amplifier. IV. # Stepper Motor A stepper motor is an electromechanical device which converts electrical pulses into discrete mechanical movements. The shaft or spindle of a stepper motor rotates in discrete step increments when electrical command pulses are applied to it in the proper sequence. The motors rotation has several direct relationships to these applied input pulses. The sequence of the applied pulses is directly related to the direction of motor shafts rotation. The speed of the Design of an Automated Car Parking System by using Microcontroller XIII Issue XVI Version I 2 ( ) Year motor shafts rotation is directly related to the frequency of the input pulses and the length of rotation is directly related to the number of input pulses applied. V. # ATtiny26(l) Block Diagram # Reason of using Mosfet Discrete power MOSFETs employ semiconductor processing techniques that are similar to those of today's VLSI circuits, although the device. The metal oxide semiconductor field effect transistor (MOSFET) is based on the original field-effect transistor introduced in the invention of the power MOSFET was partly driven by the limitations of bipolar power junction transistors (BJTs) which, until recently, was the device of choice in power electronics applications. Although it is not possible to define absolutely the operating boundaries of a power device, we will loosely refer to the power device as any device that can switch at least 1A. The bipolar power transistor is a current controlled device. A large base drive current as high as one-fifth of the collector current is required to keep the device in the ON state. Also, higher reverse base drive currents are required to obtain fast turn-off. Despite the very advanced state of manufacturability and lower costs of BJTs, these limitations have made the base drive circuit design more complicated and hence more expensive than the MOSFET. 1![Figure 1 : ATtiny26 (L) Block Diagram](image-2.png "Figure 1 :") ![Design of an Automated Car Parking System by using Microcontroller VII. Block Diagram of Liquid Crystal Display](image-3.png "") 2![Figure 2 : Block diagram of LCD Several types of LCD is available such as 16*2, 20*2, 20*4 etc. 16*2 represents that this LCD contains 16 character per line and total line is 2. LCD has 16 pin. From them 8 pins are data pin. For LED backlight 2 pins are reserved one is anode and other is cathode. Vdd: Positive Supply. Vss: Substrate Voltage (Reference level or Ground potential) VO: Contrast selecting voltage. The contrast of the LCD is inversely proportional to the voltage at VO pin. If it set to ground potential the contrast will be maximum. RS: Resister Select pin. R/W: Read / Write select pin. Setting this pin to one state will configured LCD to read data from LCD and zero state will configured LCD to write data to LCD. As we will write data to LCD this pin will be connected to Vss. E: Enable Pin. D0-D7: Data pin. LCD operates in two mode -Pin mode and Bus mode. Pin mode uses only higher 4 bit and bus mode uses all the data bit. LED+: LED Backlight anode pin. LED-: LED Backlight cathode pin.](image-4.png "Figure 2 :") 3![Figure 3 : Circuit Diagram of 12V & 5V DC Supply](image-5.png "Figure 3 :") 4![Figure 4 : Project work](image-6.png "Figure 4 :") Up to 16 MIPS Throughput at 16 MHzActive 16 MHz, 5V and 25°C: Typ 15 mAData and Non-volatile Program Memory:Active 1 MHz, 3V and 25°C: 0.70 mA2K Bytes of In-System Programmable ProgramIdle Mode 1 MHz, 3V and 25°C: 0.18 mAMemory FlashPower-down Mode: < 1 ?AEndurance: 10,000 Write/Erase CyclesIRFZ44: N channel power MOSFET. Continuous Drain128 Bytes of In-System Programmable EEPROMcurrent 36A with V GS =10VEndurance: 100,000 Write/Erase CyclesIII.Pin Descriptions128 Bytes Internal SRAM Programming Lock for Flash Program and EEPROM Data SecurityVCC GND AVCCDigital supply voltage pin. Digital ground pin. AVCC is the supply voltage pin for Port A andPeripheral Features: 8-bit Timer/Counter with Separate Pre scaler 8-bit High-speed Timer with Separate Pre scaler 2 High Frequency PWM Outputs with Separate Output Compare Registers Non-overlapping Inverted PWM Output Pins Universal Serial Interface with Start Condition Detector 10-bit ADC 11 Single Ended Channels 8 Differential ADC Channels 7 Differential ADC Channel Pairs with Programmable Gain (1x, 20x) On-chip Analog Comparator External Interrupt Pin Change Interrupt on 11 Pins Programmable Watchdog Timer with Separate On-chip Oscillator Special Microcontroller Features: Modes Power-on Reset and Programmable Brown-out Detection External and Internal Interrupt Sources Low Power Idle, Noise Reduction, and Power-downThese featuresallow for highly integrated battery charger and lighting ballast applications, low-end thermostats,and fire detectors, among other applications.The ATtiny26(L) provides 2K bytes of Flash, 128 bytes EEPROM, 128 bytes SRAM, upto 16 general purpose I/O lines, 32 general purpose working registers, the A/D Converter (ADC). It should be externally connected to VCC, even if the ADC is not used. If the ADC is used, it should be connected to VCC through a low-pass filter. Port A (PA7..PA0) Port A is an 8-bit general purpose I/O port. PA7..PA0 are all I/O pins that can provide internal pull-ups (selected for each bit). Port A has alternate functions as analog inputs for the ADC and analog comparator and pin change interrupt as described in "AlternatePort B (PB7..PB0) Port B is an 8-bit XTAL1 Input to the inverting oscillator amplifier and two 8-bitTimer/XIII Issue XVI Version I 51 ( ) Year input to the internal clock operating circuit.In-System Programmable via SPI PortInternal Calibrated RC OscillatorI/O and Packages:20-lead PDIP/SOIC: 16 Programmable I/O Lines32-lead QFN/MLF: 16 programmable I/O LinesOperating Voltages:2.7V -5.5V for ATtiny26LHigh-performance, Low-power AVR® 8-bit4.5V -5.5V for ATtiny26MicrocontrollerSpeed Grades:RISC Architecture:0 -8 MHz for ATtiny26LPowerful Instructions -Most Single Clock Cycle0 -16 MHz for ATtiny26ExecutionPower Consumption at 1 MHz, 3V and 25°C for ATtiny26L32 x 8 General Purpose Working Registers Fully Static OperationA© 2013 Global Journals Inc. (US) © 2013 Global Journals Inc. (US) © 2013 Global Journals Inc. (US) VIII. * VKPower System By Mehta Mehta * Introductory circuit analysis by Boylestad * Direct & Alternating Current Machinery by Rosenblatt * Different books of power electronics * Basic microcontroller training program * Introduction to Basic microcontroller from Wikipedia 9 Digital system & LCD from Wikipedia * ATtiny26(L) microcontroller from Wikipedia