Take the 2-minute tour ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

I have bought ultrasonic receivers and emitters to play with (see datasheet here). I also have an STM32 processor devkit with DAC and ADC pins readily available.

How should I connect the ultrasonic equipment to the STM32? Do I need interfacing resistors/capacitors for best results or protection? Are there ressources online explaining interfacing considerations?

share|improve this question
    
I clicked the datasheet for the sensors and it took me to an ARM datasheet. Should this happen? –  Dean Dec 1 '12 at 13:54
    
The sensor company (Midas) provides a few application schematics on their website - midassensors.com/products/technical-information-19.page –  W5VO Dec 4 '12 at 16:00
add comment

2 Answers

up vote 2 down vote accepted
+50

My bachelor work was an ultrasonic anemometer.

I used an ultrasonic transducer (400ST160), 4 receivers (400SR160) and a microprocessor (STM32F100RBT6B). The aim was to calculate the time of flight (TOF) of ultrasonic signals transmitted from the transducer to the receivers.

The STM32 timers make things easy with the complementary output and dead time feature. I generated a chirp signal (i.e. a signal with increasing frequency) to cover the transducer's and receivers' frequency band. The complementary outputs go to MOSFETs (IRF7103PBF) which drive a transformer (ER11-3E5-S) with a central tap to generate a dual polarity signal.

The transformer generated a high voltage (+/- 90V), because ultrasonic signals decay like R^2 in the air. The RX circuit is also simple. The received signal goes through protective diodes and filters to the amplifier (AD8544ARUZ 4 in one) to amplify small signals which go to ADC channels of the STM32. The STM32 has a 12-bit 1MSPS ADC. I calculated the correlation between the RX and TX signals to estimate the TOF, but use whatever algorithm suits you best.

I recommend using dual polarity signals. If it is too hard to generate chirp signals, simply generate burst signals, and search for peeks in the received signal. Those mentioned methods have benefits only if you need accuracy. The main problem with these transducers that they are narrowband like yours.

share|improve this answer
1  
Thanks for the answer. What is ADCH? Also, what was the distance between the transducer and receivers? –  Randomblue Dec 4 '12 at 15:35
    
Sorry ADCH it's in lithuanian in english it would be amplitude frequency response characteristics. With chirp you can easily cover pass band of ultrasonic transducers. Distance is about 10 cm, but if you worry about distance just increase a transformer ratio, but remember TRANSFORMER have MATCH the ultrasonic transmitter IMPEDANCE. In 10 cm distance received signal amplitude was 0,5V. At studies we also created a ultrasonic navigation system witch works in 20 m room and we used PW0268 time controlled gain amplifier. –  Arturas Aleksandrovas Dec 5 '12 at 10:12
    
I've edited your answer. Could you please check that all is OK? –  Randomblue Dec 5 '12 at 18:00
    
Thanks for your corrections, it's shame for me. –  Arturas Aleksandrovas Dec 5 '12 at 21:48
    
From reading the datasheet of 400ST160, the maximum driving voltage is 20Vrms. How come you're driving it at +/- 90V? –  Randomblue Dec 8 '12 at 16:13
add comment

It's not clear what you are really asking. Ultrasound receivers are usually piezo microphones, so electrically you process their signal like any other piezo microphone. The signal you are looking for can be a few 100 µV to a few mV. Usually you need a voltage gain of 1000-5000 to drive a microcontroller A/D input.

Ultrasound transmitters are usually piezo speakers, so you drive them as such. Look at the datasheet carefully to see what the maximum voltage is you are allowed to drive the transmitter with. This can be a few 10s of volts. Beware that these piezo elements can appear inductive to the driving circuit due to the mechanical intertia driving the piezo element backwards when you stop driving it. This means they can exhibit what looks like inductive kickback to the driving circuit, even though the actual mechanism is not inductance. To get the 10s of volts to maximally drive a piezo transmitter could require a boost converter for that purpose, and/or possibly a H bridge to halve the drive circuit voltage requirements.

share|improve this answer
    
I have never dealt with piezo microphones. I just want a transmitter to send short pulses (say 10 times a second) and have the receivers be able to detect the pulses, so that I can make time-of-flight measurements. I have the microprocessor and transceivers, but I don't know how I should connect them. –  Randomblue Dec 1 '12 at 14:56
1  
@randomblue - some searching will find many example circuits and complete modules available, this has been a common microcontroller project every since the ultrasonic tape measures came out a few decades ago. –  Chris Stratton Dec 3 '12 at 16:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.