My first attempt at Radar using BotCode instead of NQC.
I programmed this
bot in BotCode and
have included the
code below.
But first some pics:
![](https://i0.wp.com/www.robotthoughts.com/marsrobot/radarchair/rover1.gif?resize=320%2C240)
A basic wheelchair
type design with the large front
wheel pulling the rear steering wheel.
![](https://i0.wp.com/www.robotthoughts.com/marsrobot/radarchair/rover2.gif?resize=320%2C240)
The steering uses
a worm gear that drives a long shaft via a
40 tooth gear. Essentially creating power steering.
A rotation sensor keeps track of the
direction.
![](https://i0.wp.com/www.robotthoughts.com/marsrobot/radarchair/rover3.gif?resize=320%2C240)
Another side shot
showing the rotation sensor.
![](https://i0.wp.com/www.robotthoughts.com/marsrobot/radarchair/rover4.gif?resize=320%2C240)
Here is the front
with that IR transceiver and the light sensor
mounted underneath. The rider and the
steering on top are just for fun.
![](https://i0.wp.com/www.robotthoughts.com/marsrobot/radarchair/rover5.gif?resize=320%2C240)
Finally, a quick gear-down
for the underside motor with a differential
to make turning smooth.
![](https://i0.wp.com/www.robotthoughts.com/marsrobot/radarchair/rover6.gif?resize=320%2C240)
Every rover needs
a driver!
Here is the BotCode
source:
Click Me