Comparing the difference between an analog signal and a digital signal.
Using a potentiometer (connected to Analog Pin 0) to dim and brighten three yellow LED's (connected to Digital Pin 6).
Then viewing the signals from Analog Pin 0 and Digital Pin 6 on the oscilloscope. The analog signal can be seen to smoothly rise and fall as the pot is adjusted. The digital signal is only high or low and can be seen pulsing on and off at different rates as the pot is adjusted.
Code used in this sketch can be found at serverwillprovide.com/icuubi/examples/analog_vs_PWM.pde
Read more at dailyduino.com

Credits

3 Likes

  • Dan Thompson 1 year ago
    Awesome Video Morgellon. Very clear and easy to understand. I have never seen a scope in action before. The Visual feedback really helped me understand how PWM actually works! Nice one.

    Dan.

    p.s. the dailyduino is fast becoming my favorite arduino site. Keep up the great work!
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

1 Related collections

Statistics

  •  
    plays
    likes
    comments
  • Total
    plays 673
    likes 3
    comments 1
  • Dec 1st
    plays 0
    likes 0
    comments 0
  • Nov 30th
    plays 0
    likes 0
    comments 0
  • Nov 29th
    plays 0
    likes 0
    comments 0
  • Nov 28th
    plays 2
    likes 0
    comments 0
  • Nov 27th
    plays 0
    likes 0
    comments 0
  • Nov 26th
    plays 1
    likes 0
    comments 0
  • Nov 25th
    plays 0
    likes 0
    comments 0
  • Nov 24th
    plays 1
    likes 0
    comments 0
Previous Week

Downloads

Please join Vimeo or log in to download the original file. It only takes a few seconds.