Author Topic: Sony Ericsson U5 Vivaz LCD with Arduino Due  (Read 7561 times)

GerdJ

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Sony Ericsson U5 Vivaz LCD with Arduino Due
« on: September 08, 2015, 01:54:18 pm »
Hi,
I'm trying to write some basic commands to control the Sony U5 Vivaz LCD with an Arduino Due.
I will create a shield for the Due with full 16bit port addressing on port C. I'm still in Eagle and its hard to find the 34 pin connector in germany :-(

Anyway, can anbody give some hints, possibly sample code in Arduino, to get this phantastic LCD initialized, turn on BL, and draw some pixels? What commands in what order? Just basic things, please.

I looked into the libs and drivers created by Andy (my respect for that!), but to be honest, its very hard for me to follow the code in all the files.

Thank you very much!




Andy Brown

  • Administrator
  • Hero Member
  • *****
  • Posts: 283
    • View Profile
    • Andy's Workshop
Re: Sony Ericsson U5 Vivaz LCD with Arduino Due
« Reply #1 on: September 09, 2015, 09:58:13 am »
Hi,

You're in luck. The R61523 is one of the easiest panels to initialise. There's no complex oscillator or voltage multiplier settings. You just wake it up and set the orientation and colour depth.

Here's the post-reset wakeup sequence. Here's the sequence to set it to 24-bit colour depth. See similar files in the same directory for 16 and 18-bit modes. Here's the code for enabling landscape orientation.

Until the backlight is enabled you will see nothing at all so your first aim should be to get the backlight working. Here's the code to control the PWM output pin that can be used to drive the enable (EN) pin of a step-up LED driver. Please see my blog article for schematics and details of how I drive the backlight.
It's worse than that, it's physics Jim!

GerdJ

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: Sony Ericsson U5 Vivaz LCD with Arduino Due
« Reply #2 on: September 09, 2015, 10:10:40 am »
Hi Andy,
thank you very much, this will help getting started.

For the BL, I can just use a step up converter with max. current at 20mA, right? No PWM for 1st tests.
« Last Edit: September 09, 2015, 10:49:47 am by GerdJ »

Andy Brown

  • Administrator
  • Hero Member
  • *****
  • Posts: 283
    • View Profile
    • Andy's Workshop
Re: Sony Ericsson U5 Vivaz LCD with Arduino Due
« Reply #3 on: September 09, 2015, 12:32:37 pm »
For the BL, I can just use a step up converter with max. current at 20mA, right? No PWM for 1st tests.
Yes definitely. The backlight is a separate circuit and can be driven for testing with nothing else connected. If I remember correctly I verified the suspected backlight pinout using a bench power supply, a resistor, a pair of very fine wires for probes, a microscope and my wife to tell me whether she could see a light come on around the panel when I touched the pins on the connector very carefully!
It's worse than that, it's physics Jim!

GerdJ

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: Sony Ericsson U5 Vivaz LCD with Arduino Due
« Reply #4 on: September 09, 2015, 01:47:11 pm »
I bought a used and 'defectife' U5 some time ago on ebay for a few €.
The lcd was broken but the phone was working, I decided to take it apart and desolder the micro-tiny 34 pin connector with a heatgun. The lcd indeed uses 6 leds in series. Using a current limiting powersupply its working.

Hopefully I'm able to solder the small connector to the pcb with my soldering station...

Andy Brown

  • Administrator
  • Hero Member
  • *****
  • Posts: 283
    • View Profile
    • Andy's Workshop
Re: Sony Ericsson U5 Vivaz LCD with Arduino Due
« Reply #5 on: September 10, 2015, 09:51:06 am »
The 0.4mm connector is a hard one to solder but it sounds like you have the right equipment to do it. Careful not to melt the plastic with your heat gun! Good luck and feel free to post photos if you get it working :)
It's worse than that, it's physics Jim!

GerdJ

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: Sony Ericsson U5 Vivaz LCD with Arduino Due
« Reply #6 on: September 10, 2015, 10:06:31 am »
Thank you very much, I will try my best.

One quick question, Andy.
The 2.8V LDO is for the processor, right?
Datasheet says, that VCC is as typ. 1.8V (up to 3.6). So, it is ok to connect 3.3V to A13, VCC?


Andy Brown

  • Administrator
  • Hero Member
  • *****
  • Posts: 283
    • View Profile
    • Andy's Workshop
Re: Sony Ericsson U5 Vivaz LCD with Arduino Due
« Reply #7 on: September 11, 2015, 09:04:21 am »
The 2.8V LDO is for VCI (2.60 - 3.00V). See data sheet "Table 1 R61523 Power Supply Specification"

IOVCC has a wider acceptable range but if you can power everything from 2.8V then you'll save yourself some components.
It's worse than that, it's physics Jim!

GerdJ

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: Sony Ericsson U5 Vivaz LCD with Arduino Due
« Reply #8 on: September 12, 2015, 01:33:59 am »
Thanks Andy.

Maybe I'm blind, but where are commands

      _accessMode.writeCommand(...)
      _accessMode.writeData(...)

defined?


Andy Brown

  • Administrator
  • Hero Member
  • *****
  • Posts: 283
    • View Profile
    • Andy's Workshop
Re: Sony Ericsson U5 Vivaz LCD with Arduino Due
« Reply #9 on: September 12, 2015, 08:07:57 am »
They come from the selected access mode template. stm32plus can drive an LCD through the 8 or 16 bit FSMC peripheral or using a number of optimised GPIO modes. You can find them all in this directory.
It's worse than that, it's physics Jim!