PWM circuits are fun. You can use them to dim LEDs, control the speed of fans and motors, control the power going to a thermoelectric cooler, or control the power going to pretty much anything you want. Just make sure that you don't exceed the maximum voltage rating of your device. The video explains it all.
Dating for Geeks
The pulse width modulation circuit diagrams from the video:
Back to more groovy stuff.