4 Vexcode v5 Kiwi Drive Compressed
4 Vexcode v5 Kiwi Drive Compressed
Programming the
V5 Kiwi-Drive
Program
• Now of course this is
just one of numerous
ways of making this
program!
• This is one version.
2nd Kiwi Drive
Program
• This is another
version of the
program.
• This is the version we
are going to write in
these directions.
PROGRAMS!
IMPORTANT NOTES:
1. You can program a VEX robot
with more than 1 controller.
2. Use Autonomous programs &/or
Remote.
3. Use sensors &/or not.
4. You can program all the different
Joysticks &/or Buttons in many ways.
5. For most robots they can be programmed in so
many different ways that the numbers are just literally
astronomically large!
THEREFORE: I’m going to show you 1 way of programming your robot &
just using one joystick. However, just remember that there is a huge
number of ways that a robot can be programmed!!!
Devices • Controller
• 3 Motors, I
choose to
name them:
1. RFMotor
2. LFMotor
3. BackMotor
• You can name
them as you
like…
The Program
Goes
• Started with a
Sideways
At 120
“Forever Loop,” & a
Degrees “If () Then, Else If,
Else” statement to
Full Speed divide the program
Spin in
Place into 3 parts.
If NO 1. Sliding sideways in
Buttons
Pressed 120 degrees
works like
a2
intervals
Joystick 2
Motor
2. Spin in Place
Tank Drive
3. & a Tank Drive part
The VEXcode V5 Software
• Click on the VEXcode
V5 Software Icon
• This version of the
software is the same
on both MAC & PC.
• This version allows you to program using
Blocks &/or a Blocks/Text Hybrid.
Step 1.1 - Open VEXcode V5 Software
• Either click on the VEXcode V5 ICON on
your desktop or search for “VEX” in the
search bar at the bottom of your Windows
screen.
Step 1.2 - Open VEXcode V5 Software
• This is what the software looks like when
opened.
Step 1.3 - Open VEXcode V5 Software
• There are not any Motion Options? They
will appear once we place a motion item.
Step 2 – Lets Name the Program & Save It
• Click here, select where to save it (Server
&/or Flash Drive), name it, & save it.
Step 3.1 Open Devices
• Click on the Devices Icon located here.
Step 3.2 - Opened Devices
• This blue box opens, this is the devices
section..
Step 3.3 - Add a Device
• We need to tell
the software
what devices
(motors, sensors,
&/or controllers)
that we are
plugging into our
robot, what ports
we are plugging
them into, &
name them.
• Click Add a Device.
Step 3.5 - Select
Controller
• We are going to put
each Motor in
individually &
individually Name each
motor.
Step 3.6 – Click Done
• Just going to use 1
controller.
• We are going to
program the controls
manually in the
program code.
• Click Done – It will label
it “Controller1”
automatically.
Step 4.1 - Select Motors
• The Controller1 should be
there.
• Next step we are going to
put each Motor in
individually & we are
going to individually name
each motor.
• Click On - “Add a Device.”
Step 4.2 - Select Motor
• We are going to put each
Motor in individually &
individually Name each
motor.
• I’m going to put the
motors in Ports 1, 2, & 3.
• However, they can be
put in any port!
• Software asks us Step 4.3 - Select
which PORT we LFMotor
have the LEFT
FRONT Motor
plugged into?
• If you plugged it
into a different port
select that port
now.
• I’m Clicking On
PORT1.
• & Then Clicking
Done.
NOTES:
• The software asks
us what color
Gear Cartridge we
have in the
motor?
• You can see the color of cartridge the motor
has in it through this window.
• Red = 36:1 @ 100RPM (High Speed Low Torque)
• Green = 18:1 @ 200RPM (Middle Speed & Torque)
• Blue = 6:1 @ 600RPM (Low Speed High Torque)
Step 4.4 Add Motor • Name Motor –
LFMotor - keeping it
short!
• Select Forward &
Reverse Directions –
won’t know until
debugging whether
or not in needs to be
forward or reversed.
• Select the Green 18:1
200RPM Gear
Cartridge
• Click Done.
Motion &
Drivetrain
• Motion &
drivetrain code
blocks options
have populated
since we have
installed at least
controller & at
least 1 motor.
Step 5.1
RFMotor
• We are going to add
the RFMotor.
• Click on Add Motor.
• Software asks us Step 5.2 - Select
which PORT we RFMotor
have the RIGHT
FRONT Motor
plugged into?
• If you plugged it
into a different port
select that port
now.
• I’m Clicking On
PORT2.
• & Then Clicking
Done.
• Software asks us Step 5.3 - Select
which PORT we RFMotor
have the RIGHT
FRONT Motor
plugged into?
• If you plugged it
into a different port
select that port
now.
• I’m Clicking On
PORT2.
• & Then Clicking
Done.
Step 6.1 –
BackMotor
• Controller1,
LFMotor, & RFMotor
should be there.
• Click on Add a
Device.
• Now we are going to
add the BackMotor
in Port3.
Step 6.2 Adding BackMotor
• Name Motor –
BackMotor - keeping
it short!
• Select Forward &
Reverse Directions –
won’t know until
debugging whether
or not in needs to be
forward or reversed.
• Select the Green
18:1 200RPM Gear
Cartridge
• Click Done.
Step 6.3 – All
Devices Entered
• All Devices
should be
entered & the
setup should
be done!
7.1 Your Ready to Program
• We are ready to start programming by dragging &
placing blocks!
• The devices should be done, can minimize it.
• I’m starting the program dragging in a Forever
Loop.
Step 7.2 – If () then do () in not do Else()
• We are going to drag in
a “If, () Then do (), Else
do ()” statement into
the forever loop.
• This will divide the
program up into parts.
• One part will run all the
time the “Condition”
isn’t met.
• So, when “Then” does
happen it will stop that
part from running.
Step 7.3 – Math Operation of “OR”
2 Joystick 2
motor tank
drive
Download It To Your Bot
• Make sure & save your
program.
• Then download it to
your robot & take it for
a test drive.
• Debug it & find any
problems.
End of Assignment