Lab 3: Tips and Things to Think About
|
|
|
![]() |
Matching photo-resistors:
Familiar electronic components such
as resistors and capacitors often diverge from their specified value (within
tolerances), and photo-resistors are no exception to this rule. So if you
are when using more than one photo-resistor, it is really worth the trouble
to use a multi meter to try to find photo-resistors that match behavior
(in both range, and response). One way to do this would be to place two
sensors side by side on white proto board, and test there respective resistances
at different light levels.
Methods for interpreting analog inputs: When reading in analog information there are (at least) two ways to have your program interpret it. One is to equate the input value to an output value with a mathematical expression (i.e. motor speed varies directly with analog input). Another way is to assign a threshold value to the input, where whenever the input crosses that threshold an output action is invoked. You can also combine approaches where, for example, there is no output until the input crosses a threshold, but after that the output is equated to the input. It may be interesting to experiment with these different approaches.