PWM control with Arduino

Just a real quick snippet today. If you followed along my first Arduino post (Getting started with Arduino) then you should already have a simple blinking LED on Pin 10 (or pin of your choice). I wanted to take that just a step further and use PWM (Pulse Width Modulation) for a fade in / fade out effect.

PWM uses a pulsing digital signal (high/low) to simulate the effect of an analog signal. If you really want to learn the technical details of PWM, head on over to the Arduino page –¬†http://arduino.cc/en/Tutorial/PWM

arduino-blink-wiringThe best part, no hardware changes! Simply upload this new sketch with the breadboard layout in the original post (below, in case you missed it)

One thought on “PWM control with Arduino”

Leave a Reply

Your email address will not be published. Required fields are marked *