Saturday, June 12, 2021

Arduino simulator examples - "Play a melody using the tone()" 🎵

Arduino "Play a melody using the tone()" on Arduino simulator

 Summary

Arduino "Play a melody using the tone()" Plays the melody on a buzzer connected to one of the digital output pin of the Arduino UNO. Click on the Run button in the simulator below to see the Arduino simulator in action. The buzzer is connected to pin number 8 of the Arduino UNO.

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

Wokwi Arduino Simulator - Play a melody using the tone()
Wokwi Arduino Simulator - Play a melody using the tone()

 

You can do following things with the Arduino Simulator example

  • Can you play more tones?

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...