Sunday, June 13, 2021

Arduino Simulator examples - "Pitch follower using the tone() function" 🎵

Arduino "Pitch follower using the tone() function" on Arduino simulator

 Summary

Arduino "Pitch follower using the tone() function" program creates different tones based on the value read on the Analog input(). In this example, A potentiometer is connected to the Analog input A0. The buzzer is connected to Pin 8. You can always get the connection diagram for the project in the simulation window below. Let us get started!

Wokwi Arduino simulator is used here as it is free and easy to use online. 

Wokwi Arduino Simulator - Pitch follower example
Wokwi Arduino Simulator - Pitch follower example


You can do following things with the Arduino Simulator example

  • Can you inverse the logic? higher the value, lower the tune and vice versa?

Arduino Simulation

In the section below, you can also modify the code and see the results instantly. You can change the code and recompile it by clicking on rerun/Run button. For more help, please visit Discord channel of the Wokwi Arduino Simulator. 

No comments:

Post a Comment

Be Nice Policy :)

Arduino IR simulator projects - "simple receiver"

Arduino "IR simple receiver" on Arduino simulator - IR remote project  Summary Arduino "simple receiver" is an Arduino p...