fabianoriccardi / melody-player

An Arduino library to play melodies on buzzers. Melodies can be easily written in RTTTL or in a custom human-readable format. Only for ESP8266 and ESP32.
GNU Lesser General Public License v2.1
39 stars 9 forks source link

Issue with servo when playing melody #1

Closed Make-It-Racing closed 4 years ago

Make-It-Racing commented 4 years ago

Hi,

Thank you for the library! I found an issue, when a sevo is connected and melody is played, the servo goes crazy at the time of melody play. Is there something that can be done?

Thank you

fabianoriccardi commented 4 years ago

Hi, sorry for the late reply. Which board are you using? ESP8266 or ESP32?

Make-It-Racing commented 4 years ago

Hi, ESP32 I found somewhere that there is an optional channels parameter, so I changed the channel and it worked! MelodyPlayer player(buzzerPin,6);

fabianoriccardi commented 4 years ago

I will insert it in the readme!

Make-It-Racing commented 4 years ago

Thanks, By the way would you consider to add your library to Arduino IDE library manager? https://github.com/arduino/Arduino/wiki/Library-Manager-FAQ

I am working on a tutorial that will mention your library and it would be great if people would be able to just simply use it from within the IDE.

Thanks again for your work!

fabianoriccardi commented 4 years ago

Yeah, my intention was that, but in this period I had focused on other my libraries... However, I think that in a few days it will come to the turn of this!

May you give me the link to your tutorial when ready?

Make-It-Racing commented 4 years ago

Sure, basically it is a robot based on ESP32 with a passive buzzer. Will share the link when ready!

fabianoriccardi commented 4 years ago

Request done, I think it will be added in the next week

Make-It-Racing commented 4 years ago

Amazing! Thank you very much!