Thomas Green

Controls · Embedded systems

A retrofit robot that operates a car's pedals

This robot sits where the driver's feet go and works the pedals directly. A conventional car can be automated without touching its wiring.

Context
MEng group design project, Southampton
Role
Actuator design and closed-loop control
Period
Final year, MEng Mechatronic Engineering
Code
automotive-driving-robot
Report
Design journal summary (PDF)
The finished rig cycling a pedal on its test plate. The electronics are in the acrylic enclosure at the back.
The CAD assembly, built up part by part. Everything mounts to a single baseplate that drops into the footwell.
Three-quarter CAD render of the pedal actuator. A flat black baseplate carries a compact motor and linkage at one end, with a long arm reaching to a pedal bracket at the other.
The linkage that reaches the pedal.
Side elevation CAD render of the same assembly, showing the low profile of the baseplate and the height of the arm above it.
Side on. Height was constrained by the footwell.
The robot installed in the footwell of a Prius plug-in hybrid, with the acrylic enclosure on its baseplate and the output arm reaching down to the pedal.
Installed in the test car, a Prius plug-in hybrid. The baseplate sits where the driver's feet would go.
Commissioning in the car, tethered to a laptop.
114 ms10 to 90 per cent rise, rest to full travel
0.2%overshoot on a full-scale step
r = 0.999agreement between two independent position sensors

The problem

Testing autonomous driving logic normally needs a vehicle built for it. That is expensive, and it rules out the conventional cars already on the road. A retrofit actuator that presses the pedals needs no access to the vehicle's control network. It can be moved between vehicles and removed afterwards.

Replacing a driver's foot means handling position sensing, force delivery and closed-loop control in a package that fits in a footwell.

Two-panel plot. The top panel shows a commanded PWM step from 0 to 255 at 3.5 seconds. The lower panel shows the measured pedal position rising from 326 to 929 ADC counts, with a 10 to 90 per cent rise time of 114 milliseconds and effectively no overshoot.
Full-scale step command and measured pedal position. The 10 to 90 per cent rise time is 114 ms, with 0.2% overshoot.

Characterising the actuator

The plant is a motor driving a linkage against a pedal with its own return spring and a non-linear feel. I needed to measure it before tuning a controller, so I started with system identification.

I ran a set of excitation signals through the actuator and logged the position response. These were steps at several amplitudes, ramps, random square waves and pseudo-random binary sequences (PRBS) at a range of dwell times. The PRBS runs were the most useful for fitting a model. They excite a broad band of frequencies without driving the actuator faster than the mechanics can follow.

An excitation run on the bench, logging the position sensors.
Two-panel plot. The top panel shows a pseudo-random binary drive signal switching between plus and minus 125 PWM with varying dwell times over three seconds. The lower panel shows the pedal position oscillating between roughly 380 and 470 ADC counts.
Pseudo-random binary excitation and the resulting motion. The varying dwell times spread the excitation across a band of frequencies.

Validating the position sensors

The pedal sensor sits on the pedal, so it measures pedal position directly. It is also exposed, and its zero moves when the mechanism is disturbed. I cross-checked it against a potentiometer on the actuator crank. That is mechanically protected but measures pedal position indirectly through the linkage.

Across a full stroke the two agree to within about two per cent of travel. The crank signal can therefore serve as a redundant channel, and a disagreement between the two indicates a fault.

Line chart with two series over 1200 samples of normalised pedal travel. The pedal sensor and the crank potentiometer track each other closely through a press, a hold and a release, with a correlation of 0.9990 and a mean absolute error of 1.8 per cent of travel.
The pedal sensor against the crank potentiometer through a press, hold and release. Correlation 0.9990, mean absolute error 1.8 per cent of travel.

Failures

Two mechanical parts failed. The gearbox developed backlash, visible in the position trace as a dead band at every direction reversal. Pedal modulation is mostly small reversals, so this matters. A crank arm also cracked at the pin slot, where the section is thinnest and the load is highest.

An opened planetary gearbox from above, showing the ring gear, three planet gears and the sun gear, with grease across the faces and wear on the tooth flanks.
The gearbox opened up. The backlash came from wear on the tooth flanks.
Close-up of a machined metal crank arm with a pin slot, with two red arrows pointing at cracks running from either side of the slot.
Cracks from both sides of the pin slot, arrowed. We designed in this stress concentration and did not catch it.

Both failures only appeared after the rig had done real cycles. The dead band showed up in the sensor trace before the crack appeared, while the arm still looked fine.

← All projects