Tech Article: Getting Started with Arduino - Code for Figure 5-7
This is the code I wrote to drive a 9 volt DC fan motor from a circuit
featuring a MOSFET controlled by an Arduino using the pulse wide
modulation (PWM) technique. The code was inspired by the diagram from
Figure 5-7 on page 69 of the book "Getting Started with Arduino 2nd
Editon" by Massimo Banzi. The middle portion of the diagram designates
Analog PIN 9 as the output pin on the Arduino used for controlling the
motor through the MOSFET.
http://sites.google.com/site/mattscheurer/getting-started-with-arduino-illustration-5-7