Using the digitalWrite() function in Arduino it is very simple to turn an output pin on or off. However, what if we want to alter the speed of a motor or dim an LED? This is where Pulse Width Modulation (PWM) can be really useful. By rapidly switching a signal high and low, and varying the proportion of time that the signal is high we can digitally emulate analog results! To find out more about this very useful function checkout the full tutorial or the helpful diagram and video example below.
Have you been reading about cool projects like this and would like to understand more? Checkout our Experimenter's Kit for Arduino - as used in many classroom and learning environments:
The package includes a wide variety of parts, sensors and modules including: a servo motor, lights, buttons, switches, sound, sensors, breadboard, wires and more. Furthermore a Freetronics Eleven Arduino-compatible board is included to make this an extensive hobby experimenter, inventor and starter kit. The kit also includes a great project and instruction booklet, plus access to a supporting web page and software examples. To get started or for more information and to order, check out the product page.
To keep up to date with the latest news, projects, product announcements and to let us know what you think of this weeks Skill Sunday follow us on Facebook and Twitter.