Introduction to Pulse Width Modulation (PWM) -=20 http://www.netrino.com/Publications/Glossary/PWM.html Cheers /Ake John J. McDonough wrote: >Think of a capacitor as an integrator. Pretty simple to get from that a= nd a >PWM output to a variable voltage. > >--McD > >----- Original Message -----=20 >From: "rumpelteazer666" >To: >Sent: Tuesday, April 26, 2005 3:52 PM >Subject: pwm? > > > =20 > >>every pic tutorial has a lesson about using pwm to vary the intensity o= f a >>led, but i couldn't find something that explained how it works in theor= y. >>Recently someone has posted a message suggesting to use pwm to get an >> =20 >> >analog > =20 > >>voltage. How does that work? Let's say i send a square wave to >> =20 >> >resistor-led, > =20 > >>does the intensity of light depend on the duty cycle of the wave? And i= f >>yes, is it just for an optical effect, or there is some electrical law >>behind it? in the latter case, what would be a general method to obtain= an >>analog voltage through it? i know they are very stupid questions, sorry >> =20 >> >for > =20 > >>that and thank you in advance for any enlightening answer :) >>--=20 >>http://www.piclist.com PIC/SX FAQ & list archive >>View/change your membership options at >>http://mailman.mit.edu/mailman/listinfo/piclist >> >> =20 >> > > > =20 > --=20 --- Ake Hedman (YAP - Yet Another Programmer) eurosource, Brattbergav=E4gen 17, 820 50 LOS, Sweden Phone: (46) 657 413430 Cellular: (46) 73 84 84 102 Company home: http://www.eurosource.se =20 Kryddor/Te/Kaffe: http://www.brattberg.com Personal homepage: http://www.eurosource.se/akhe Automated home: http://www.vscp.org --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist