The play tone on () of note () & beat () block is a useful tool for adding audio elements to projects. It is available in Arduino Uno, Arduino Mega, and Arduino Nano boards. It can play a tone with a certain frequency (note) for a specified duration (beat) with either a selection from the drop-down menu or a user-defined frequency and duration in milliseconds.
Available pins
- Arduino Uno: 6 PWM pins available to the user: digital pin 3, 5, 6, 9, 10 and 11
- Arduino Mega: 15 PWM pins available to the user: digital pin 2-13, 44-46
- Arduino Nano: 6 PWM pins available to the user: digital pin 3, 5, 6, 9, 10 and 11