Arduino Tone Documentation

The code below uses an extra file, pitches. For example you can use the DSP to generate a sine tone and change its frequency and amplitude with a pot wired to Arduino's analog input. You bought an Arduino, What now? This Arduino Simulator is different from all the other simulators. You can optionally add a second pin number for a simple volume boost. Each timer controls PWM pins. The arduino Uno has three available timers and the Mega, six. We need two things. The Arduino Mega 2560 is a microcontroller board based on the ATmega2560 (datasheet). Live from Maker Faire Rome on Saturday, October 19th at 16. Use readVoltage in a MATLAB ® Function block with the Simulink ® Support Package for Arduino Hardware to generate code that can be deployed on Arduino Hardware. pdf), Text File (. The SparkFun MIDI Shield board gives your Arduino-based device access to the antiquated, but still widely used and well supported MIDI communication protocol, so you can control synthesizers, sequencers, and other musical devices. It's also likely the first Arduino board you started working with, for some of you it may even be the only Arduino board you own. developerWorks blogs allow community members to share thoughts and expertise on topics that matter to them, and engage in conversations with each other. Find anything that can be improved? Suggest corrections and new documentation via GitHub. To use a library in a sketch, select it from Sketch > Import Library. The Arduino's programming language makes PWM easy to use; simply call analogWrite(pin, dutyCycle), where dutyCycle is a value from 0 to 255, and pin is one of the PWM pins (3, 5, 6, 9, 10, or 11). For Buzzer: Connect the. Fast, easy LED library for Arduino. Originally written on August 17, 2018 by Tom Igoe Last modified on September 25, 2018 by David Rios. I add onto a solution when I feel my knowledge moves us forward or take the time to do my research in order to. If you look at the TC channel Mode register (datasheet 36. WiringPi is a PIN based GPIO access library written in C for the BCM2835, BCM2836 and BCM2837 SoC devices used in all Raspberry Pi. All examples were done in assumption that you have Arduino Uno and it is available on default port. The Arduino Reference text is licensed under a Creative Commons Attribution-Share Alike 3. Board model may be set with --board-model or -m switch. The pin number must be for a pin that was previously enabled for Tone and is in the range of digital pin numbers. June 23, 2016 Allow indefinite duration for tone(). The Arduino map() function is an interesting beast. To use a library in a sketch, select it from Sketch > Import Library. Current version Allow indefinite duration for tone(). arduino-tablature. If the tone is playing on the same pin, the call will set its frequency. This is a show and tell project that I made exactly using documentation from Arduino web. But cannot get it to work on the ESP8266 ? It does compile on the ESP8266 if I omit the #include. The complete code used for this page can be found at the bottom of this page, you can upload it directly to your Arduino board. I have been playing with the Pro Micro for about a week and have two projects well along in the design cycle. EEPROM - reading and writing to "permanent" storage Ethernet - for connecting to the internet using the Arduino Ethernet Shield. 180 MHz master clock sinewave generator with a 24-bit tuning word allowing 10. The resistors will prevent the excess amount of current to flow through the RGB led. Good documentation habits Document your projects thoroughly as you go; don't put it off until the end. Note that this is programming the real Arduino, not my breadboard one. Now all you have to do is call vol. 18 Version of this port present on the latest quarterly branch. On an Uno an int is 2 bytes long so you could send 16 of them in a single nRF24 message. If you do not see this, check that you have RX and Digital pin 0 connected. Ver más ideas sobre Electronics projects, Aparatos de electrónica y Ingeniería eléctrica.  To stop playback you just call the noTone function (providing only the pin). according to the tone() documentation using tone() interferes with PWM output: Use of the tone() function will interfere with PWM output on pins 3 and 11 (on boards other than the Mega). Creating a project Lets create a simple project: $ mkdir beep $ cd beep $ ino init -t blink. tone(), solutions are: Solution 1: Switch to using Arduino tone() An easy change is to use the Arduino built in tone() function. Search Search. This Arduino based CW decoder was developed by Hjalmar, OZ1JHM. Arduino Core Version A simplified version of the Tone library has been incorporated into the Arduino core since 0018. " Arduino Code. cpp), created a new variant called attiny85x. However, according to the documentation, using tone() interferes with PWM on pins 3 and 11. Articles Related to Play Arduino Piezo Music Codes : Für Elise, Jingle Bell. I read the following in the Tone library documentation: • Using this library will affect usage of the PWM outputs, so be aware. 4 is probably the version with the most upgrades and improvements in a single release ever. The Arduino command "tone" takes two parameters: The first is the pin to play the tone on, and the second is the frequency of the tone to play. Keep it simple. After you create the object, you can program your hardware and use custom add-on libraries directly from MATLAB using the object functions. The built-in tone() function allows you to generate a square wave with 50% duty cycle of your selected frequency on any pin on the arduino. When you send a tone to a speaker with the standard tone library, the loudest is at 50% duty cycle (only on half the time). Cayenne makes the task of connecting your Arduino to the internet as simple as possible. Arduino - Tone Library - In this chapter, we will use the Arduino Tone Library. In the Arduino work the tone() function uses timer2. See the complete profile on LinkedIn and discover Oleg’s connections and jobs at similar companies. Export to GitHub arduino-tone - Documentation. Corrections, suggestions, and new documentation should be posted to the Forum. The following labs are about communicating serially between your Arduino and computer or other serial device in order to send messages back and forth:. The pin number must be for a pin that was previously enabled for Tone and is in the range of digital pin numbers. We’ll describe it in the next section. All Libraries. Then you can loop through the notes and play each tone for the proper time. By simply sending a 5v signal to the RobotGeek Buzzer, the device will emit a tone. 2M uncompressed. In this lesson, you will learn how to wire up and use an alphanumeric LCD display. Then, the buzzer (if connected to BZ and BZ) start playing at the TONE_ON command. 0 – ATTiny85 Port Richard Chapman KC4IFB published an article in the Sep/Oct 2009 QEX magazine (subscription required) for constructing an Iambic Keyer on the Arduino platform. Learn Arduino, Lesson 11. The Blind Arduino Project is delighted to announce the kickoff of the Bay Area Blind Arduino Monthly Meetup -- BABAMM!! Beginning on October 8, 2016, Bay Area makers, both blind and sighted, will gather on the second Saturday of every month to construct, code, converse, and collaborate on Arduino and Arduino-ish projects. MIDI to Arduino Source Code Generator - Documentation beep. Makeblock-library-for-Arduino - The speed of buzzer's tone play. I purchased the Pro Micro after reading up on the Arduino products and capabilities. FreshPorts - new ports, applications. Search Google; About Google; Privacy; Terms. Maple Language Reference¶. With toneAC, we're sending out of phase signals on two pins. Arduboy Playtunes Forked from the Arduino playtunes was the first multi channel tracker to work on the Arduboy. Some of this code. cnf file, which works fine for doing normal updates, backups, etc. In the Arduino world the Servo library uses Timer1 on Arduino Uno (Timer5 on Arduino Mega). This Custom Keyboard android application could be used in any android device. In this project, we will go over how to integrate a keyboard with an arduino board so that the arduino can read the keys being pressed by a user. Interested in sensor? Explore 193 projects tagged with 'sensor'. We have a wide variety of electronic kits, from FM transmitters, timers and amplifiers, to blinkers, light chasers and led displays. Arduino Program for Smart Blind Stick: Once we are ready with our hardware, we can connect the Arduino to our Computer and start programming. For a guide to writing your own libraries, see this tutorial. At the frequency you specify, your Arduino will analogWrite( volume ) to the speaker with a PWM frequency of 62. It’s a common problem, and someone has a solution already — download and add this NewTone to your Arduino Libraries folder. The SD card module is a very useful module to add storage space to. Arduino is intended for use by both non-technical people with no previous programming experience and seasoned pros who love to tinker. For example you can use the DSP to generate a sine tone and change its frequency and amplitude with a pot wired to Arduino's analog input. To change the tone, you need to change the frequency. Download Arduino IO Simulator macOS for free. " Arduino Code. Buscar Buscar. Try using Chrome or Firefox to read the file. Configure the Arduino peripherals using configurePin before using it in the MATLAB Function block. This site uses cookies to store information on your computer. duration, to generate an intermittent BEEP on a connected buzzer (which does the audio tone itself). This has the unintended consequence of rendering the Red component useless after playing a tone as its behavior becomes unpredictable. Lifetime Tech Support. js project that makes a web scraping to get some guitar tablature and transform it to an Arduino Program compatible with the tone() Function. Also you can download the Arduino sample code through USB,OTG, Bluetooth mode. Arduino - Arrays - An array is a consecutive group of memory locations that are of the same type. Ok so now you can read from an Arduino, but how about writing to it. You do not need any libraries to get them to work, however, I must say that documentation for this module is not that easy to find. The Arduino's programming language makes PWM easy to use; simply call analogWrite(pin, dutyCycle), where dutyCycle is a value from 0 to 255, and pin is one of the PWM pins (3, 5, 6, 9, 10, or 11). Libraries provide extra functionality for use in sketches, e. Arduino Forum > Development > Other Software Development > NewTone Library - Plug-in replacement for Tone library - Better, smaller, faster. 5mm audio jack with the centre to the audio out pin for your Arduino as shown in the table below, and the shield to GND on the Arduino. Arduino Core Version A simplified version of the Tone library has been incorporated into the Arduino core since 0018. Simulate your IO with just your Arduino board. Here we will show you how to install an Arduino library. Uses timer 1 which may free up conflicts with the tone library. Welcome to the new Unreal Engine 4 Documentation site! We're working on lots of new features including a feedback system so you can tell us how we are doing. pdf CONTENTS 1. As well as in the case of C++ he wrote these notes in the style of [1], keeping the same chapter structure and a very similar style. Arduino Library Use. Arduino Iambic Keyer and Side Tone Generator. 3) you will see why TC_CMR_WAVSEL_UP_RC equals 2<< 13. Tone in Arduino. Buying is a Type of Hunting Game. Connect power and ground on the breadboard to the microcontroller. Unfortunately, I had misclicked and added a library I did. I couldn't find an alternative good code. Check out the tutorial by Tom Igoe at NYU's Interactive Telecommunications Program (ITP). Today, it’s exp. 4 is probably the version with the most upgrades and improvements in a single release ever. I really like simple and fast to build projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot. Arduino is a small $15 circuit board with an Atmel MicroController chip and other parts. Forum: http://blockly. Teach & learn coding with mBlock. Cayenne is a new IoT drag and drop platform originally released for the Raspberry Pi, but now available for Arduino. Easily share your publications and get them in front of Issuu’s. You will also learn how to use tone() and noTone() function. You can only play one note at a time. 18_1 devel =0 1. In this tutorial you will learn how to use a buzzer or piezo speaker with Arduino. AccelStepper can manage any number of motors, as long as you repetitively call their "run" functions. Open Arduino Enter Your Project for a chance to win a grand prize for the most innovative use of Arduino or a $200 shopping cart!. Then you can loop through the notes and play each tone for the proper time. Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. To see how they work, and see some examples of them being used in the real world, hit the Arduino documentation. Each timer controls PWM pins. [in] The documentation for this class was generated from the following files:. The DS1307 has it’s own battery-backup, which retains the time on power-off. The Maple can be programmed in the Wiring language, which is the same language used to program the Arduino boards. 1/2/15, 6:58 PM. Originally written on August 26, 2014 by Tom Igoe Last modified on August 28, 2018 by David Rios. Jacksonville Jaguars Sparo Executive Grill Cover - No Size. The questions I ask are to find out the proper way to do things, and to not damage the hardware that I do have. Scribd is the world's largest social reading and publishing site. We also use the Arduino to write digital and PWM signals to an LED. tone(434, 64); to produce a 434Hz square wave at 25% volume! For full documentation of the library and some example code, download Volume through the Arduino Library Manager and visit the README on Github!. EEPROM - reading and writing to "permanent" storage Ethernet - for connecting to the internet using the Arduino Ethernet Shield, Arduino Ethernet Shield 2 and Arduino Leonardo ETH. tone(unsigned int frequency, byte type, byte volume); This is where the magic happens. Overview Piezo buzzers are simple devices that can generate basic beeps and tones. you will not get to know how great these features are, until you use the Arduino with the max ability. Export to GitHub arduino-tone - Documentation. The different frequencies for each note are kept in an array. Arduino Projects List ­ About 1500 Arduino List of ProjectsUse Arduino for Projects. Download with Google Download with Facebook or download with email. If you’ve made a library for the Arduboy post it below!. In this state, the tone generators have a range from MIDI note A#0 to C6, a respectable range considering there are only ten bits for frequency control. At the frequency you specify, your Arduino will analogWrite( volume ) to the speaker with a PWM frequency of 62. Arduino is making all this easier for us by providing the tone function. By simply sending a 5v signal to the RobotGeek Buzzer, the device will emit a tone. With toneAC, we're sending out of phase signals on two pins. You'll also need note durations. Check out our examples on Github! Typical. Here is a simple project of this kind. Tutorial examples from this video are available in Arduino, from File > Examples > Audio > Tutorial. A simple tone generator (see tone), but works with the attiny84. Cayenne Beta. The Arduino command "tone" takes two parameters: The first is the pin to play the tone on, and the second is the frequency of the tone to play. h is not found. It’s released under the GNU LGPLv3 license and is usable from C, C++ and RTB (BASIC) as well as many other languages with suitable wrappers (See below) It’s designed to be familiar to people who have used the Arduino “wiring” system 1 and is. according to the tone() documentation using tone() interferes with PWM output: Use of the tone() function will interfere with PWM output on pins 3 and 11 (on boards other than the Mega). These occur when an input pin goes from high to low, or when triggered by the Arduino’s built-in timers. arduino-rttl-player Documentation, Release 0. Page 13 5 V signal. Originally written on August 26, 2014 by Tom Igoe Last modified on August 28, 2018 by David Rios. When touching the wires together and momentarily shorting the far end of a cable pair, the SmartTone technology will change the cadence of the tone generated. We have a wide variety of electronic kits, from FM transmitters, timers and amplifiers, to blinkers, light chasers and led displays. You do not need any libraries to get them to work, however, I must say that documentation for this module is not that easy to find. It only provides a single tone (since only one timer is used). This Arduino based CW decoder was developed by Hjalmar, OZ1JHM. cpp), created a new variant called attiny85x. Do you need to make some noise with Arduino? Maybe a simple tone for an alarm, maybe a beep to alert you when a specific input threshold is met, or maybe to play the Super Mario Brothers soundtrack to entertain your juvenile mind (it’s OK, we are all there, too). 0 & later) Matrix and Sprite have been tested with Teensy 2. I add onto a solution when I feel my knowledge moves us forward or take the time to do my research in order to. js project that makes a web scraping to get some guitar tablature and transform it to an Arduino Program compatible with the tone() Function. Arduino - Arrays - An array is a consecutive group of memory locations that are of the same type. com/adafruit-wave-shield-audio-shield-for-arduino. Title Statistics Last post; Users Projects A place users can post their projects. A simplified version of the Tone library has been incorporated into the Arduino core since 0018. The "sketch" programmed in to the Arduino is based on the Goertzel Algorithm for those who are interested on how it works. (TCCRxx refers to control registers, OC1A (Arduino pin 9) and OC1B (Arduino pin 10). 0 & later) Matrix and Sprite have been tested with Teensy 2. The Program memory features work much the same way as on a regular Arduino; placing read only data and strings in read only memory and freeing heap for your application. It is possible to place a String into flash, and then load it into RAM when it. tone(frequency, duration) Parameters. Prepare the breadboard. , digital high is 5V and digital low is 0V. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. Find anything that can be improved? Suggest corrections and new documentation via GitHub. To generate the electric signal from evive to control evive, we use tone() function. I couldn't find an alternative good code. The beep() function isn't built into Arduino, so it will be appended to the generated sketch. The Zumo Shield Arduino library documentation provides detailed information about the library, and the library comes with several example sketches. Try using Chrome or Firefox to read the file. Download: Matrix_Sprite. Fast Flashing green: Same as above but GPS is using SBAS (so should have better position estimate). Arduino Core Version. Creating a project Lets create a simple project: $ mkdir beep $ cd beep $ ino init -t blink. I've opened the control panel and found the tone generator (if that's the proper term). Compared to the previous project, I added a buzzer Piezzo, a diode LED, a resistor of 220 ohms, a button and as said before, I listened to the suggestion of "ArduPic" and I removed the resistance to "pull down. Here is a simple project of this kind. The tone() command does this for you. See the foundations page for in-depth description of core concepts of the Arduino hardware and software; the hacking page for information on extending and modifying the Arduino hardware and software; and the links page for other documentation. If you have a speaker connected to an output pin running analogWrite(), you’ll get a changing loudness, but a constant tone. The Due can be programmed with the Arduino Arduino Software (IDE). Adjust the beginning of. Codebender includes a Arduino web editor so you can code, store and manage your Arduino sketches on the cloud, and even compile and flash them. Here's the "Tone" code, embedded. The Arduino Lesson Plans Files are in a pdf. On the esp8266 declaring a string such as const char * xyz = "this is a string" will place this string in RAM, not flash. The analogWrite function provides a simple interface to the hardware PWM, but doesn't provide any control over frequency. Arduino Library List. Use readVoltage in a MATLAB ® Function block with the Simulink ® Support Package for Arduino Hardware to generate code that can be deployed on Arduino Hardware. You can also use the Arduino Tone Function to send different tones to the buzzer. An arduino object represents a connection to Arduino ® hardware. Buscar Buscar. A guide dog could tell us that there is an obstruction to our right or in front of us. To see how they work, and see some examples of them being used in the real world, hit the Arduino documentation. The Android watch we intend to make uses arduino and LCD shield connected to smartphone with the help of a bluetooth module and an android app. The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3. Arduino - Tone Library - In this chapter, we will use the Arduino Tone Library. Reading PIR Sensors. Arduino is a small $15 circuit board with an Atmel MicroController chip and other parts. Confusing, even. Search Search. You bought an Arduino, What now? This Arduino Simulator is different from all the other simulators. You can find the core documentation here. The Maple can be programmed in the Wiring language, which is the same language used to program the Arduino boards. These simple arduino projects are explained well and you can find the complete guide to DIY these projects with the help of circuit diagrams, source codes and videos. Description This tutorial is about controlling a brushless motor, the type commonly used in RC hobbies, and controlling the motor using an Arduino. This is a show and tell project that I made exactly using documentation from Arduino web. Code samples in the reference are released into the public domain. 0 and Teensy 3. zip (updated for Arduino 1. Arduino Robot. They're practically everywhere. Introduction This lab is an introduction to generating simple tones on an Arduino. Arduboy Playtunes Forked from the Arduino playtunes was the first multi channel tracker to work on the Arduboy. Seeed Product Document. Connect the +5V and GND of Arduino UNO to the breadboard. 2019- Explora el tablero "Arduino RS" de Rolin2017, que 739 personas siguen en Pinterest. The idea of a single chip radio is intriguing. com/blockly). For details, see thereference and tutorials. The speaker drive circuit can use the same structure as the previous ULN2803 exercise, using the speakers on the output side. Arduino Create simplifies building a project as a whole, without having to switch between different tools to manage all the aspects of whatever you're making. It includes tutorials, advice, and recommendations of particular interest to blind people working with electronics and microprocessors. The following labs are about introducing Digital Inputs and Outputs as well as Analog Inputs and Outputs with the Arduino: Digital Input and Output with an Arduino; Analog In with an Arduino; Servo Motor Control with an Arduino; Tone Output Using an Arduino; Sensor Change Detection. This Instructable will show you how to set up a really basic digital to analog converter so you can start generating analog waves of all shapes and sizes from a few digital pins on an Ardu. Here's the "Tone" code, embedded. These simple arduino projects are explained well and you can find the complete guide to DIY these projects with the help of circuit diagrams, source codes and videos. fr/forum Documentation : wiki [email protected] () - Blockly : (https://developers. Check out the tutorial by Tom Igoe at NYU's Interactive Telecommunications Program (ITP). You can browse for and follow blogs, read recent entries, see what others are viewing or recommending, and request your own blog. Sketch uses only tunes. Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. MathWorks does not warrant, and disclaims all liability for, the accuracy, suitability, or fitness for purpose of the translation. As well as in the case of C++ he wrote these notes in the style of [1], keeping the same chapter structure and a very similar style. The arduino Uno has three available timers and the Mega, six. The Arduino Mega 2560 is a microcontroller board based on the ATmega2560. AardRemote: The open source, off the shelf hardware, arduino based universal remote control project. But not one for the Arduino Due, rather there was a very useful forum post on using timer interrupts for the Due. Electrogragon offers millions of electronic prototyping components online! Most of our products comes directly from our factory suppliers with a decent price, and we deliver it to you worldwide with quickest shipping and all the following technical supports you need. Some of this code. On the esp8266 declaring a string such as const char * xyz = "this is a string" will place this string in RAM, not flash. The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3. However, according to the documentation, using tone() interferes with PWM on pins 3 and 11. Uses timer 1 which may free up conflicts with the tone library. June 23, 2016 Allow indefinite duration for tone(). To hear Mozzi, wire a 3. Export to GitHub arduino-tone - Documentation. The Arduino's programming language makes PWM easy to use; simply call analogWrite(pin, dutyCycle), where dutyCycle is a value from 0 to 255, and pin is one of the PWM pins (3, 5, 6, 9, 10, or 11). I have been playing with the Pro Micro for about a week and have two projects well along in the design cycle. by StartHardware_org. Check out our getting started Arduino in previous chapter for help with that. With Experimental Extensions, you can create Scratch projects that connect with external hardware (such as electronic devices and robotics) and online resources (including web data and web services). The K3NG code provides for internal pullups which will work just fine on the bench. When we need to refer to a single part of the documentation, we call it an entry. the arduino has great abilities and features indeed, the language, the speed, the easy to use, the great development board, the documentation, the price, and the interfacing ability to a lot of devices and programs. frequency: the frequency of the tone in hertz - unsigned int. tone(unsigned int frequency, byte type, byte volume); This is where the magic happens. The original electronic innards of a Western Electric 500 D have been replaced with Arduino, a Rugged Circuits Audio Shield, and assorted electronics and audio cables. Summary This is a tutorial of how to control an electronic speed control (ESC)and brushless motor using an Arduino. MaKey MaKey Monome using Arduino. Next is a project example, where the Arduino is instructed to do something based on a correct key (secret number) being entered into the keypad, probably the most demanded application of the keypad. SunFounder is a company focused on STEM education with products like opensource robots, Arduino&Raspberry Pi Kits, Display screens and smart devices. It's assumed at this point that you have the Adafruit_NeoPixel library. 3) you will see why TC_CMR_WAVSEL_UP_RC equals 2<< 13. 0 arduino-rttl-player Date February 10, 2013 PDF arduino-rttl-player. This note table was originally written by Brett Hagman, on whose work the tone() command was based. By simply sending a 5v signal to the RobotGeek Buzzer, the device will emit a tone. This tone change you hear through the probe positively verifies the correct wire pair. Codebender includes a Arduino web editor so you can code, store and manage your Arduino sketches on the cloud, and even compile and flash them. Design and construct an Arduino circuit incorporating two audio speakers for digital output. 0 Digital pins 611 are not shown on this diagram because they are used to connect flash memory chip on most modules. Also you can download the Arduino sample code through USB,OTG, Bluetooth mode. This Instructable will show you how to set up a really basic digital to analog converter so you can start generating analog waves of all shapes and sizes from a few digital pins on an Ardu. Arduino is making all this easier for us by providing the tone function. Since the thermistor is a variable resistor, we'll need to measure the resistance before we can calculate the temperature. The Arduino Rotary Phone can be dialed, but rings. Open-source electronic prototyping platform enabling users to create interactive electronic objects. June 23, 2016 Allow indefinite duration for tone(). Find anything that can be improved? Suggest corrections and new documentation via GitHub. Export to GitHub arduino-tone - Documentation. First, open up the toneMelody sketch under Examples->Digital under the Arduino IDE. Use of the tone() function will interfere with fading the red LED. Arduino - Passing Arrays to Functions - To pass an array argument to a function, specify the name of the array without any brackets. 5KHz, for half the duration of a single period of the frequency before pulling it LOW. You can find the core documentation here. Title Statistics Last post; Users Projects A place users can post their projects. The speaker drive circuit can use the same structure as the previous ULN2803 exercise, using the speakers on the output side. We will be using 5 Pins to connect with Arduino for basic operation. If I use pin 3,9 instead everything. NOTE:some frequencies will work better than others with this piezo. frequency: the frequency of the tone in hertz - unsigned int. Standard Libraries. Search Google; About Google; Privacy; Terms. This tone is called “Dual Tone Multi Frequency tone (DTMF)”.