|
Re: ADC advice needed
I am using the 2004 controller now and having some luck, I just need to write a filtering algorithm to help clean up the data some. My question, though, is on the interfacing of my PWM sensor.
I know this is meant only for a true radio system, but shouldn't there be some other way to measure pulse width? My sensor is wired properly, with the 5V to the 5V, that tied to the I2C lines according to the documentation, GND to GND, and PWM to the signal wire. I am using a CMPS03 sensor, and the pulse widths relate as follows:
1mS to 36.99mS, or 1uS/degree with a 1mS offset. The signal goes low for 65mS between pulses.
Is there any way to make this work? I'm getting a radio data error, and the values show up as 127 regardless of how the sensor faces.
|