ESP32 S2Mini

Annex for ESP32
User avatar
cicciocb
Site Admin
Posts: 2041
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 436 times
Been thanked: 1342 times
Contact:

Re: ESP32 S2Mini

Post by cicciocb »

Yes I confirm that it do not work

Edit. If you set the Spi.begin in the first line it starts to work. This seems a problem of spi not initialized inside annex
User avatar
cicciocb
Site Admin
Posts: 2041
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 436 times
Been thanked: 1342 times
Contact:

Re: ESP32 S2Mini

Post by cicciocb »

I've just uploaded another version that fixes the problem (v 1.51.2)
lyizb
Posts: 97
Joined: Fri Feb 12, 2021 8:23 pm
Has thanked: 40 times
Been thanked: 24 times

Re: ESP32 S2Mini

Post by lyizb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Sat Feb 10, 2024 2:23 pmI've just uploaded another version that fixes the problem (v 1.51.2)
Thanks for that. I'm seeing v 1.52.2 with today's date. Flashed 2 ESP32_S2Minis with that firmware only selected and checked. They show that version number in the Editor window, but no joy with the ILI9341. I've checked that the Config setting of CUSTOM and ILI9341 were retained, and the SPI pin numbers in "Advanced" were retained.

Do I need anything other than, in the Immediate pane,

TFT.INIT 1
TFT.FILL red
User avatar
cicciocb
Site Admin
Posts: 2041
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 436 times
Been thanked: 1342 times
Contact:

Re: ESP32 S2Mini

Post by cicciocb »

No, the TFT shows automatically the image as soon as it is well configured

Do not forget to select CUSTOM
image.png
image.png
image.png
You do not have the required permissions to view the files attached to this post.
lyizb
Posts: 97
Joined: Fri Feb 12, 2021 8:23 pm
Has thanked: 40 times
Been thanked: 24 times

Re: ESP32 S2Mini

Post by lyizb »

I'm happy to report that with the pins suggested, the ILI9341 is working with the ESP32_S2Mini.

But I'm baffled that I have not been able to get it to work with my preferred settings--all in a row from VCC on the S2 to all in a row on the ILI9341,
i.e. VCC,GND,16,18,33,35,37,39 to CS, RESET, DC, MOSI,CLK,(BL through 68R),MISO, or using the next inner row of pins, 17,21,34,36,38,40 to CS, RESET, DC, MOSI,CLK,(BL through 68R),MISO.

I'd like to use those because it would make a little pcb-to-ILI9341 adapter trivial. I've checked and rechecked my wiring and the config settings on two different S2Minis. Is there some reason this doesn't work, or am I making a mistake?

(I admit, using the suggested pins would make the PCB only slightly less trivial.)
BeanieBots
Posts: 344
Joined: Tue Jun 21, 2022 2:17 pm
Location: South coast UK
Has thanked: 182 times
Been thanked: 112 times

Re: ESP32 S2Mini

Post by BeanieBots »

All I can suggest is to swap the pins over one by one and find out at which point it fails.
At least then you would know which signal is causing a problem.
It might even simply be a faulty Dupont connection. I've had many waste many hours for me in the past. So much so, it's my first point of call when something misbehaves!
lyizb
Posts: 97
Joined: Fri Feb 12, 2021 8:23 pm
Has thanked: 40 times
Been thanked: 24 times

Re: ESP32 S2Mini

Post by lyizb »

Good suggestion, thank you. I also considered a bad Dupont wire, but figured that with it working when I swapped those same wires to the working configuration, it probably wasn't that. Could be a damaged pin. The attempt with the inner row of pins is using a separate set of Dupont wires.

I'll try swapping pins from the working one--but I'm not sure how many I'll have to swap.
lyizb
Posts: 97
Joined: Fri Feb 12, 2021 8:23 pm
Has thanked: 40 times
Been thanked: 24 times

Re: ESP32 S2Mini

Post by lyizb »

Ok, I started swapping pins around and found that if DC is on 3, it works, but on 33 it doesn't. This is on the row trying to use 16,18,33,35,37,39 for CS,RESET,DC,MOSI,SCK,(LED 3V3-68R),MISO.

I realized the swapping would be easier if I move from the working setup to the inner row of pins, 17,21,34,36,38,40. That way I can move one pin at a time. I'll try that later, starting with DC.
lyizb
Posts: 97
Joined: Fri Feb 12, 2021 8:23 pm
Has thanked: 40 times
Been thanked: 24 times

Re: ESP32 S2Mini

Post by lyizb »

Ok, I found a configuration I'm happy with, and with a little bit of creative wiring with a long pin female socket, no PCB is needed.
S2Mini TFT socket.jpg
The long pin header socket is soldered into the inner row of pins on the 3V3 side, and uses pins 10,8,6,4,2,1 for CS, RST, DL, MOSI, SCK, and MISO. the first pin is bent out and soldered to 3V3. The second pin in bent in and with an extension, soldered to GND on the far side. The 10th pin, LED (which is above pin 1) is bent out and a 68 ohm resistor is soldered between it and 3V3. The 11th pin is bent in so it can be inserted into the pin 1 hole. (There's also a 12th unused socket in the photo which I have now cut off.)

The whole one pin header socket is elevated about 3mm so that the bent pins clear the pins/holes underneath. I can still plug the outer pins into my PCB designed for the ESP8266 D1Mini.
You do not have the required permissions to view the files attached to this post.
Post Reply