pcomp w4 class notes

Pulse width modulation:

  • voltage turns on and off, etc
  • pulse width: time that it’s on
  • duty cycle: proportion of time that it’s on or off
  • looks at duty cycle (amount that it’s on vs amount that it’s off over the length of the wave) and¬†uses variation to communicate to some other device


“Fade”

Potentiometer: different values as it turns
Servo: uses the pulse width to determine the position; microchip looks at pulse width that comes in from arduino, changes the direction


Servo connected to a potentiometer 

When you have one frequency of sound, it’s one sound; if you’re able to change the frequency with pulse width modulation, you can make music

Leave a Reply

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