Sir ,I am working for single transducer ultrasonic distance measurement. So How i can generate 8 40 khz burst signal using Arduino uno.

closed as unclear what you're asking by per1234, VE7JRO, sempaiscuba, Greenonline, Juraj Dec 3 at 6:18

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    You mean 8 cycles of a 40 kHz signal, like 8 square pulses of 12.5 µs width spaced by 12.5 µs from one another? If not, could you please include a drawing of the signal you want to generate? How accurate should those timings be? – Edgar Bonet Nov 29 at 14:37
  • I think you need a circuit to get enough energy into the piezo. A piezo is a capacitor and the 5v signal from the arduino will not work very well. – Jot Nov 29 at 17:00
  • yes sir, how i can write code for 8 cycles of a 40 kHz signal, like 8 square pulses of 12.5 µs width spaced by 12.5 µs from one another, I tried it using for loop I am not getting exact same signal. can you provide the code for 8 cycles of a 40 kHz signal, like 8 square pulses of 12.5 µs width spaced by 12.5 µs from one another. – Rohan Nagarekar Nov 29 at 17:26
  • 1
    Show us your code. Community can help you to correct your mistakes, asking for complete code won't bring you many answers. – smajli Nov 30 at 7:53
  • Have you done some research? For example by using google or the search function on this site? There are some results. What have you tried and what are the problems, that you couldn't solve? – chrisl Nov 30 at 19:54

Browse other questions tagged or ask your own question.