Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Saurabh_B

Pages: 1 ... 6 7 [8] 9 10 ... 25
106
TFTs / Re: TFT NHD-2.4-240320CF-CSXN#-FT
« on: January 17, 2017, 12:10:55 PM »
Would you be able to provide your Schematic for this as well?

107
OLEDs / Re: Reg: NHD-0420DZW DZW SPI Interface with Arudino
« on: December 29, 2016, 08:02:43 AM »
Hello,

Here is an example code for the Serial OLED displays:
Code: [Select]
sbit SCL = P3^4; //Serial Clock Pin
sbit SDOUT = P1^0; // Serial Data Out
sbit SDIN = P1^1; // Serial Data In
sbit C_S = P3^3; // Chip Select

/*************************************************
******** CHARACTER STRINGS ***********************  You can also use these to send a line of text you would like to display
************************************************** 
*************************************************/
char const text1[] = ("Testing OLED Display")
char const text2[] = ("NewHaven Display L 2")
char const text3[] = ("    Line  3 Test    ")
char const text4[] = ("       Line 4       ")

void delay(unsigned int n) //Delay subroutine n* 250 cycles
{
unsigned int i,j;
for (i=0;i<n;i++)
  for (j=0;j<250;j++)
  {;}
}
 

void WriteCommand(unsigned char ins)
{
unsigned char i;
C_S=0;
SCL = 0;
SDOUT = 0; //RS = 0 (Command)
SCL = 1; //RS registered
SCL = 0;
SDOUT = 0; //RW = 0
SCL = 1; //RW registered
SCL = 0;

for (i=0x80;i;i>>=1)
{
if((ins&0x80)==0x80)
SDOUT = 1;
else
SDOUT = 0;
ins=(ins<<1);
SCL = 0;
SCL = 1;
SCL = 0;
}

    C_S=1;
}

void WriteDataInit() // first write data command while setting Register Select
{

C_S=0;
SCL = 0;
SDOUT = 1; //RS = 1 (Data)
SCL = 0; //RS registered
SCL = 1;
SCL = 0;
SDOUT = 0; //RW = 0
SCL = 1; //RS registered
SCL = 0;

}
void WriteData(unsigned char dat)  //continuous data stream
{
unsigned char i;
for (i=0x80;i;i>>=1)
{
if((dat&0x80)==0x80)
SDOUT = 1;
else
SDOUT = 0;
dat=(dat<<1);
SCL = 0;
SCL = 1;
SCL = 0;
}

}

void Show_String(){
WriteCommand(0x01); // Clear Display
WriteCommand(0x02); // Return Home
WriteDataInit();
for( int i = 0; i< 20; i++){
WriteData(text1[i]);
  }
  WriteCommand(0xC0); // Second Line
  WriteDataInit();
  for(int i = 0; i < 20; i++){
WriteData(text2[i]);
  }
  WriteCommand(0x94); // Third Line
  WriteDataInit();
  for (int i = 0; i<20; i++){
WriteData(text3[i]);
  }

  WriteCommand(0xD4); // Fourth Line
  WriteDataInit();
  for(int i = 0; i < 20; i++){
WriteData(text4[i]);
    }
}

void init()
{
WriteCommand(0x38);//function set
delay(30);
WriteCommand(0x06);//entry mode set
delay(30);
WriteCommand(0x02);//return home
delay(30);
WriteCommand(0x01);//clear display
delay(30);
WriteCommand(0x0c);//display on
delay(30);
WriteCommand(0x80);//line 1 character 1
delay(30);
}


void main()
{
char i=0x21, j;



init();

//Show_String();
//delay(1000):
while(1)
{
C_S = 1;
WriteCommand(0x80); //Line 1

WriteDataInit();
//WriteDataInit() must only be executed once before starting to write data
//if WriteDataInit() is executed between writes, the display will recognize the two bits as data bits and not RS/RW bits. 
for(j=0; j<20; j++)
{
WriteData(i++);
delay(10);
}

C_S = 1;
//Pulling C_S High means write data is completed
//if next instruction to the display is data, must use WriteDataInit() first
//if write command is executed without pulling C_S high, it will recognize the following instruction on the bus as data regardless
WriteCommand(0xC0); //Line 2

WriteDataInit();
for(j=0; j<20; j++)
{
WriteData(i++);
delay(10);
}

C_S = 1;
WriteCommand(0x94); //Line 3

WriteDataInit();
for(j=0; j<20; j++)
{
WriteData(i++);
delay(10);
}


C_S = 1;
WriteCommand(0xD4); //Line 4

WriteDataInit();
for(j=0; j<20; j++)
{
WriteData(i++);
delay(10);
}

}
}

108
OLEDs / Re: NHD-0420DZW-AB5
« on: December 29, 2016, 08:02:00 AM »
Here is an example SPI code for the serial OLED displays:
Code: [Select]
sbit SCL = P3^4; //Serial Clock Pin
sbit SDOUT = P1^0; // Serial Data Out
sbit SDIN = P1^1; // Serial Data In
sbit C_S = P3^3; // Chip Select

/*************************************************
******** CHARACTER STRINGS ***********************  You can also use these to send a line of text you would like to display
************************************************** 
*************************************************/
char const text1[] = ("Testing OLED Display")
char const text2[] = ("NewHaven Display L 2")
char const text3[] = ("    Line  3 Test    ")
char const text4[] = ("       Line 4       ")

void delay(unsigned int n) //Delay subroutine n* 250 cycles
{
unsigned int i,j;
for (i=0;i<n;i++)
  for (j=0;j<250;j++)
  {;}
}
 

void WriteCommand(unsigned char ins)
{
unsigned char i;
C_S=0;
SCL = 0;
SDOUT = 0; //RS = 0 (Command)
SCL = 1; //RS registered
SCL = 0;
SDOUT = 0; //RW = 0
SCL = 1; //RW registered
SCL = 0;

for (i=0x80;i;i>>=1)
{
if((ins&0x80)==0x80)
SDOUT = 1;
else
SDOUT = 0;
ins=(ins<<1);
SCL = 0;
SCL = 1;
SCL = 0;
}

    C_S=1;
}

void WriteDataInit() // first write data command while setting Register Select
{

C_S=0;
SCL = 0;
SDOUT = 1; //RS = 1 (Data)
SCL = 0; //RS registered
SCL = 1;
SCL = 0;
SDOUT = 0; //RW = 0
SCL = 1; //RS registered
SCL = 0;

}
void WriteData(unsigned char dat)  //continuous data stream
{
unsigned char i;
for (i=0x80;i;i>>=1)
{
if((dat&0x80)==0x80)
SDOUT = 1;
else
SDOUT = 0;
dat=(dat<<1);
SCL = 0;
SCL = 1;
SCL = 0;
}

}

void Show_String(){
WriteCommand(0x01); // Clear Display
WriteCommand(0x02); // Return Home
WriteDataInit();
for( int i = 0; i< 20; i++){
WriteData(text1[i]);
  }
  WriteCommand(0xC0); // Second Line
  WriteDataInit();
  for(int i = 0; i < 20; i++){
WriteData(text2[i]);
  }
  WriteCommand(0x94); // Third Line
  WriteDataInit();
  for (int i = 0; i<20; i++){
WriteData(text3[i]);
  }

  WriteCommand(0xD4); // Fourth Line
  WriteDataInit();
  for(int i = 0; i < 20; i++){
WriteData(text4[i]);
    }
}

void init()
{
WriteCommand(0x38);//function set
delay(30);
WriteCommand(0x06);//entry mode set
delay(30);
WriteCommand(0x02);//return home
delay(30);
WriteCommand(0x01);//clear display
delay(30);
WriteCommand(0x0c);//display on
delay(30);
WriteCommand(0x80);//line 1 character 1
delay(30);
}


void main()
{
char i=0x21, j;



init();

//Show_String();
//delay(1000):
while(1)
{
C_S = 1;
WriteCommand(0x80); //Line 1

WriteDataInit();
//WriteDataInit() must only be executed once before starting to write data
//if WriteDataInit() is executed between writes, the display will recognize the two bits as data bits and not RS/RW bits. 
for(j=0; j<20; j++)
{
WriteData(i++);
delay(10);
}

C_S = 1;
//Pulling C_S High means write data is completed
//if next instruction to the display is data, must use WriteDataInit() first
//if write command is executed without pulling C_S high, it will recognize the following instruction on the bus as data regardless
WriteCommand(0xC0); //Line 2

WriteDataInit();
for(j=0; j<20; j++)
{
WriteData(i++);
delay(10);
}

C_S = 1;
WriteCommand(0x94); //Line 3

WriteDataInit();
for(j=0; j<20; j++)
{
WriteData(i++);
delay(10);
}


C_S = 1;
WriteCommand(0xD4); //Line 4

WriteDataInit();
for(j=0; j<20; j++)
{
WriteData(i++);
delay(10);
}

}
}

109
Evaluation Tools / Re: FTDI Eve screen editor
« on: December 29, 2016, 07:59:29 AM »
I personally have not, the engineer who has been working on this is currently on vacation.
I can have him contact you next week.

110
TFTs / Re: Is there a Visual Design tool for Arduino?
« on: December 28, 2016, 03:36:07 PM »
Which 4.3" Display did you order?

It seems that you will still need an external controller, i was curious to see if you received the Arduino Shield or just the display without a controller.

111
Evaluation Tools / Re: FTDI Eve screen editor
« on: December 28, 2016, 03:31:02 PM »
Were you not able to use the tool or did you have another problem?

This would be our first time working with the eve, and any information we can get to help improve the displays would help as well.

112
OLEDs / Re: NHD-0420DZW-AB5
« on: December 27, 2016, 11:25:45 AM »
Hello Padmanthan,

This display does not support an I2C interface, you would need to use SPI or Parallel.
If you are looking to use I2C i would recommend our Slim OLED displays.

113
Graphic LCDs / Re: NHD-C128xx 3D models
« on: December 27, 2016, 08:36:27 AM »
I appologize for the wait,

I will see if I can pull up your email and send you the copy of the model.

114
OLEDs / Re: NHD-0216SZW-BG5 OLED artefacts and undefined patterns
« on: December 14, 2016, 05:02:35 PM »
THis is most likely due to the timing.
This display uses a controller similar to our Character LCDs however it requires a longer wait between commands / data writes.

We have seen random shifting or characters appear when you write to the display too fast.

Unfortunately we do not have a library / driver for this display, however if you are able to modify the library you are currently using to add some delays. You should be able to use the display without any issues.

115
Character LCDs / Re: NHD-0216K1Z-FL-YBW grounding pad
« on: December 12, 2016, 08:13:09 AM »
Hello, Here's the reply I gave:

As the display is without having those jumpers populated pin 1 on the connectors is not linked to the mounting holes.
You wouldn’t need to cut the trace so long as the JFL remains unpopulated.

The first pad is connected to the mounting hole located on the bottom left of the picture below.
The second pad (K3) is connected to the plate for the Bezel Tabs.
The final pad (JF) is connected to the ground of the display. (Pin 1 on both CON and CON1)

116
OLEDs / Re: NDH-0220CW: cursor not visible with text
« on: December 07, 2016, 08:04:04 AM »
Hello,

Good to see you've got it.
Unfortunately it is not possible to disable the cursor moving either left or right after printing a character. You would need to manually set the address to the desired location and rewrite the character printed where you need it.

This controller will allow you to increment or decrement the address counter after printing a character.

117
OLEDs / Re: NHD-0216MW-IB3 pinout
« on: December 05, 2016, 04:24:53 PM »
Hi,

The pin layout will follow the first option you listed.

8642
7531

118
OLEDs / Re: NDH-0220CW: cursor not visible with text
« on: December 05, 2016, 09:39:05 AM »
The cursor should still be able to show up.
Would you be able to tell me what settings you have for the Display On/Off register?

119
TFTs / Re: NHD-7.0-800480EF-ATXV
« on: November 30, 2016, 10:06:40 AM »
What is the current limit for your backlight supply?

For the backlight you would not need to apply the Display Enable signal. Also could you give me a date code for the display you are currently using?

120
Graphic LCDs / Re: NHD-C12864WC-FSW-FBW-3V3-M random pixels at init
« on: November 28, 2016, 02:04:11 PM »
This is most likely due to the high contrast. I would recommend using a lower setting for the electronic volume.
This will determine the pixel clarity.

Pages: 1 ... 6 7 [8] 9 10 ... 25