![]() |
![]() |
![]() |
|
|
|||||||
| 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. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
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? |
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
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." |
|
|
|
|
|
|
(permalink) |
|
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/ |
|
|
|
|
|
|
(permalink) | |
|
Quote:
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 |
||
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) | |||
|
Quote:
Doesn’t the datasheet say 30Mhz-35Mhz? 4.5V - 5V Found on Page 4 Quote:
Quote:
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 |
||||
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
Hi Nigel
You are right. Both interupt and pulse counting are supported (also in PICAXE's). |
|
|
|
|
|
|
(permalink) | |
|
Quote:
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 |
||
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| 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 |