![]() | ![]() | ![]() |
| | |||||||
| 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. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) | |
| Quote:
Time to brain storm again. | ||
| |
| | (permalink) |
| See here is your problem. Notice in the diagram, both inputs to the XOR are same frequency but different phase so XOR outputs a false detection. In order for this to even have a hope of working, you need to use the same oscillator for your TX and RX, see modified image of your original drawing. I do not know how to calculate doppler shift, I think it is V= (deltawavelength/wavelength)x speed of light V is velocity but I am not sure of the units. meter/sec maybe? | |
| |
| | (permalink) |
| yeah I drew it up by hand with one 555 timer outputing the 40kHz signal to both the transmitter and XOR but decided to draw it in paint with two 555 timers just for clarity. So if I have the same 555 timer provide the signal for both it should work? | |
| |
| | (permalink) |
| The XOR itself will almost always have a voltage on its output. You have detected a moving object when that voltage changes. You need a band pass filter at the output of the XOR so you only respond to frequencies between about 20 Hz and 500 Hz. I explained this earlier. If you read it and still don't understand, please ask questions. I also explained how to calculate Doppler shift. If I need to further clarify, please ask questions. The speed of light has nothing to do with the Doppler shift of sound. Last edited by mneary; 10th July 2008 at 09:35 PM. | |
| |
| | (permalink) | |
| Quote:
Correct me if I am wrong in anything I have said. I do not mean to dismiss the information you have given me, I am just merely playing around with the circuit to gain a better understanding of what is possible and what is not. I really appreciate all of your input. It has been very helpful. Last edited by hugoender; 10th July 2008 at 09:52 PM. | ||
| |
| | (permalink) |
| Without a filter, the transistor will turn on and turn off exactly like the gate does.
__________________ Uncle $crooge | |
| |
| | (permalink) | |
| Quote:
And as I stated, I was not sure about the formula. I found it on the net, it stated C as being speed of light, as wavelength formula is lambda x freq = C (speed of light) I can see the relationship. Since Doppler works in the electro magnetic spectrum as well as sound. I am sure there may be several ways to calc doppler shift. | ||
| |
| | (permalink) | |
| Quote:
f_prime = f_0 (1/(1+v/c)) where v is speed of the person and c is speed of sound? | ||
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) | |
| Quote:
How do I keep the alarm on once it is triggered instead of just going on and off with the gate (as audioguru said). Is that what the filter is for? I am leaving work now so I won't be on until later tonight but I am loving this discussion Last edited by hugoender; 10th July 2008 at 10:04 PM. | ||
| |
| | (permalink) | |
| Quote:
The rate at which this variation occurs is the difference between the frequencies. A low pass filter on the output of the XOR (at about 500 Hz) will stop the 40 kHz, leaving you with a sine wave equal to the difference between the frequencies. If you then apply it to a high pass at about 20 Hz, then it will reject slowly occurring changes in the environment. After the filtering, you have a sine wave that should contain only object movements. Apply it to a Schmitt trigger and you have something a micro can use. I didn't look up the Doppler formula, just worked it out on a napkin, so yours is a lot better. Be sure to account for the two paths; I think that each would have its own shift. Thanks for being more patient than I was. | ||
| |
| | (permalink) |
| The output of the Schmitt trigger is a digital signal at a frequency related to the speed of the moving object. I've assumed that you'll want to apply it to a PIC so that you can make some sense of it. You'll want to reduce false triggers (don't trigger on a lone pulse), latch an alarm condition, drive your indicators, stop the alarm (maybe a coded keypad), etc. | |
| |
| | (permalink) |
| Not to disparage what my esteem colleague Mneary has suggested, but I have issues with this whole concept, as I see it being a little more difficult than you may anticipate, as you have many things to take into account. Would it not be simpler to simply detect the loss of your transmitted signal at the receive end as opposed to measuring shifts in frequency. Perhaps an IR light transmitter, and IR receive. For example: Signal present, all is well and no alarm. Signal momentarily gone, circuit replies hey what gives? Sound alarm. I think this would be a much easier approach. | |
| |
| | (permalink) |
| They make baby wandering alarms that detect a loss of signal: 1) When the baby wanders 1m behind metal shelves. 2) When a group of people come by. 3) When the battery runs down.
__________________ Uncle $crooge | |
| |
| | (permalink) |
| Yes, there are many simpler ways... some are very good. I guess I got carried away with the Doppler idea. | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| Transducer Question | lclark | Datasheet/Parts Requests | 11 | 14th June 2008 12:34 PM |
| Ultrasonic Transducer | rcd316 | Datasheet/Parts Requests | 6 | 1st April 2007 04:53 PM |
| Ultrasonic Transducer/Reciever | bryan1 | Electronic Projects Design/Ideas/Reviews | 7 | 7th September 2005 03:43 AM |
| Pic driving ultrasonic transducer | mlt57sooner | Micro Controllers | 1 | 22nd April 2005 09:42 AM |
| Need datasheet for an Ultrasonic Transducer | mammanoti | Datasheet/Parts Requests | 0 | 31st March 2003 10:29 PM |