How read pwm input signal?
2005-10-21 by jdelgadillo66
Yahoo Groups archive
Index last updated: 2026-04-28 22:41 UTC
Thread
2005-10-21 by jdelgadillo66
Hi all, Im try to read a PWM signal and do something if the PWM signal is correct,I have five diferent PWM signals and I wat to do something with each signal, Does anyone know How to do this? Thanks for help
2005-10-21 by Thomas Keller
On Fri, 2005-10-21 at 06:19 +0000, jdelgadillo66 wrote: > Im try to read a PWM signal and do something if the PWM signal is > correct,I have five diferent PWM signals and I wat to do something > with each signal, Does anyone know How to do this? Please explain a little more about what it is you are actually attempting to do. In so far as "reading" a PWM signal is concerned, all you need to do is attach an input pin the to PWM line. An optical isolator for spike suppression, and a low pass filter for noise rejection would probably be a good idea. Depending on the carrier frequency of the PWM signal, processing all 5 signald may be doable on a single AVR, but that doesn't seem highly likely, as most useful PWM syustems use carriers of high enough frequency to limit that. Tom
2005-10-23 by jdelgadillo66
--- In AVR-Chat@yahoogroups.com, Thomas Keller <tkeller1@n...> wrote: > > On Fri, 2005-10-21 at 06:19 +0000, jdelgadillo66 wrote: > > Im try to read a PWM signal and do something if the PWM signal is > > correct,I have five diferent PWM signals and I wat to do something > > with each signal, Does anyone know How to do this? > > Please explain a little more about what it is you are actually > attempting to do. > > In so far as "reading" a PWM signal is concerned, all you need to do > is attach an input pin the to PWM line. An optical isolator for spike > suppression, and a low pass filter for noise rejection would probably be > a good idea. > > Depending on the carrier frequency of the PWM signal, processing all > 5 signald may be doable on a single AVR, but that doesn't seem highly > likely, as most useful PWM syustems use carriers of high enough > frequency to limit that. > > Tom > Im try to explain better, I have a rf modules, tx and rx, the tx have four diferents signals (same frecuency and 5v), the side rx decode de signals and I can see on osciloscope de signal, the diference is the duty cyle, so I think that the PWM is the better option. I need the microcontroler learn the code, when someone push the rx buton the microcontroller recognize the code and do something, like cars alarms works. Any idea? Thanks to all. Jaime