The photo diode has to be connected with a 10k resistor rather than a 220Ω resistor. Pour cela, il n’est pas nécessaire de convertir le signal du capteur en valeur physique mais simplement de convertir le signal du capteur en une valeur de commande pour la LED. Components DFRduino UNO R3 (similar as Arduino UNO R3)*1 prototype Shield *1 Jumper Cables M/M *5 Ambient Light Sensor *1 Resistor 220R*1 5MM LED *1 Resistor 10K*1 Circuit Be aware that photo diodes are polarized, just like LEDs, so they will only work if connected the correct way around. Une application possible avec une photorésistance est le contrôle d’une lampe à LED en fonction de la luminosité. When it is dark, the photo diode detects the change and triggers the light, and vice versa. In this arduino tutorial, we will make an automatic light that can adjust itself according to the ambient lighting around it. The photo diode provided in the starter kit is a typical light sensor. By reading the photo diode's resistance value, we can work out the ambient lighting in an environment. The stronger light in the surrounding environment, the lower the resistance value the photo diode will read. In simple terms, when the sensor detects light, its resistance changes. Related Product: Beginner Kit for Arduino Arduino Tutorial 9: Light Sensitive LED Let’s introduce a new sensor component: the photo diode.
0 Comments
Leave a Reply. |