3.2" HX8357B (16Bit) Library for STM32

Working libraries, libraries being ported and related hardware
Post Reply
luiz_aug
Posts: 2
Joined: Wed Jul 12, 2017 12:19 am

3.2" HX8357B (16Bit) Library for STM32

Post by luiz_aug » Wed Jul 12, 2017 12:56 am

Hello there!

This is my first post here, and I found this forum searching for STM32 Libraries to my 3.2" display.
I originally order a cheap TFT display on aliexpress, but didn`t realized that could be so difficult to get it working without the correct library, now I see that there are some Arduino`s libraries for this module, but didn`t found any for the STM32.

Image

Thank you so much!


-luiz_aug.

david.prentice
Posts: 112
Joined: Wed Nov 16, 2016 8:52 am

Re: 3.2" HX8357B (16Bit) Library for STM32

Post by david.prentice » Wed Jul 12, 2017 2:34 pm

These displays were very common. Then they were replaced by similar ones with ILI9481 controller.

They work just fine on a Mega2560 or Due. God invented Arduino Shields for just this purpose.

It should be easy enough to run on a STM32. You just have to find enough GPIO pins and connect an awful lot of wires for a 16-bit bus.

By the time that you have done that, you could have bought a Chinese Due clone for £10.49 or a Mega2560 for £7.99.
Bodmer's TFT_HX8357 library would work flawlessly.

David.

stevestrong
Posts: 1612
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: 3.2" HX8357B (16Bit) Library for STM32

Post by stevestrong » Wed Jul 12, 2017 3:48 pm

If you want to have a super fast display, then you could use an F4 board and use FSMC (search the forum for 16 bit LCD lib and FSMC)

luiz_aug
Posts: 2
Joined: Wed Jul 12, 2017 12:19 am

Re: 3.2" HX8357B (16Bit) Library for STM32

Post by luiz_aug » Wed Jul 12, 2017 5:28 pm

david.prentice wrote:
Wed Jul 12, 2017 2:34 pm
These displays were very common. Then they were replaced by similar ones with ILI9481 controller.

They work just fine on a Mega2560 or Due. God invented Arduino Shields for just this purpose.

It should be easy enough to run on a STM32. You just have to find enough GPIO pins and connect an awful lot of wires for a 16-bit bus.

By the time that you have done that, you could have bought a Chinese Due clone for £10.49 or a Mega2560 for £7.99.
Bodmer's TFT_HX8357 library would work flawlessly.

David.
Hey David and Steve!

I do have a STMF4 board, GPIO PINS won't be a problem.
I know there is a lot of alternatives (much of them even better than this cheap LCD), but this is the only one I could get (via aliexpress) and the delivery time to theese things to arrive is something like 4-5 months, so buying another one is out of question now...

I'm kind of newbie on theese new controllers (I used to work with the 8051 family), so the maximum I've already done aboud LCDs was to configure a 16x2 LCD, so I don't know very well how to drive this TFT without a preset library.

If I decide to continue with this LCD, would I have to work manually (without a library with basic functions) ?

Do you know some tutorial or material about the TFT basics ?

Thank you in advance!

-luiz_aug.

stevestrong
Posts: 1612
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: 3.2" HX8357B (16Bit) Library for STM32

Post by stevestrong » Wed Jul 12, 2017 6:53 pm

I would recommend to read the hx8357 users manual data sheet.
Last edited by stevestrong on Thu Jul 13, 2017 9:28 am, edited 1 time in total.

User avatar
lightcalamar
Posts: 33
Joined: Tue Mar 28, 2017 3:15 pm

Re: 3.2" HX8357B (16Bit) Library for STM32

Post by lightcalamar » Wed Jul 12, 2017 10:41 pm

For the double of price or something more to have FTDI FT810 with STM32F407x and to be another world ...

http://www.stm32duino.com/viewtopic.php?f=9&t=2236

david.prentice
Posts: 112
Joined: Wed Nov 16, 2016 8:52 am

Re: 3.2" HX8357B (16Bit) Library for STM32

Post by david.prentice » Thu Jul 13, 2017 6:28 am

I am horrified by 4-5 months delivery from AliExpress. Surely it is wiser to pay a local price for better delivery.
In the UK, it takes 10-20 days for Ebay. Ali would be similar. But some Ali vendors do not even dispatch for several weeks.
I can buy many things from European vendors. I pay more but get fast delivery.

Regarding your TFT. There is code for STM32F4. Often examples from Discovery kits.
I suggest that you use EXACTLY the same wiring as the example.
Quote which controller the example is written for. I can tell you what changes to make for HX8357-B.

Incidentally, your long delivery times are even more reason to buy a Due or Mega.

David.

zmemw16
Posts: 1422
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: 3.2" HX8357B (16Bit) Library for STM32

Post by zmemw16 » Thu Jul 13, 2017 7:23 pm

ali for me in the uk, i find it's 3-5 weeks, although some seem to arrive via Concorde 2-2.5 weeks
and also there are a few stragglers around 5-7 weeks.
based on about 600 orders, all participated.
ebay much of a muchness, slightly higher prices, not some many orders :)
amazon, much higher, but then again it's pretty much go & open the front door :D
stephen

User avatar
sheepdoll
Posts: 236
Joined: Fri May 22, 2015 12:58 am
Location: Silicon Valley Vortex
Contact:

Re: 3.2" HX8357B (16Bit) Library for STM32

Post by sheepdoll » Thu Jul 13, 2017 7:54 pm

Interesting.
3.2" HX8357B were given out a number of years ago as free samples at trade shows. These have the Part number TD320 on them. No one ever really posted to the Yahoo egroup https://groups.yahoo.com/neo/groups/TD-T320/ I was given a handful to experiment with.

I did track down that Adafruit has drivers for the HX8357B which the datasheet is the controller used on the TD320. I finally got around earlier this year to make a breakout for the FPC connector. Got as far as powering the backlight. Somewhere I got some level shifters. Have not had time to wire them and attempt to see If the Adafuit library can talk to the display.

The main confusion/issue with these modules is that the 3 interface mode lines is not broken out on the FPC. I dropped one which tore the FPC, So I took it apart. Could not trace out the mode lines as the traces are too small even under a microscope as they are etched on the glass itself.

My guess from the TD-320 data sheet is that these are configured in SPI mode. The data lines are on the FPC. The printed HX8357B datasheet is about 3/8 inch thick double sided, so there is still a lot of probing to do (If I ever find the spare time.)

Post Reply