thumbnail image

  • Home
  • About 
    • Core Values
    • Updates
    • Global Community
  • Learn 
    • ACE-Lab
    • ACE-CORE
  • Build 
    • Build You Own ACE-Lab
    • Automate with Agentic
  • …  
    • Home
    • About 
      • Core Values
      • Updates
      • Global Community
    • Learn 
      • ACE-Lab
      • ACE-CORE
    • Build 
      • Build You Own ACE-Lab
      • Automate with Agentic
Contact

  • Home
  • About 
    • Core Values
    • Updates
    • Global Community
  • Learn 
    • ACE-Lab
    • ACE-CORE
  • Build 
    • Build You Own ACE-Lab
    • Automate with Agentic
  • …  
    • Home
    • About 
      • Core Values
      • Updates
      • Global Community
    • Learn 
      • ACE-Lab
      • ACE-CORE
    • Build 
      • Build You Own ACE-Lab
      • Automate with Agentic
Contact
  • Quanser QCar 2 | Longitudinal Speed Control
    C Comprehend O Operate R Refine E Engineer
    Quanser QCar 2

    Longitudinal Speed Control

    Explore longitudinal speed control through a structured control engineering journey, progressing from understanding the QCar 2 speed-control problem and its requirements, through ACE-CORE and ACE-Lab activities that develop the underlying knowledge, to model-based control-system design.

    Quanser QCar 2
    C Comprehend O Operate R Refine E Engineer
    C
    C

    Comprehend

    What are we trying to control?

    Develop a basic understanding of the QCar 2 longitudinal speed-control problem, including the desired speed, measured speed, feedback and error, the basic closed-loop arrangement, the vehicle speed response and the requirements used to describe satisfactory speed-control performance.

    Learn, then apply

    Complete each ACE-CORE topic, then apply the idea directly to the Quanser QCar 2 longitudinal speed-control problem.

    Learn C01
    What is a Control System Open ACE-CORE →

    Consider the QCar 2 longitudinal speed-control problem. The aim is for the vehicle's actual speed to follow a desired speed.

    Part A
    Identify the speed-control quantities
    1. What physical quantity is being controlled on the QCar 2?
    2. What quantity represents how fast we want the QCar 2 to travel?
    3. What quantity tells us how fast the QCar 2 is actually travelling?
    • Controlled quantity: longitudinal speed
    • Desired quantity: desired longitudinal speed
    • Measured quantity: actual longitudinal speed
    Part B
    Describe the speed-control objective
    1. In one sentence, describe what the QCar 2 longitudinal speed-control system should achieve.
    2. Why might applying the same drive command not always result in exactly the same vehicle speed?

    The longitudinal speed-control system should make the actual QCar 2 speed follow the desired QCar 2 speed.

    A drive command alone does not guarantee a particular speed because the physical vehicle can respond differently under different operating conditions.

    Learn C02
    The Role of Feedback in Error Generation Open ACE-CORE →

    Assume the desired QCar 2 longitudinal speed is 0.80 m/s. The measured speed is fed back and compared with this desired value.

    Part A
    Calculate the longitudinal speed error
    Desired QCar 2 speed (m/s) Measured QCar 2 speed (m/s) Speed error (m/s)
    0.80 0.30 ?
    0.80 0.70 ?
    0.80 0.80 ?
    0.80 0.90 ?

    Using speed error = desired speed − measured speed :

    • 0.80 − 0.30 = +0.50 m/s
    • 0.80 − 0.70 = +0.10 m/s
    • 0.80 − 0.80 = 0.00 m/s
    • 0.80 − 0.90 = −0.10 m/s
    Part B
    Interpret the speed error
    1. What does a positive QCar 2 speed error mean?
    2. What does zero speed error mean?
    3. What does a negative QCar 2 speed error mean?
    • Positive speed error means the QCar 2 is travelling slower than the desired speed.
    • Zero speed error means the measured speed is equal to the desired speed.
    • Negative speed error means the QCar 2 is travelling faster than the desired speed.
    Part C
    Why is speed feedback useful?

    Why is feeding the measured QCar 2 longitudinal speed back into the control system useful?

    Speed feedback allows the actual QCar 2 speed to be compared with the desired QCar 2 speed. This comparison produces the speed error and shows whether the vehicle is travelling too slowly, at the desired speed, or too quickly.

    Learn C03
    Configuration of a Feedback Control System Open ACE-CORE →

    Now map the basic feedback-control structure onto the QCar 2 longitudinal speed-control problem.

    Part A
    Identify the QCar 2 speed-control elements

    For the QCar 2 longitudinal speed-control loop, identify:

    1. The desired input.
    2. The measured output.
    3. The error signal.
    4. The generic controller block.
    5. The physical system being controlled.
    6. The feedback signal.
    • Desired input: desired QCar 2 longitudinal speed
    • Measured output: actual QCar 2 longitudinal speed
    • Error signal: desired speed minus measured speed
    • Controller: a generic speed-control block
    • Physical system: the QCar 2 drive system and longitudinal motion
    • Feedback signal: measured longitudinal speed
    Part B
    Connect the QCar 2 speed-control loop

    Sketch the basic closed-loop arrangement for QCar 2 longitudinal speed control using the elements identified in Part A.

    At this stage, do not choose a specific controller type.

    The basic speed-control structure should follow:

    Desired QCar 2 speed → speed comparison → speed error → controller → QCar 2 drive system → measured QCar 2 speed

    The measured longitudinal speed is then fed back to the speed comparison point.

    Learn C04
    System Response and Performance Measures Open ACE-CORE →

    Imagine that the desired QCar 2 speed changes from 0 m/s to 0.80 m/s. The measured longitudinal speed rises towards the target, briefly exceeds it and then settles close to 0.80 m/s.

    Part A
    Describe the QCar 2 speed response
    1. What does rise time describe for the QCar 2 speed response?
    2. What does overshoot describe?
    3. What does settling time describe?
    4. What does steady-state error describe?
    • Rise time: how quickly the QCar 2 speed rises towards the desired speed.
    • Overshoot: how far the QCar 2 speed exceeds the desired speed.
    • Settling time: how long the QCar 2 speed takes to remain sufficiently close to the desired speed.
    • Steady-state error: the remaining difference between desired and measured QCar 2 speed after the response has settled.
    Part B
    Recognise desirable speed-control behaviour

    For the QCar 2 longitudinal speed response, would you generally prefer the following to be larger or smaller?

    1. Rise time
    2. Overshoot
    3. Settling time
    4. Steady-state speed error

    In general, a well-behaved QCar 2 speed response would aim for:

    • shorter rise time
    • less speed overshoot
    • shorter settling time
    • smaller steady-state speed error
    Learn C05
    Requirements Capture Open ACE-CORE →

    Consider the desired behaviour for the QCar 2: the vehicle should reach the requested longitudinal speed quickly, avoid excessive speed overshoot and then maintain the requested speed accurately.

    Part A
    Match QCar 2 speed behaviour to a measure
    1. Which measure describes how quickly the QCar 2 reaches the requested speed?
    2. Which measure describes how far the QCar 2 speed exceeds the requested speed?
    3. Which measure describes the remaining difference between the requested and measured speed once the response has settled?
    • Time taken to reach the requested speed: rise time
    • Speed exceeding the requested value: overshoot
    • Remaining speed difference after settling: steady-state error
    Part B
    Make the QCar 2 speed requirements measurable

    Rewrite each statement so that the QCar 2 longitudinal speed response could later be measured and tested.

    1. "The QCar 2 should reach the requested speed quickly."
    2. "The QCar 2 should not exceed the requested speed by too much."
    3. "The QCar 2 should maintain the requested speed accurately."

    Example measurable forms are:

    • QCar 2 speed rise time should be less than a specified time.
    • QCar 2 speed overshoot should be below a specified percentage.
    • QCar 2 steady-state speed error should remain within a specified speed tolerance.

    The important idea at this stage is to turn the desired speed behaviour into something that can later be measured and tested.

    ✓
    Comprehend done. Enough thinking for now. Time to make something happen.
    On to Operate →
    Comprehend ↑ Return to top
    O
    O

    Operate

    What practical understanding do we need?

    Use ACE-CORE together with ACE-Lab to develop the practical understanding needed for longitudinal speed control, exploring how sensing, actuation and embedded control are implemented.

    Learn, then practise

    Use ACE-CORE to establish the embedded-control concept, then use ACE-Lab to investigate it physically. The Quanser QCar 2 provides the application context, but the practical development in Operate is carried out using ACE-Lab.

    Learn O01
    Introduction to Microcontrollers Open ACE-CORE →

    Before working with individual inputs and outputs, identify the role played by the microcontroller within ACE-Lab.

    Part A
    Identify the embedded-control functions
    1. What is the role of the microcontroller within ACE-Lab?
    2. What types of information can enter the microcontroller as inputs?
    3. What types of signals can the microcontroller generate as outputs?
    4. Why is a microcontroller useful when a control algorithm must operate repeatedly in real time?

    The microcontroller provides the embedded computational platform for the control system. It can acquire input signals, execute the programmed algorithm and generate output commands.

    Inputs can include digital or analogue measurements from switches and sensors. Outputs can include digital states and PWM commands used to drive devices or, through suitable interface hardware, actuators.

    ACE-Lab platform: use the Base + Sense and Actuate hardware to identify where measurement signals enter the embedded controller and where control commands leave it.
    Learn O02
    Sample Rate, Digital Output and PWM Open ACE-CORE →

    Use a simple output device before moving to a motor. This isolates the key embedded-control ideas of digital output, PWM and repeated execution without introducing actuator dynamics yet.

    Part A
    Digital output

    Complete the LED digital-output practical and identify the relationship between the logical output command and the physical LED state.

    1. What happens when the digital output is switched between LOW and HIGH?
    2. Why is this described as a discrete or two-state output?
    P1 · LED (Digital) →
    Part B
    Pulse-width modulation

    Replace the simple on/off command with PWM and investigate how changing duty cycle changes the average output delivered to the load.

    1. Increase and decrease PWM duty cycle and observe the LED response.
    2. Explain why PWM is useful when a digital microcontroller must vary the effective output applied to a physical device.
    3. Relate the model sample time to how often the output command is recalculated and updated.
    P2 · LED (PWM) →
    P1 · LED (Digital) Establish basic digital-output operation using a simple two-state physical output.
    P2 · LED (PWM) Introduce PWM duty cycle before the same principle is later used to command an actuator.
    Learn O04
    DC Motor Polarity Control Open ACE-CORE →
    Why this is an extension: O04 explains how polarity and PWM control the motor. Here, combine those ideas into a single command format that will later be much easier for a feedback controller to generate.
    Extension task
    Map a signed command to direction and PWM

    Define a normalised motor command u in the range -1 ≤ u ≤ +1.

    PWM = 255|u|
    sign of u → motor direction
    1. Complete the direction and PWM command for u = -1.0, -0.4, 0, +0.4 and +1.0.
    2. Explain why u = 0 should produce a zero motor command.
    3. Explain why this signed representation is useful when a controller later calculates the actuator command automatically.
    u Direction PWM magnitude
    -1.0??
    -0.4??
    0??
    +0.4??
    +1.0??
    • -1.0 → reverse, PWM 255
    • -0.4 → reverse, PWM ≈ 102
    • 0 → stop, PWM 0
    • +0.4 → forward, PWM ≈ 102
    • +1.0 → forward, PWM 255

    A signed command is useful because the controller can produce one value whose sign determines direction and whose magnitude determines drive level.

    A1 · DC Motor Polarity Control →
    Learn O05
    DC Motor Encoder Measurement and Filtering Open ACE-CORE →
    Bridge towards the application: ACE-Lab gives a rotational speed measurement in RPM, whereas vehicle longitudinal speed is normally expressed in m/s. Converting between the two starts connecting the motor-level measurement to the vehicle-level quantity of interest.
    Extension task
    RPM → m/s

    If the measured rotational speed is n RPM and the effective wheel or roller radius is r metres:

    v = 2πr × n / 60
    where v is linear speed in m/s

    For this exercise, assume an effective radius of r = 0.030 m and direct drive.

    Rotational speed Linear speed
    30 RPM?
    60 RPM?
    90 RPM?
    1. Calculate the corresponding linear speed for 30, 60 and 90 RPM.
    2. Plot or display both RPM and m/s from the same measured motor-speed signal.
    3. Explain why the conversion factor depends on wheel radius.
    • 30 RPM → approximately 0.094 m/s
    • 60 RPM → approximately 0.188 m/s
    • 90 RPM → approximately 0.283 m/s

    If the measured RPM is taken before a gearbox or transmission, first convert motor RPM to wheel RPM using the relevant transmission ratio.

    A2 · DC Motor Speed Measurement using an Encoder →

    The 0.030 m radius is an illustrative value for the extension exercise, not a stated QCar 2 wheel dimension.

    Learn O06
    PI Control Implementation for DC Motor Speed Control Open ACE-CORE →
    Bridge towards longitudinal speed control: the PI controller operates on the motor-speed variable, but the application requirement may be written in m/s. Add a conversion layer so a linear-speed reference can be turned into the RPM reference required by the motor controller.
    Extension task
    m/s → RPM → PI control → m/s

    Rearranging the O05 conversion gives:

    n = 60v / (2πr)
    where n is RPM and v is linear speed in m/s

    Continue using the illustrative radius r = 0.030 m.

    1. Calculate the RPM reference corresponding to a desired linear speed of 0.20 m/s.
    2. Feed this RPM value into the PI speed-control system as the reference.
    3. Convert the measured RPM back into m/s and display desired and measured linear speed on the same scope.
    4. Assess rise time, overshoot and steady-state error using m/s rather than RPM.

    For v = 0.20 m/s and r = 0.030 m:

    n = 60 × 0.20 / (2π × 0.030) ≈ 63.7 RPM

    The PI controller can therefore still operate on RPM internally, while the user sets and observes the higher-level speed variable in m/s.

    C2 · DC Motor PI Speed Control →

    This extension deliberately creates a conceptual bridge from ACE-Lab motor speed control to vehicle longitudinal speed control, without requiring the QCar 2 hardware during Operate.

    Operate ↑ Return to top
    R
    R

    Refine

    How can control performance be improved?

    Continue using ACE-CORE and ACE-Lab to explore how an operating control system can be assessed, adjusted and retested to improve its performance.

    Refine ↑ Return to top
    E
    E

    Engineer

    How can model-based design improve performance and reduce development time?

    Apply a model-based design approach to develop the QCar 2 longitudinal speed-control system, using modelling, simulation and controller design to improve speed-control performance, reduce physical testing and accelerate implementation.

    Engineer ↑ Return to top

Terms and Conditions Returns & Refunds Privacy Policy

Cookie Use
We use cookies to ensure a smooth browsing experience. By continuing we assume you accept the use of cookies.
Learn More