-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to play audio on the Lilygo T-Watch 2020 V3 #14
Comments
Hi, Thanks for the kind words.
to
and then it should work. |
Thanks a lot for your quick response! That appears to be correct indeed. Have you got any other ideas about what might be wrong? |
Just tried play_tone.py on a V1 - I do not have a V3 - and it worked fine. I deleted the line |
Thank you for testing! I have contacted the supplier and they asked me to run this test firmware: The test firmware plays audio succesfully, so my unit isn't defective. I am overlooking something, but I have no idea what it might be.. |
Hey. I too have a V3 and am super pumped (#1 (comment)) about using microphone and audio on my watch. I somehow was not aware of the play_tone.py file so I played a bit with it. I can report that indeed it does not work on the V3 BUT : I tried anything and everything, changing values left and right to try to infer what's wrong. Well somehow it started making the sound (!) but I noticed that I had actually reverted to the initial code. My conclusion is that the current file works on V3 (after modifying the pin of course) but there's something about it that is not stateless. I don't understand what I did that "reset" god knows what to a functionnal state. Where to go from here? Any idea? |
Maybe try resetting the device at the start by using LD04 to power it up, then off then on again with a delay in between. |
Thank you both for the valuable comments. I started thinking about the difference between the T-Watch v1 and v3, which is essentially the power domain being used. The AXP202 datasheet mentions the following: So the voltage ranges differ. The code in drivers/axp202.py is only enabling the power domain and doesn't appear to set a voltage, it is then unclear which voltage is being used. Sound started working after I modified init() in drivers/axp202.py to include the following:
|
Glad you got this to work and many thanks for the solution - I will update code to incorporate this when I get a chance. In the meantime, I have put a note in the README referencing your post. |
Thanks a lot @DonvdH I've been trying for a while to get the microphone working. Would you be interested in trying to make it work? I kmow python but very little hardware. |
@jeffmer: Thanks. The code I included previously works well and I believe it can be integrated as it is. To save other people some time, here is a code example to play a wav file from an online source (I'm personally fetching data from a text to speech API): @thiswillbeyourgithub: If you open a separate issue regarding the microphone I will share my initial findings, but I don't think it will be easy because Micropython appears to be lacking PDM support and polling the pin using Python is probably not fast enough to obtain proper audio data. Circuitpython does support PDM, so perhaps this could be ported if someone would be willing to do this. |
This is a great project and I really like how easy it is to add custom watch faces, apps and utils.
However, I appear to be unable to play audio on the Lilygo T-Watch 2020 V3 via the MAX98357.
I have tried various options, without succes.
Also when I run misc/play_tone.py, no sound is being produced.
Is this a known issue?
Or is my unit perhaps defective?
The text was updated successfully, but these errors were encountered: