Control
Control
Control
Table Of Contents:
In addition to providing the control link, the transmitter can be used to alter robot control
options, such as drive configuration and joystick trims and scaling.
RF receiver module
05/08
To maximize signal reception it is important that the receiver antenna wire is mounted
in the following way:
To help facilitate this, the plastic antenna mounting tube should be used. For maximum range
it is important to fully extend the metal antenna on the Transmitter. Also ensure that this
antenna is fully screwed into place, and is held vertical.
It is also important that both the transmitter battery and the robot battery are fully charged.
Also ensure that the robot does not have any motors over-loaded, as this will decrease
performance and may appear to be a signal problem. (Refer to the Motion chapter for more
details on gearing and motor usage.)
Some environments are “noisier” than others and may cause some robot interference. By
following the above tips it is possible to GREATLY improve robot performance.
05/08
Control Subsystem
Basic Transmitter Operation
The Transmitter joysticks can be configured to work in two basic configurations.
To check or switch between configurations, follow these instructions:
3. Enter the Driving Mode Adjustment menu by pressing the Mode button
until DRIVE is displayed on the left side of the LCD screen (it’s the last menu).
You will pass over the following advanced menus: CONFIG, REVERSE, SCALE,
EDITPT., TRIM, and PMIX.
4. The current driving mode is displayed. This will be either “23” or “12”.
Push up or down toward either the + or – on the data input button on the right
side of the LCD to switch between these two modes. The two modes are explained
on the following pages.
05/08
Note: Make sure there are no jumper clips on Analog/Digital Ports 13, 14,
15, or 16 on the Microcontroller, otherwise your robot will behave differently
from what is listed here. For details on how to use these jumpers to configure
advanced control features, visit the Logic
Subsystem chapter.
WARNING:
When powering on a robot, ensure
that it is positioned in such a way
Reverse
that it will not damage itself or
its surroundings upon startup.
It is possible that the receiver
could accidentally pick up other
radio waves which will cause the
robot to behave erratically and
unexpectedly. Use Caution!
Turn Left
Turn Right
05/08
Note: Make sure there are no jumper clips on Analog/Digital Ports 13, 14,
15, or 16 on the Microcontroller, otherwise your robot will behave differently
from what is listed here. For details on how to use these jumpers to configure
advanced control features, visit the Logic Subsystem chapter.
Reverse
Turn Right
Turn Left
05/08
Channel 3 Channel 2
(Y-axis) (Y-axis)
Channel 4 Channel 1
(X-axis) (X-axis)
Channel 3 Channel 2
trim trim
button button
Channel 4 Channel 1
trim trim
button button
If the motors run slowly or make “chirping” noises when the joystick is released
and centered, the transmitter may need to be adjusted. This is because the joy-
sticks are mechanical devices that may not center to the exact neutral position.
In order to counteract this problem, there are manual adjustment buttons on the
transmitter that allow you to recalibrate or “recenter” the transmitter. These
can be adjusted so that the “center” joystick position corresponds to neutral on
the motors.
Note that each stick’s position actually breaks down into two separate measure-
ments. One of them indicates how far left and right the stick is (the horizontal,
or “X”, axis), and the other measures where it is with respect to the vertical, or
“Y”, axis. These four axes (two axes times two sticks) can become miscalibrated
separately, so you may need to adjust each of them independently.
Conveniently, each axis is assigned a number (which corresponds with the motor
port that it controls), so there should be no confusion between which axis or stick
is which.
05/08
In normal operation, the transmitter displays two numbers on the LCD screen:
the configuration number (for more information on Transmitter Configura-
tions refer to the Control Appendix), and the battery voltage on the transmit-
ter. Note that this screen only displays the battery voltage on the transmitter,
and not the robot! There is no way to monitor the robot’s battery voltage
using this display, so you will need to watch separately for problems arising
from low robot battery power.
The only option you can change in the Stick Mode, is between “2” and “1”.
2 is the default, and you should leave it this way unless you have a specific
reason for changing it. Setting the Stick Mode to 1 will swap axes 2 and 3, so
the vertical axis of the left stick becomes channel 2, and the vertical axis of
the right stick becomes channel 3. Unless you have a good reason to change
this, you should leave the Stick Mode on 2.
Tether Port
Sometimes for diagnostic purposes, it may be useful to plug the transmitter
directly into the Microcontroller, and bypass the need for the RF Receiver.
This would help you determine, for instance, whether radio interference is at
fault for your robot behaving strangely, or if some other factor is to blame.
In order to use the tether feature, you will need to purchase a cable. Any tele-
phone handset extension cable will work (the coiled cable that goes from the
handset to the base of a corded phone, not the cable that goes from the phone
to the wall).
05/08
6 • 10 Inventor’s Guide
Control
Control Subsystem, continued
Tether Port, continued
To use the tether feature:
1. Hook up one end of the cable to the back of your
Radio Transmitter, in the port marked “Tether Port”. You will
need to lift up the rubber cover to gain access to the port.
2. Plug the other end directly into the Rx1 port of your
Microcontroller.
Inventor’s Guide 6 • 11
Control
Control Subsystem, continued
Tips
When powering on a robot, ensure that it is positioned in such a way that it
will not damage itself or its surroundings upon startup. It is possible that the
receiver could accidentally pick up other radio waves which will cause the robot
to behave erratically and unexpectedly.
Radio waves radiate out from the sides of the transmitter antenna, not
from the tip. For this reason, you will get the best range and performance
from your transmitter if you don’t point it directly at your robot. Both antennas
should be vertical for best reception.
Make sure the receiver antenna wire is properly mounted, and is not shielded by any metal.
Make sure the transmitter antenna is fully extended and is securely screwed into place.
05/08
6 • 12 Inventor’s Guide
Control
Control Subsystem, continued
Tips, continued
If you accidentally change a setting on your transmitter that you did not
intend to change, you can reset the controls to the factory default setting
through the CONFIG menu.
3. If you wish to reset the data for a different robot configuration, press the
“+” button on the Data Input button until the configuration number you
want is displayed. If you are not using multiple configurations (see the
Transmitter Appendix), then ignore this step.
4. Press the Select button. The letters CL (for “clear”) should appear.
5. Push up or down toward the “+” or “–” on the Data Input button and
hold for 2 seconds to reset the controls to default settings for the selected
config number. The Transmitter will beep when the configuration is reset.
05/08
Inventor’s Guide 6 • 13
Control
Control Subsystem, continued
Tips, continued
Remember that the transmitter does not monitor robot battery voltage,
only its own transmitter battery. Watch the robot to see if it seems to be low
on power.
If more than one robot is operating in the same area, be sure that the ro-
bots are operating on different frequencies or that one of the robots is operat-
ing via a tether, otherwise their commands will interfere with each other (see
Frequency Crystals in Background Information in this chapter).
If you own more than one set of frequency crystals, be sure that the
frequency module in your transmitter matches the crystal in your RF receiver
module (see Frequency Crystals in this chapter).
6 • 14 Inventor’s Guide
Control
Concepts to Understand
Electromagnetic Waves
Electromagnetic Waves
When electrons
accelerate, they radiate an
electromagnetic signal that
moves at the speed of light. By
accelerating and decelerating e
e
electrons in a controlled
pattern, a wave pattern can e
be generated in the radiated e
electromagnetic field. These e
are called electromagnetic e
e
waves. Electromagnetic waves
move at the speed of light,
and are therefore very good at
carrying information quickly
from one place to another.
05/08
Inventor’s Guide 6 • 15
Control
Frequency-Modulated Signals
FM is less susceptible to
interference than other radio
transmission methods, such as
amplitude modulation (AM)
or direct transmission of the
signal wave.
05/08
6 • 16 Inventor’s Guide
Control
Radio Frequencies
Since every FM signal has a set carrier wave frequency, different carrier
waves can be used to carry different signals at the same time without causing
interference. The air around you is filled with a multitude of different FM
wave frequencies being sent from many sources, and they don’t interfere with
each other, because their carrier waves all have different frequencies.
To prevent chaos, there are a limited number of frequencies that can be used
for radio control. In the US, the Federal Communications Commission (FCC)
is responsible for distributing these frequencies among the various industries
that want to use RC. Ground vehicles operating by FM radio control have
been assigned the 75MHz band and must transmit their control information
using a carrier frequency that is between 75MHz and 76Mhz.
Radio Channels
Exact frequencies (which have names like 75.410MHz) are often hard to
remember, or inconvenient to talk about. The frequencies that are used
to transmit data in the 75MHz band are therefore also assigned channel
numbers. A channel is like a nickname for a certain frequency. The carrier
frequency 75.410MHz, for instance, can also be called Channel 61 for
convenience.
Be careful with the term channel, however, because the term is also used
to refer to “control channels,” which are used to number the inputs on the
transmitter (each joystick has two control channels, for instance: one for
the x-axis and one for the y-axis). You will need to infer from usage context
whether “channel” is being used to refer to a “radio frequency channel”
(frequency) or a “control channel” (axis).
05/08
Inventor’s Guide 6 • 17
Control
Frequency Crystals
When more than one Transmitter
is running in the same area (e.g.
during a competition), there
is potential for trouble. How
can the robot determine which
transmitter is sending which
signal?
6 • 18 Inventor’s Guide
Control
Joystick Mechanism
The joysticks on the radio control transmitter are actually part of a variable resistor
component in the transmitter circuit. Pushing the sticks in one direction or another changes
the electrical resistance of a potentiometer inside the transmitter, which in turn causes a
change in voltage. The transmitter will then send a different signal to the receiver based on
this voltage. For instance, the transmitter may expect the sticks to provide a resistance that
produces a voltage of 2.5V when centered.
Miscalibration occurs when the joystick circuit does not generate the expected voltage for
a given position of the sticks. For any number of reasons, from manufacturing tolerances to
battery voltage drop, the sticks may start providing a different number while centered, say
3.7V.
The transmitter will have no idea what is causing the 3.7V, so it will assume that it is
because the stick is in the position that would normally produce a 3.7V reading. It will
send a signal to the receiver indicating that the stick is in the 3.7V position. Clearly, this
is not correct, and this miscommunication will cause the robot to behave oddly, because it
will be responding to commands that aren’t actually being given on the stick. “Trim Setting
Adjustment” instructions (pages 6-8) will correct this condition.
05/08
Inventor’s Guide 6 • 19
Control
Subsystem Interactions
How does the Control Subsystem interact
with…
…the Structure Subsystem? …the Sensor Subsystem?
• The Structure Subsystem will generally provide a • The Control and Sensor Subsystems complement
place to store/protect the RF Receiver module on the each other to achieve better control of the robot.
robot. The Control Subsystem provides human control
• The Structure Subsystem can shield radio signals over the robot, but the human operator does not
and interfere with the Control Subsystem. It always have perfect control, or the perfect point
is important to correctly mount the antenna to of view to see the robot’s position. The Sensor
minimize this interference. Subsystem gives the robot the ability to make its
own informed decisions, and can be a substantial
…the Motion Subsystem? aid to the human operator.
• The Sensor Subsystem and the Control Subsystem
• Unlike radio-controlled cars, the VEX robot does not both provide inputs which are processed identically
directly tie the Control Subsystem into the Motion in the VEX Microcontroller.
Subsystem. The commands generated by the operator
using the Transmitter are sent to the radio receiver … the Logic Subsystem?
on the robot, but from there, the commands are
• The Microcontroller module controls the flow of
given to the Microcontroller, which takes this and
commands from the human operator to the robot.
other information into account when deciding which
The Microcontroller ultimately decides whether to
command to give to the Motion components.
pass joystick commands on to the motors, to modify
them, or to override them, based on its programmed
…the Power Subsystem? behavior and other information available to it (from
• Broadcasting radio waves takes a significant sensors, for instance).
amount of electrical power. The 8 AA batteries • The RF Receiver module is connected to the VEX
(or 9.6V battery pack) installed in the VEX Microcontroller through the 9” RJ-10 cable that
Transmitter provide the Transmitter with all the runs from the back of the Receiver into the back
power it needs to operate its internal circuitry and of the Microcontroller. Up to two receivers can be
send out radio waves carrying commands to the supported simultaneously.
receiver. • If desired, the Transmitter can be hooked directly
• The RF Receiver mounted onboard the robot, on into the VEX Microcontroller using a tether cable,
the other hand, draws its power from the Power bypassing the RF Receiver.
Subsystem indirectly, through the Microcontroller • The specific way that the robot will respond to
(which is part of the Logic Subsystem). joystick movement is determined by a combination
of Radio Transmitter and Microcontroller settings.
See the Control Appendix for a full listing of control
layouts.
05/08
6 • 20 Inventor’s Guide