1 of 18

Introduction to Motors

SensorBot

Confidential and proprietary property of TinkRworks, Inc.

Confidential and proprietary property of TinkRworks, Inc.

2 of 18

  • What is a motor?

​

  • Where can you find motors?

1

Confidential and proprietary property of TinkRworks, Inc.

3 of 18

What is a Motor?

  • Our bots have two motors to move around.

​

  • A motor is a rotary machine, driven by an electrical current.

​

  • Rotary machine = machine with rotating part

​

  • Converts electrical energy into mechanical energy.

2

Electricity

Electromagnet

Spinning Axel

Fan blades

Confidential and proprietary property of TinkRworks, Inc.

4 of 18

How does a motor work?

  • Inside the motor is an electromagnet.

​

  • An electromagnet is a device that turns into a magnet when you run electricity through it.

​

  • You can make an electromagnet just by making a coil of wire and putting electricity through it.

​

  • You can also put a piece of metal inside of the coil to make the magnetic field stronger.

3

Confidential and proprietary property of TinkRworks, Inc.

5 of 18

How do Electric Motors Work

4

Confidential and proprietary property of TinkRworks, Inc.

6 of 18

  • Motor Control

5

Confidential and proprietary property of TinkRworks, Inc.

7 of 18

Changing the speed of a motor

  • The speed of a motor can be changed by increasing or decreasing the voltage into the motor.

​

  • Voltage is the amount of electrical power available to push electricity through a circuit and is measured in units of Volts.

​

6

Confidential and proprietary property of TinkRworks, Inc.

8 of 18

Controlling a motor

  • A battery puts out a continuous level of voltage.

​

  • Given a circuit with only a battery and a motor there is no way to control the speed of the motor.

​

  • But in order to get a robot to navigate in a controlled way, we need to be able to speed up or slow down each of its motors independently.

​

7

Confidential and proprietary property of TinkRworks, Inc.

9 of 18

Change the battery

  • The first way to control motor speed is to change the battery that can supply more power:
    • AA batteries supply 1.5 volts
    • 9V batteries supply 9 volts
    • LiPo (Lithium Polymer) batteries supply 3.7 volts

​

  • Stitch batteries together back-to-back to increase the voltage.
    • How much voltage if you put two AA batteries back-to-back? How about 5?

8

Confidential and proprietary property of TinkRworks, Inc.

10 of 18

Change Resistance

  • Another way to slow down a motor is to add a resistor to the circuit.

​

  • A resistor will reduce the electricity flowing through it but not block it entirely.

​

  • Resistance is measured in a unit called Ohms.

​

9

Resistance

Electricity/Voltage Flow

Motor Speed

Low

More

Faster

Medium

Some

Medium

High

Little

Slower

A sample resistor

Confidential and proprietary property of TinkRworks, Inc.

11 of 18

How does this apply to motor speed?

  • What if we instead used a variable resistor?

​

  • Variable resistor = you can change the amount of resistance

​

  • Potentiometers have a knob that you can turn to change the resistance.

​

10

Knob

Confidential and proprietary property of TinkRworks, Inc.

12 of 18

But we can’t swap batteries or change resistors

There are problems with using a variable resistor or changing batteries to control motors:

​

  • We would need a way to turn the knob.

​

  • Manually swapping batteries is a bit cumbersome.

​

  • If we aren’t careful, there is a potential to damage electronic components.

​

11

We will control our motors a different way…

Confidential and proprietary property of TinkRworks, Inc.

13 of 18

Pulse width modulation

What would happen if we switch the battery on and off very quickly over and over?

​

​

​

​

​

​

12

  1. When the switch is closed, electricity can flow through. The motor will start to turn.
  2. When the switch is open, electricity can’t flow through. The motor will “coast” until it is turned on again.
  3. Then the sequence repeats over and over.

How long the switch is closed during each cycle determines the average voltage applied to the motor over time – this controls its speed.

​

This method is called Pulse Width Modulation or PWM!

Confidential and proprietary property of TinkRworks, Inc.

14 of 18

Duty Cycle

  • How long switch stays closed – called the duty cycle – determines how much voltage is delivered to the motor over time.

​

13

  • Your project can open and close the switch about 1000 times per second.

When closed, your project supplies 5 Volts to the motors.

When open, your project supplies 0 Volts to the motors.

This waveform shows the open and closing of the switch that sends power to the motors.

Confidential and proprietary property of TinkRworks, Inc.

15 of 18

Some math…

  • Your project generates 5-volt PWM signals.

​

  • If the duty cycle is 50%, what is the average voltage?

​

  • If the duty cycle is 75%, what is the average voltage?

​

  • What about 25%?

14

Confidential and proprietary property of TinkRworks, Inc.

16 of 18

Advantages of PWM

Using pulse width modulation eliminates the problems encountered when using a variable resistor to control motor speed.

​

  • When the switch is open (“off”), no electricity is used.

​

  • When the switch is closed (“on”), all the electricity is used to drive the motor.

​

  • The battery will last a lot longer since it’s not on all the time.

​

  • The motor speed can be fine-tuned much more easily with PWM.

​

15

Confidential and proprietary property of TinkRworks, Inc.

17 of 18

Recap of Intro

16

Take a few minutes and answer questions 1-3 under the

“Motors Assessment”

Confidential and proprietary property of TinkRworks, Inc.

18 of 18

TinkRworks, Inc.

501 W Lake Street, Suite 106

Elmhurst, IL 60126

www.TinkRworks.com

© TinkRworks, Inc. All rights reserved

Sparking CREATIVITY

Fostering INNOVATION

Sharpening PROBLEM-SOLVING skills

Confidential and proprietary property of TinkRworks, Inc.