|
The
Engineering section is composed of 1 OOPic
driving a 2-DC Motor
control board, which in turn drives the
wheels using 2 12v motors and gearboxes. The
wheels also have optical encoders which read how
far each wheel has traveled. The only function of
the Engineering section is to take instructions
from Central Command and make sure the robot
moves as directed. If the Engineering OOPic
cannot complete the instructed task, it sends an
error condition over the I2C
Network to the Central Command OOPic.
The speed and direction of each wheel is
independently controlled by 1 oPWM
Object to control the speed, 1 oDio1 Object for brakes, 1 oDio1 Object for direction,
1 oDio1 Objects for
thermal overload, and 1 oA2D
Object to read the current drawn by the motor.
The I/O Lines of these Objects are feed directly
into the LMD18200
H-Bridge ICs, which are used to power the
motors. They are capable of driving a motor with
a voltage range of 10V-DC to 55V-DC with up to 3A
continuous and can drive the motor at a variable
speed with reversible direction and brakes. It
also has current sensing and thermal overload
protection outputs.
The rotation of the wheels is tracked by a Virtual Circuit composed
of 2 oDio1 Object to read
the optical encoders, 2 oCounter
Objects to track the position of the wheels, and
a oMath Object to verify
that the wheels have turned the same distance.
|