Execute the Code
Before you can upload the sketch to the PULSE, remember to check your
connections. Upload the sketch. The green LED will light up, indicating the code
is ready to execute. When this has occurred, disconnect the USB cable and set the
Codee Bot on the floor.
Place the Codee Bot so the wheels are at the front of the bot. If your robot goes
backward instead of forward, switch the DC motors’ cords in the ports on the
controller.
Press the green Start button to execute the sketch. Observe the direction and
duration of the Codee Bot’s motion. Press the red Stop/Reset button to end the
sketch. Based on the sketch comments, did the behavior match expectations?
Further Investigate
While this sketch does not use any new blocks, it should lead to a deeper
understanding of how motors work in unison to create a specified behavior.
All the blocks in this sketch work together to make the Codee Bot move in a circle.
Because you want the motors to always work together, the pulse Invert Motor block
is used only in the setup part of the loop. The pulse Set Motor Powers block tells
both motors to move at different speeds in a single function. One motor is set to
100% while the other is set to 50%, resulting in a circular motion.
Extension Activity
With the example as a reference, try creating a new sketch to move the Codee Bot
in a different-size circle. Remember what you have learned from your previous
activities and experiment with different parameters to make the circle diameter
larger or smaller. Challenge yourself to add behaviors. What would it take to make
your robot drive in an oval or a figure eight?
Real-World Link
If you’ve ridden by a golf course, you have probably seen automatic sprinklers
operating. These sprinklers go in a circle spraying water in a 360-degree radius.
These sprinklers are programmed to turn off and on at different times. It’s important
that the motor turn the sprinkler head so it covers the entire area of its range.
Careers: groundskeeper, farm equipment mechanic, irrigation engineer
STEM Connections
• Science
Ĕ Power
Ĕ Speed
• Technology
Ĕ Motor control
Ĕ Motor precision
• Engineering
Ĕ Machine design
Ĕ Geometric patterns
• Math
Ĕ Radius
Ĕ Diameter
Tip: The Codee Bot might
struggle to overcome the
friction of carpet. If possible,
test your bot on a smooth
surface.
Tip: You will need about six
feet, or two meters, of open
space on the floor for the
robot to complete a circle.
Building and Coding the PULSE CodeeBot
93
Содержание tetrix prime
Страница 1: ...44301 TETRIX PULSE Robotics Controller Programming Guide...
Страница 7: ...PULSE Controller Technology Overview Getting Started 5...
Страница 60: ...Step 5 Step 6 Step 7 Step 8 Step 3 Step 4 Servo Horn Screw 58 Building and Coding the PULSE CodeeBot...
Страница 61: ...Step 9 Step 10 Step 12 Step 14 Step 11 Step 13 Building and Coding the PULSE CodeeBot 59...
Страница 62: ...Step 18 Step 17 Finished Assembly Step 16 Step 15 60 Building and Coding the PULSE CodeeBot...
Страница 73: ...Step 1 0 Step 1 1 Build two like this Building and Coding the PULSE CodeeBot 71...
Страница 74: ...Step 1 2 Step 1 3 72 Building and Coding the PULSE CodeeBot...
Страница 75: ...Step 1 4 Building and Coding the PULSE CodeeBot 73...
Страница 77: ...Partial assembly should look like this Step 2 0 Step 2 1 Building and Coding the PULSE CodeeBot 75...
Страница 78: ...Step 2 2 Step 2 3 76 Building and Coding the PULSE CodeeBot...
Страница 79: ...Step 2 4 Step 2 5 Building and Coding the PULSE CodeeBot 77...
Страница 80: ...Step 2 6 Step 2 7 78 Building and Coding the PULSE CodeeBot...
Страница 81: ...Step 2 8 Building and Coding the PULSE CodeeBot 79...
Страница 83: ...Step 3 0 Step 3 1 Building and Coding the PULSE CodeeBot 81...
Страница 84: ...Step 3 2 82 Building and Coding the PULSE CodeeBot...
Страница 85: ...Step 3 3 Building and Coding the PULSE CodeeBot 83...
Страница 87: ...Step 4 0 Step 4 1 Building and Coding the PULSE CodeeBot 85...
Страница 88: ...Step 4 2 86 Building and Coding the PULSE CodeeBot...
Страница 89: ...Finished assembly should look like this Building and Coding the PULSE CodeeBot 87...
Страница 131: ...GS Activity 4 extension GS Activity 5 extension Appendix 129...
Страница 144: ...142 Notes...
Страница 145: ......
Страница 146: ...Call Toll Free 800 835 0686 Visit Us Online at TETRIXrobotics com TETRIX PULSE Robotics Controller Programming Guide...