Comments on: Play simple melodies with an Arduino and a piezo buzzer https://42bots.com/tutorials/play-simple-tunes-with-arduino-and-a-piezo-buzzer/ Hobby robotics and electronics with Arduino, ESP82666 and Raspberry Pi Wed, 30 Dec 2020 17:55:30 +0000 hourly 1 https://wordpress.org/?v=5.6.11 By: Doug https://42bots.com/tutorials/play-simple-tunes-with-arduino-and-a-piezo-buzzer/#comment-374267 Wed, 30 Dec 2020 17:55:30 +0000 http://42bots.com/?p=967#comment-374267 This worked for me: 1) got to the GitHub site: https://github.com/42Bots/ArduinoTunes
open the .ino file and copy and paste the code into a new Arduino script, save it as ArduinoTunes

2) in the same GitHub site, open the pitches.h file and copy that code into a new tab in the ArduinoTunes.ino file you just created

3) Re-save the .ino file and then upload to run

]]>
By: darren touhy https://42bots.com/tutorials/play-simple-tunes-with-arduino-and-a-piezo-buzzer/#comment-235269 Thu, 07 Dec 2017 14:54:22 +0000 http://42bots.com/?p=967#comment-235269 Hi,
I am trying this on a esp32 dev. When i compile i get a compile error because the function “tone” is not declared in the scope. I have the pitches.h file in the sketch folder and in a tab on a’ ide. Can you explain or tell me what i’m doing wrong? Thanks in advanced.

]]>