8051 and sonar (depth finder)

jentzd_at_gmail.com
Date: 12/29/04


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



Relevant Pages

  • Re: 8051 and sonar (depth finder)
    ... > Recently I am stuck on my first microcontroller project. ... > until the echo is returned. ... > My problem is not in the sending of the ping - or in counting the echo ... "what kind of transducer are you using?" ...
    (comp.arch.embedded)
  • Re: 8051 and sonar (depth finder)
    ... > Recently I am stuck on my first microcontroller project. ... > until the echo is returned. ... > saying I detect echo signals generated from the comparator1 interrupt. ... Wescott Design Services ...
    (comp.arch.embedded)
  • Re: ask for sample ping source code without IP protocal stack
    ... > a ping echo program based on the ethernet driver, ... > and ICMP header are correct, but Windows ping can not receive my echo. ...
    (comp.arch.embedded)
  • Re: [fw-wiz] ECHO Protocol
    ... Yes, I know that there are alternate "ping" programs that will allow you to use TCP, UDP or possibly anything that programmer could think of, but the traditional ping uses ICMP. ... Two of the ICMP types are referred to as echo and echo reply, which are the ICMP types used for ping. ... Ping command in Windows uses ICMP protocol, while others say that Ping uses ...
    (Firewall-Wizards)
  • dhclient doesnt respond to DHCP OFFER
    ... It has two pcmcia nework cards - one connected to ... Echo (ping) request ...
    (comp.os.linux.networking)