LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate a high frequency signal from Arduino

Hello everybody,

  I'm working on connecting the Arduino to ultrasonic speakers JSN-SR04T. I have 2 of those speakers and I am trying to make them "speak" to each other. One of them will act as a transmitter, which only sends out signal, while the other one act as a receiver that only receives the signal sent from this transmitter. I have already tested whether this would work by connecting the transmitter to a function generator and the receiver to an oscilloscope. There isn't any chipboard configuration in the connection. I simply connected the VCC of the function generator/oscilloscope to the VCC of the speaker, and GND connects to GND.

  Now I'm trying to replace the function generator and the oscilloscope by using LabView. I don't really have the funding for a DAQ, so I could only play with Arduino. I need to be able to modify the emitted signal to 40k Hz and use the "tone burst" function on a function generator. The tone burst function basically bursts a signal, making the signal to have high for a burst of time and stays low until the next high is triggered. I think the "tone burst" function can be done by changing the duty cycle of the wave to a very small number. But I don't know how to make the signal emit at 40k Hz.

  Thanks!

0 Kudos
Message 1 of 4
(4,644 Views)

this web pge <http://forum.arduino.cc/index.php?topic=172649.0> says  "

65535 Hz.  The parameter is an unsigned int."

hrh212

0 Kudos
Message 2 of 4
(4,152 Views)

Thanks for the info!

Do you know how to generate such signal?

0 Kudos
Message 3 of 4
(4,152 Views)

Simply use the tone function with a small duration.  Does this not work for you?

0 Kudos
Message 4 of 4
(4,152 Views)