William At MyBlueRoom New Member Apr 27, 2006 #1 Can I use PWM (PIC RB3) to modulate an IR diode? What I'm asking is if I set the PWM frequency to approx 38 KHz can I change the duty cycle to 0% and then 50% to modulate a IR command? Attachments ir_124.png 3.4 KB · Views: 321
Can I use PWM (PIC RB3) to modulate an IR diode? What I'm asking is if I set the PWM frequency to approx 38 KHz can I change the duty cycle to 0% and then 50% to modulate a IR command?
Nigel Goodwin Super Moderator Most Helpful Member Apr 27, 2006 #3 Yes, of course you can - but it's hardly worth while, it's simple to do it in software - and probably easier than accurately modulating the PWM. From that diagram I presume you're only looking for a short range?, as the series resistor is so high.
Yes, of course you can - but it's hardly worth while, it's simple to do it in software - and probably easier than accurately modulating the PWM. From that diagram I presume you're only looking for a short range?, as the series resistor is so high.
justDIY Active Member Apr 27, 2006 #4 maybe this will be some help to you: http://www.rentron.com/Infrared_Communication.htm they have examples using both hardware pwm and software pwm solutions
maybe this will be some help to you: http://www.rentron.com/Infrared_Communication.htm they have examples using both hardware pwm and software pwm solutions