 
|
|
The following example application
uses the TR2 Rover connected to a Local WCM. The Rover can be manually
overridden using a Wireless Hand Control (DS-WHC).
This example demonstrates an improved servo sweep from the TR1 Rover
with servo sweep example. The new improved program allows the rover
to continuously move forward while the servo sweep motion occurs.
When an obstruction is encountered, the rover stops, moves backwards,
then looks left and right. It decides which is the clearest way, then
moves in that direction.
The addition of the WCM and WHC means a remote link can be made from
a hand held remote control to the TR2 enabling a manual control mode
to override the autonomous mode.
The WHC Should have its remote node set-up to 2. Its local node address
is always 253.
Send these commands from the WHC to control the TR2:
Overide = 4
Right = 8
Left = 7
Forward = 5
Stop = 9
Backward = 6
Send these in any order to manipulate the TR2. When you want to return
the rover back to autonomous mode, send decimal 14 and
the TR2 rover will return to this state.
Connections
WCM
Connect the WCM I2C Input to the I2C Bus on the DS-SXM16S module (Just
connect SCL, SDA and GND).
WCM Power can also be taken from the DS-SXM16S module.
Address Jumpers set to 00 (see WCM data sheet).
Pull up Jumpers not set (pull ups not used).
TR2 Rover
Connected as shown in TR2 Rover Data Sheet.
For further details please see the corresponding data sheets. |
|