I have a servo motor and I'm trying to come up with a formula that relates the angle of the motor to the length of a strap that is wound on it. Since the radius at <360 degrees is the radius of the motor shaft (r1) and at 360<theta<720 the radius is now r1 + Ct (cable thickness) and after 720 degrees, the new radius r2 = r1 + 2*Ct. Consider the thickness to be uniform. So the circumference is growing every 360 degrees when a new layer of cable is wound. Any ideas? The cable goes only on top of its previous layer, it does not move to the side.
The "spool" is cylindrical ie. servo motor shaft. I want to treat each layer as a concentric circle, not a spiral.
Thanks!
The solution depends on the shape of the spool, which you did not specify. A fairly complete class of spiral solutions can be constructed using Fourier series and a bit of calculus.
The unit normal $\vec N$ to the spiral is needed in order to describe how the spiral grows when one adds another layer: at each point on the spiral, the thickness of the wrapped strap is equal to the distance to the next layer of the spiral as measured in the direction $\vec N$ that is perpendicular to the current point on the spiral.
Caution. In what follows $\theta$ represents the angle of inclination of the unit normal vector (which is 90 degrees out of phase with the tangent vector of direction of travel). This angle should not be confused with the "usual" symbol for a polar coordinate system that has a fixed origin. If a ship is traveling on a curvilinear path around a fixed buoy that is taken as the origin, $\theta$ described the instantaneous compass bearing of the moving ship rather than the angle that the position vector of the ship makes measured from that fixed buoy.
The general strategy is to parametrize the spiral curve $\vec R$ as a function of $\theta$.
Notation.
The unit normal vector to the spiral is $\vec N=<\cos \theta, \sin \theta>$.
The unit tangent vector $\vec T$ to the spiral is perpendicular to the vector $\vec N$. In what follows $\vec T=<-\sin \theta, \cos \theta> =\frac{ d \vec N}{d\theta}$.
The position vector of the parametrized spiral is $\vec R (\theta) $. Thus,
$ \frac{d\vec R}{d\theta} = \vec T \frac{ds}{d\theta}$ where $\vec T =<-\sin \theta, \cos \theta >$ and $\frac{ds}{d\theta} = c(\theta) $ for some non-negative function $c(\theta)$ whose detailed properties will now be determined.
If the thickness of the strap is $a$, then we want each revolution of the wrapped strap to be displaced in the normal direction by exactly this thickness. Thus we desire $\vec R(\theta+2\pi) -\vec R(\theta) = a \vec N(\theta)$. Differentiation with respect to $\theta$ gives
$ \vec T(\theta +2\pi) c(\theta+ 2\pi) - \vec T(\theta)c(\theta) = a \vec T(\theta)$. But $\vec T(\theta+2\pi)= \vec T(\theta)$, so after cancelling $\vec T$ from both sides, deduce that $c(\theta+2 \pi) -c(\theta)= a$. The general solution to this equation is $$c(\theta)= \frac{a}{2\pi} \theta+ p(\theta)$$ where $p(\theta)$ is periodic with period $2\pi$. We can call this function $c(\theta)$ a quasi-periodic function. (It is the sum of a linear function of $\theta$ and a periodic function.)
Thus working backwards from this, we see that starting with any periodic function $p(\theta)$ expanded as a Fourier series $p(\theta)= \sum_k A_k \cos (k\theta) + B_k \sin (k \theta)$ one can construct a function $c(\theta)$ that has the required quasi-periodicity. Note also that you want $c(\theta)$ to be non-negative. (This can be accomplished by trial and error, tinkering with the choice of the Fourier coefficients. There are many solutions, corresponding to different shapes of the spool! A good starting point is to use a small number of such Fourier coefficients, e.g., just $A_0, A_1, B_1$.)Then integrating the equation $d\vec R= \vec T(\theta) c(\theta) d\theta$ gives the full parametric description of the spiral associated to this choice of quasi-periodic function.
P.S. In physical terms $c(\theta)$ is the radius of curvature and its reciprocal $\kappa$ is the curvature of the curve.
Note that any irregularities in the shape of the first wrap (which is related somehow to the shape of the spool) is determined by $p(\theta)$.
Below is a plot of an illustrative example in which $c(\theta) =.5 \theta+1$ is especially simple. In this case the total arc length along the spiral can be found by integrating $ds= c(\theta) d\theta$ to obtain $s= \frac{\theta^2}{4}+\theta$. This is a quadratic relationship between the angle $\theta$ and the length $s$ of the strap. (As mentioned above however, this $\theta$ should not be confused with the polar coordinate angle $\phi$ of the position vector $\vec R(\theta)$, although in practice for large values it is true that $\theta \approx \phi$.)