Hi I am thinking about building an Ultrasonic Range Finder. I have studied several circuits using one T40 module as transmitter and a R40 as a receiver. In those schemas they use separate tank circuit to generate 40 KHz signal.
Now have a look at my concept and let me know whether it is feasible or not:
1. Using TMR0 delay routines generate 40 KHz bursts in one of the pins in a PIC. Say 100ms burst containing 4000 cycles. Apply this pulse to T40 module using a transistor.
2. Start a counter and wait for echo. Amplify the R40 output and some how convert it to a raising signal which will be applied to external interrupt pin of the PIC causing an interrupt.
3. When interrupt occurs stop the counter and calculate the range using speed of sound and counter value.
Main thing here would be I am eliminating separate circuit for transmitter. I will use PIC only. Is it achievable?
I need your suggestion for receiver and amplifiers to be used and converting the received 40 kHz burst into one single raising edge pulse.
Now have a look at my concept and let me know whether it is feasible or not:
1. Using TMR0 delay routines generate 40 KHz bursts in one of the pins in a PIC. Say 100ms burst containing 4000 cycles. Apply this pulse to T40 module using a transistor.
2. Start a counter and wait for echo. Amplify the R40 output and some how convert it to a raising signal which will be applied to external interrupt pin of the PIC causing an interrupt.
3. When interrupt occurs stop the counter and calculate the range using speed of sound and counter value.
Main thing here would be I am eliminating separate circuit for transmitter. I will use PIC only. Is it achievable?
I need your suggestion for receiver and amplifiers to be used and converting the received 40 kHz burst into one single raising edge pulse.