Internet Radio: TTGO T-Display ESP32 with PCM5102 and Annex 1.47.2
Re: Internet Radio: TTGO T-Display ESP32 with PCM5102 and Annex 1.47.2
P.S If any one knows of a nicer / better case thats 3d printable... please let me know
- Fernando Perez
- Posts: 378
- Joined: Mon Feb 15, 2021 10:09 pm
- Location: Santander (Spain)
- Has thanked: 195 times
- Been thanked: 267 times
Re: Internet Radio: TTGO T-Display ESP32 with PCM5102 and Annex 1.47.2
Thank you for your appreciation. It makes me very happy to see that the code works for other people. Regards
-
- Posts: 222
- Joined: Mon Feb 15, 2021 1:44 pm
- Has thanked: 126 times
- Been thanked: 132 times
Re: Internet Radio: TTGO T-Display ESP32 with PCM5102 and Annex 1.47.2
I'd just like to confirm that the streaming functions work perfectly with the MAX98357A device which are a DAC and 3W amplifier combined. These modules are under £2 (more than double what I paid a few months ago) and they sit oh so neatly on a TTGO-Display (BClk 33, WSel 32, DOut 25).
However, I was hoping to use the ESP32 native TOUCH function on pins 12,13,15 of the device for volume and channel selection etc. These work fine outside the program and after PLAY.SETUP configuration but stop responding immediately once a stream starts. Francesco, is this solvable or is it inherent in the streaming processor usage?
However, I was hoping to use the ESP32 native TOUCH function on pins 12,13,15 of the device for volume and channel selection etc. These work fine outside the program and after PLAY.SETUP configuration but stop responding immediately once a stream starts. Francesco, is this solvable or is it inherent in the streaming processor usage?
You do not have the required permissions to view the files attached to this post.
- cicciocb
- Site Admin
- Posts: 2095
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 450 times
- Been thanked: 1385 times
- Contact:
Re: Internet Radio: TTGO T-Display ESP32 with PCM5102 and Annex 1.47.2
Honestly I don't know, It should not be impacted.[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Thu Feb 23, 2023 12:22 pm I'd just like to confirm that the streaming functions work perfectly with the MAX98357A device which are a DAC and 3W amplifier combined. These modules are under £2 (more than double what I paid a few months ago) and they sit oh so neatly on a TTGO-Display (BClk 33, WSel 32, DOut 25).
However, I was hoping to use the ESP32 native TOUCH function on pins 12,13,15 of the device for volume and channel selection etc. These work fine outside the program and after PLAY.SETUP configuration but stop responding immediately once a stream starts. Francesco, is this solvable or is it inherent in the streaming processor usage?
What is the effect that you have?
-
- Posts: 222
- Joined: Mon Feb 15, 2021 1:44 pm
- Has thanked: 126 times
- Been thanked: 132 times
Re: Internet Radio: TTGO T-Display ESP32 with PCM5102 and Annex 1.47.2
I'm polling three pins with the pin.touch command every 200ms (I've tried less frequently too) and I'm reading values of around 90 when not touched and less than 20 when touched on each pin (actually connected to drawing pins as domed circular buttons) before the command to start the stream.
After the PLAY.STREAM command, it appears that one read is made of the pin and then will return that same value despite further touch / release.
I've proven this by (correctly) reading the pins several times on startup then including a pause before streaming during which I'll untouch the button. The read immediately after the stream command will return the untouched value.
After the PLAY.STREAM command, it appears that one read is made of the pin and then will return that same value despite further touch / release.
I've proven this by (correctly) reading the pins several times on startup then including a pause before streaming during which I'll untouch the button. The read immediately after the stream command will return the untouched value.
- cicciocb
- Site Admin
- Posts: 2095
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 450 times
- Been thanked: 1385 times
- Contact:
Re: Internet Radio: TTGO T-Display ESP32 with PCM5102 and Annex 1.47.2
and if you stop the streaming, the touch works again?
-
- Posts: 222
- Joined: Mon Feb 15, 2021 1:44 pm
- Has thanked: 126 times
- Been thanked: 132 times
Re: Internet Radio: TTGO T-Display ESP32 with PCM5102 and Annex 1.47.2
Yes, after a PLAY.STOP the touch pins work correctly again.
Here's the test code I'm using.
Here's the test code I'm using.
Code: [Local Link Removed for Guests]
pause 500
nl$ = chr$(10) + chr$(13)
wlog nl$;nl$;nl$
PLAY.SETUP 1,50
play.stop
play.volume 10
for x = 1 to 50
wlog pin.touch(12),
wlog pin.touch(13),
wlog pin.touch(15)
pause 200
next x
pause 5000
wlog nl$;nl$
PLAY.STREAM"http://162.252.85.85:7858",50000,,1
for x = 1 to 50
wlog pin.touch(12),
wlog pin.touch(13),
wlog pin.touch(15)
pause 200
next x
pause 20000
wlog nl$;nl$
play.stop
for x = 1 to 50
wlog pin.touch(12),
wlog pin.touch(13),
wlog pin.touch(15)
pause 200
next x
pause 5000
end
Re: Internet Radio: TTGO T-Display ESP32 with PCM5102 and Annex 1.47.2
Although my own experiments with the 'ESP32 native TOUCH function' was only using one channel it did seem a bit hit and miss.
So I used a TTP223 Touch Key Module to act as a switch and once reverted back to the original code used by Fernando it was 100% reliable
Hope it helps.
So I used a TTP223 Touch Key Module to act as a switch and once reverted back to the original code used by Fernando it was 100% reliable
Hope it helps.
Re: Internet Radio: TTGO T-Display ESP32 with PCM5102 and Annex 1.47.2
Just an update on my build.... couldn't find a decent stl file for a case, so ebay came to the rescue
Almost centered and almost straight .. . Was going to use a rotary decoder on the tuning dial. but changed my mind due to putting the display there. (I could squeeze it in, but you know.... one day)
And the internals with notes ....
1. left the mains transformer in situ to give a bit of weight / stability (and saved hot gluing a bit of brick for ballast).
2. on /off switch, will cut into the usb lead and wire it one day.
3. vol control, 100k lin, (yes lin tracks fine !) line in from jack socket - out to amp - gnd
4. PAM8403 amp, using that vol control as a master to adjust the range of 3.
5. touch switch pcb, located so that touching under the tuning dial does what it should.
6. fudged stereo to mono with added dc blocking.
7. an even further fudged r & c tone correction (well ok its a bit of top cut)
My first build (piccys in this thread somewhere) just used stereo output to a sound bar, but I thought hang on ... its a transistor radio lets make it sound like one
Footnotes: Am I 100% happy with it, no .. but my friends are amazed and my enemys astounded so I suppose its about as good as its going to get, I'd love to do another build using the TTGO T4 V1.3 but until a genius finds why the screen wont work with Annex then thats a no .. but could use a esp32 with seperate tft / oled so may resign myself to do just that.
Almost centered and almost straight .. . Was going to use a rotary decoder on the tuning dial. but changed my mind due to putting the display there. (I could squeeze it in, but you know.... one day)
And the internals with notes ....
1. left the mains transformer in situ to give a bit of weight / stability (and saved hot gluing a bit of brick for ballast).
2. on /off switch, will cut into the usb lead and wire it one day.
3. vol control, 100k lin, (yes lin tracks fine !) line in from jack socket - out to amp - gnd
4. PAM8403 amp, using that vol control as a master to adjust the range of 3.
5. touch switch pcb, located so that touching under the tuning dial does what it should.
6. fudged stereo to mono with added dc blocking.
7. an even further fudged r & c tone correction (well ok its a bit of top cut)
My first build (piccys in this thread somewhere) just used stereo output to a sound bar, but I thought hang on ... its a transistor radio lets make it sound like one
Footnotes: Am I 100% happy with it, no .. but my friends are amazed and my enemys astounded so I suppose its about as good as its going to get, I'd love to do another build using the TTGO T4 V1.3 but until a genius finds why the screen wont work with Annex then thats a no .. but could use a esp32 with seperate tft / oled so may resign myself to do just that.
You do not have the required permissions to view the files attached to this post.
Re: Internet Radio: TTGO T-Display ESP32 with PCM5102 and Annex 1.47.2
Thanks Fernando
All worked out fine and a learning curb using the Annex program.
One thing that i only found out later was on the PCM5102 is the jumper settings was not soldered - no audio
Now i'm pretty much stuck at loading new channels and need help.
The examples given in this topic - some of them are still active and going but now i need to add some new channels.
Been at this for many hours but all channels i am trying to add gives error - Stream not open
Examples: https://live.jacarandafm.com/jacarandahigh.mp3 , https://iceant.antfarm.co.za/Bosveld or https://22653.live.streamtheworld.com/RSGAAC.aac
If anyone got ideas to solve please post.
All worked out fine and a learning curb using the Annex program.
One thing that i only found out later was on the PCM5102 is the jumper settings was not soldered - no audio
Now i'm pretty much stuck at loading new channels and need help.
The examples given in this topic - some of them are still active and going but now i need to add some new channels.
Been at this for many hours but all channels i am trying to add gives error - Stream not open
Examples: https://live.jacarandafm.com/jacarandahigh.mp3 , https://iceant.antfarm.co.za/Bosveld or https://22653.live.streamtheworld.com/RSGAAC.aac
If anyone got ideas to solve please post.
TTGO-T Esp32 BLE