lubeda / EsphoMaTrix

A simple DIY status display with an 8x32 RGB LED panel implemented with esphome.io and Home Assistant
MIT License
217 stars 23 forks source link

tuneplay sounds like awful screeching on Ulanzi Pixel Clock #114

Closed scarolan closed 1 year ago

scarolan commented 1 year ago

Hi @lubeda , i don't expect you to fix this just want to know if it's a known issue. When I try to use tuneplay with various RTTTL ringtones it sounds more like an old school dialup modem screeching instead of a happy ringtone.

Is this a limitation of the tiny speaker in the pixel clock? Or maybe I have something configured wrong?

Here's what I have in home assistant:

service: esphome.ulanzi_tuneplay
data:
  tune: 'NokiaTun:d=4,o=5,b=225:8e6,8d6,f#,g#,8c#6,8b,d,e,8b,8a,c#,e,2a'

and here's the config from esphome:

    - service: tuneplay
      variables:
        tune: string
      then:
        - rtttl.play:
            rtttl: !lambda 'return tune;'
lubeda commented 1 year ago

Hi, you can't expect a high quality sound from the tiny buzzer. But the tune should be recognizable.

scarolan commented 1 year ago

hah, thanks for confirming! Maybe I'll take it apart someday and replace with a better buzzer