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] 2 3 ... 23
1
Character LCDs / Re: NHD-C0216CiZ-FSW-FBW-3V3 with arduino nano
« on: September 21, 2017, 08:03:24 AM »
Can you tell me if what the voltage on pin 6 (VOUT) is?

If the voltage booster circuit does not activate it could mean that your instructions are not being read by the display. Do you by any chance have a logic analyzer?
This would help you see if the right data is being input into the display.

2
Character LCDs / Re: NHD-C0216CiZ-FSW-FBW-3V3 with arduino nano
« on: September 20, 2017, 08:24:51 AM »
Hello,

It looks like you have the display wired backwards. Pin 1 of the display is on the right side of the display. Please see the attached picture.

I would also recommend the use of a level shifter (5V to 3V) for the data lines. While you do have the display powered with 3.3V the voltage levels on D4 & D5 will still be ~5V when powered via USB.
This can damage the controller and the display over time, thus reducing the overall lifetime of the display.

I have an example i wrote to work with an arduino Mega here:
Code: [Select]
/*****************************************************/
/*
C0216CiZ.c

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
*/
/*****************************************************/

/*****************************************************/
unsigned char text1[]={"NEWHAVEN Display"};
unsigned char text2[]={"2x16 LCD Module "};
unsigned char text3[]={0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f};
unsigned char text4[]={0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1a,0x1b,0x1c,0x1d,0x1e,0x1f};
/*****************************************************/
#define SDO 22            //Serial data
#define SCLK 23            //Serial clock
#define RESET 24             //RESETET
/*****************************************************/
const char Slave = 0x7C;
const char Comsend = 0x00;
const char Datasend = 0x40;
const char Line2 = 0xC0;
/*****************************************************/

/*****************************************************/
void I2C_out(unsigned char j)       //I2C Output
{
  int n;
  unsigned char d;
  d=j;
  for(n=0;n<8;n++){
    if((d&0x80)==0x80)
    digitalWrite(SDO, HIGH);
    else
    digitalWrite(SDO, LOW);
    d=(d<<1);
    digitalWrite(SCLK, LOW);
    digitalWrite(SCLK, HIGH);
    digitalWrite(SCLK, LOW);
    }
  digitalWrite(SCLK, HIGH);
  while(SDO==HIGH){
    digitalWrite(SCLK, LOW);
    digitalWrite(SCLK, HIGH);
    }
  digitalWrite(SCLK, LOW);
}
/*****************************************************/
void I2C_Start()
{
  digitalWrite(SCLK, HIGH);
  digitalWrite(SDO, HIGH);
  digitalWrite(SDO, LOW);
  digitalWrite(SCLK, LOW);
}
/*****************************************************/
void I2C_Stop()
{
  digitalWrite(SDO, LOW);
  digitalWrite(SCLK, LOW);
  digitalWrite(SCLK, HIGH);
  digitalWrite(SCLK, HIGH);
}
/*****************************************************/
void Show(unsigned char *text) // Display text
{
  int n, d;
  d=0x00;
  I2C_Start();
  I2C_out(Slave);
  I2C_out(Datasend);
  for(n=0;n<16;n++){
    I2C_out(*text);
    ++text;
    }
  I2C_Stop();
}
/*****************************************************/
void nextline(void)  // Move to Line 2
{
  I2C_Start();
  I2C_out(Slave);
  I2C_out(Comsend);
  I2C_out(Line2);
  I2C_Stop();
}
void CGRAM (void) 
{
  I2C_Start();
  I2C_out(Slave);
  I2C_out(Comsend);
  I2C_out(0x38);    //go to instructino table 0
  I2C_out(0x40);    //Set CGRAM addRESETs to 0x00
  I2C_Stop();
  delay(10);
 
  I2C_Start();
  I2C_out(Slave);
  I2C_out(Datasend);
  I2C_out(0x00);    //write to first CGRAM addRESETs
  I2C_out(0x1E);
  I2C_out(0x18);
  I2C_out(0x14);
  I2C_out(0x12);
  I2C_out(0x01);
  I2C_out(0x00);
  I2C_out(0x00);    //8 bytes per character
  I2C_out(0x00);
  //continue writing to remaining CGRAM if desired
  I2C_Stop();
}
/****************************************************
*           Initialization For ST7032i              *
*****************************************************/
void init_LCD()
{
  I2C_Start();
  I2C_out(Slave);
  I2C_out(Comsend);
  I2C_out(0x38);
  delay(10);
  I2C_out(0x39);
  delay(10);
  I2C_out(0x14);
  I2C_out(0x78);
  I2C_out(0x5D);
  I2C_out(0x6D);
  I2C_out(0x0C);
  I2C_out(0x01);
  I2C_out(0x06);
  delay(10);
  I2C_Stop();
 
  //CGRAM();      //define CGRAM
 
  I2C_Start();
  I2C_out(Slave);
  I2C_out(Comsend);
  I2C_out(0x39);   
  I2C_out(0x01);    //go back Home
  I2C_Stop();
  delay(10);
}
/*****************************************************/
/*****************************************************/


void setup() {
  pinMode(RESET, OUTPUT);
  pinMode(SDO, OUTPUT);
  pinMode(SCLK, OUTPUT);
  digitalWrite(RESET, LOW);
  delay(10);
  digitalWrite(RESET, HIGH);
  delay(100);

}

void loop() {
  init_LCD();
  delay(2);
  Show(text1);
  nextline();
  Show(text2);
  delay(2500);
  while(1){
    digitalWrite(SDO, HIGH);
    delay(1000);
  }
       

}




3
OLEDs / Re: Characters Mirrored on NHD-0420CW Display
« on: September 18, 2017, 10:30:24 AM »
Hello Garry,

Would it be possible to send me a picture of the back of the display as well?

I would like to see the date code and the bonding of the OLED Glass to the PCB. I would like to confirm that these are connected properly as well.
I haven't been able to replicate this issue.

Has this occurred on multiple displays or have you only been able to test 1?

4
TFTs / Re: Rotate the display upsidedown (180)
« on: September 15, 2017, 08:12:14 AM »
What is the part number of the display you are using.

It would help to look at the driver to see if there are any pins that let you change the scan direction (up/down & left/right)

5
OLEDs / Re: Characters Mirrored on NHD-0420CW Display
« on: September 13, 2017, 03:53:40 PM »
From the Photo it looks like the segments are going backwards.

Can you try sending a 0x2A (Function Set, RE = 1)
followed by the Entry mode set(0b000001XY) where y could be a 0 or 1, this should stop the mirroring on the display.

6
OLEDs / Re: Characters Mirrored on NHD-0420CW Display
« on: September 13, 2017, 09:05:59 AM »
Would it be possible to get a picture of what you are seeing?

7
Hello Nathan,

You can find an example for this display here: https://github.com/NewhavenDisplay/NHD_US2066

Can you tell me what interface you plan to use and do you have a schematic for how you are connecting the display?

8
OLEDs / Re: LCD Dev Board and NHD-1.69-160128UGC3
« on: September 05, 2017, 07:58:52 AM »
The Code loaded into the NHDev Development board is written for 6800 mode Parallel Interface.
It will not work in serial.

9
New Product Wishlists / Re: Display, PC simulator
« on: September 01, 2017, 08:09:19 AM »
Hello,

Unfortunately we do not have any LCD simulators.

10
Graphic LCDs / Re: NHD-C160100DiZ and Raspberry Pi
« on: August 29, 2017, 02:33:40 PM »
Joel,

The 200A does seem low. Would it be possible to tell me what the voltage measures at the VOUT pin?
The capacitors are part of a voltage boosting circuit which will generate the voltage required to drive the LCD, the current draw should increase after having sent the initialization sequence.

Can you tell me if you are sending any pixel data to the display after the initialization to see points on the graph?

Finally some slave devices do tend to clash with the lcd when use don the same I2C bus, I would recommend having the display working by itself first then adding more devices to the bus for final testing. If there is another device that uses the same slave address, the display will not work as intended.

11
Evaluation Tools / Re: NHD-TFT40 PWM pin
« on: August 28, 2017, 03:37:40 PM »
How are you tying this to the 1.8" TFT?

There are multiple cathodes for the backlight on this display. Do you have a schematic for how this is setup?


12
Evaluation Tools / Re: NHD-TFT40 PWM pin
« on: August 28, 2017, 02:07:03 PM »
Hello,

Can you tell me what pins are drawing current?

The display VDD itself will still be powered without the backlight, for this you would need to trigger the display's standby mode. (DISPOFF)
After triggering this, you will still get current draw for the DC/DC converter used to boost the voltage. (5V input)

The PWM signal only controls the brightness of the backlight. The backlight isn't tied to any circuits on the display that would cause it to shut down or pause.
The PWM signal doesn't stop the current drain for the backlight voltage booster either, to stop this you would need to shut down the power being provided to the +5V input of the NHD-TFT40

13
OLEDs / Re: Supply voltage for KZW series OLED
« on: August 25, 2017, 08:09:31 AM »
Awesome, please let us know how the project works.

14
OLEDs / Re: Supply voltage for KZW series OLED
« on: August 24, 2017, 08:38:39 AM »
Unfortunately we do not have datasheets on the change in brightness.
However we can see that its half to 2/3 as bright as a 5V, this would also be dependent on the color.

15
Graphic LCDs / Re: Create a fun car entertainment system
« on: August 24, 2017, 08:13:17 AM »
Hello Jack,

Unfortunately we have not heard of nextion in the past, I'm not really sure how their displays will work.
However i will mention that most standard LCD panels have a standard operating temperature of -20C to 70C & a storage of -30 to 80C.


Pages: [1] 2 3 ... 23