You are on page 1of 42

Hardware

KIT
Solar Motor

www.embeddedFab.com 2
Solar Motor

www.embeddedFab.com 3
Solar Motor

www.embeddedFab.com 4
Solar Motor with relay

www.embeddedFab.com 5
Solar Motor

www.embeddedFab.com 6
Solar Motor (H-Bridge)

www.embeddedFab.com 7
Solar Motor (H-Bridge by relay)

www.embeddedFab.com 8
Relay Motor Control Circuit
 Advantages
 Uses simple, robust electromechanical devices
 Can handle high voltages and large currents
 Disadvantages
 Requires periodic maintenance (cleaning contacts)
 Relatively slow due to inertia in mechanical parts
 Contact make/break/bounce sparks creating EMI or possible
explosion hazard

 Example: Used under the hood in cars

www.embeddedFab.com 9
H-bridge Motor Control Circuit
 Advantages
 No periodic maintenance is required (no contacts)
 Fast switching speed available (limited by motor)
 No EMI or possible explosion hazard due to sparks
 Disadvantages
 Limited voltage and current handling capacity
 Vulnerable to EMI/EMP or damage due to electrical
transients (may need metal shielded container and
“snubber” or “flyback” diodes)

www.embeddedFab.com 10
Stepper motor
 There are two main types of stepper motors
 Unipolar
 Bipolar

www.embeddedFab.com 11
Stepper motor

Photo from http://pcbheaven.com/wikipages/How_Stepper_Motors_Work/


www.embeddedFab.com 12
Concept of stepper motor

www.embeddedFab.com 13
Concept of stepper motor

www.embeddedFab.com 14
Concept of stepper motor

www.embeddedFab.com 15
Stepper motor

www.embeddedFab.com 16
Stepper motor, Half stepping

 Single-Coil excitation  Two-Coil excitation

www.embeddedFab.com 17
Stepper motor, Full step drive

 Single-Coil excitation  Two-Coil excitation

www.embeddedFab.com 18
Unipolar stepper motor

www.embeddedFab.com 19
Bipolar Stepper Motors

www.embeddedFab.com 20
Unipolar Stepper Motor vs Bipolar Stepper Motors

www.embeddedFab.com 21
Unipolar Stepper Motor vs Bipolar Stepper Motors

Unipolar Bipolar
Less torque More torque (better weight vs. power ratio)
5-6 wire connection wires 4-wire connection
Small to medium capacity (1 to 45kW) Medium to high capacity (30 to 2000kW)
Generally less expensive Generally more expensive

www.embeddedFab.com 22
Servo Motor

www.embeddedFab.com 23
Servo Motor
 A servo motor is a motor that is only
capable of rotating 180 degrees
 A servo motor is controlled by giving
it an angle to proceed to, between 0
and 180, as apposed to a speed or
direction
 It has high torque but low speed in
comparison with a standard DC
motor

www.embeddedFab.com 24
Servo Motor
 Servo motors are constructed
out of basic DC motors, by
adding:
 gear reduction
 a position sensor for the
motor shaft location
 an electronic circuit that
controls the motor's
operation

www.embeddedFab.com 25
Servo Motor Wiring

 A servo connects to a microcontroller using three wires


 Power (5V)
 Ground
 Control

www.embeddedFab.com 26
Servo Motor Control  The control wire communicates
the desired angle
 The angle is determined by the
duration of the pulse applied to
the control wire
 A 1.5 millisecond pulse will
make the motor turn to the 90
degree position
 A pulse shorter than 1.5 ms will
cause the motor to turn closer
to 0°. Longer than 1.5ms and
the shaft will turn closer to
180°

www.embeddedFab.com 27
Servo Motor Control

www.embeddedFab.com 28
seven segment display
seven segment display

www.embeddedFab.com 30
seven segment display

www.embeddedFab.com 31
seven segment display

www.embeddedFab.com 32
seven segment display
.Hex a b c d e f g . Digit
0x3F 1 1 1 1 1 1 0 0 0
0x06 0 1 1 0 0 0 0 0 1
0x5B 1 1 0 1 1 0 1 0 2
0x4F 1 1 1 1 0 0 1 0 3
0x66 0 1 1 0 0 1 1 0 4
0x6D 1 0 1 1 0 1 1 0 5
0x7D 1 0 1 1 1 1 1 0 6
0x07 1 1 1 0 0 0 0 0 7
0x7F 1 1 1 1 1 1 1 0 8
0x6F 1 1 1 1 0 1 1 0 9
www.embeddedFab.com 33
seven segment display

www.embeddedFab.com 34
seven segment display

www.embeddedFab.com 35
seven segment display, swiping

www.embeddedFab.com 36
seven segment display, swiping

www.embeddedFab.com 37
seven segment display, shift register

www.embeddedFab.com 38
shift register

www.embeddedFab.com 39
shift register

www.embeddedFab.com 40
Thank you for
your attention!
Any Questions?

www.embeddedFab.com 41
Contact Details
Eng.Mahmoud Tantawy.
Sr. Embedded Software Developer

Tel: 0106591108

Mahmoud.tantawy@embeddedfab.com

www.embeddedFab.com 42

You might also like