Jackson Greer - wearetough.org

Download Report

Transcript Jackson Greer - wearetough.org

By Jackson Greer, Room 305
Motors
Make the world go ‘round
How to Power a Motor
• We wanted to know how to control a motor.
• Learn how electrical circuits work.
• And write a program to power it!
Key Terms & Components
•
•
•
•
•
•
•
•
•
•
•
Circuit: a complete electrical network that has a closed loop giving a return path for the
current.
Resistor: a passive two-terminal electrical component that implements electrical resistance
as a circuit element.
Power source: provides electric currents to the circuit.
Ground: the terminal point in an electric circuit.
Switch: a device for making and breaking the connection in an electric circuit.
Electrical conductor: a conductor is an object or type of material that allows the flow of
electricity in one or more directions.
Breadboard: is a construction base for prototyping of electronics.
Transistor: a component that allows you to control the flow of electricity from high current
power sources.
Motor: a type of inductive device where electric current generates a changing magnetic field,
which causes the shaft of the motor to spin around.
Diode: a component that only allows electrical current to flow in one direction.
Arduino Microcontroller: a computer to execute instructions that will power the circuit.
Arduino + Breadboard
Battery + Motor
Resistor
Switch
Diode
Transistor
Pinwheel
Assembly Steps
1. Run power and ground from Arduino to breadboard.
2. Connect 9V battery and motor to breadboard.
3. Add switch and resistor to control current through the
circuit.
4. Place transistor between switch and motor.
5. Connect Arduino to left transistor pin (gate), connect
motor to middle pin (drain), and the third pin (source)
to ground.
6. Add diode between the motor and power and ground,
which prevents back voltage from the motor entering
the circuit.
How to Control?
• The last piece was for us to write a small
program that tells the microcontroller to
cause the motor to spin when the switch is
pressed...
Here’s the Program
Our Circuit