Skip to content
Snippets Groups Projects
Commit 1a99ab04 authored by Kamal Alkahwati's avatar Kamal Alkahwati
Browse files

worked on stepper motor and ppm

parent c18839e1
No related branches found
No related tags found
No related merge requests found
\subsection{Stepper motor}
A stepper motor is used to rotate the lidar to perpendicular to its own movement, thus creating a three dimensional view for the lidar to record.
\newline
The stepper motor is controlled via PWM on Timer 9, and the processor receives an interrupt for every step taken to keep track of number of steps (0 - 400). At every lap, a hall effect sensor gets triggered, which induces an extended interrupt on GPIOG Pin 3 to reset the step counter.
\ No newline at end of file
\subsection{Stepper motor}
A stepper motor is used to rotate the lidar to perpendicular to its own movement, thus creating a three dimensional view for the lidar to record.
\newline
The stepper motor is controlled via PWM on Timer 9, and the processor receives an interrupt for every step taken to keep track of number of steps (0 - 400). At every lap, a hall effect sensor gets triggered, which induces an extended interrupt on GPIOG Pin 3 to reset the step counter.
\ No newline at end of file
\subsection{PPM}
The transmitter sends radio signals to the receiver, which converts these into PPM signals
that the run on 8 different channels for controlling the copter. To be able to apply
automatic control to the quad, we need to modify these PPM signals as we'd like them.
PPM is basically pulses of different width, that correspond to different amplitudes of
input (throttle, pitch, yaw, etc). For this purpose of control, a separate timer (TIM2 CH1) for input capture is impemented. Pulse width measurement is accomplished in the same manner as with the sonars, Input capture interrupts call the function \emph{ppmDecode()}, which in turn
call the function \emph{computeWidth} and stores the pulse widths in an array, \emph{pulseArray}.
When the array is full (8 pulse widths), the function sends it to \emph{MSP\_newRCData} for
further processing.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment