Welcome to the second lab in E5, where you will learn your way around the Machine Shop in the basement of Papazian (next to Hicks). You will be using the shop to fabricate some simple components for the robot class project, but first you must learn the basics of how to use the machines correctly and safely. Our machinist is Grant Smith, who goes by the name of Smitty. Please pay attention to his overview of the machine shop during lab period this week and next.
For the "galumphing robot" project, I have put you in the following lab groups based on the interview information you supplied in lab last week:
Lab A | Lab B | Lab C |
Group A1:
|
Group B1:
|
Group C1:
|
Group A2:
|
Group B2:
|
Group C2:
|
Group A3:
|
Group B3:
|
Group C3:
|
|
Group B4:
|
Your group should plan to use the first part of lab next week to cut the board that will form the robot's base, as well as fabricate the sheet aluminum pieces to hold the wheels. This week, after the shop overview, you should return to Trotter 201, select the components described below, and try to get the servos working. If you don't have time to do so in lab this week, feel free to come to Hicks 213 and work through the steps below. The parts will be in the E5 cabinet.
You can use the new "sandbox" to access your previous WordPress posts and pages:
http://blogs.swarthmore.edu/E5/
Along the right hand side is a login link. Once you login, you should be looking at your Dashboard, and can create/edit your Posts and Pages. You and your group can feel free to return to the Settings->Appearance portion of the previous lab and fancy up the look of your group's website.
The robot you will design and build will be controlled by a computer using servos. Servos are motors that rotate through a total angle of approximately 180° to a specified angular position (-90° to +90°), as determined by the temporal length (duration) of a square-pulse voltage between 0 and 5 volts. For instance, a pulse of 1.52 ms (milliseconds) duration, repeated every 14 to 20 ms, will cause the arm of the servo to remain at the 0° position; one of 0.6 ms will cause rotation to the maximum counterclockwise position (-90° as seen from above); one of 2.4 ms will cause rotation to the maxium clockwise position (90°). In this lab, we will learn to control the 3 servo motors that will be used in the robot's crawling arm. Commands to the servos are sent from the computer's serial port, through a wireless Bluetooth link, to a Lynxmotion servo board. The Bluetooth wireless links should be paired already (if not, let a wizard or professor know, or go through the procedure for pairing them yourself). The "1" Bluetooth unit should be placed in the computer's COM1 port (usually in the back of the computer case) and powered via a USB power cable connected to its side; the "2" unit will connect with the Lynxmotion board and is powered from it.
Here is a top view of the Lynxmotion servo board:
And its underside shows a wire soldered to connect Pin 9 of the Bluetooth connector to the 5V supply of the servo board:
Here are the 3 servos:
And how they connect to the servo board (locations 0, 1, and 2). Please make sure that the black (ground) wire is to the outside of the connector:
The battery pack clips onto the servo board and a green LED shows it is on. The Bluetooth receiver "2" connects through an adapter to the DB9 connector on the servo board:
If the blue lights on both the paired Bluetooth wireless serial devices are on continuously, they have synchronized and you can proceed to make the computer control the servos, as follows:
Next week we will fabricate and assemble the robot in lab, and begin to program it using Matlab commands that send strings such as "#0P1500" out of the computer's serial port to the servo controller. If you want to get started, open Matlab via the desktop icon, download the sample program servo3test.m and paste it into a blank script (File->New->Script), saving it as "servo3test" into your Matlab folder in MyDocuments, and run it by typing "servo3test" to the Matlab prompt. The program should move the 3 servos connected as in the example 1-6 above.
Comments
or Questions? |
![]() |
![]() |