29
Overview of Overview of Electronics Electronics 1425 Wilsonville Robotics Tim Bennington-Davis [email protected] (503) 449-9507

FIRSTFare 2012 Overview of Electronics

Embed Size (px)

Citation preview

Page 1: FIRSTFare 2012 Overview of Electronics

Overview of ElectronicsOverview of Electronics

1425 Wilsonville Robotics

Tim [email protected]

(503) 449-9507

Page 2: FIRSTFare 2012 Overview of Electronics

At a glanceAt a glanceNew NI controller (cRIO)

◦Smaller, 4 slots, less weight, less cost

Microsoft Xbox Kinect adapter

Page 3: FIRSTFare 2012 Overview of Electronics

Robot SchematicRobot Schematic

Page 4: FIRSTFare 2012 Overview of Electronics

Elements of the SystemElements of the SystemNational Instruments cRIODigital SidecarPower Distribution BoardAnalog BumperPneumatics BumperNetbook Driver StationWireless Interface (802.11)CameraMotor controllers and relays

Page 5: FIRSTFare 2012 Overview of Electronics

cRIO cRIO Modular Controller, Industrial StrengthComes with multiple interface modules

◦ 2 Analog Input Modules Plus 2 Analog Breakout

◦ 2 Digital Input/Output Modules Connect via really big cable to Digital Sidecar

◦ 1 Digital Output Module Use with Solenoid Breakout

Veteran teams do not get new cRIO’s and modules

Rookie teams will get new smaller cRIO

Page 6: FIRSTFare 2012 Overview of Electronics

cRIO and ModulescRIO and Modules

Legacy Teams have 8-slot cRIO chassis

Rookie teams will get new 4-slot cRIO

Page 7: FIRSTFare 2012 Overview of Electronics

Digital SidecarDigital SidecarConnects to cRIO9403 with 32-pin cableProvides

◦10 PWM outputs (Victors, Jaguars, RC servos) Can be configured on a per-output basis to drive

6V RC servos with jumpers

◦14 GPIO with +5V on each ◦16 Relay Outputs ◦I2C headers (Standard and NXT-compatible)◦12V supply,

Provides +5V output Reverse polarity protected

Page 8: FIRSTFare 2012 Overview of Electronics

Digital SidecarDigital Sidecar

Page 9: FIRSTFare 2012 Overview of Electronics

Power Distribution ModulePower Distribution ModuleCustom Design by FIRST6-15 VDC, reverse polarity protected Metric shanks, not SAE!8 outputs for 40A breakers12 outputs for 30A/20A breakers24VDC output for CompactRIO12V output 5V output for camera LED’s for power supplies and open

breakers

Page 10: FIRSTFare 2012 Overview of Electronics

Power Distribution ModulePower Distribution Module

Page 11: FIRSTFare 2012 Overview of Electronics

Power Distribution Power Distribution DiagramDiagram

Page 12: FIRSTFare 2012 Overview of Electronics

Analog BreakoutAnalog Breakout5V/3A for powering sensors8 Analog Inputs, 3 pin PWM cable

config.Mounts to NI 9201 Analog ModuleConfigurable to make one input

capable of measuring battery voltage - mandatory

LED to indicate bumper has powerPower to bumper requires wiring to

power distribution module

Page 13: FIRSTFare 2012 Overview of Electronics

Analog BumperAnalog Bumper

Page 14: FIRSTFare 2012 Overview of Electronics

Pneumatics BreakoutPneumatics BreakoutReverse-battery protection8 Outputs to directly drive solenoidsMounts to NI 9472 Digital ModuleMeans you don’t have to use Spikes to

drive solenoids anymore◦Save weight, space and money

LED to indicate bumper has powerPower to bumper requires wiring to

power distribution module, can tolerate 12v or 24v to match solenoids

Page 15: FIRSTFare 2012 Overview of Electronics

Pneumatics BreakoutPneumatics Breakout

Page 16: FIRSTFare 2012 Overview of Electronics

Wireless Interface – Wireless Interface – 802.11802.11

Radio on the robot is 802.11 wireless bridge

Check for how to power it correctly from your robot

You will assign fixed IP addresses to your components, using team number

Use as AP during build season, connect to the wired field at the competition

Field will use 5 GHz band to avoid overlap and interference

Page 17: FIRSTFare 2012 Overview of Electronics

Ethernet Camera – Axis Ethernet Camera – Axis M1011M1011

Streaming video for drive-time control has been challenging

Connects to RJ45 on cRIO

Can be used to track colors

Page 18: FIRSTFare 2012 Overview of Electronics

Jaguar Motor ControllerJaguar Motor ControllerReplaces the venerable VictorCAN bus interface, limit featuresDo NOT remove the power

screwsThey are “swaged” on the end,

which is meant to keep them from coming out

Removing them drops metal shavings into the guts

Page 19: FIRSTFare 2012 Overview of Electronics

Operator InterfaceOperator InterfaceClassmate Computer or

equivalentMust run supplied softwareIP connectedCommunicates constantly

with cRIOUSB expansion hubJoysticks (USB)Cypress pSOC I/O expansion

device

Page 20: FIRSTFare 2012 Overview of Electronics

Operator InterfaceOperator InterfaceTypically a 48” x 8” consoleJoysticks or other driving

interfaceButtons, switches, dials, lightsYour team designs and builds itEffective driving operation is

enabled by careful ergonomic design, especially when it comes to controlling the non-drive functions

Page 21: FIRSTFare 2012 Overview of Electronics

Operator InterfaceOperator InterfaceCypress board provides 16

configurable digital pins, 8 analog inputs

Plug into proto board, or build/buy carrier board

Digital and analog functions map to software

Page 22: FIRSTFare 2012 Overview of Electronics

Typical OI FunctionsTypical OI Functionsswitch (on/off) – 1 digital input3 position switch (on/off/on) – 2

digital inputsPotentiometer (variable

position) – 1 analog inputPush button switch (momentary

contact) – 1 digital inputIndication (LED) – 1 digital

output

Page 23: FIRSTFare 2012 Overview of Electronics

Link between OI and cRIOLink between OI and cRIODefault software causes cRIO

and classmate computer to update each other several times a second

All OI data is fed to cRIO automatically

If they don’t talk, your robot disables itself

Status of communication shown in classmate GUI

Page 24: FIRSTFare 2012 Overview of Electronics

Other Handy PartsOther Handy Parts10-turn potentiometers

Not supplied – Norvac, Fry’s, Digi-Key

Wire to analog inputUS Digital Quadrature Encoders

Mount in many transmissionsCount transmission rotation,

direction3-axis accelerometer (supplied)Gyro (supplied)Analog Ultrasonic detectors

For measuring close distances

Page 25: FIRSTFare 2012 Overview of Electronics

Helpful HintsHelpful Hints

Page 26: FIRSTFare 2012 Overview of Electronics

Working the WagoWorking the Wago• Find a Wago tool (Newark Electronics)• Take care to insert directly at a fixed angle, pressing straight in• Do not pry. The goal is to open the spring by pressing in the screwdriver, not by prying

Page 27: FIRSTFare 2012 Overview of Electronics

802.11 Radio Link802.11 Radio LinkThe AP and bridge have changed

over the years.Learn how to set static IP

addresses on your PC, and how to log into AP and adapter to configure them manually

Turn off “Wireless Protection”, so that inadvertent presses of external buttons don’t change settings unexpectedly

Page 28: FIRSTFare 2012 Overview of Electronics

Other ideas worth Other ideas worth rememberingrememberingSolder your terminals – prevent failureKeep large gauge wiring as short as possibleLay your electronics out so you can

troubleshoot it – 2 layers sometimes worksMake a battery charging record

◦ During tournaments, know which one is chargedRead the inspection rules early – a great

“cheat sheet” for guiding you Label your wires or use color markings, to

make troubleshooting easierRobot frame is NOT connected to ground

Page 29: FIRSTFare 2012 Overview of Electronics

Wrapping UpWrapping UpGo to the FIRST website, navigate

◦FRC◦Game and Season Info◦Competition◦Competition Manual and Related

DocsCheck out the schematics, rules

and manuals from last year◦Wire gauge requirements, terminals,

etc.