Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Thread Tools Display Modes
Old 17th April 2007, 03:05 PM   (permalink)
Default Ultrasonic ears

Look at this article. It's how to make an Ultrasonic Homing Device:

http://www.circuitcellar.com/library...48/2211014.pdf

What I would like was a similar device. The only difference should be that it would find the angle to the transmitter.
My guess is that a MCU is not fast enough the measure this time difference.
The question is, if looking at figure 2, could the time difference from the signals from the two op-amps be used to charge a cap so that it could be measured afterwards? Or is there some other technique that would make this time measurement possible?
AllanBertelsen is offline  
Reply With Quote
Old 17th April 2007, 08:12 PM   (permalink)
Default

The uC is more than fast enough to measure the difference (after all, if it runs in the ~40MHz range it can measure differences of about 25 nanoseconds, while sound tends to work in the ms range). The hard part is making sure it's the same sound you are hearing. The ultrasonic rangefinders you normally see you some filter circuitry that just produces a generic spike (which translates directly, or through a transistor or something else as a HI) whenever an echo is received. In some cases the receiver has a narrow enough bandwidth that it doesnt need a filter (it might need an amplifier though). The uC can easily measure the time difference between these two spikes (it assumes that it's transmission is the only one out there, therefore the spikes represent the same sound). Whether or not the two incoming spikes represent the same sound is a much more tricky matter, but you usually don't need it.

Last edited by dknguyen; 17th April 2007 at 08:16 PM.
dknguyen is offline  
Reply With Quote
Old 18th April 2007, 01:52 AM   (permalink)
Default

A pic at 40mhz 'runs' at 10, which is 100nano seconds actually =)
__________________
"Because I be what I be. I would tell you what you want to know if I
could, mum, but I be a cat, and no cat anywhere ever gave anyone a
straight answer, har har."
Sceadwian is offline  
Reply With Quote
Old 18th April 2007, 06:55 AM   (permalink)
Default

hi allan,

The method of charging a capacitor over the time period of two pulses is in common use.

The important point is to charge the cap in a 'linear' way by using a constant current source.
So there is a direct correlation between the voltage and time.

Example: Pulse 'A' starts a linear ramp and pulse 'B' stops the ramp, a high input impedance opa isolates the voltage charge
on the cap from a measuring circuit.
As soon as the voltage measurement is complete the charge on the cap is dumped ie; Vcap=0v

By knowing the rate/slope of the voltage ramp on the cap, the time difference 'A' to 'B' can be calculated.

The same method is used in light/laser transmission range measurement.
The transmission pulse starts the Vcap ramp up at a high rate and the received 'echo' pulse stops the ramp
and starts a slow ramp down to Vcap=0.

The 'transit time' is measured during slow ramp down.

Does this help?
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Reply With Quote
Old 18th April 2007, 01:50 PM   (permalink)
Default

Quote:
Originally Posted by Sceadwian
A pic at 40mhz 'runs' at 10, which is 100nano seconds actually =)
Its not that the PIC is ran at 40Mhz, that’s just a comparison to a PIC without PLL enabled.

The PIC uses a 10Mhz external crystal, and with PLL enabled, it will increment every oscillation rather than every forth, but yeah, every instruction will take 100nS

100nS = 34.029 um (Micro Meters) of sound travel
__________________
Spency.

PIC Micro's - Your mind is the limit

PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net
gramo is offline  
Reply With Quote
Old 18th April 2007, 02:41 PM   (permalink)
Default

Hi again
Thanks for the cap tips Eric. I was considering using two 74HC4060. That’s a 14-stage binary ripple counter with oscillator. It can count pulses at 80MHz. But with an 8 MHz oscillator I will be able use 16 of the 28 outputs to get a word variable representing a max distance difference at 257 cm with a precision at 0.0039 cm. If the distance between my "ears" is 1 m, I will be able to get cm accuracy in a distance at 20 to 30 m. (Theoretically!)
The problem is that the time difference for the signal to arrive at the two receivers, does not easily converts to an angle. At a given time difference, the transmitter will be positioned at a point on a parabola, not on a straight line.
AllanBertelsen is offline  
Reply With Quote
Old 18th April 2007, 03:04 PM   (permalink)
Default

Quote:
Originally Posted by AllanBertelsen
It can count pulses at 80MHz.
Nice chip, never heard of it before learn something new everyday

Doesn’t the datasheet say 30Mhz-35Mhz? 4.5V - 5V

Found on Page 4

Quote:
But with an 8 MHz oscillator I will be able use 16 of the 28 outputs to get a word variable
Perhaps we are looking at different datasheets?

Quote:
representing a max distance difference at 257 cm with a precision at 0.0039 cm.
The example I did earlier provides 0.0034029 cm resolution

Accurate Captures could be used via the portb change interrupt, this way you can generate your 40Khz Signal at the same time..

Erm, before I go any further, are you familiar with PIC's?
__________________
Spency.

PIC Micro's - Your mind is the limit

PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net
gramo is offline  
Reply With Quote
Old 18th April 2007, 03:35 PM   (permalink)
Default

Quote:
Originally Posted by gramo
Doesn’t the datasheet say 30Mhz-35Mhz? 4.5V - 5V
Don't forget, a PIC will count pulses to above 50MHz, even running with only a 4MHz clock - simply use the counter/timer hardware to count the pulses.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Reply With Quote
Old 18th April 2007, 03:37 PM   (permalink)
Default

Hi Gramo
I found my datasheet at:
http://www.ortodoxism.ro/datasheets/...s/74HC4060.pdf
I use PICAXE. Its preprogrammed PIC's. http://www.hippy.freeserve.co.uk/picaxe.htm
For this task they may be to slow. 10000 basic command per sec.
AllanBertelsen is offline  
Reply With Quote
Old 18th April 2007, 03:42 PM   (permalink)
Default

Hi Nigel
You are right. Both interupt and pulse counting are supported (also in PICAXE's).
AllanBertelsen is offline  
Reply With Quote
Old 19th April 2007, 12:20 AM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
Don't forget, a PIC will count pulses to above 50MHz, even running with only a 4MHz clock - simply use the counter/timer hardware to count the pulses.

I thought Timer1 was limited to 200Khz? Or are you leading to a different direction?
__________________
Spency.

PIC Micro's - Your mind is the limit

PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net
gramo is offline  
Reply With Quote
Old 19th April 2007, 09:26 PM   (permalink)
Default

Quote:
Originally Posted by gramo
I thought Timer1 was limited to 200Khz? Or are you leading to a different direction?
Check all the 50MHz PIC frequency counters - including the original MicroChip application note.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is online now  
Reply With Quote
Old 25th April 2007, 07:01 PM   (permalink)
Default

Hi again
I have been looking for circuit drawings of an ultrasonic device that I have in mind.
An ultrasonic sender, that sends to a receiver at a distance of 10 to 30 meters.
The only ting I found was some commercial products. This one http://www.e-sun.cn/EN/d.aspx?pht=622 can measure up to 18 meters. Round trip must be the double.
Does anybody know where to find such a circuit?
Another example: Sonin Combo Pro Distance Measuring Device http://www.digitalmeasuringtools.com/q501.shtml 250 feet!!

Last edited by AllanBertelsen; 25th April 2007 at 07:05 PM.
AllanBertelsen is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
request ultrasonic sensor information Alex Ng Robotics Chat 20 11th March 2007 05:59 PM
Ultrasonic Ears George L. Electronic Projects Design/Ideas/Reviews 1 7th March 2007 11:52 PM
Ultrasonic Cleaner? Conrad_Turbo General Electronics Chat 3 12th January 2007 11:36 PM
Ultrasonic GPS Furby Electronic Projects Design/Ideas/Reviews 7 6th September 2003 04:59 PM



All times are GMT. The time now is 10:07 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.