Natalie C. Landon-Brace edited PIC.tex  about 10 years ago

Commit id: 2696c44b4f73fed495f18da7fcdb7ef4fa80daef

deletions | additions      

       

\subsubsection{Determining if the LED is On}  Determining if the light is on required effectively the same method as determining whether is was present, with a few exceptions. Firstly, all variables involved in light testing were initialized to 0 at the beginning of the LED testing sequence. Secondly, a light was not checked if it had been previously determined to be missing. Finally, 254 data points were taken for the voltage of the light once the switches had been activated to see how many times the voltage measured over the threshold. If the threshold was exceeded at least 10 times, the light was determined to be on and was tested for flikcering. If not, the light was recorded as an LED fail, and the next light was selected. Code for the LED\_TEST subroutine is shown in Figure \ref{fig:LED_TEST1} and Figure \ref{fig:LED_TEST2}.  \subsubsection{Determining if the LED is Flickering}  Determining if the candlelight is flickering requires a little bit more math. The first step is to obtain a "reference voltage" which will be maintained for the remainder of the test. The reference voltage was the first data point for voltage obtained from each light.  \subsection{Program Details}  \subsection{Suggestions for Improvement}