<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>PID | Etienne Chassaing</title><link>http://etiennechassaing.com/tags/pid/</link><atom:link href="http://etiennechassaing.com/tags/pid/index.xml" rel="self" type="application/rss+xml"/><description>PID</description><generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Thu, 11 Jun 2026 00:00:00 +0000</lastBuildDate><image><url>http://etiennechassaing.com/media/icon_hub84619f942fe7a5590e3fd5bc84e624a_336037_512x512_fill_lanczos_center_3.png</url><title>PID</title><link>http://etiennechassaing.com/tags/pid/</link></image><item><title>Final exam — Altitude control of a drone</title><link>http://etiennechassaing.com/book/classes/ece/examen-final/</link><pubDate>Thu, 11 Jun 2026 00:00:00 +0000</pubDate><guid>http://etiennechassaing.com/book/classes/ece/examen-final/</guid><description>&lt;h2 id="context">Context&lt;/h2>
&lt;p>This is the final exam of the &lt;strong>Sampled Control Systems&lt;/strong> course I taught at ECE Paris
to the full year group (500 students) from April to June 2026. Rather than a set of
disconnected questions, it is built as a &lt;strong>single running case study&lt;/strong>: all four parts
work on the same system — the altitude control of an agricultural observation drone —
and each part picks up where the previous one left off.&lt;/p>
&lt;p>Duration: &lt;strong>1h30&lt;/strong> — calculator and documents not allowed. 20 points, plus 2 bonus points.&lt;/p>
&lt;p>&lt;img src="drone_obs.jpg" alt="Agricultural observation drone">
&lt;em>The system under study: an observation drone holding a constant altitude over a field&lt;/em>&lt;/p>
&lt;h2 id="what-the-paper-covers">What the paper covers&lt;/h2>
&lt;p>&lt;strong>Warm-up — quiz and two exercises.&lt;/strong> Five multiple-choice questions on PID gain effects,
the mapping between the Laplace plane and the $z$-plane, first-order dynamics and discrete
stability; then an inverse Laplace transform by partial fractions, and the discretisation
of a first-order plant behind a zero-order hold.&lt;/p>
&lt;p>&lt;strong>Part 1 — Modelling.&lt;/strong> From Newton&amp;rsquo;s second law on the vertical axis to the transfer
functions of the drone: four brushless motors, fluid friction, and gravity treated as a
constant disturbance. The motor itself is identified graphically from a measured step
response ($K_m$, $\tau$), then the open-loop transfer function is factorised and its poles
and zeros placed in the Laplace plane.&lt;/p>
&lt;p>&lt;strong>Part 2 — Closed-loop control.&lt;/strong> Black&amp;rsquo;s formula on the closed loop, then the final-value
theorem applied by superposition to both the setpoint and the gravity disturbance — which
exposes the steady-state error a proportional controller cannot remove. The part closes on
integral action, a feedforward alternative (bonus), and the risk derivative action creates
when the drone flies in gusty wind.&lt;/p>
&lt;p>&lt;strong>Part 3 — Discretisation and implementation.&lt;/strong> The controller moves onto an ESP32 behind
a zero-order hold: backward-Euler substitution, the recurrence equations for the P, I and D
terms, the low-pass filter the derivative branch needs in practice, a Python implementation
to complete, and a comparison of continuous versus sampled step responses.&lt;/p>
&lt;p>&lt;strong>Part 4 — Filtering.&lt;/strong> Anti-aliasing ahead of the accelerometer&amp;rsquo;s ADC, then sensor fusion:
which filter merges a 10 Hz GPS with a 100 Hz accelerometer, at what rate it runs, and how
the two sensors&amp;rsquo; standard deviations drive the trade-off between short-term dynamics and
long-term drift.&lt;/p>
&lt;h2 id="the-paper">The paper&lt;/h2>
&lt;p>The exam is written in French, as the course is taught in French. A &lt;strong>full transcription
with all figures and formulas&lt;/strong> is available on the French side of this site:&lt;/p>
&lt;p>📄 &lt;strong>&lt;a href="http://etiennechassaing.com/fr/book/classes/ece/examen-final/">Read the full transcription (French)&lt;/a>&lt;/strong>&lt;/p>
&lt;p>Solutions are not published.&lt;/p>
&lt;div style="position:relative;padding-top:129%;margin:1.5rem 0;border:1px solid #d4d4d8;border-radius:6px;overflow:hidden;">
&lt;iframe
src="https://cdn.jsdelivr.net/gh/cetiennec/cours-pdf@main/ece/systemes-boucles/evaluations/2025-2026/examen-final/diffusion/examen_final.pdf"
style="position:absolute;top:0;left:0;width:100%;height:100%;border:0;"
title="Final exam — Sampled Control Systems (PDF)">&lt;/iframe>
&lt;/div>
&lt;p>&lt;strong>Related documents:&lt;/strong>
&lt;a href="https://cdn.jsdelivr.net/gh/cetiennec/cours-pdf@main/ece/systemes-boucles/evaluations/2025-2026/examen-final/diffusion/examen_final.pdf">exam paper&lt;/a> ·
&lt;a href="https://cdn.jsdelivr.net/gh/cetiennec/cours-pdf@main/ece/systemes-boucles/evaluations/2025-2026/examen-final/diffusion/examen_final_feuille_reponse.pdf">answer sheet&lt;/a> ·
&lt;a href="../">all course material&lt;/a>&lt;/p></description></item></channel></rss>