function

SPlaying tones on Multiple outputs using the tone() function with Arduino

This example shows how to use the tone() command to play different notes on multiple outputs. The tone() command works by taking over one of the Atmega’s internal timers, setting it to the frequency you want, and using the timer to pulse an output pin. Since it’s only using one timer, you can only play …

SPlaying tones on Multiple outputs using the tone() function with Arduino Read More »

Simple keyboard using the tone() function using Arduino

This example shows how to use the tone() command to generate different pitches depending on which sensor is pressed.   Circuit Connect one terminal of your speaker to digital pin 8 through a 100 ohm resistor, and its other terminal to ground. Power your three FSRs (or any other analog sensor) with 5V in parallel. Connect each …

Simple keyboard using the tone() function using Arduino Read More »

Pitch follower using the tone() function using Arduino

This example shows how to use the tone() command to generate a pitch that follows the values of an analog input Circuit image developed using Fritzing. For more circuit examples, see the Fritzing project page Connect one terminal of your speaker to digital pin 9 through a 100 ohm resistor, and its other terminal to ground. Power …

Pitch follower using the tone() function using Arduino Read More »

Scroll to Top
Scroll to Top