![](/media/cache/group/ep.webp.50x50_q85.jpg)
Licht Sensor
Dependencies: mbed
Ein Fotowiderstand (englisch Light Dependent Resistor, LDR) ist ein Lichtabhängiger Widerstand aus einer amorphen Halbleiter-Schicht. Je höher der Lichteinfall, desto kleiner wird aufgrund des inneren fotoelektrischen Effekts sein elektrischer Widerstand.
Der Fotowiderstand kann nicht direkt mit einem analogen Pin verbunden werden, da dieser nur Spannungen und keine Widerstände messen kann. Die Lösung ist die die Spannungsteiler Schaltung. Die Kombination Fotowiderstand und Spannungsteiler ergibt einen Licht Sensor.
Anwendungen
- Dämmerungsschalter
makefile@2:79735a854c53, 2015-08-15 (annotated)
- Committer:
- marcel1691
- Date:
- Sat Aug 15 20:01:13 2015 +0200
- Revision:
- 2:79735a854c53
Erweitert um Eclipse/gcc4mbed Konfiguration
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
marcel1691 | 2:79735a854c53 | 1 | # Copyright 2015 Adam Green (http://mbed.org/users/AdamGreen/) |
marcel1691 | 2:79735a854c53 | 2 | # |
marcel1691 | 2:79735a854c53 | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
marcel1691 | 2:79735a854c53 | 4 | # you may not use this file except in compliance with the License. |
marcel1691 | 2:79735a854c53 | 5 | # You may obtain a copy of the License at |
marcel1691 | 2:79735a854c53 | 6 | # |
marcel1691 | 2:79735a854c53 | 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
marcel1691 | 2:79735a854c53 | 8 | # |
marcel1691 | 2:79735a854c53 | 9 | # Unless required by applicable law or agreed to in writing, software |
marcel1691 | 2:79735a854c53 | 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
marcel1691 | 2:79735a854c53 | 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
marcel1691 | 2:79735a854c53 | 12 | # See the License for the specific language governing permissions and |
marcel1691 | 2:79735a854c53 | 13 | # limitations under the License. |
marcel1691 | 2:79735a854c53 | 14 | PROJECT := LichtSensor |
marcel1691 | 2:79735a854c53 | 15 | #DEVICES := MCU_K64F |
marcel1691 | 2:79735a854c53 | 16 | #GCC4MBED_DIR := D:/Sourcen/gcc4mbed |
marcel1691 | 2:79735a854c53 | 17 | NO_FLOAT_SCANF := 1 |
marcel1691 | 2:79735a854c53 | 18 | NO_FLOAT_PRINTF := 1 |
marcel1691 | 2:79735a854c53 | 19 | |
marcel1691 | 2:79735a854c53 | 20 | include $(GCC4MBED_DIR)/build/gcc4mbed.mk |