GLCD ILI9341 component not working correctly in FC 10 - Part 2

Any bugs you encounter with Flowcode should be discussed here.
jgu1
Posts: 797
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 686 times
Been thanked: 177 times

Re: GLCD ILI9341 component not working correctly in FC 10 - Part 2

Post by jgu1 »

Hi both!

Just correct the SPI_Cal as the same as yours Martin, but still the same, only run in Softwaremode, but I cange the prcaler to /4 that speed it a bit up.
Your examble doesnt´work at all for me, no matter SW mode or SPI

Maybe it is the level shifter which is my problem?

You wrote:

### What I do is use 10K pullups to 3V3 then use Schottky diodes to allow microcontroller to pull the pins to 0.2V
Cathode of diode connects to the data pin of microcontroller. Anode to 10K pullup and data pin of the graphical display. ###

I would be glad if you will make a sheet to me, then I will test that.

Thank´s in advance
Attachments
Cal_Spi.png
Cal_Spi.png (88.11 KiB) Viewed 2909 times

medelec35
Matrix Staff
Posts: 1966
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 629 times
Been thanked: 659 times

Re: GLCD ILI9341 component not working correctly in FC 10 - Part 2

Post by medelec35 »

I have just created a schematic for you.
Attachments
Level voltage shifter.pdf
(17.3 KiB) Downloaded 135 times
Martin

jgu1
Posts: 797
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 686 times
Been thanked: 177 times

Re: GLCD ILI9341 component not working correctly in FC 10 - Part 2

Post by jgu1 »

How brilliant Martin, I haven't thought of doing it that way, schottky is very fast. I will test ASAP and you will hear the result, thank you very much. :D

Jorgen

Arix
Posts: 8
Joined: Wed Dec 02, 2020 9:53 pm
Has thanked: 3 times
Been thanked: 7 times

Flowcode v10 Re: GLCD ILI9341 component not working correctly in FC 10 - Part 2

Post by Arix »

Just to add that I have the same level shifting PCB as Jorgen and my display is working well (That is once I reconfigured the CS, D/C and Reset back to my SPI particular configuration)

I am still a little puzzled as to the slight difference in operation compared with FC 8 but it does not really matter, I am now happy and will upgrade to FC 10 sometime soon. Thank you both Martin and Jorgen for your contributions.

I will try Jorgen's suggestion of using the ILI9341 with an ESP 32 for the speed improvement.

I have been following the forum since Flowcode V3 and I continue to be impressed by the speed and level of response from the Matrix staff and the forum contributors.

Kind Regards
Martin

jgu1
Posts: 797
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 686 times
Been thanked: 177 times

Re: GLCD ILI9341 component not working correctly in FC 10 - Part 2

Post by jgu1 »

As soon I have 5 min. extra I will test Martins suggest with the Diode and 10k resistor with arduino and display.

Yes try the ESP32-dev1 with the ili9341 display.. If you want I have my "standard setup" you can test.

jorgen

jgu1
Posts: 797
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 686 times
Been thanked: 177 times

Re: GLCD ILI9341 component not working correctly in FC 10 - Part 2

Post by jgu1 »

Hi Martin!

I made your levelshifter, and change to CH1, you are rigth (as always) :lol:

Now it work, perfect and the speed is much faster. Perfect. For me push the new component to update. ;)

Hopefully it not influence if I use ESP32, have some project with thiis device I still working on?

Have a nice weekend and thank´s.

Br Jorgen

Arix
Posts: 8
Joined: Wed Dec 02, 2020 9:53 pm
Has thanked: 3 times
Been thanked: 7 times

Re: GLCD ILI9341 component not working correctly in FC 10 - Part 2

Post by Arix »

@Jorgen
jgu1 wrote:
Tue Nov 05, 2024 6:10 pm
.. If you want I have my "standard setup" you can test.
It would be very helpful if you can share your "standard setup". I am getting a couple ESP 32 to try.
Thank you

Kind regards
Martin

jgu1
Posts: 797
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 686 times
Been thanked: 177 times

Re: GLCD ILI9341 component not working correctly in FC 10 - Part 2

Post by jgu1 »

Hi Martin!

As promised, hereby my standard program. I always use this program (when using ESP) as start program, Then I know it has working from beginning ;)

But after using Martins levelschifter and CH1 with Arduino, it have speed the ILI diplay up, and can now be used, good :) Not so fast as ESP.

Good luck and let me hear.

Br jorgen
Attachments
StandardIli9341Firs.fcfx
(36.63 KiB) Downloaded 108 times

Arix
Posts: 8
Joined: Wed Dec 02, 2020 9:53 pm
Has thanked: 3 times
Been thanked: 7 times

Re: GLCD ILI9341 component not working correctly in FC 10 - Part 2

Post by Arix »

Hi Jorgen,

Thank you for sharing your standard program. Much appreciated, it will save me some time. :D

Kind regards

Martin

jgu1
Posts: 797
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 686 times
Been thanked: 177 times

Flowcode v10 Re: GLCD ILI9341 component not working correctly in FC 10 - Part 2

Post by jgu1 »

Dare to ask Martin, have you push this to update gLCD_ILI9341_SPI.fcpx? Can´t see when I update, maybe it is because I already have done it manually ;)

Br Jorgen

Post Reply