electrical and programming tips and tricks october 22, 2011
TRANSCRIPT
![Page 1: Electrical and Programming Tips and Tricks October 22, 2011](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/1.jpg)
Electrical and Programming
Tips and Tricks
October 22, 2011
![Page 2: Electrical and Programming Tips and Tricks October 22, 2011](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/2.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/3.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/4.jpg)
![Page 5: Electrical and Programming Tips and Tricks October 22, 2011](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/5.jpg)
![Page 6: Electrical and Programming Tips and Tricks October 22, 2011](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/6.jpg)
![Page 7: Electrical and Programming Tips and Tricks October 22, 2011](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/7.jpg)
![Page 8: Electrical and Programming Tips and Tricks October 22, 2011](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/8.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/9.jpg)
![Page 10: Electrical and Programming Tips and Tricks October 22, 2011](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/10.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/11.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/12.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/13.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/14.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/15.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/16.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/17.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/18.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/19.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/20.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/21.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/22.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/23.jpg)
Switches
Avoid
![Page 24: Electrical and Programming Tips and Tricks October 22, 2011](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/24.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/25.jpg)
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](https://reader034.vdocuments.site/reader034/viewer/2022051820/56649d975503460f94a80409/html5/thumbnails/26.jpg)
Play Time
Run and Inspect the Robot
Code is available at: http://code.google.com/p/robotics610/
Questions?