Ultrasonic
curtisd
Posts: 8
Hello,
I am trying to experiment with ultrasonic sensors for non-destructive testing. My experiments are promising using a signal generator ans oscilloscope. I want to use the propeller to:
1.) send a 40 khz burst that last between 5 us and 200 us.
2.) wait for the return pulse, I am using only one sensor.
3.) I can take things from there.
I looked in the OBEX for PWM and there were a few, but they offered too many features. Is there a simple method for producing a burst and then waiting for a pulse?
One pin on my sensor is ground and the other is connected through 220 ohm resistor for sending and receiving the signal.
Thanks for any help,
Curtis
I am trying to experiment with ultrasonic sensors for non-destructive testing. My experiments are promising using a signal generator ans oscilloscope. I want to use the propeller to:
1.) send a 40 khz burst that last between 5 us and 200 us.
2.) wait for the return pulse, I am using only one sensor.
3.) I can take things from there.
I looked in the OBEX for PWM and there were a few, but they offered too many features. Is there a simple method for producing a burst and then waiting for a pulse?
One pin on my sensor is ground and the other is connected through 220 ohm resistor for sending and receiving the signal.
Thanks for any help,
Curtis
Comments
I have used this object, but how do I control how long the burst is? I usually use synth to resonate coils, but this is usually a continuous pulse using repeat.
Thanks,
Curtis
Perhaps this might get you started.
When I was working on a keyboard to IR project http://forums.parallax.com/showthread.php?130282-I-think-I-burnt-my-Dongle!&highlight=burnt+dongle I had problems with the return signal when in the same room as the transmitter.
You could use some thing like the IR drivers, they go at 38KHz to encode your pulses so that the receiver can tell that it has a valid signal.
Use the device code part to confirm valid reception and the key code part to tell which pulse was received. Pick up the the cnt variable for timing or use a PLL mode for more accurate information.
Good Luck
Perry