Академический Документы
Профессиональный Документы
Культура Документы
Scott M. Boskovich
California State Polyrechnic University, Pomona
3801 W: Temple
Pomona, CA 91768
ISBN# 0-7803-2636-9 7 50
This control loop can also fimction to correct
Discussion the robot’s drift that could be caused by unlevel
surfaces. For example, a robot traveling on an
General System Theory unleveled path without this control loop implemented
will drift towards the downward side. However, due to
A control system for a two wheeled robot must the nature of this control loop, the robot will maintain
involve the following: the specified trajectory. This is because the system will
think there is a drivetrain difference, and therefore will
1. A means of sensing the speed of each wheel. adjust accordingly.
2. A means of ‘bowing” the distance traveled.
Electrical
3. The system must be able to adjust the speed of
each wheel separately. The electrical subsystem of the robot comprises
4. The system should be able to allow for of three parts; analog, digital, and power. The analog
“imperfect” conditions. part is responsible for controlling the motors and
interpreting the inputs from the encoder disc. The
Due to the complexity of the system digital portion, consisting of memory and a processor,
requirements, a microprocessor is used for control. executes the controlling algorithm stored in software.
The microprocessor implemented is the MC68HCllE9 The digital part also provides an interface to a second
microcontroller from Motorola. The method of speed dedicated processor for fbture developments. The
control utilized is Pulse Width Modulation (PWM). By interface board was designed as part of my senior
varying the duty cycle of the signal sent to the motors, design project and the processor board was purchased
the speed is changed thusly. To extract the speed of fiom New-Micros Inc. The processor board provides a
each wheel, encoder discs and opto-interrupters are 64K address space which can be configured with a
used. This combination incorporates a disc mounted on combination of 8K-32K SRAM, 8K-32K EPROM,
each drive shaft. The edge of the disc has 128 slots and/or 8K-32K EEPROM. It also provides an
spaced evenly around the perimeter of the disc. The expansion port, serial communications via RS232, and
interrupters are mounted such that the disc fits between LCD display capabilities. The power system provides
the void of the emitter and detector pair. Therefore, as two sources of 5V ( one for each board ) and 12V to
the disc turns, the detector “sees” pulses fiom the the motors.
emitter caused by the slots in the perimeter of the
encoder disc. The frequency of these pulses correlate The power system consists of two sealed lead
directly with the rotation of the wheel. Therefore, the acid batteries configured in parallel providing a total of
speed of each wheel is obtained fiom the emitter. 14A/h. There are two linear voltage regulators,
Figure 1 shows the general block diagram. LM7805K, which provide the 5V required by each
TO PCUSER
board. They are in a TO-3 style package and mounted
MOTOR SHPIT to a heatsink on the robot chassis. The 12V is obtained
T (PMSIWCONNECTION)
directly fiom the batteries.
755