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 - Michael_L

Pages: 1 ... 18 19 [20] 21 22 ... 24
286
TFTs / Re: NHD-1.8-128160EF-CTXI# Compatibility
« on: May 20, 2014, 08:07:09 AM »
Yes, you may replace that display with the new NHD-1.8-128160EF-CTXI# model without software modification.

287
There are 2 delays in the initialization routine in the datasheet.  They are at the beginning and are required for issuing a hard reset.  Additional delays throughout the rest of the routine are not required.

288
Graphic LCDs / Re: Contrast supply for NHD‐24064WG‐ATFH‐VZ#
« on: May 19, 2014, 09:17:00 AM »
VEE is supplied by the LCD module.  That pin outputs a voltage of -10V.  This negative voltage is used in conjunction with a potentiometer (connected between VEE and Ground, with the adjustable pin connected to V0) in order to provide approximately -7V for contrast (adjustable).

289
Evaluation Tools / Re: NHDev board interface?
« on: May 15, 2014, 12:38:00 PM »
Please email us at nhtech@newhavendisplay.com for this information.

290
Character LCDs / Re: Controlling 1x16 character display NHD-0116GZ.
« on: May 14, 2014, 04:05:41 PM »
In the code I provided in my previous post, the first comment actually shows that I have the R/W grounded and am not toggling it in my program.  Therefore it is not necessary to do this.  The reason why it is in the other example code is because many people do in fact read from the display.  That would mean the R/W signal is connected to the MCU, which would in turn mean that it would be necessary to set/reset it based on if you were reading or writing to the display.

291
Character LCDs / Re: Controlling 1x16 character display NHD-0116GZ.
« on: May 14, 2014, 09:16:46 AM »
I'm sorry you are having troubles getting the second set of 8 characters working, however, the example programs provided on our website, and also in the datasheet do in fact work.  I just confirmed this again with an Arduino Mega and have shared my code below (it is in C language).  On our example program code webpage we have a link to essentially this same code in C, and also in BASIC.  Below are some links to them:

C: http://www.newhavendisplay.com/app_notes/8_bit_character_C.txt
BASIC: http://www.newhavendisplay.com/app_notes/8_bit_character.txt

You will see from the code below that I am sending command 0x01 to clear the display and return the address pointer to home.  To get to the second set of 8 characters, I send 0xC0 before I write the data to be displayed.

Code: [Select]
// R/W signal is tied to ground (always write, never read)

// delay values are in milliseconds

int RS = 30;   //RS signal connected to digital pin 30 of Arduino Mega2560
int E = 31;    //E signal connected to digital pin 31 of Arduino Mega2560

const char text1[] = {"Newhaven Display"};
const char text2[] = {" Character LCD  "};

void command(char c)

   digitalWrite(RS, LOW);
   PORTA = c;
   digitalWrite(E, HIGH);
   delay(1);
   digitalWrite(E, LOW);
}

void data(char d)
{
   digitalWrite(RS, HIGH);
   PORTA = d;
   digitalWrite(E, HIGH);
   delay(1);
   digitalWrite(E, LOW);
}

void Home()
{
   command(0x01);
   delay(5);
}

void nextline()
{
   command(0xC0);
}

void disp_pic()
{
   int i;
   Home();
   for (i=0;i<16;i++)
   {
      data(text1[i]);
   }
   nextline();
   for (i=0;i<16;i++)
   {
      data(text2[i]);
   }
}

void setup()
{
   DDRA = 0xFF;    //set PORTA as output
   PORTA = 0x00;   //initialize PORTA to 0x00
   pinMode(RS, OUTPUT);
   pinMode(E, OUTPUT);
   digitalWrite(E, HIGH);
   delay(40);
   command(0x30);
   delay(5);
   command(0x30);
   delay(5);
   command(0x30);
   delay(5);
   command(0x38);
   command(0x10);
   command(0x0c);
   command(0x06);
   delay(5);
}

void loop()

  disp_pic();
  delay(5000);
}

The code above is generic code that works for all of our character displays, regardless of how many lines/characters.  For this 1x16 character display, the resulting text shown on the screen is: Newhaven Charact (cut off because the display is only 16 characters).

292
Character LCDs / Re: NHD-C0220BiZ-FS(RGB)-FBW-3VM Test
« on: May 13, 2014, 02:28:45 PM »
Unfortunately there is not a "test mode" available.  Where was the short you first had, and how long was it shorted for?  It may have destroyed the display, or maybe not.  It is hard to say for certain.  I would try using the code I posted for SteveC from an older post of mine.
Link to SteveC's thread: http://www.newhavendisplay.com/NHD_forum/index.php/topic,53.0.html
Link to older post with code: http://www.newhavendisplay.com/NHD_forum/index.php/topic,19.0.html

293
Since you're getting those voltages on pin 6 and 7, it seems that you have not successfully communicated with the display and issued the proper commands to turn on the booster circuit.  Also, the voltages on SCL and SDA are higher than the specification max limit for input high voltage (VDD).  At first guess, I would say this is the reason you are unable to communicate with the display.  Suggested pull-ups for SCL and SDA are 10kΩ on each line tied to 3.3V.  Also, what slave address are you using?  It should be 0x78 (or 0x3C shifted over one bit, for when you are using certain built-in I2C software modules such as the Arduino platform).

VDD and VSS are not switched, they are in the correct order as indicated in the spec.  The display runs on 3.3V, not 5V.

Lastly, have you referenced the code for this display I have posted here?: http://www.newhavendisplay.com/NHD_forum/index.php/topic,19.0.html

294
OLEDs / Re: NHD-0420DZW-AB5 Excessive Supply Current
« on: May 06, 2014, 12:10:50 PM »
You should have received an email from our engineering department regarding this, in response to the email you sent to nhtech@newhavendisplay.com.
If there are further questions you may reply back to the email you received.

295
Character LCDs / Re: NHD-0216K3Z-FL-GBW-V3 via SPI Help Requested
« on: May 06, 2014, 12:07:10 PM »
Thank you for sharing your corrections!

296
TFTs / Re: NHD-4.3-480272EF-ATXL#-CTP How to Start?:
« on: May 06, 2014, 12:06:15 PM »
Please see my reply to your other post here: http://www.newhavendisplay.com/NHD_forum/index.php/topic,51.0.html

297
Graphic LCDs / Re: Arduino MEGA 2560 + NHD240128
« on: May 06, 2014, 12:03:50 PM »
Thank you for sharing!

298
We sell controller boards that can be used with our displays.  For that 4.3" TFT, you can use the NHD-4.3-480272MF-20 Controller Board (link below):

http://www.newhavendisplay.com/nhd43480272mf20-controller-board-p-2657.html

The datasheet can be downloaded by accessing that link.  We also have example code available for it here:

http://www.newhavendisplay.com/app_notes/TFT_43M.txt

299
Character LCDs / Re: Driving backlight for NHD-C0220BiZ-FSRGB-FBW-3VM
« on: April 30, 2014, 02:56:28 PM »
The requested information is below:

Red LED Vf = 1.9V
Blue LED Vf = 3.0V
Green LED Vf = 3.0V

This information can also be seen in the mechanical drawing on page 3 of the display's datasheet.

300
TFTs / Re: newbie wants advice
« on: April 30, 2014, 02:46:33 PM »
Hello papalyle,

I do not know how much luminance is needed to expose photographic film, however if you are interested in our TFTs, the luminance rating is available in the optical characteristics section of the display's datasheet.  If this information is not of use to you, you may purchase a sample of the display from us and perform the testing you need to determine if it will work for your application.

-Mike

Pages: 1 ... 18 19 [20] 21 22 ... 24