|
Re: Ultrasonic sensors on digital ports 3-6 problems
What numbers were you getting when using inputs 1 & 2? How and when are you using this in your code? Is timer 3 being used for anything else?
"As far as the test goes, the number I receive back is the same." I don't understand. The same as when using inputs 1 and 2?
"The spec sheet from parallax says ~19ms". So the max count from timer 3 with a prescalar of 8 should be 24,000 or so. Is this what you get when nothing is in front of the sensor? The 35/25 numbers would indicate something is blocking the sensor. What does the data sheet say about the minimum pulse width?
HTH
|