Kapitel 3 - PWM (Pulsweitenmodulation)
Ziel:
- Heute lernst du, wie man mit PWM (Pulsweitenmodulation) eine LED nicht nur an/aus, sondern auch stufenlos dimmen kann.
Schaltung
- Schließe eine LED mit Vorwiderstand (220 Ω) an Pin 9 an.
- GND der LED kommt an GND vom Arduino.
Wichtig: Nur Pins mit ~ können PWM! (beim UNO: 3, 5, 6, 9, 10, 11)