PiFace controlling DC motor speed (notice the LEDs fading in and out, too)



To follow up my last post, PiFace relay tricks: metronome & "playing" middle A, I'd like to show how Gordon's PiFace PWM code can be used to control the speed of a DC motor connected to one of the PiFace output screw terminals:



And the installation instructions: