LED erkennen (2V / 3.3V, Anzahl) und Spannung automatisch messen und anpassen.
1x 5V - LED Power
5x Analog Input - 1x Foto / 4x LED
4x PWM Output - 4x LED
2x Digital Input - 2x Keys
1x Digital Output - LED13
* 100 kOhm Fotowiderstand
* 100 kOhm Widerstand (Fotow.)
* 10-20 Ohm Widerstand (5V)
* 4x 1 kOhm (NPN-E Output)
* 4x 2N2222 (NPN)
* 4x 10 kOhm Widerstand (A-Input)
* 1x 220 Ohm Widerstand (Info)
* 1x LED gelb
Modellbahn LED Shield für 4 LED-Kreise
a) 1-8 LED 3.3 V Häuser weiß
b) 1-8 LED 2.0 V Häuser weiß
c) 1-3 LED 3.3 V Signal rot
d) 1-3 LED 3.3 V Signal grün
Bedienkonzept:
* K1 = Ein / Ampel
* K2 = Aus / Häuser
K1 = ein / Ampel rot
K1 = Ampel grün / rot
K2 = aus ~ 3 Sekunden
K2 = Häuser 1
K2 = Häuser 2
K2 = Häuser 1+2
K2 = Häuser aus
An den Key-Inputs (2+3) wird der interne PullUp-Widerstand genutzt:
pinMode(pin2, INPUT); // Anschluss
als Eingang definieren
digitalWrite(pin2, HIGH); // Pull Up
Widerstand aktivieren
Taster mit GND und Pin2