Pages: [1]   Go Down
Author Topic: Piezo transducer and Arduino  (Read 650 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys,

I am new to Arduino, however I am pretty familiar with programing.

I have Arduino Mega and I would like to control piezo disc using my Arduino board. My question is what's the best way to do it? What's the switching frequency between LOW and HIGH levels I can get with Arduino?

Cheers,
B.
« Last Edit: August 09, 2012, 09:38:16 pm by Urianium » Logged

Dubuque, Iowa, USA
Offline Offline
Edison Member
*
Karma: 33
Posts: 2280
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Make sure you see the Tone reference: http://arduino.cc/en/Reference/Tone

I'm unsure what the maximum frequency would be but it'd be well out of audible range or the capability of the piezo.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am looking into frequencies from 1MHz up to 5MHz, is it possible to switch between low and high state that fast?
Logged

Montreal
Offline Offline
Edison Member
*
Karma: 23
Posts: 2487
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Only 1, 2, and 4 Mhz sharp.  Look for external hardware IC: http://store.nkcelectronics.com/breakout-for-ad9835-signal-gener9835.html
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Magician,

Maybe 4 MHz will be good enough for my application, can I get it with tone? Or do I have to use different command?

Logged

Montreal
Offline Offline
Edison Member
*
Karma: 23
Posts: 2487
Per aspera ad astra.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 No Tone, direct setting Timer control registers. I'd not advise you to read data sheet of atmega cpu here, you wouldn't find clear technical specification no real practical examples, but you could use it for reference.
 Good book will help you to start:


<a href="http://www.amazon.com/gp/product/1430238828/ref=as_li_tf_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1430238828&linkCode=as2&tag=ffanar-20">Arduino Internals</a><img src="http://www.assoc-amazon.com/e/ir?t=ffanar-20&l=as2&o=1&a=1430238828" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
« Last Edit: August 22, 2012, 07:39:32 am by Magician » Logged

Pages: [1]   Go Up
Jump to: