8051 and sonar (depth finder)
jentzd_at_gmail.com
Date: 12/29/04
- Next message: Richard H.: "Re: Source for SDRAM chips"
- Previous message: Mike Harrison: "Re: Source for SDRAM chips"
- Next in thread: Tim Wescott: "Re: 8051 and sonar (depth finder)"
- Reply: Tim Wescott: "Re: 8051 and sonar (depth finder)"
- Reply: Joerg: "Re: 8051 and sonar (depth finder)"
- Reply: Noel Henson: "Re: 8051 and sonar (depth finder)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Dec 2004 16:10:03 -0800
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
- Next message: Richard H.: "Re: Source for SDRAM chips"
- Previous message: Mike Harrison: "Re: Source for SDRAM chips"
- Next in thread: Tim Wescott: "Re: 8051 and sonar (depth finder)"
- Reply: Tim Wescott: "Re: 8051 and sonar (depth finder)"
- Reply: Joerg: "Re: 8051 and sonar (depth finder)"
- Reply: Noel Henson: "Re: 8051 and sonar (depth finder)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|