This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:iot-open:hardware2:sensors_light [2023/10/12 12:07] – ktokarz | en:iot-open:hardware2:sensors_light [2023/11/23 10:37] (current) – pczekalski | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Light Sensors ==== | + | ====== Light Sensors ====== |
+ | {{: | ||
+ | == 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' |
- | + | ||
- | 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' | + | |
\\ | \\ | ||
<figure phtoresistor1> | <figure phtoresistor1> | ||
Line 31: | Line 31: | ||
//Begin serial communication | //Begin serial communication | ||
Serial.begin(9600); | Serial.begin(9600); | ||
- | //Initialize | + | //Initialise |
pinMode(photoresistorPin, | pinMode(photoresistorPin, | ||
} | } | ||
Line 45: | Line 45: | ||
</ | </ | ||
- | === 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> | 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> | ||
Photodiodes are used as precise light-level sensors, receivers for remote control, electrical isolators (optocouplers), | Photodiodes are used as precise light-level sensors, receivers for remote control, electrical isolators (optocouplers), | ||
Line 75: | Line 75: | ||
//Begin serial communication | //Begin serial communication | ||
Serial.begin(9600); | Serial.begin(9600); | ||
- | //Initialize | + | //Initialise |
pinMode(photodiodePin, | pinMode(photodiodePin, | ||
} | } | ||
Line 89: | Line 89: | ||
</ | </ | ||
- | === 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 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, | ||
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 | + | //Initialise |
pinMode(phototransistorPin, | pinMode(phototransistorPin, | ||
} | } |