Help needed for connecting a Black STM32F407VET6 to an 3.2 TFT LCD

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
exider
Posts: 5
Joined: Sat Jul 29, 2017 2:02 am

Help needed for connecting a Black STM32F407VET6 to an 3.2 TFT LCD

Post by exider » Tue Oct 03, 2017 7:21 pm

Dear All,

I would appreciate any help you guys can provide for hooking up the Black STM32F407VE6 to an 3.2 TFT LCD.
As far as I am aware the STM32 board and the LCD are produced by the same company (Acelex) and it looks like the pinout of both, board and LCD match.

The LCD is advertised by the seller as matching LCD for the STM32 board. It has FSMC parallel interface and is using XPT2046 touch controller talking over SPI . https://www.aliexpress.com/item/3-2-inc ... 35059.html

Image

Image

The STM32 board is discussed in this thread viewtopic.php?t=3086 and
the board def. files are made available by mcauser in githib: https://github.com/mcauser/BLACK_F407VE


I would appreciate any code or at least pointer on how to start with this LCD.

P.S. I have searched the forum but couldn't find anything that I can use.
Last edited by exider on Wed Oct 04, 2017 3:47 am, edited 1 time in total.

loboris
Posts: 317
Joined: Fri Oct 02, 2015 6:19 pm

Re: Help needed for connecting a Black STM32F407VET6 to an 3.2 TFT LCD

Post by loboris » Tue Oct 03, 2017 7:58 pm

I think you need external SDRAM for use the display (available on ZET6 boards).
You can analize this code, there are examples of using LCD.
I have MicroPython running good on STM32F407ZET6 board. I'm also planning to get this diplay board and test it with MicroPython next month...

User avatar
mcauser
Posts: 400
Joined: Mon Jun 15, 2015 8:03 am

Re: Help needed for connecting a Black STM32F407VET6 to an 3.2 TFT LCD

Post by mcauser » Wed Oct 04, 2017 1:53 am

Your AliExpress link didn't work. It's a link to your specific order.

The Black VET6 board: https://www.aliexpress.com/store/produc ... 22721.html

The Black ZET6 board: https://www.aliexpress.com/store/produc ... 62341.html

The TFT: https://www.aliexpress.com/store/produc ... 35059.html

Some documentation about the boards: http://wiki.stm32duino.com/index.php?title=STM32F407

When I purchased the boards from Acelex, they provided me with a link to a STM32F4xx .rar file containing a ton of sample code and datasheets. Most of which in Chinese, but some in english. Google translate to the rescue. There were some examples with the TFT. Perhaps try contacting the seller to get a copy. It's about 6GB uncompressed.

I couldn't figure out if these boards were produced by Acelex, or if they were just a popular reseller.
This is why I created the board definitions as generic "Black" instead of "Acelex".
The same store sold me the vcc-gnd branded F407VET6 mini board, but they made it sound like they produced it.
It says vcc-gnd.taobao.com is on the PCB silkscreen, and there are now a bunch of other resellers also selling the same board, leading me to believe they are just a popular reseller.

exider
Posts: 5
Joined: Sat Jul 29, 2017 2:02 am

Re: Help needed for connecting a Black STM32F407VET6 to an 3.2 TFT LCD

Post by exider » Wed Oct 04, 2017 4:06 am

Hi mcauser,

First, thank you for the board definition files! Without your work, I wouldn't be able to play with micropython on this board.

Second, thanks for pointing out the incorrect link, I have updated the my first post. Yes, you are right, Acelex could just be a reseller. I will try contact them and ask for some demos.

@loboris,
I have checked the feedback left by the customers who purchased this LCD. Some of the comments suggest that the LCD works fine with the VET6 variant and also suggest that the LCD was tested and works with Arduino. At the moment, I am trying to find a library that works with Arduino so, I can verify the LCD works.

I will keep you updated...

User avatar
Roberthh
Posts: 1572
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Help needed for connecting a Black STM32F407VET6 to an 3.2 TFT LCD

Post by Roberthh » Wed Oct 04, 2017 5:42 am

I don't think that you need an external SD RAM, the TFT has already RAM for the frame buffer. I made a driver for a SSD1963 display with similar interface for Pyboard. https://github.com/robert-hh/SSD1963-TF ... or-PyBoard. It is not very portable, since some part is written as assembly code, and it uses fixed ports.
There is also a XPT2046 driver. https://github.com/robert-hh/XPT2046-to ... or-PyBoard. That should be portable.
Maybe that is useful for you purpose. I had plans to add support for the IL9341 too, but did not find time yet to do so, It should nto be too difficult, just have to get a suitable TFT.

exider
Posts: 5
Joined: Sat Jul 29, 2017 2:02 am

Re: Help needed for connecting a Black STM32F407VET6 to an 3.2 TFT LCD

Post by exider » Sat Oct 14, 2017 5:33 pm

Got the LCD working with the Arduino IDE.
See http://stm32duino.com/viewtopic.php?f=3 ... 685#p35685

Now, it is way above my abilities to port the library to micropython but if anyone wold try I will be happy to assist as much as I can.

Here are the libraries in question:
https://github.com/stevstrong/Arduino_S ... fsmc.c#L79
https://github.com/stevstrong/Arduino_STM32
https://github.com/stevstrong/Adafruit_ ... 6bit_STM32
https://github.com/adafruit/TFTLCD-Library

Thanks

dpcons
Posts: 1
Joined: Sun Aug 18, 2019 5:51 pm

Re: Help needed for connecting a Black STM32F407VET6 to an 3.2 TFT LCD

Post by dpcons » Sun Aug 18, 2019 5:53 pm

This link you posted is dead: http://stm32duino.com/viewtopic.php?f=3 ... 685#p35685
do you have an update or can you redirect me? Sorry, I know the post is old.
Thanks
Dan

OutoftheBOTS_
Posts: 642
Joined: Mon Nov 20, 2017 10:18 am

Re: Help needed for connecting a Black STM32F407VET6 to an 3.2 TFT LCD

Post by OutoftheBOTS_ » Sun Aug 18, 2019 8:32 pm

STMdunio is now dead and all the knowledge that was on it is now gone :(

I have used a ILI9431 TFT on a STMF407VETG but only with code that I wrote in C and the screen was a little different to the more expensive 1 that plugs directly into the header on the board. I have now brought 1 of the official screens that plug directly into the TFT header and plan to write a pure python implementation but not sure when I will get the time to write as my business that I run is super busy atm and I am also doing renovations on my house and also have some other commits on my local flying club that are also bogging my down.

Post Reply