Go Down

Topic: ultrasonic transducer arduino circuit- plz plz plz help! (Read 2023 times) previous topic - next topic


hi all,
I need help with my uni project and i have been stuck at this point for days.
All i want to now is to transmit ultrasound using the arduino board. AND THATS IT!! I dont want want to detect or anything else at this point .
this is the UT i am using http://www.jaycar.com.au/products_uploaded/AU5550.pdf
and this is my source code

const int pingPin = 9;

void setup() {

void loop()

  pinMode(pingPin, OUTPUT);
  digitalWrite(pingPin, LOW);
  digitalWrite(pingPin, HIGH);


negetive pin is grounded and positive pin is connected to 5v.
My question are :-
From my calculation ,  the frequency is 40kHz . Am i right ?
2)how can i calculate the p-p voltage ?
3) Do i need to use a op-amp to drive the ut ?
4)Also is there any to know if the UT is working ?

I am a real noob with electronics and so plz help me with this.

thanks in advance!


Code: [Select]

const int pingPin = 9;

void setup()
    { tone(9, 40000); }

void loop() { }

If you use a digital output the Peak to Peak voltage is 5 volts (or very close to it).

I don't know how you would detect the 40 kHz signal without a oscilloscope.  If you had a second Arduino and a second transducer you could try playing a 41000 Hz tone and listen for the 1 kHz beat frequency.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp


hey mate,
Thanks for the code . Will give it a go now.
now just to make sure, so i can just connect my UT to the arduino pins and thats it?
do i need any amplifier or anything else at all ?



The transducer will take up to 140 volts (when sending 0.4 milliseconds pulses every 10 milliseconds) so I don't think you will get much volume at 5 volts.  You may want to add a transformer and driver transistor to boost the voltage.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp

Go Up