Electrical and Programming Tips and Tricks October 22, 2011.

26
Electrical and Programming Tips and Tricks October 22, 2011

Transcript of Electrical and Programming Tips and Tricks October 22, 2011.

Page 1: Electrical and Programming Tips and Tricks October 22, 2011.

Electrical and Programming

Tips and Tricks

October 22, 2011

Page 2: Electrical and Programming Tips and Tricks October 22, 2011.

Mr. Lim

Member of the original Canadian FRC team Team 188

First Canadian recipient of an FRC scholarship Kettering University / GMI

Former COO of Flatline Solutions Inc (FSI) Started by 188 alumni

Former teacher @ Runnymede CI (Team 1310)

Current teacher @ Crescent School (Team 610)

Page 3: Electrical and Programming Tips and Tricks October 22, 2011.

Electrical Board Materials

Corrugated Plastic Source: Front Lawns (Staples? Grand and

Toy)

¼” Birch Sheet (Baltic / Russian) Source: Lumber Yard (Home Depot?)

1/8” Lexan Sheet Source: Piedmont Plastics

Page 4: Electrical and Programming Tips and Tricks October 22, 2011.
Page 5: Electrical and Programming Tips and Tricks October 22, 2011.
Page 6: Electrical and Programming Tips and Tricks October 22, 2011.
Page 7: Electrical and Programming Tips and Tricks October 22, 2011.
Page 8: Electrical and Programming Tips and Tricks October 22, 2011.

Electrical Board Layout

Start w/ Battery Breaker Power Distribution Board (PDB) Then work from PDB “outwards”

Footprint Cutouts

Mount a spare speed controller

Page 9: Electrical and Programming Tips and Tricks October 22, 2011.
Page 10: Electrical and Programming Tips and Tricks October 22, 2011.

Electrical Component Mounting Zip Ties

Creating plastic studs Source: Sayal

Adhesive Velcro Make sure you are consistent which side goes

where Hook always on Component Loop always on Electrical Board Source: Home Depot

Page 11: Electrical and Programming Tips and Tricks October 22, 2011.

Wire Connectors

Battery Connector Try and use / cut the one they give you Shorter length here MATTERS! Source: Rosspar

Don’t crimp without the proper crimper! Solder using a torch…

Page 12: Electrical and Programming Tips and Tricks October 22, 2011.

Wire Connectors

Spade Tabs / Terminals Replace Motor-Side Ring Terminals with

Spade Tabs Source: Terminals: Sayal Source: Tabs: Digi-Key

Disconnects at motor Anderson Power Pole (small) Source: Rosspar

Page 13: Electrical and Programming Tips and Tricks October 22, 2011.

Wire Connectors

PWM Cables Worth it to make your own ACCEPT ONLY PERFECT CRIMPS!!! 3 Conductor - 22 Gauge – Sheathed Wire Source: Wire: Sayal Source: Connectors: Digi-Key

Page 14: Electrical and Programming Tips and Tricks October 22, 2011.

Wire Labels

Most IMPORTANT Electrical Job Label every wire at both ends At every disconnect (again at both ends)

Give every motor a number Usually numbered from bottom up Motor’s speed controller is given the same number Label all power wires 1, 2, 3, etc Any motors wired BACKWARDS marked 1R, 2R, 3R, etc Label PWM cables P1, P2, etc Book of labels – Gardner Bender Source: Sayal

Page 15: Electrical and Programming Tips and Tricks October 22, 2011.

Wire

Stranded – highest strand count you can afford Automotive speaker wire is awesome, but

expensive

6 Gauge: 6ft 12 Gauge: 50ft 18 Gauge: 50ft BOTH RED AND BLACK

Source: Sayal

Page 16: Electrical and Programming Tips and Tricks October 22, 2011.

Wire Management

Sticky Feet Wire Looms Zip Ties Source: Sayal Cable Track

CUT WIRES TO EXACT LENGTHS Cut long, crimp one end, run wire, tie down,

cut + crimp

Page 17: Electrical and Programming Tips and Tricks October 22, 2011.

Driver Controllers

Logitech Dual Action Discontinued?

Logitech F310 Watch the SWITCH On the back

XBox controllers Are terrible

Page 18: Electrical and Programming Tips and Tricks October 22, 2011.

Driveability Algorithm

Complaint #1

Our robot drive control feels really sensitive

Easy Solution: Cubic Transfer Function

Page 19: Electrical and Programming Tips and Tricks October 22, 2011.

Encoders – Relative Rotation

What do they do?

Which one: Grayhill 63R series Source: Digikey

Hard to mount Surgical Tubing!

Expensive

Page 20: Electrical and Programming Tips and Tricks October 22, 2011.

Encoders – Relative Rotation

Which one: US Digital E4P Source: AndyMark

Easy to mount Free! Pinch 4 flaps on silver disk before installing USE THE SPACER TOOL Do not disconnect the wire… ever

Page 21: Electrical and Programming Tips and Tricks October 22, 2011.

Potentiometers – Absolute Rotation What do they do?

Which one: Bourns 6639 Source: Digikey

Continuous Rotation 1-Turn Dead Zone

Page 22: Electrical and Programming Tips and Tricks October 22, 2011.

Potentiometers – Absolute Rotation What do they do?

Which one: Bourns 3590S Source: Digikey

10-Turn

Page 23: Electrical and Programming Tips and Tricks October 22, 2011.

Switches

Avoid

Page 24: Electrical and Programming Tips and Tricks October 22, 2011.

Sensors

Gyro: Kit No complaints! Free!

Ultrasonic Measures distance to wall, pole, robot, etc LV-MaxSonar-EZ Source: MaxBotix

Page 25: Electrical and Programming Tips and Tricks October 22, 2011.

PID Implementations

What is PID? Arm presets

Implement Through Code Implement Through Jaguar’s Built-In PID

Page 26: Electrical and Programming Tips and Tricks October 22, 2011.

Play Time

Run and Inspect the Robot

Code is available at: http://code.google.com/p/robotics610/

Questions?