|
|
|
This simple example
application shows the simplicity in driving an X4 rover with an OOPic-C.
This example is almost identical (pin configuration is different)
to the OOPic-R version supplied with the X4 Rover MKI. This is due
to both the OOPic-R and OOPic-C having the same firmware version (B.2.x+).
The OOPic-C fits neatly onto the RCBV2 board (stand-off adapter required
and can be supplied), as it is pin for pin compatible with the BX24
and BS2 microcontrollers.
In this example, an X4 rover with SRF04 ultrasonic range finder is
used. The X4 rover moves forwards looking for any obstacles that may
impede its progress. If such obstacle is found, the X4 will reverse,
spin right searching for a clear gap and when a gap is found, continue
its journey into that space.
Connections between the X4 and RCBV2 are as follows: |
| |
|
|
| X4 |
|
RCBV2 |
| Left Servo Connector |
- |
SV1 |
| Right Servo Connector |
- |
SV2 |
| SRF04 (using
SRF04 cable) |
- |
RCBV2 |
| Echo and +5V |
- |
SV3 |
| Trigger and Gnd |
- |
SV4 |
| |
|
|
|
This program can be developed
to include a servo sweep option, which will widen the obstacle detection
range.
A Wireless Handheld Controller and Wireless Control Module could also
be used allowing a manual override program to take effect.
Download
the code here. |
|