Tech Blog‎ > ‎

Pulse Width Modulation

posted Mar 28, 2012, 6:36 PM by James Cordiner   [ updated Mar 28, 2012, 6:39 PM ]
Sometimes you just need to find a reason to pull out the oscilloscope!

Examining the analogWrite function to write an intemediate value - say between 0V and +5V on the Arduino results in a square wave to be created using pulse width modulation. You could use this say to dim an LED light or blend colours or do a heartbeat type effect, etc!


These in between values are created by quickly switch between full on and full off. Sadly the PWM wave is not caught in this picture.... but would appear as in the following diagram - read more at http://arduino.cc/en/Tutorial/PWM:


Comments