Professional Documents
Culture Documents
MOTORS EVERYWHERE!
Refrigerator- Two or three in fact: one for
the compressor, one for the fan inside the
refrigerator
Tape playerin the answering machine
Vacuum cleaner
Electric drill
Fan
Electric toothbrush
Hair dryer
Power seats (up to seven motors per seat)
Windshield wipers
MOTOR : TYPES
If you plan to get involved in robotics, you will need to
familiarize yourself with the many types of motors available.
BRUSHED DC MOTOR
MOTOR : TYPES
GEARED DC
MOTOR
DC motors are often coupled
with gears which provide greater
torque, but reducing speed.
MOTOR : TYPES
SERVO MOTOR
BRUSHLESS DC
MOTOR
STEPPER
MOTOR
LINEAR DC
MOTOR
MOTOR : INPUTS
INPUT AT INPUT AT OUTPUT
A
B
1
ROTATES
CLOCKWI
SE
ROTATES
ANTICLOC
KWISE
STOPS
STOPS
MOTOR DRIVER
A motor driver is an electronic device that acts as an
intermediate device between a microcontroller, a
powersupplyor batteries, and the motors.
Why do we not connect our motor directly to the mcu?
The motor draws very high current much higher than the
operating current of the mcu.
Thus,themicrocontrollerand the motor driver have to work
together in order to make the motors moveappropriately.
MOTOR DRIVER :
DC Motor Control:
WORKING:
L293D AN H-BRIDGE
Using H-bridge circuit, you can supply current in two directions.Thats it.
Lets say you have a DC motor, as in the diagram below:
If you
Close both S1 and S2?
Close S3 and S4.
Close switches S1 and S4
Close S3 and S2
Direction of rotation in last two cases?
This is exactly whats needed in most robotics projects using differential
drive wheels. But having physical switches would be very inconvenient.
So an electronically controlled switch: a transistor is used.
PIN DIAGRAM
Vcc1 : logical voltage supply
for a 1
Vcc 2is the actual voltage that
needs to be output
GNDrepresents grounds. These
are needed for the multiple solid
state switches that are burned
into the IC.
ENABLEpins enable/disable the
corresponding sides.
INTRODUCTION TO
MICROCONTROLLERS
What is a Microcontroller?
Mcu is similar to your
home computer.
At the same time, it is
different from your
home computer. how?
The computing power
is much scaled down in
your microcontroller
compared to your
laptop.
Microcontroller(Atmega8)
Features of a Microcontroller
Block
Diagram
Speeds of up to 16 MIPS
Microcontroller Families
8051(At89s52)
AVR (Atmega8/16)
PIC (PIC10F)
ARM (LPC2148)
MSP (MSP430)
WHY AVR?
Features of an ATMEGA 8
I/O in AVR
DDRD = 0b00001111;
The above line configures the lower nibble of
PORTD to output and the higher nibble to input.
The above code will store the input value into the variable x.
THANK YOU
THE END