team 358 hauppauge high school electrical workshop october 2010 1 first® for inspiration and...

41
Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Upload: arleen-pearson

Post on 23-Dec-2015

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Team 358Hauppauge High School

Electrical Workshop

October 20101

FIRST®For Inspiration and Recognition of Science and Technology

Page 2: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Robotics Subsystems

• Major Subsystems– Mechanical– Pneumatic– Electrical – Software

This workshop will cover the Electrical Subsystem

2

Page 3: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical Subsystem Topics

• Presentation– Electrical Theory– Block Diagram and Major Components– Wiring Basics– Safety– Electrical Tools

• Hands-On Demonstrations– Wire Stripping and Crimping– Soldering– PWM Motor Speed Control– Parts Identification

3

Page 4: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical Theory

4

Page 5: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Basic Electrical Theory

• Ohm’s LawE = Voltage (Volts) Symbol: VI = Current (Amps) Symbol: AR = Resistance (Ohms) Symbol: Ω

I = E / RP = Power (Watts) Symbol: W

P = E * I

We use a Positive Current convention(Current flows from + to -)

5

Page 6: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

The Water Analogy

Battery Pump + is the High Pressure Side - is the Low Pressure Side

E = Voltage (Volts) Water PressureI = Current (Amps) Water Volume FlowrateR = Resistance (Ohms) Flow Restriction

6

Page 7: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Resistance Rules

• Resistor Symbol

• Series ResistanceR = R1 + R2

• Parallel ResistanceR = (R1 * R2) / (R1 + R2)

R1

R1 R2

R1

R2

7

Page 8: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical Circuit Example

• What is the combined resistance of R1, R2 and R3?

• What is the current being supplied by the battery?

• What is the voltage across R3?

• What is the power dissipated by R3?

R18 Ω

R28 Ω

12 V

R38 Ω

+

-Battery

Current (I)

8

Kirchhoff's Voltage LawThe sum of voltage sources and voltage

drops in a circuit must equal zero

Page 9: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical Circuit Challenge

• What is the polarity and magnitude of the voltage that would be measured between points A and B?

9

Hint: Kirchhoff's Voltage LawThe sum of voltage sources

and voltage drops in a circuit must equal zero

R18 Ω

R28 Ω

R38 Ω

+

-

A B

Page 10: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Digital vs. Analog

• Digital Signal– Binary values (0 or 1)– Each value represented by a specific voltage

• Analog Signal– Continually variable– Random or waveform (sawtooth, sine, etc)

10

Page 11: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical Block Diagram and Major

Components

11

Page 12: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Robot Electrical Block Diagram

CONTROLLER

POWERDISTRIBUTION

CIRCUITBREAKER

POWERSOURCE

SPIKERELAYS

DIGITALADAPTERMODULE

SOLENOIDCONTROLMODULE

ANALOGINPUT

MODULE

MOTORSPEED

CONTROLS

DIGITALI/O

WIRELESSBRIDGE

PNEUMATICSOLENOIDS

DIGITALSENSORS

ANALOGSENSORS

MOTORS COMPRESSOR12

Page 13: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Power Source and Power Distribution

POWERDISTRIBUTION

CIRCUITBREAKER

POWERSOURCE

Power Distribution Panel12 Volt Power DistributionCircuit Breaker protection

24 Volt source5 Volt source

12 Volt BatteryLead Acid

18 Ah

Circuit BreakerHigh Current (120A)Used to enable and

disable Robot Power13

Page 14: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

cRIO Controller cRIO with Interface Modules Analog Digital Solenoid

Contains an industrial 400 MHz Freescale MPC5200 processor that supports the execution of code on the Wind River VxWorks real-time operating system

Interface Modules can be added or removed depending on the application Shown with Analog Input, Digital I/O and Solenoid Control Modules

Wiring can be via Bumper (blue/red card on Solenoid Module) or Cable & Sidecar Expansion Module

CONTROLLER

DIGITALADAPTERMODULE

SOLENOIDCONTROLMODULE

ANALOGINPUT

MODULE

14

Page 15: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Controller and Digital I/O

cRIOController

NI-9403 Digital Sidecar Handles PWMs, Digital I/O, Relays w/standard

3-pin connectors

NI-9403 Digital I/OInterface to Digital

Sidecar

CONTROLLER

DIGITALADAPTERMODULE

SOLENOIDCONTROLMODULE

ANALOGINPUT

MODULE

DIGITALI/O

WIRELESSBRIDGE

Inter-connecting Cable 15

Page 16: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Controller and Analog Input

cRIOController

NI-9201 Analog Input(w/Analog Bumper)Analog inputs also w/standard 3-pin

connectors

CONTROLLER

DIGITALADAPTERMODULE

SOLENOIDCONTROLMODULE

ANALOGINPUT

MODULE

DIGITALI/O

WIRELESSBRIDGE

16

Page 17: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Controller and Solenoid Control

cRIOController

CONTROLLER

DIGITALADAPTERMODULE

SOLENOIDCONTROLMODULE

ANALOGINPUT

MODULE

DIGITALI/O

WIRELESSBRIDGE

NI-9472 Relay Controller(w/Pneumatic Bumper)Solenoid outputs directly

controls pneumatic valves without spikes

17

Page 18: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Motor Speed Controllers and Spikes

884 Victor Motor ControllerPWM Motor speed control

Bi-directional, variable speed40 Amp load

Jaguar Motor ControllerPWM Motor speed control

Bi-directional, variable speed40 Amp load

Spike Relay ControllerHigh current power switching Compressor, Motor Control

On/Off only40 Amp load

MOTORSPEED

CONTROLS

SPIKERELAYS

18

Page 19: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

BATTERY(12 VOLTS)

+12V

-12V

ROBOT CONTROLLER(PROCESSOR)

MOTOR

CIRCUITBREAKER

PWM CONTROL

MOTOR SPEEDCONTROLLER

(VICTOR)+-12V

+-12V

MOTORCONTROLLER

BLOCKDIAGRAM

Pulse Width Modulation (PWM)

PWM Motor DriveSwitches the motor on and off with a series of pulses of different duty cycles

Provides high torque at low speedsPulses are always 0 to 12 volts

The polarity can be changed to reverse motor direction

Fast

Medium

Slow

19

PWM Waveforms

Page 20: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Analog and Digital Sensors

ExamplesLimit switches

IR sensorsDigital Encoders

Digital Accelerometers

ExamplesPotentiometers (variable resistors)

Analog EncodersAnalog Multi-position Switches

Gyroscopes

DIGITALSENSORS

ANALOGSENSORS

20

Page 21: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Wiring Basics

21

Page 22: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Wire Characteristics

• Basic types– Solid (single wire)– Stranded (multiple smaller wires twisted together)– Jacketed (multiple insulated wires with an outer

cover)• The size (diameter) of a wire is referred to as

the “gauge” of the wire– The smaller the gauge, the larger the wire– The larger the wire, the lower the resistance per foot– The larger the wire, the more current it can handle– Undersized wire can produce excess heat

22

Page 23: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Wire Gauge Table

AWG Stranded Wire Table

23

Page 24: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Wire Gauge Rules

Typical First Robotics Wiring Rules

24

Page 25: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Wire Color Codes

• Wire Insulation Colors– Colors are used to indicate the use– Typical (past First Robotics rules):

Constant + Voltage : red, white, brownConstant - Voltage: black, blueSignal wires: user selectable

25

Page 26: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Safety

26

Page 27: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical SafetyVoltage Levels

• Voltage Levels– Robot components operate at a maximum

voltage of 24 Volts– Most circuits operate at 12 Volts– Safe to the touch, but the power sources can

generate sufficient current to damage the robot or cause fires if shorted

27

Page 28: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical SafetyRobot Construction

• Circuit Breakers & Fuses– Limit current by interrupting (opening ) the

electrical circuit– Circuit breakers can be reset, fuses must be

replaced

• Appropriate Wire Size (wire guage)– Wire must be of the appropriate size to handle

the current in the circuit– Undersized wire generates excess heat

28

Page 29: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical SafetyRobot Construction (continued)

Typical First Robotics Wiring Rules

29

Page 30: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical SafetyESD

• Electro-Static Discharge (ESD)– The human body can generate static charge on the

order of several thousand volts– This can damage electronic circuits and components

(semiconductors)– Failure may be immediate or at some time in the

future

• Prevention– Anti-Static mats– Wrist straps

30

Page 31: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical Tools and Instrumentation

31

Page 32: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical Tools

Wire Cutters

32

Page 33: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical Tools

Wire Strippers

33

Page 34: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical Tools

Wire Terminals and Crimping Tools

34

Page 35: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical Tools

Tie Wrap Gun and Tie Wraps

35

Page 36: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical Tools

Soldering Iron

36

Page 37: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical Tools

Digital Multi-Meter or Digital Volt Meter (DVM)

Measures:Voltage

ResistanceCurrent

Continuity

37

Page 38: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical Tools

Clamp-On Current Meter (Amprobe)

Measures:Current

(Also Resistance & Voltage with

probes)

38

Page 39: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Electrical Tools

Oscilloscope

Measures:Voltage

Vs.Time

39

Page 40: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Demonstrations

40

Page 41: Team 358 Hauppauge High School Electrical Workshop October 2010 1 FIRST® For Inspiration and Recognition of Science and Technology

Hands-On Demonstrations

• Wire Stripping and Crimping• Soldering• PWM Motor Speed Control• Parts Identification using an existing Robot

41