0% found this document useful (0 votes)
9 views2 pages

Q2 - 3 - A - 2024 - Developing Basic Robotics Programs Using An IDE

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Q2 - 3 - A - 2024 - Developing Basic Robotics Programs Using An IDE

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Developing Basic Robotics Programs Using an IDE

Name: _________________________
Date: __________________________

Objectives:
• Open a new project in a robotics IDE
• Add robot configuration code
• Create simple programs using motion and action blocks
• Modify program parameters to change behavior
• Download and test programs on a robot

Part 1: Creating a New Project

a) Open the IDE and start a new project for your robot.
b) Import any needed robot configuration files provided by the instructor.
(Line Tracing and Color sensing)
c) Save the project with your name and today's date.

Part 2: Coding Basic Programs

Create at least 3 of the following programs using blocks:


a) Move forward for 5 seconds
b) Turn left 90 degrees
c) Stop all motors
d) Modify the parameters in each program and observe the difference
e) Save each program with a descriptive name

Part 3: Testing on Robot

a) Connect robot to computer via USB


b) Select robot configuration on IDE
c) Download a program to the robot
d) Place robot on floor and run the program
e) Validate that robot behaves as expected
f) Repeat testing for each program, modifying code if needed

Analysis Questions:

1. Which coding blocks did you use most frequently?


2. How did changing parameter values affect the robot's operation?
3. What problems did you encounter downloading and testing programs?
Part 4: Uploading and Compiling Programs

1. Connect the robot to the computer and select it in the IDE


2. Upload your code to the robot
3. Observe status messages during upload process
4. If upload fails, check connection and try again
5. After uploading, compile the program directly on the robot
6. Note any compilation errors shown in the IDE
7. Fix errors by modifying the code

Common errors include:

• Missing semi-colons
• Undefined variables
• Invalid syntax
• Re-upload and re-compile until successful

Questions:

1. What steps did you take to fix compilation errors?


2. How did you determine the robot was successfully compiled?
3. Why is it important to compile directly on the robot vs just uploading code?

You might also like