0% found this document useful (0 votes)
20 views4 pages

VEXiQ Assignement Bebe2023

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 4

VEX iQ robot control

RobotC Graphical

(& vr.vex)

Robot Programming

Esa Virta
Assistant lecturer

ICT Bioeconomy Engineering


24.8.2022
INSTRUCTION

ICT Bioeconomy engineering 11.8.2021


Esa Virta, MEng. BSc.

CONTENT

VEX iQ program and Virtual Robot ...................................................................................... 1


RobotC 4.X ......................................................................................................................................... 1
RobotC 4.X in VR.VEX.COM “Virtual Robot” (by vex robotics.com) (NOT REQUIRED) ............ 1
Assignments ........................................................................................................................................ 2
Assignment 1. – ”Acceleration” ..................................................................................................... 2
Assignment 2. – ”Lets Take a Spin” ............................................................................................... 2
Assignment 3. – ”What Color” ....................................................................................................... 2
FINAL ASSIGNEMENT “Move the Cube”....................................................................................... 2
INSTRUCTION – VEX IQ 1 (4)

ICT Bioeconomy engineering 11.8.2021


Esa Virta, MEng. BSc.

VEX iQ program and Virtual Robot (vr.vex.com)


By controlling a real robot by following the patterns of operation and procedures in pro-
gramming is not only fun, but also extremely demonstrative in learning computer pro-
gramming.
Right from the start a real programming language is adapted, a RobotC based on C-lan-
guage. There is no need to change language on advancing your studies to working life.
RobotC -license is free at codeiq.vex.com!

VEX Robotics -concept consists of problem-solving step by step to more demanding


challenges and teamwork. Instead of team members competing each other they should
work together to solve assignments and to support one another. Constructive coopera-
tion is learned for one of the most important working life skills.

With these tasks we get to robot programming and you can test your program first in
simulation and finally with a real robot.

RobotC 4.X
ROBOT C-programming platform is available for download at https://www.vexrobot-
ics.com/robotc-vexedr-vexiq.html for free. Choose your operating system.
1. Open Graphical RobotC for making the program for VEX iQ robot.
2. Test your programming in the lab in contact lessons with a real VEXiQ-robot.

There is no need to buy any programs or licenses to VEX platform to test your pro-
gramming, it is not required nor recommended.

RobotC 4.X in VR.VEX.COM “Virtual Robot” (by vex robotics.com) alternative.


From vr.vex.com you will find freeware program directly.
To buy any programs is not required in our Curriculum.
HAMK do not provide this environment licensing, as VEXiQ -robot is available at
school and easy to download for free.

Verify the compatibility of ”Curriculum Companion” -program to Robots – Clawbot IQ


– control also the connections to match the connections of RobotC-platforms control
unit connections. If needed, make changes only on simulator. To test movement, suita-
ble is to be found from “Movement”-list ea. “Robot Acceleration” or ”Utility”-list
ea.”Huge Table”, which is in use in the real robot too.

In getting to know the ”RobotVirtualWorlds”-simulator and RobotC -programming it is


good to start from Sample Programs and tutorials, to save time with testing the program
in the simulator.
INSTRUCTION – VEX IQ 2 (4)

ICT Bioeconomy engineering 11.8.2021


Esa Virta, MEng. BSc.

Assignments

Assignment 1. – ”Acceleration”
Make a program to VEXiQ robot which makes the robot to accelerate speed steadily for
5 seconds moving straight forward and then stop.

Assignment 2. – ”Lets Take a Spin”


Make a program to VEXiQ robot which makes the robot to move forward in a 3 or 4
round Archimedes’ spiral and then stop. You may check from internet the movement
just as a robotic lawn mover in a large field.

Assignment 3. – ”What Color”


Make a program to VEXiQ robot which makes the robot to sense the color of a cube
layed in front of it and to illustrate the color with the Touch Led. Program should stop
in 2 minutes or by the push of the Touch Led.

Whatever Tutorial’s you may find, are allowed to use.

FINAL ASSIGNEMENT “Move the Cube” - to be submited

Make a Final Program to a VEXiQ robot using RobotC programming environment.


You may use Graphical- or C- environment, it is up to you.
This program is to be verified by a real VEXiQ robot in a game area and with colored
cubes.

The VEX iQ robot should independently perform the following operation:


1. Robot finds a cube in front of it (cube is app. 7cm x 7cm x 7cm),
2. identifies the color of the cube (red/blue/other), display the color
3. pick the cube up and
4. moves it close to the side of the game area, dependent
to color: red to the right – blue to the left - any other color to the back wall.
5. Finally the robot return to the exact location and position where it started.

X. Bonus points are awarded by extra features demonstrated.

GAME AREA
There is VEX Game Platform at the HAMK IoT lab in size of 3 x 4 slates (or more) and
on its’ sides are barriers where the robot may be allowed to touch (ref. use of the sen-
sors).

You might also like