teacher/mentor institute hands-on session: building a robot scott mcewen chuck powell

20
Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Upload: grace-patrick

Post on 29-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Teacher/Mentor Institute

Hands-On Session:Building a Robot

Scott McEwenChuck Powell

Page 2: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Overview

Quick and simplified exposure to what your student team will experience.

You will experience some of the same Design choices Building decisions Learning experiences Frustrations

We hope that this will make you a better coach and mentor!

Page 2

Page 3: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Caveat Aedificator

This guide has a suggested procedure for building your robot. You may vary from this procedure so long as:

You do not endanger yourself or anyone else. You do not permanently attach anything to

the Returnable Kit parts. You do not damage the room or furniture in

any way. You clean up after yourself.

Page 3

Page 4: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Be courteous to our hosts!

Please DO NOT scratch the tables, other furniture or floors, or snag any carpet or furniture fabric.

Keep a box lid or other surface protector between your work and the furniture or floor.

Page 4

Page 5: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Charge the Batteries

Before you begin any construction, charge the following:

Both 7.2 V batteries

All 6 AAA batteries

Page 5

Page 6: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Install easyC

Install easyC v4 for Cortex (Trial version).

Download from http://www.intelitekdownloads.com/easyCV4/

Page 6

Page 7: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Update Firmware

Connect Cortex to computer with USB cable.

Start…easyC… IFI VEXnet Firmware Upgrade.

Click on Search. Click on Bootload. Repeat for Joystick.

Page 7

Page 8: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Platform (1)

Construct/Attach: Plywood base Motors SkidMake sure the platform is stable and can roll in various directions.

Page 8

Page 9: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Platform (2)

Attach the Cortex.

Page 9

Page 10: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Connect Motors to Cortex (1)

Motor Ports 1 & 10 have a built-in. Motor Ports 2-9 require you to connect using a Motor Controller. BEST requires you to use ports 2-9

Motor Ports 1-5 share the same current source, and Ports 6-10 share the same current source. Try to balance motors between 1-5 and 6-10.

Page 10

Page 11: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Connect Motors to Cortex (2)

Cortex Motor Port => Motor Controller => Screw Terminal Block => Motor wires with Quick

Connects => Motor Tabs

Page 11

Page 12: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Test the Platform (1)

easyC: File … New Competition Project

Field Control Competition Project Operator Control tab. Joystick … Arcade- 2 motor

into while loop. Forward/Reverse Channel: 2 Rotate Channel: 1 Left Motor, Right Motor: (look

where you plugged these in to the Cortex.)

Joystick … JoystickAnalogDeadband => before Arcade.

Deadband for both Channel 1 and Channel 2.

Test-“drive” the platform – make sure the motors respond correctly.

Page 12

Page 13: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Wheels

Attach the hubs to the centers of the wheels.

Attach the hubs to the motor shafts.

Page 13

Page 14: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Arm

Build and attach the A-frame to hold the arm.

Make and attach an arm that is the right size to: Reach to the ground Be pulled down by

the winch.

Page 14

Page 15: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Winch

Build and attach the winch. Mount and attach the

winch motor. Wire the winch motor to

the Cortex. Edit your program to

include the winch motor. Test to make sure it works. Add the spool and string

onto the winch and test again.

Page 15

Page 16: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Test Drive

Go to the Build and Download menu. Compile your program. Fix any errors, if necessary.

Connect the USB cable between the computer and the Cortex. Download your program to your Cortex.

Tether the joystick and Cortex – this means connect them with the USB cable.

Turn on the Cortex first, then the joystick. Wait for the ROBOT and JOYSTICK lights to turn green.

Test each wheel motor forward and backward. If either wheel moves in the wrong direction, go back into the program, check or uncheck the box to reverse direction, and try again.

Untether the Joystick and Cortex. Turn them off. Insert the 2 VEXNet keys and turn them back on.

Drive the platform without the tether.

Page 16

Page 17: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Servo

Connect the servo to the Cortex with a Servo Controller.

In your program, add a JoystickToServo, and use Channel 5 or 6.

(Servos don’t need a deadzone.)

Turn on the Cortex and Joystick. The Servo will rotate to its “zero” position. Make a note of it.

Page 17

Page 18: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Claw

Disconnect the servo from the Cortex.

Assemble the claw, including the servo. Make sure it can move properly.

Remember to assemble it so that its starting position coincides with the servo’s “zero” position.

Reconnect the servo to the Cortex. Turn it on and test the claw.

Page 18

Page 19: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

Mount the Claw

Attach the claw to the end of the arm.

Make sure it reaches to the ground and can open and close.

You may need to add a servo extension between the servo controller and the servo.

Page 19

Page 20: Teacher/Mentor Institute Hands-On Session: Building a Robot Scott McEwen Chuck Powell

The Competition

The competition will involve 2 robots at a time, on the same field.

The edges of the field will be marked by a PVC boundary.

Each team will have its own basket.

Balls must go through the ring and land in the bucket.

Blue balls are 1 point each, red balls are 2 points each.

Page 20