Of course. Here are the new subsections, formatted in LaTeX and written to flow naturally from your introductory text. I've focused on explaining not just what each technique is, but why it is or isn't suitable for your specific application of 18 tiny, position-controlled motors.
\subsection{Selection of the control method}
The first step going into this project is to decide which sensorless control method to use, as all the hardware and software will be entirely dependent of this choice. There exist multiple techniques to control brushed DC motor in position without encoders, but very little of them are actually suited for our application. Let's see a few of them in more detail to understand:
\subsubsection{Back-EMF Sensing}
This is perhaps the most common sensorless technique for speed control. It relies on the principle that a spinning motor also acts as a generator, producing a voltage proportional to its rotational speed, known as Back-Electromotive Force (Back-EMF). By briefly interrupting the PWM drive signal and measuring the voltage across the motor terminals during this "off" period, one can estimate the motor's speed. To get position, this speed signal must be integrated over time.
However, this method presents several critical flaws for our application:
\begin{itemize}
\item \textbf{Failure at low RPM and standstill:} The Back-EMF signal is directly proportional to speed. At very low speeds, the signal becomes buried in noise and is difficult to measure accurately. At a complete standstill—which is essential for holding a position—the Back-EMF is zero, making position sensing impossible.
\item \textbf{Integral drift:} Relying on the integration of a noisy speed measurement to estimate position is inherently unstable. Any small, constant error in the speed measurement will accumulate over time, causing the calculated position to drift indefinitely, even if the motor is perfectly still.
\end{itemize}
Given that our primary goal is precise position control, especially holding a static position, the inability to function at standstill makes Back-EMF sensing fundamentally unsuitable.
\subsubsection{Model-Based State Observers}
A more sophisticated approach involves creating a precise mathematical model of the motor's electrical and mechanical properties (resistance, inductance, inertia, etc.). A state observer, such as a Luenberger observer, runs this model in parallel on the microcontroller. It uses the applied voltage and the measured current as inputs and continuously compares the model's predicted current with the actual measured current. The error between the two is used to correct the model's internal state variables, including the estimated position and speed.
While powerful in theory, this method is impractical for our system due to:
\begin{itemize}
\item \textbf{High computational intensity:} Running a complex state observer requires constantly solving differential equations. For a single motor, this is manageable for a modern MCU. However, scaling this to 18 independent motors simultaneously would require a very powerful—and therefore larger and more expensive—processor, which contradicts our space and cost constraints.
\item \textbf{Parameter sensitivity:} The observer's accuracy is entirely dependent on the accuracy of the motor model. For the super-tiny, low-cost motors we plan to use, parameters like winding resistance and inductance can vary significantly from unit to unit and change with temperature. Accurately characterizing and storing models for all 18 motors would be a major challenge.
\end{itemize}
The combination of the immense computational load and the difficulty in modeling our specific hardware makes this approach unfeasible.
\subsubsection{High-Frequency Signal Injection}
This advanced technique works by superimposing a low-voltage, high-frequency (HF) AC signal on top of the DC voltage driving the motor. This HF signal does not produce torque but interacts with the motor's magnetic properties. If the motor exhibits magnetic saliency—meaning its inductance changes predictably with the rotor's angle—this variation can be detected by demodulating the HF current response. This allows for direct position sensing, even at a complete standstill.
The primary obstacles for our application are:
\begin{itemize}
\item \textbf{Requires magnetic saliency:} This method's success hinges on the motor having a non-uniform magnetic structure. The simple, symmetrical construction of most small, inexpensive brushed DC motors means they exhibit little to no saliency, rendering the technique ineffective.
\item \textbf{Hardware and software complexity:} Implementing HF injection requires additional circuitry to generate, inject, and filter the signal, as well as complex software algorithms (e.g., lock-in amplifiers) to process the result. Implementing this for 18 channels would drastically increase the size, cost, and complexity of the electronics, directly opposing our design goals.
\end{itemize}
\subsubsection{Current Ripple Counting}
After evaluating the previous methods, we have selected a technique that offers the best trade-off between performance, simplicity, and resource usage for our specific needs: current ripple counting.
This method leverages a physical characteristic of all brushed DC motors: the commutator. As the motor rotates, the brushes switch between different segments of the commutator. Each commutation event causes a brief, sharp fluctuation or "ripple" in the motor's current draw as the coils are switched. By sensing the motor current with a simple shunt resistor and an amplifier, we can detect these ripples as distinct peaks.
The number of commutator segments is a fixed physical property of the motor. For example, a common 3-pole motor will produce 6 distinct current ripples for every full mechanical revolution. By simply counting these ripples, we can track the motor's rotation in discrete, incremental steps, much like a low-resolution encoder.
This approach is highly advantageous for our project because:
\begin{itemize}
\item \textbf{It is computationally simple:} The core task is peak detection in a 1D signal, which can be implemented with a simple algorithm or even an analog comparator, placing a very low burden on the microcontroller. This makes it feasible to manage 18 motors at once.
\item \textbf{It requires minimal hardware:} A single current sense resistor per motor is often all that is needed, which is already a common component for over-current protection. This aligns perfectly with our need for a compact electronic footprint.
\item \textbf{It works at very low speeds:} Unlike Back-EMF, the ripples are present as long as the motor is turning, however slowly. While it cannot determine absolute position at a dead stop, it provides the incremental feedback necessary for a robust position control loop.
\end{itemize}
While the resolution is limited by the motor's construction and the signal requires careful filtering, current ripple counting provides a direct, event-based measurement of rotation that is robust against the drift and standstill issues of other methods, making it the ideal choice for this project.