![](/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
- Committer:
- marcel1691
- Date:
- 2015-08-15
- Revision:
- 2:79735a854c53
File content as of revision 2:79735a854c53:
# Copyright 2015 Adam Green (http://mbed.org/users/AdamGreen/) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. PROJECT := LichtSensor #DEVICES := MCU_K64F #GCC4MBED_DIR := D:/Sourcen/gcc4mbed NO_FLOAT_SCANF := 1 NO_FLOAT_PRINTF := 1 include $(GCC4MBED_DIR)/build/gcc4mbed.mk