Documente Academic
Documente Profesional
Documente Cultură
What Is A "VEX"?
For the people who don't know what a "VEX" is. It is a company that sells robotic parts and
kits. They sell a "VEX" transmitter and receiver on their site for $129.99 but you can get a
"VEX" transmitter and receiver for about $20 on "Ebay" and many other places.
The "VEX" transmitter is a 6 channel FM transmitter with 2 joysticks that can go up & down
and from side to side. On the backside of the transmitter there are 4 buttons which control
channel 5 and channel 6. The transmitter controls can be set to tank-style or arcade-style. The
transmitter has a host of other features.
This makes it a very cheap way to remote control servos. The only problem is that you can
only control servos motors and you need to buy an expensive $149.99 "VEX" microcontroller
just in order to do that. That is until now!
BUYING The Motor Interface Chip
To buy the Motor Interface Chip used in this article send the money thru PayPal to the e-mail
address: areaperson@hotmail.com
If Being Shipped Within The U.S. The cost of the chip is $14.95 + $2.00 S/H = Total $16.95
If Being Shipped Outside The U.S. The cost of the chip is $14.95 + $3.00 S/H = Total $17.95
This interface chip uses 3 output pins to control a motor's H-Bridge. Two pins to control the
motor's direction and one pin to control the motor's speed by using P.W.M.
The chip uses the input from the two buttons on channel 5 to control the input from the
"VEX" transmitter left joystick so that it can control 6 motors. The chip uses the input from
the other 2 buttons on channel 6 to lock in the high or low output on pin 14 of the motor
interface chip.
The motor interface chip has the following features. These features may not work since a
receiver may pick up a signal from anywhere. We assume no responsible directly or
indirectly from using these parts. WARNING! NEVER USE THE REMOTE ON A ROBOT
THAT CAN CAUSE DAMAGE IF IT GOES OUT OF CONTROL. If your robot goes out of
transmitter range; the motor interface chip may shut down the motors and give control to a
microcontroller if your robot is using one. This may also be true if you turn your transmitter
off.
The motor interface chip does not use a serial port to communicate with other
microcontrollers. This means you can use a very inexpensive microcontroller chip to be the
brains of your robot.
Putting a low on pin 2 will cause all the motors to operate at half the power level when using
the transmitter.
How To Hook Up The VEX Reciever To The Interface Chip
Motors, relays and power supplies will cause radio interference; so pick a spot on your robot
where the "VEX" reciever is far away from these things. I mounted mine on a 43 in. long
mast that was attach to the robot's base.
The "VEX" reciever comes with a yellow cable. Plug the cable into the "VEX" reciever, the
other end of the cable plugs into a telephone handset jack. You must buy the jack. Since I will
not know the colors of the wires coming out of your jack; I will referent the yellow cable
wires. If you look at the yellow cable you will see 4 wires which are yellow, green, red and
white. The yellow wire gets wired to + 5 volts. The green wire is the signal and it gets wired
to pin 6 on the interface chip. The red wire gets wired to ground. The white wire is not used.
You need to wire a 4.7 K pull up resistor from pin 6 on the Interface Chip to the + 5 volts.
You will also want to wire a 2200 uf capacitor across the power wires close to the "VEX"
reciever.
Pin 2 is an input pin. It must be wired and NOT left floating. It can be wired to + 5 volts or
ground thru a 47 ohm resistor. It can also be wired to pin 14.
Option 1: pin 2 high will give the full range of power to the motors.
Option 2: pin 2 low will give half the range of power to the motors.
Option 3: pin 2 wired to pin 14. When channel 6 top button is pressed it gives the full range
of power to the motors. When channel 6 bottom button is pressed it gives half the range of
power to the motors.
NOTE: If you do NOT plan to run the robot from a computer or microcontroller then you
need to wire a 1K ohms resistor to + 5 volts and the other end of the 1K ohms resistor goes to
pin 7 & 33.
How To Hook Up A Microcontroller To The Interface Chip
Your microcontroller if you are using one can communicate with the Interface Chip over 3
wires. Pin 7 on the Interface Chip is the input for the data bit. When the pin is low it is a zero
data bit. When the pin is high it is a one data bit. Your microcontroller must output the data
bit before the clock pulse. The data bit must be at least 40 us long.
Pin 33 on the Interface Chip is the input for the clock bit. Your microcontroller must output a
high pulse for at least .5 us.
Pin 5 on the Interface Chip is an output pin. When this pin goes high it is to let your
microcontroller know that it is ready to receive the next command. This pin will go low if the
Interface Chip is getting a signal from the "VEX" transmitter. This pin will also go low and
stay low if there was a communication error between your microcontroller and the Interface
Chip.
Pin 4 is an output pin. If there is a communication error between the Interface Chip and your
microcontroller, this pin will go high and stay high . A reset must be done in order to clear
this error.
List Of The Commands
There are 32 commands that the interface chip understands. All the commands are 3 bytes or
24 bits long. The format for the commands are as follows.
The 1st byte that is sent is always the command byte which is the left most number on the list
below.
The 2nd byte sent may be a PWM byte. It is a number between 0 and 50. When a 0 is sent the
P.W.M. pulse is low which means the motor will be off. When the number 50 is sent the
P.W.M. pulse is high which means the motor will be on at full power. When the number 25 is
sent the motor will run at about half power. As seen on the list sometimes the 2nd byte is just
0 which is being used just for a place holder. It has no affect on the motor.
The 3rd byte sent may be a PWM byte or an error checking number.
For example: To order motor 1 to go at full speed and motor 2 to go at half speed forward, the
command would be.
1 50 25
To order motor 7 to go backward at 10% power, the command would be.
16 5 16
Pin Summary
Input Pins
Output Pins