![]() |
![]() |
|||
| Home Info Request Quote/Order Contact Site Map About Search Support/FAQ |
| ARobot Light Detector Application Note |
|
This application note in PDF format
Parts ----------------------------------------------------------------- Light detector (CDS photocell) #276-1657 $2.29 47 uF capacitor, 16 volts or more #272-1027 $.69You can use an CDS photocell but you may need to change the capacitor value and the timing in the software. Experimentation will be needed.
The CDS sensor acts like a variable resistor. As the incoming light changes, the resistance of the CDS cell changes. If the resistance level could be determined then the light level could also be determined. One way to "read" the resistance with a microcontroller is to time how long it takes to charge a capacitor through the resistor(a CDS cell in this case). First the capacitor must be drained (remove all charge). Then the capacitor is left to charge up. If the resistor has a low value, the capacitor will charge quickly. If the resistor has a high value, the capacitor will charge slower. This time is measured in software to determine the CDS resistance . CARE MUST BE TAKEN when hooking up the capacitor to the circuit. The negative lead is labeled on the capacitor. This lead should go to GND. If the capacitor is hooked up incorrectly it could explode. If power is applied to an incorrectly wire capacitor that capacitor should be thrown away. Make sure that the capacitor has a voltage rating of 16 volts or more.
There are several other sensors that act like variable resistors. One such application uses a thermister which changes resistance with changes of temperature. This could be used to allow ARobot to respond according to the temperature. NOTE: The resistor/capacitor charge rate is exponential not linear.
You can download this program here.
|
| Home Info Request Quote/Order Contact Site Map About Search Support/FAQ |
| Copyright (c) Arrick Robotics - ArrickRobotics.com |