Hi all,
Recently I am stuck on my first microcontroller project. I think I have everything nailed down to the absolute last detail, but have not yet been able to find a solution to this - after about 6 weeks of looking.
My 8051 microcontroller is trying to determine the ocean floor depth. To do this, it sends out a ping, enables a timer, and counts how long until the echo is returned. Simple enough - right?
My problem is not in the sending of the ping - or in counting the echo return (I use timer0 and expect no overflows), it is simply in getting back a consistant echo. Echos that I do recieve range in time from 500 ticks to 60000. When I turn off my labview echo simulator - I still get the wildly varying and inconsistent results! Help!
I can provide schematics if necessery. For now I will keep it simple by saying I detect echo signals generated from the comparator1 interrupt. An active low indicates a echo. Any help would be greatly greatly appreciated.
-David