Variable ultrasonic transmitter using arduino

hi... can anyone can help me? I need a an existing variable ultrasonic emitter using an arduino. Are this subject is possible? anyone please help me with this. thank you.

What do you mean by variable?
Power output, frequency or what?

Hi,
What is your application?

Tom.... :slight_smile:

I want to use the clock of the altmega ic. Is it possible to create an ultrasonic frequency by simply using it? Can the tone command could make it possible? Or there is something on the library that I need to add on the command? Please help me. Thanks.

You can change a fuse setting and get the system clock (16 MHz, dividable by 2) at one of the IO pins.
You can use change the timer registers and get other frequencies on the PWM pins.
Nick Gammon has a page here on the different PWM frequencies you can set up

Cant I use a desired frequency that i need just for example tone(13, 45367);?

TomGeorge:
Hi,
What is your application?

Tom.... :slight_smile:

I just wanted to use the arduino on building rat reppelent. I need to produce a set of ultrasonic frequency.

CrossRoads:
You can change a fuse setting and get the system clock (16 MHz, dividable by 2) at one of the IO pins.
You can use change the timer registers and get other frequencies on the PWM pins.
Nick Gammon has a page here on the different PWM frequencies you can set up
Gammon Forum : Electronics : Microprocessors : Timers and counters

Cant I use a desired frequency that i need just for example tone(13, 45367);?

Grumpy_Mike:
What do you mean by variable?
Power output, frequency or what?

A frequency and i wanted to produce a set of ultrasonic frequency; a frequency that a user wanted to produce using arduino. Is it possible? Can the tone function could help me?

magiVincent:
Cant I use a desired frequency that i need just for example tone(13, 45367);?

Odd use of the comma there. Do you mean a frequency of 1.345367 MHz? I don't think any living creature responds to that sort of thing.

Yes you can set the PWM frequency mainly to what you need that is something below 200 KHz. However most transducers are fixed frequency so they won't be able to send what you generate.

Hi,
What are you going to use to transmit the ultrasonic waves?

Tom.... :slight_smile:

Grumpy_Mike:
Odd use of the comma there. Do you mean a frequency of 1.345367 MHz? I don't think any living creature responds to that sort of thing.

Yes you can set the PWM frequency mainly to what you need that is something below 200 KHz. However most transducers are fixed frequency so they won't be able to send what you generate.

Tone

Syntax

tone(pin, frequency); 
tone(pin, frequency, duration);

Parameters

pin: the pin on which to generate the tone

frequency: the frequency of the tone in hertz - unsigned int

duration: the duration of the tone in milliseconds (optional) - unsigned long

TomGeorge:
Hi,
What is your application?

Tom.... :slight_smile:

I wanted to generate a set of high frequency at the range of 25k-60k Hz using the arduino uno. Please help me. What function do i use? And want to use an ultrasonic transducer to transmitt.

magiVincent:
I wanted to generate a set of high frequency at the range of 25k-60k Hz using the arduino uno. Please help me. What function do i use? And want to use an ultrasonic transducer to transmitt.

You keep saying that and ignoring any advice you are given, as well as ignoring questions asked.

Is it your language skills that are not up to understanding the replies?