Play ultrasonic signal from computer

dkarni38

n00b
Joined
Apr 18, 2013
Messages
2
Hey everyone! New member here, so please excuse any faux pas.

I have a very unique audio application I am trying to solve. I have a small ultrasonic transducer that I would like to play a custom waveform through. Ideally, I would just create a .wav file, hook my speaker up to my computer and hit play, but I know I'll need some additional hardware. I'd like to transmit around 40kHz, and the speaker needs about 5V to drive it. I've tried connecting to the headphone jack and testing at an audible frequency, but it doesn't put out enough power to hear anything.

I've been looking at external sound cards, DACs, and amps, but I can't seem to find one that meets my requirements, or at least it doesn't specify if it would. The Creative Sound Blaster X-Fi Surround 5.1 Pro has the right sampling rate, but doesn't give any notion of frequency response or power output. The FiiO E10 looks better - it has 24/96 capability and outputs 7Vpp max - but it lists frequency response as up to 20kHz. The gain at 40kHz may be fine, but they don't indicate the drop-off slope. The last one I've considered is the Schiit Magni, which indicates an acceptable frequency response (-3dB up to 200kHz), but only appears to have 1Vpp output and no USB connection.

I understand electronics, but don't really know which products I should be looking at. Does anyone know of any products, or combination of products, that might do what I need?

UPDATE:

I ended up going with the Fiio E17, and all works great! I can get the 96kHz sampling rate through USB, and I didn't see any dropoff at 40kHz. I was able to play a wav file of my ultrasonic signal, and it comes through clearly!
 
Last edited:
For what you are after, I'd look at something that is 192kHz. While a 96kHz system SHOULD work, as you said who knows what the rolloff is for the anti-aliasing filter, particularly since there is nothing audible up there. So I'd get a 192kHz setup just to be sure, it should reproduce a 40kHz signal clean.

You could try the Fiio E17, that will do 192kHz on S/PDIF input, and 96kHz on USB input. Also has a headphone amp in it so it can output more voltage. However be careful with that, as your speaker may be too low impedance. Headphone amps will do the kind of voltage you want, but at low currents. At 5Vpp they probably need a 300ohm load to not go nuts. What is the impedance on the transducer?

You may need to get a separate amplifier to deal with it.

Also, what is your budget for the project? If you have the money, some pro gear can solve it for sure. However if economy is the order of the day, the E17 may do the trick.
 
Hoss, are you sure the speaker will actually play 40kHz? Most speakers are rated for 20-25ish kHz max.

I suspect, this endeavor won't get off the ground as most audio DAC/amps/speakers/AVRs/everything never bother with sound above 20kHz.
 
Given that he said it in an ultrasonic transducer I'd say it probably will. Commercial speakers don't play ultra high frequencies because there's no point for human audio reproduction. However it is not hard to find specialized devices that will do much higher frequencies for special applications (pest control is one).
 
@Sycraft - the E17 only does 192kHz through S/PDIF, which I don't have coming from my laptop. I would have to go through the USB (which happens to be 3.0). Looking at the specs page though, that doesn't look like it will be a problem, especially if I have the treble boost on. I'm not sure of the impedance of the transducer. It's a little piezo that was given to me, and I don't even have a part number. And as for budget, I'm definitely going more for economy.

@Skripka - Yes, it is designed to work at ultrasonic frequencies (better than audible actually). I've used it many times before with a tone from a signal generator, but I'm trying to play a custom waveform rather than a simple sine wave. Going through an audio card seems like the most viable option.
 
Last edited:
Hey everyone! New member here, so please excuse any faux pas.

I have a very unique audio application I am trying to solve. I have a small ultrasonic transducer that I would like to play a custom waveform through. Ideally, I would just create a .wav file, hook my speaker up to my computer and hit play, but I know I'll need some additional hardware. I'd like to transmit around 40kHz, and the speaker needs about 5V to drive it. I've tried connecting to the headphone jack and testing at an audible frequency, but it doesn't put out enough power to hear anything.

I've been looking at external sound cards, DACs, and amps, but I can't seem to find one that meets my requirements, or at least it doesn't specify if it would. The Creative Sound Blaster X-Fi Surround 5.1 Pro has the right sampling rate, but doesn't give any notion of frequency response or power output. The FiiO E10 looks better - it has 24/96 capability and outputs 7Vpp max - but it lists frequency response as up to 20kHz. The gain at 40kHz may be fine, but they don't indicate the drop-off slope. The last one I've considered is the Schiit Magni, which indicates an acceptable frequency response (-3dB up to 200kHz), but only appears to have 1Vpp output and no USB connection.

I understand electronics, but don't really know which products I should be looking at. Does anyone know of any products, or combination of products, that might do what I need?

Uhm at 40Khz you can't hear anything you can only measure the output. If you push the driver so hard that you actually start to hear the distortion and harmonics of the 40khz you're typically hearing the death scream of your speaker right there :)

Smoke will come out of the voice coil and it's buh bye tweeter. Just a warning - I witnessed a friend of mine burn his Gradient 1.1 tweeters by playing 20khz sine tone and cranking up the volume untill he *uhm* heard it :D

Having said that you simply need a small amplifier to connect between your computer and the driver (assuming your audio-in and out isn't filtered, inaudible high frequency oscillations in electronics are dangerous and often filtered out). A headphone jack doesn't deliver enough output to produce much sound from a regular driver.
 
Last edited:
Back
Top