Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:iot-open:hardware2:sensors_light [2023/10/12 12:07] ktokarzen:iot-open:hardware2:sensors_light [2023/11/23 10:37] (current) pczekalski
Line 1: Line 1:
-==== Light Sensors ====+====== Light Sensors ====== 
 +{{:en:iot-open:czapka_b.png?50| General audience classification icon }}{{:en:iot-open:czapka_e.png?50| General audience classification icon }}\\ 
 +== Photoresistor ==
  
-=== Photoresistor === +A photoresistor is a sensor that perceives light waves from the environment. The resistance of the photoresistor is changing depending on the intensity of light. The higher the intensity of the light, the lower the sensor's resistance. A light level is determined by applying a constant voltage through the resistor to the sensor, forming a voltage divider, and measuring the resulting voltage. Photoresistors are cheap, but the resistance is influenced by temperature and changes slowly, so they are used in applications where speed and accuracy are not crucial.\\ Photoresistors are often utilised in energy-effective street lighting control.\\ A symbol, sample photoresistor, and connection circuit are present in figures {{ref>phtoresistor1}}, {{ref>phtoresistor2}} and {{ref>phtoresistor3}}.
- +
-A photoresistor is a sensor that perceives light waves from the environment. The resistance of the photoresistor is changing depending on the intensity of light. The higher the intensity of the light, the lower the sensor's resistance. A light level is determined by applying a constant voltage through the resistor to the sensor, forming a voltage divider, and measuring the resulting voltage. Photoresistors are cheap, but the resulting resistance is influenced by temperature and changes slowly, so they are used in applications where speed and accuracy are not crucial.\\ Photoresistors are often utilised in energy-effective street lighting control.\\ A symbol, sample photoresistor, and connection circuit are present in figures {{ref>phtoresistor1}}, {{ref>phtoresistor2}} and {{ref>phtoresistor3}}.+
 \\ \\
 <figure phtoresistor1> <figure phtoresistor1>
Line 31: Line 31:
     //Begin serial communication     //Begin serial communication
     Serial.begin(9600);       Serial.begin(9600);  
-    //Initialize the analogue pin of a photoresistor as an input+    //Initialise the analogue pin of a photoresistor as an input
     pinMode(photoresistorPin, INPUT);      pinMode(photoresistorPin, INPUT); 
 } }
Line 45: Line 45:
 </code> </code>
  
-=== Photodiode ===+== Photodiode ==
 A photodiode is a sensor that converts light energy into electrical current. A current in the sensor is generated by exposing a p-n junction of a semiconductor to the light. Information about the light intensity can be determined by measuring a voltage level. Photodiodes react to changes in light intensity very quickly, so they can be used as receivers of light-based data transmission systems (e.g. fibre data communication). Solar cells are just large photodiodes. A symbol, sample photodiode and connection circuit are present in figures {{ref>photodiode1}}, {{ref>photodiode2}} and {{ref>photodiode3}}.\\ A photodiode is a sensor that converts light energy into electrical current. A current in the sensor is generated by exposing a p-n junction of a semiconductor to the light. Information about the light intensity can be determined by measuring a voltage level. Photodiodes react to changes in light intensity very quickly, so they can be used as receivers of light-based data transmission systems (e.g. fibre data communication). Solar cells are just large photodiodes. A symbol, sample photodiode and connection circuit are present in figures {{ref>photodiode1}}, {{ref>photodiode2}} and {{ref>photodiode3}}.\\
 Photodiodes are used as precise light-level sensors, receivers for remote control, electrical isolators (optocouplers), and proximity detectors. Photodiodes are used as precise light-level sensors, receivers for remote control, electrical isolators (optocouplers), and proximity detectors.
Line 75: Line 75:
     //Begin serial communication     //Begin serial communication
     Serial.begin(9600);       Serial.begin(9600);  
-    //Initialize the analogue pin of a photodiode as an input+    //Initialise the analogue pin of a photodiode as an input
     pinMode(photodiodePin, INPUT);      pinMode(photodiodePin, INPUT); 
 } }
Line 89: Line 89:
 </code> </code>
  
-=== Phototransistor ===+== Phototransistor ==
 The phototransistor is a typical bipolar transistor with a transparent enclosure that exposes the base-emitter junction to light. In a bipolar transistor, the current that passes through the collector and emitter depends on the base current. In the phototransistor, the collector-emitter current is controlled with light. A phototransistor is slower than a photodiode but can conduct more current; additionally, it amplifies the incoming signal. In specific conditions, if the light is completely off or intense enough to make the output current maximal, a phototransistor can be considered a light-controlled electronic switch (e.g. in optocouplers, which are usually connected to digital inputs of the microcontroller and provide physical separation between devices).\\ The phototransistor is a typical bipolar transistor with a transparent enclosure that exposes the base-emitter junction to light. In a bipolar transistor, the current that passes through the collector and emitter depends on the base current. In the phototransistor, the collector-emitter current is controlled with light. A phototransistor is slower than a photodiode but can conduct more current; additionally, it amplifies the incoming signal. In specific conditions, if the light is completely off or intense enough to make the output current maximal, a phototransistor can be considered a light-controlled electronic switch (e.g. in optocouplers, which are usually connected to digital inputs of the microcontroller and provide physical separation between devices).\\
 Phototransistors are used as optical switches, proximity sensors and electrical isolators.\\ Phototransistors are used as optical switches, proximity sensors and electrical isolators.\\
Line 120: Line 120:
     //Begin serial communication     //Begin serial communication
     Serial.begin(9600);       Serial.begin(9600);  
-    //Initialize the analogue pin of a phototransistor as an input+    //Initialise the analogue pin of a phototransistor as an input
     pinMode(phototransistorPin, INPUT);      pinMode(phototransistorPin, INPUT); 
 } }
en/iot-open/hardware2/sensors_light.1697112424.txt.gz · Last modified: 2023/10/12 12:07 by ktokarz
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0