Professional Documents
Culture Documents
AVR Microcontroller: Prepared By: Eng. Ashraf Darwish
AVR Microcontroller: Prepared By: Eng. Ashraf Darwish
Prepared by:
Eng. Ashraf Darwish
Ashraf.emad.darwish@gmail.com
Session 3
Stepper Motor
Keypad
Keypad consists of some press buttons
connected together in a matrix way
Keypad
There are many types of keypad
3 4 keypad
Keypad
4 4 keypad
Keypad
Calculator keypad
Keypad
Keypad
Keypad
Keypad connection :
Keypad
EEPROM
Stepper Motor
Stepper Motor
Stepper Motor
Stepper Motor
Stepper Motor
Stepper Motor
Stepper Motor
Stepper Motor
Modes of operation:
Stepper Motor
Full step mode:
Only one coil is active at a time
Stepper Motor
Half step mode:
Stepper Motor
Stepper motor driver:
we cannot drive stepper motor
directly from microcontroller because
microcontroller output current is very
low to drive the motor
Stepper Motor
Stepper motor driver:
Transistors
Stepper Motor
Stepper motor driver:
ULN2003
ULN 2003 is seven
Darlington pair pack
80 mA output current per
driver
50 V Output voltage
Stepper Motor
Stepper motor interface:
+12V
The common of the motor is connected to Vcc
12V
Stepper Motor
Stepper Motor
Stepper Motor
TASK#1 :
Security system :
Door lock password, the password is saved even if the
IC is restarted
The program ask the user to Enter the password and
check if the password is right or not
If the user entered wrong password three times the
system make alarm
If the user entered the right password the stepper motor
of the lock will open and wait 5 seconds and close again
The user can change the password
Thank you
Contact:
http://www.facebook.com/groups/263197427113025
/
Ashraf.darwish@ymail.com
Ashraf.emad.darwish@gmail.com
+201064897791