Lilygo t-display S3 touch how to feed 5v ?
Hello,
I see you are planning to support the T-Display S3 touch. I have one in stock so I flashed the beta and I would like to test it with my Tonex One. Problem is that I cannot find any information how to input 5v to the board.
I did some research and I only see input = USB or jst connector with a 3.7v lipo. As far as I understand the 5V pin on the board in only output.
Do you have more information about this board?
Thanks! Eric
In the meantime I found this:
https://github.com/Xinyuan-LilyGO/T-Display-S3/issues/205
But this is very confusing. In the end I still don't know if I can safely use the 5v pin to provide 5v to the board and at the same time connect the usb port to the usb port of the Tonex One (and then supply 5v to it)
From this post it is mentioned you can use the battery connector at the back of the usb port to input up to 6V but you need to set a couple of pins UP in your code....
Any thoughts?
Hi. Yeah sorry about this one. I did the code, went to test it, and then spotted they had a series diode on the USB power.
I did some testing with one of these: https://www.amazon.com.au/dp/B0DCBNGXKG?ref=ppx_yo2ov_dt_b_fed_asin_title&th=1
I did seem to work OK. It lets you feed power in from the bottom, which then powers the Tonex and the Lilygo. I ended up getting too busy with the big Tonex support to finish it off. I have the hardware already, and I will try to make some more time to get it finished and documented.
That's no problem, this is even better as I prined a nice case for the Lilygo and I won't need to drill it.
I'll order the OTG adapter then.
Can you please just tell me if the current beta firmware for the Lilygo is somehow 'usuable' ? I have flashed it, I get the display working but I could not really test it yet.
Thanks!
Yes the firmware should be usable. It will need some more work to have Midi, footswitches etc.
great thanks, I should receive the OTG adapter by tomorrow and will give it a try!
I received the OTG adapter but unfortunately I've not been able to use it.
Just to explain you a little bit: I have 2 different setup for my Tonex One.
A small rig (let's call it rig A) where I am using it with the m-wave chocolate and the waveshare 4.3B display over bluetooth. This setup is working perfectly.
Then I have a setup B where I am using the Tonex One with a line6 Hx Effects on which I have attached an m-vave MS-1 BT/midi adapter (this one https://www.cuvave.com/productinfo/1463409.html) Currently for this setup I am using a waveshare zero board and all is working fine. The Zero does pair with the MS-1 over bluetooth and I am sending PCs from the HX Effects to control the Tonex One...so far so good.
What I would like to do is swap the waveshare zero with the lilygo so that I can get more info about what's running inside the Tonex (preset name etc...).
As I already told you I can compile your code on the Lilygo, problem is that it does not pair with the MS-1 BT/Midi adapter. To be honnest I don't remember if I could make it pair natively on the Zero board or if I had to tweak some settings on the TonexConfig web interface. Therefore I tried to connect my tablet to the configurator but it won't connect. I tried with another tablet and with my phone but no luck. I can see the wifi access point of the Lilygo, I can connect to it but the web page does not load.
I know you're busy on other stuff at the moment but this was just for you to know where I am now with the Lilygo board
Me again... I did some more testing. As the Lilygo board could not connect to any of my ios devices I did reflash it (btw I am not using the web flasher I find it not much reliable as most of the time the wifi access point is missing). After reflashing it is now working and I can access the Tonex Config
Unfortunately the OTG trick is not working with the Lilygo board but.... it is working with the waveshare Zero board! This is very strange because I did apply the exact same configuration in the tonex config page. The lilygo is now pairing with my m-vave MS-1 (it is solid blue led and on the lilygo the bt icon is also solid blue). However it does not trigger any PC on the Tonex One...
The good point is that, in the meantime I will unsolder the usb cable I soldered on the Zero and use the OTG instead. It is a much cleaner design with the 3D printed case as there's no cable lying around
What do you think is going wrong with the Lilygo board / OTG ? Strange that it works out of the box with the Zero board but not this one
Thanks Eric
Hi Eric. Sorry my responses aren't fast, yes there is a lot going on at the moment. Firstly, with the MS-1 and PC, is it definately PC used, and not CC? Control change messages need the enable setting to on, but PC should work always. Perhaps the Midi channel setting?
I'm going to look at the Lilygo OTG issue now, and also check the circuits to see if there is some other way of powering it.
Hi Eric. I found a code issue. There is a power pin that needed to be set for it to work properly. I have done some tests, connecting 5v via the pins below. The board runs fine with this.
In the schematic, I can see that LilyGo used a circuit that means that this 5v does not come out from the USB-C port, so the Tonex cannot be powered this way. You could power the Tonex off its 9v input instead.
Below is updated release, beta 2.
Don't feel sorry about the late answers, you are doing an amazing job with the Tonex One Controller. The least we can do is being patient with you ;)
Regarding your first question I am only sending PCs to the HX Effects and now I can access the web config after reflashing I have enabled CCs as well but not using it at the moment. So just to answer your question: MS-1 is now properly paired with the Lilygo but does not transmit PCs from the HX Effects
Now regarding your last message, I'm sorry I'm still very confused:
In an earlier post I shared this with you: https://github.com/Xinyuan-LilyGO/T-Display-S3/issues/205 At first I did understand it was not possible to use the 5V pin from the Lilygo board to supply 5V to the board (I understood it was only 5v OUT). Reading again the post, in the end some guy said you can definitely use this PIN to safely supply 5V to the board
Correct me if I am wrong but what you are saying is:
Indeed you can use this 5V pin to supply 5V to the Lilygo board....but:
a) you need to enable it in your code (which you did in beta 2 correct ?) b) by doing so the 5V is not carried over to the USB port so you cannot supply 5V to the Tonex One and therefore need to use the 9V barrel connector
Thanks again for your feedback
...and then in the end it's not possible to use the OTG adapter, correct ?
With the PC issue, did you check the Midi channel? The channel set in the web config is also used for Bluetooth Midi.
I actually forgot to read that link before. I have read it now. It is a bit confusing, but to me it looks OK to power from the 5v pin. Connecting USB power at the same time is not a good idea, but we don't need to do this. yes beta 2 has the power pin enabled, which is mentioned in that thread.
And yes, the 5v input on those pins does not come out of the USB port. The design prevents this, which is unfortunate. So yes it would needed to power the Tonex off 9v.
With the OTG adaptor, as far as I can see it should be OK to use. It provides power into the USB-C ports of both the controller and the Tonex. In my testing it did work, I just sometimes saw it flash the screen off when first connected. I think that might have been because of that power pin, but I didn't test this adaptor again after changing the code.
Ok sorry that's gonna be a long one but I guess I found something :)
When I told you that I did mimic the same config as with the Zero board (which is working lile a charm with my HX Effects and the Tonex One) it was not totally true.
When I initially tried to pair the MS-1 with the Lilygo it was not working so what I did was to change the BT config from Central to Peripheral mode and then it did pair. Problem is that it is not sending PCs to the Tonex One (ie my previous posts)
What I did then was to switch the BT config back to Central and add a custom BLE/Midi config with the name of the MS-1 (which is by default MidiPortA).
This time I could pair the MS-1 with the Lilygo.
The good point is that now IT IS properly sending my PCs to the Tonex One The bad point is that there's a huge latency. What I mean is :
-
It takes approx 2-3 seconds between the time I press the preset switch on the HX Effects and the time it is actually changing on the Tonex One (I know 2 seconds seems ok but this is day and night compared to when it works with the Zero board).
-
I takes another 4-5 seconds (so 7-8 seconds in total) before the display on the Lilygo is updated.
I thought it could be the MS-1 being faulty / low performance (I've been using it before and it has always been fine with very low latency) therefore I decided to do the same test using my Widi Jack. Of course I remained in BT Central mode and only changed the custom name to 'WIDI Jack' (the default BLE name for the device).... and the result was exactly the same as with the MS-1...huge latency
In conclusion the MS-1 or Widi Jack do not work in Peripheral mode, only in Central mode with the right custom name but it does introduce a huge latency
What is really strange to me is that I did try the HX Effects -> MS-1 -> Zero board -> Tonex One config and it is working with almost no latency. Of course there's no display so I cannot say about the display latency but pressing a switch on the HX Effect does almost instantly change it on the Tonex One
I would then assume the additionnal latency is coming from the Lilygo board
Hope this helps
https://github.com/user-attachments/assets/af56a75e-be2b-428d-a31c-ef9ba94075a3
Here is a short video so that you can see by yourself
Is it possible to disable the Midi clock on these devices? The latency most comes from this. Some others have found the same thing, and disabling Midi clock has fixed it for them.
You mean disabling midi clock on the HX Effects and the MS-1? (I have not paid attention if there’s such an option in Tonex Config ?)
Sure I will try this but there’s no issue with the Zero board so there’s still something with the Lilygo board
Yeah I mean on the Midi "transmit" side (the HX effects probably.) Oh, I missed that the same combo is OK on the Zero. OK I will also runs some more tests on Midi on the Lilygo.
Change done on the HX Effects and indeed it does solve the problem ! Strange though I did not have the same pb with the zero board....
Anyway, thanks a million, now the Lilygo is fully functionnal on this setup withtout soldering any power wires ;) I can use my nice 3d printed case :)
Sorry just one last ( hopefully :) ) question:
When I read the release not for the upcoming 2.x version I saw that you mentioned the touch version of the T-Display S3 This is the version I am using but now everything is working fine I just realised the interface on it is a non touch interface. There's no possibility, like on some other devices with a small touch screen, to change presets etc....
Is it intended to be like this or do you plan in the a future release to make it a real touch interface ?
Thanks!
Great that Midi is solved. The T-Display S3 is available with and without touch. I got the one inside the plastic case, which doesn't have touch, so I'm not able to test anything here. The display is too small to enable a full interface like the 4.3B, but I could add the left/right swipe to change presets, like the 1.69". Would that be enough? I would need your help to test it also.
Yes in fact I was thinking about the same touch interface as for the 1.69" devices. Being able to scroll through presets for testing / tweaking purpose without my midi controller connected would be great (or even as a backup solution in case of an issue with the midi controller).
Of course I’m ready to help testing it!
Thanks !
Thanks a lot for the new firmware but unless I missed something, the interface is exactly the same as the previous 'non touch' firmware and swipping does not have any effect
Hi Builty, I was looking other pedals id made and saw the PedalinoMini4 I assembled a while back used the Lilygo T-display S3 (non-touch) https://github.com/alf45tar/PedalinoMini-4?tab=readme-ov-file If you need any other testing done Im happy to help
Thanks a lot for the new firmware but unless I missed something, the interface is exactly the same as the previous 'non touch' firmware and swipping does not have any effect
Damn. Unfortunately there is some guess work involved for me. So I've ordered a touch version so I can properly debug what is happening. It might take a week to arrive though.
Hi Builty, I was looking other pedals id made and saw the PedalinoMini4 I assembled a while back used the Lilygo T-display S3 (non-touch) https://github.com/alf45tar/PedalinoMini-4?tab=readme-ov-file If you need any other testing done Im happy to help
Thank you for the offer. The non-touch one seems to be working OK, so I don't think we need any additional testing done at the moment.
I will finish off the wiring diagrams for it soon.
No worries I will use it as a non touch device until you have a new fw version to test ;) Thanks again for your work and support
Ive just tried the firmware you posted here and wired up 5V as advised. The lilygo S3 turns on and shows the 'Preset Name' - but it doesn't appear to be able to read the TonexOne The pedal is plugged in on its own 9V power supply. Have tried 2 different USB cables -including the ones currently working on the 4.5B version.
Any thoughts or feelings? Cheers
That's a tricky one. Is your 4.3B running recent firmware, and the Tonex pedal up to date itself? Some people have been caught by that one.
The USB part of the Lilygo isn't anything really different to the other platforms (except for the power being in only.) Maybe try some combinations of which one gets powered on first? It shouldn't matter but maybe something subtle somewhere.
ohhh yes - my TonexOne isn't on the latest - good call. Let me update that and test
Hmm no dice. Updated TonexOne to latest firmware Tried both the FW you posted in here to no avail. Tried different order of powering devices with no luck.
I'll leave it for now - cant be troubleshooting on a Friday night