Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Working libraries, libraries being ported and related hardware
zmemw16
Posts: 975
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Postby zmemw16 » Sun Mar 05, 2017 6:38 pm

http://www.waveshare.com/wiki/3.5inch_RPi_LCD_(A)

good news, bad news
good - not much, you can find the pinning details for the socket
bad - couldn't see / find a schematic - rather surprised, but given the following lines perhaps understandable
bad - some cloning of their products
bad - yours doesn't seem to match their picture
bad - doesn't seem to match the fakes

i suspect the easiest is to find a Raspberry Pi and if there's anything in the driver or boot messages.

stephen

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

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Postby david.prentice » Mon Mar 06, 2017 10:32 am

The good news is that you have the WaveShare logo on your pcb. So it might be genuine.

You can always ask WaveShare for the schematic. Or simply work it out by yourself.

I do not own a RaspPi. I know nothing about them.

David.

fari
Posts: 18
Joined: Sun Feb 26, 2017 12:01 pm

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Postby fari » Mon Mar 06, 2017 11:58 am

Thanks Steve, David and Stephen for your precious hints!

I will work through your hints. Hopefully one of them would work.

fari
Posts: 18
Joined: Sun Feb 26, 2017 12:01 pm

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Postby fari » Tue Mar 07, 2017 4:56 pm

Thanks Steve, David and Stephen for your help!

Finally I have got it done! I have found out the right initialisation sequence. The SPI frequency is crucial. The display works only in the range between 12MHz and 32MHz only. Any frequency out of this range lead to white flashing on the screen!

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

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Postby stevestrong » Tue Mar 07, 2017 8:40 pm

I think I have mentioned already the SPI clock limitation to 24MHz, but it is good that you also figured out.

fari
Posts: 18
Joined: Sun Feb 26, 2017 12:01 pm

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Postby fari » Wed Mar 08, 2017 12:08 pm

Yes! You are right Steve! but I had several problems:
- The described pin out of the display on the site of the vender was wrong :x (I tried at this time to lower the frequency, but with the wrong wiring!!! :roll: ). This problem was fundamental
- The Init sequence had to be changed slightly ( I have got the right sequence of the init sequence of a raspberry pi, which was posted in the internet)
- The frequency e.g. 8MHz does not work. I could not understand till now, why lower frequencies did not work
After I have found out, that the pin out description was wrong, I managed to solve the problem very fast.
Thanks to all for the support!


If you might be interested, here is the right pin out of the display I am using (http://www.ebay.de/itm/252472008067?ul_noapp=true):
35Inch Display Pinout.jpg
35Inch Display Pinout.jpg (163.87 KiB) Viewed 27 times


Here is the best init sequence I had:
Command: 0xb0, Data: 0x0,
Command: 0x11,
DELAY 250ms
Command: 0x3A, Data: 0x55,
Command: 0xC2,Data: 0x44,
Command: 0xC5,Data: 0x00,0x00,0x00,0x00,
Command: 0xE0,Data: 0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,
Command: 0xE1,Data: 0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,
Command: 0xE2,Data: 0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,
Command: 0x36,Data: 0x48,
Command: 0x11,
DELAY 250 ms
Command: 0x29

The display works only in the range between 12MHz and 32MHz .

Good luck!


Return to “Libraries & Hardware”

Who is online

Users browsing this forum: No registered users and 1 guest