this is for holding javascript data
Rein D. Otsason edited Servos.tex
about 10 years ago
Commit id: 5e77c92eff026a8b568ba15be71db1914b6d08e1
deletions | additions
diff --git a/Servos.tex b/Servos.tex
index 56c7162..02cd476 100644
--- a/Servos.tex
+++ b/Servos.tex
...
\subsubsection{Sending Signals to Servo Motors}
The servos are another significant electormechanical component as they are required to turn on the lights. The position of the servo is determined by the Pulse Width Modulation signal (PWM) coming from the PIC's RC2 port. The CCP1CON register was configured for PWM, the Timer2 was initialized and the duty cycle was set for both the
"Lights On" ``Lights On'' (ON) Position and the
"Lights Off" ``Lights Off'' (Neutral) Position. The duty cycle for ON was 99\% and the duty cycle for Neutral was 6\%. The code for the neutral position of PWM is shown in Figure \ref{fig:SERVOS}.