Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
useful for maintaining robots speed in the presence of uncertainty (ramps, battery voltage variations, robot weight variations, ...) objective is to vary PWM duty cycle such that motor moves at a specified (desired) speed simple proportional type control is presented
Encoder
Microcontroller
PLD
SM
Frequency-to-Voltage Converter
determine constant K relating duty cycle and measured speed such that duty cycle = K SM
40
(K 1, for example)
given K and desired speed SD (in same units as SM), the appropriate duty cycle to apply can be found from duty cycle = K SD Open-Loop Control
simple closed-loop control approach - add proportional feedback control to open-loop control
duty cycle =
K SD
predicted duty cycle
KP(SD - SM)
duty cycle adjustment
K found by relating motor speed to duty cycle, KP found experimentally note: K, KP need to be determined for each motor independently
Encoder
Frequency-to-Voltage Converter
robot drive system will typically have a fair amount of friction, so motion will stop close to PD more advanced and accurate closed-loop position controllers can be implemented to specify duty cycle directly
Wall-Following Control
useful for moving along a wall at a constant speed SDRIVE and keeping a specified fixed distance dD away from it differential drive is assumed, but can easily be extended to other wheeled robot designs outer-loop approach presented is built around inner-loop closed-loop speed controller left motor speed SDL and right motor speed SDR are determined from the measured distance to the wall dM via (for left wall-following): dM dD SDRIVE
SDL SDR
= =
SDRIVE + SDRIVE -
Wall-Following Control
User Specifies SDRIVE, dD, KL, KR, KPL, KPR, KW Microcontroller
loop SDL= SDRIVE+KW(dD - dM) duty_cycleL=KLSDL+KPL(SDL-SML) SDR= SDRIVE- KW(dD - dM) duty_cycleR=KRSDR+KPR(SDR-SMR) end loop
Encoder DC Motor PWML DIRL H-Bridge Encoder PWMR DC Motor DIRR H-Bridge PML, PMR SML, SMR Motor Position and Speed Measurement Circuitry
dM
Distance Sensor