Arduino Project 4 Color Mixing Lamp
Pulse Width Modulation (PWM)
- Rapidly turns output pin to high and low over fixed period of time
- Since pins can only output 5V, we use this, the human eye can’t see how fast the change is, so this can give the illusion of dimming lights
- 6 pins for this on arduino
Duty cycle: percentage of time pin is high
Phototransistor: component that generates current proportional to light absorbed