Professional Documents
Culture Documents
DC Motor
•DC motors make things like appliances
and power tools work by converting
electrical energy to mechanical energy
•Inductive device
Parts of DC Motor
• The motor features a permanent horseshoe
magnet (called the stator because it’s fixed in place) and
an turning coil of wire called an armature (or rotor,
because it rotates).
• The armature, carrying current provided by the battery, is
an electromagnet, because a current-carrying
wire generates a magnetic field; invisible magnetic field
lines are circulating all around the wire of the armature.
Parts of DC Motor
• A single, 180-degree turn is all you would get out of this
motor if it weren't for the split-ring commutator — the
circular metal device split into halves (shown here in red
and blue) that connects the armature to the circuit.
• Electricity flows from the positive terminal of the battery
through the circuit, passes through a copper brush to the
commutator, then to the armature. But this flow is
reversed midway through every full rotation, thanks to
the two gaps in the commutator.
Key Principle
•The key to producing motion is positioning the
electromagnet within the magnetic field of the
permanent magnet (its field runs from its north
to south poles). The armature experiences a
force described by the left hand rule. This
interplay of magnetic fields and moving charged
particles (the electrons in the current) results in
the torque (depicted by the green arrows) that
makes the armature spin.
DC Current Electricity
and
Magnetism
in
Electrical Conductors
Electric Field
An Electric Field or Force Surrounding a Charged Particle
Cathode Anode
Batteries use
+ + electrochemical
reactions to
+ +
produce
+ dissimilar
+
charges used to
+ + create current
+
in DC motors
+
and circuits.
The electric
field produced
+ + in a battery
+
forces current
+
+ through an
+ electric circuit
+ or conductor
+
connected
+
across the
+
battery poles,
Armature
Fixed Magnets
A Conductor in a Fixed A Current Carrying Conductor
Magnetic Field in a Fixed Magnetic Field
Force
S
N
Direction of Force (Torque) acting
to turn the Armature (Conductor)
Middle Finger =
Conventional
Current Direction
Conventional
Current Direction S
N
A S Use the Left Hand Rule to
Determine the Rotation
Direction of the Armatures
in A and B
B
Notice that when the
current through the
armature is reversed,
S
it moves (Rotates) in
the opposite direction
N
Magnetic Forces Acting on Parallel
Current Carrying Conductors
North
North
Wrapping current carrying conductors around
an iron core creates an electro magnet
The Armature of a Brush Commutated DC
Motor is made up of Current Carrying
Conductors Wrapped Around an Iron Core
4
Armature
Coil Commutator
Stator
Brush
Activity 1
Materials needed:
1. Mosfet (transistor) 10. Breadboard
2. 10k Resistor 11. Laptop w/ Arduino
3. 1N4007 diode
4. 6-12V motor
5. Tactile switch
6. Arduino Uno
7. 9V battery
8. Battery snap
9. jumperwires
Transistor
• Components that
allows you to control
high voltage power
sources to low current
output
• Gate – digital switch Gate
• Drain – connects Drain
output device
Source
• Source - GND
Diode
•Components that control
back voltage
•Allow electricity to flow from
one direction
Back voltage – voltage that
may harm circuits
Activity 1 – Motorized Pinwheel
Activity 1 – Motorized Pinwheel
1. Tactile switch
A – 5V
B – resistor & dig. pin # 2
2. Transitor/Mosfet
Gate (leftmost) – dig. pin 9
Drain (center) – negative (motor) + diode to positive PB
Source – GND
3. Motor
Negative – diode
Positive – 5V
4. Battery - connect +PB to positive (+) and –PB to negative(-)
5. Arduino – connect positive PB to 5V
6. Add a common ground to both Arduino and battery
Activity 1 – Motorized Pinwheel
const int switchPin=2;
const int motorPin=9;
int switchState=0;
void setup() {
pinMode(switchPin,INPUT);
pinMode(motorPin,OUTPUT);
}
Activity 1 – Motorized Pinwheel
void loop() {
switchState=digitalRead(switchPin);
if(switchState==HIGH){
digitalWrite(motorPin,HIGH);
}
Activity 1 – Motorized Pinwheel
else{
digitalWrite(motorPin,LOW);
}
}
Activity 1 – Motorized Pinwheel
const int onPin=13;
const int offPin=12;
const int motorPin=10;
const int ledPin=9;
int switchState=0;
void setup() {
pinMode(onPin,INPUT);
pinMode(offPin,INPUT);
pinMode(ledPin,OUTPUT);
pinMode(motorPin,OUTPUT);
Activity 1 – Motorized Pinwheel
void loop() {
switchState=digitalRead(onPin);
if(switchState==HIGH){
digitalWrite(motorPin,HIGH);
digitalWrite(ledPin,HIGH);
}
Activity 1 – Motorized Pinwheel
switchState=digitalRead(offPin);
if(switchState==HIGH){
digitalWrite(motorPin,LOW);
digitalWrite(ledPin,LOW);
}
}
3rdQtrAct1-Zoetrope
3rdQtrAct1-Zoetrope
Materials needed:
1. Arduino Uno 10. H-bridge or L293NE
2. Breadboard
3. 2 Tactile switches
4. 2 10K Resistors 11. Potentiometer – 3pin
5. 6-12V motor
6. 9V battery
7. Battery snap
8. Jumperwires
9. Laptop with Arduino IDE
H-bridge
•An integrated circuit (IC) that has built-in
components of resistors, transistors and
diodes
•16 pins
Potentiometer
A potentiometer is a simple knob that provides a
variable resistance, which we can read into the
Arduino board as an analog value.
Pin Assignments:
1st – 5V
2nd – pin assignment
3rd - GND
Program
const int controlPin1 = 2;// the control pins will carry
the logic - direction to turn and applied to the H-Bridge
const int controlPin2 = 3;
const int enablePin = 9; // attached to the pin EN
const int directionSWPin = 4;// 4 and 5 carry the values
of button switches
const int onOffSwitchStateSWPin = 5;
const int potPin = A0; // analog signal, because it is a
potentiometer delivering continuous values
Program
int onOffSWState = 0;
int previousOnOffSWState = 0;
int directionSWState = 0;
int previousDirectionSWState = 0;
int motorEnabled = 0;
int motorSpeed = 0;
int motorDirection = 1;
void setup() {
pinMode(directionSWPin,INPUT);
pinMode(onOffSwitchStateSWPin,INPUT);
pinMode(controlPin1,OUTPUT);
pinMode(controlPin2,OUTPUT);
pinMode(enablePin,OUTPUT);