Take the 2-minute tour ×
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It's 100% free, no registration required.

I am trying to write to Sharp memory LCD "LS027B7DH01" which isn't going well for me. I didn't find any useful information for beginners. I just want to display any character on the LCD. Here's my code:

#include<SPI.h>
int SCS=10;
int SI=11;
int SCLK=13;
int EXTCOMIN=4;

 void setup()
 {
   pinMode(SCS,OUTPUT);
   pinMode(EXTCOMIN,OUTPUT);
   pinMode(SCLK,OUTPUT);
   pinMode(SI,OUTPUT);
   digitalWrite(SCS,HIGH);
   tone(EXTCOMIN,40);
   SPI.setClockDivider(SPI_CLOCK_DIV16);
   SPI.setBitOrder(MSBFIRST);
   SPI.setDataMode(SPI_MODE0);
   SPI.begin();
   SPI.transfer(0×20);
   delay(3000);
}

void loop()
 {
   SPI.transfer(0×80);
   delay(3000);
   for (byte i=0; i<30;i++)
    {
       SPI.transfer(i+1);
       delay(3000);
      for(int j=0; j<50;j++)
       {
         SPI.transfer(0x0F);
         delay(3000);
       }
       delay(3000);
       SPI.transfer(0×00);
    }
    delay(3000);
    SPI.transfer(0×00);
  }
share|improve this question
    
What adapter-board are you using? –  Gerben 2 days ago
    
@Gerben: I am not using any adapter board, directly connected arduino with the sharp lcd –  Naresh 2 days ago

1 Answer 1

As the page Sharp Memory LCD Breakout A2 shows, it seems that you need some additional circuitry to drive the display, such as capacitors and resistors. This is why breakout boards are usually employed. Quoting the page:

This is a simple breakout board for Sharp’s new Memory LCD displays ( LS013B4DN02 and LS013B4DN04). It brings all pins to a 0.1″ header and provides necessary caps and resistors. The new revision A2 also adds an optional boost converter for those wanting to run 5V display from sub 3.3V supply.The footprints are there, but parts are not populated to save cost. I’ve also added silk labels to the header pins on the back. This is an open design under CC BY SA license.

Of course, you can always make your own breakout circuit. For example, you could reproduce the breakout board using a breadboard and some resistors and capacitors. The schematics are provided on that page for A1

Sharp LCD Breakout A1

and A2

Sharp LCD Breakout A2

So, in short, either purchase a breakout board, or make one. Once you have done that , you can use the CraftyCoders Arduino Library

Hope that helps.

share|improve this answer
1  
I am a beginner in coding but I don't want to use libraries written by someone. I want to learn how to code the Sharp Memory LCD maybe starting with writing a character to the LCD. I am trying hard for the past two days but it isn't going well. I am able to turn on the display and the clear command is working but the write command is not working. I have added the code above, which I am working on. As far as hardware is concerned, I have followed the above connections in my breakout board. –  Naresh yesterday

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.