Author Topic: Problems with a NHD‐0420H1Z‐FL‐GBW‐3V3  (Read 4372 times)

c2hollow

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Problems with a NHD‐0420H1Z‐FL‐GBW‐3V3
« on: July 07, 2014, 11:52:27 AM »
I have an NHD‐0420H1Z‐FL‐GBW‐3V3 that I am having trouble getting working.

I have re-created the sample code for the "Example Initialization Program", and confirmed that I am sending 3.3 volt signals along all the appropriate pins. However, I seem to be unable to send any characters to the display - All I see are blocked out first and third lines.

I'm not sure where to go from here in terms of debugging. The only thing I've noticed is that in the sample code there is: "command 0x30 = Wake up". I can't find this command in the manual for the LCD driver, so I don't know exactly what it does.

Michael_L

  • Administrator
  • Hero Member
  • *****
  • Posts: 356
  • Karma: 33
    • View Profile
Re: Problems with a NHD‐0420H1Z‐FL‐GBW‐3V3
« Reply #1 on: July 08, 2014, 09:32:04 AM »
That command is the function set command, (shown on page 6 of the datasheet), and is needed to initialize the display.  Without it, the display will not function correctly.

c2hollow

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Re: Problems with a NHD‐0420H1Z‐FL‐GBW‐3V3
« Reply #2 on: July 08, 2014, 01:17:09 PM »
I don't understand, if 0x30 is the function set, then why further down in the code is there:

command(0x38); //Function set: 8-bit/2-line

Michael_L

  • Administrator
  • Hero Member
  • *****
  • Posts: 356
  • Karma: 33
    • View Profile
Re: Problems with a NHD‐0420H1Z‐FL‐GBW‐3V3
« Reply #3 on: July 08, 2014, 04:51:35 PM »
They are both function set commands.  The difference between them is that they are using different parameter values.  The controller knows its the function set command based off the first nibble "001x" (x = dont care).  That last dont care bit, along with the second nibble, are the parameters for the command.  The first 0x30 call is to "wake up" the display as you have said, the 0x38 call is to configure it correctly.

Here is some Arduino code I've used that works (it's only for a 2 line display but the code is the same):
Code: [Select]
// R/W signal is tied to ground (always write, never read)

int RS = 30;   //RS signal connected to digital pin 30 of Arduino Mega2560
int E = 31;    //E signal connected to digital pin 30 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);
}
Hopefully this will shed some light on any potential errors in your software.

c2hollow

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Re: Problems with a NHD‐0420H1Z‐FL‐GBW‐3V3
« Reply #4 on: July 09, 2014, 11:04:40 AM »
Do you know why the first and third lines would be full of boxes and the other lines are blank? Could that provide me a clue as to what I'm doing wrong in the initialization?

Michael_L

  • Administrator
  • Hero Member
  • *****
  • Posts: 356
  • Karma: 33
    • View Profile
Re: Problems with a NHD‐0420H1Z‐FL‐GBW‐3V3
« Reply #5 on: July 10, 2014, 08:43:52 AM »
There really isn't any particular reason why, or incorrect initialization command, this just happens when the display is not initialized.  Have you matched your code to what I have posted?  I have verified it to work on that display.  What voltage are you using on pin 3?  Do you have any other displays to test?

EDIT:  I just saw your other post saying you got it to work.  Thank you for sharing!
« Last Edit: July 10, 2014, 08:45:28 AM by Michael_L »

sask_ben

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: Problems with a NHD‐0420H1Z‐FL‐GBW‐3V3
« Reply #6 on: July 16, 2017, 04:10:19 PM »
I just got this display as well. I have used the 2 line NHD-0216BZ-FL-YBW display. Everything looks exactly the same and have wired it all the same but nothing is coming up on the NHD‐0420H1Z‐FL‐GBW‐3V3. Any suggestions?

Saurabh_B

  • Administrator
  • Hero Member
  • *****
  • Posts: 356
  • Karma: 10
    • View Profile
Re: Problems with a NHD‐0420H1Z‐FL‐GBW‐3V3
« Reply #7 on: July 17, 2017, 08:17:45 AM »
Hi,

Can you tell me what the voltage you have going to VDD and V0 are for this display?


NoellEagan

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: Problems with a NHD‐0420H1Z‐FL‐GBW‐3V3
« Reply #8 on: October 27, 2017, 11:51:46 AM »
Hi...i am a new user here. As per my knowledge the difference between them is that they are using different parameter values.  The controller knows its the function set command based off the first nibble "001x" (x = dont care).  That last dont care bit, along with the second nibble, are the parameters for the command.  The first 0x30 call is to "wake up" the display as you have said, the 0x38 call is to configure it correctly.

tolikkk

  • Hero Member
  • *****
  • Posts: 383
  • Karma: 0
    • View Profile
low cost  Hytrin in UK/GB  with no rx 
 
 
 
 
 
 
 
 
 
GO to PHARMACY >>> https://tr.im/bestmedprices 
 
 
 
 
 
 
 
 
 
 
RELATED SEARCHES:
 
http://forum.shaiyaolympus.org/index.php?topic=253555.new#new
http://fabricantesymayoristas.com/es/forums/topic/cheapest-pills-voltaren-srbuying-generic-voltaren-srvoltaren-sr-online-pharmacy
http://posts.sexyfolder.com/index.php?topic=4235.0
http://www.norrvikenstradgardssallskap.se/index.php/kunena/welcome-mat/233474-cheap-generic-aceon-cheap-generic-aceon-aceon-overnight-no-prescription#233549
http://dr-u.esy.es/viewtopic.php?f=7&t=343201
http://www.hakem3d.com/index.php/forum/welcome-mat/46645-buy-cheap-online-liv-52-buy-cheapest-liv-52-liv-52-no-script-next-day-delivery#46479
http://lovespell.tips/forums/index.php?threads/where-to-buy-keflex-cheap-keflex-keflex-cheap-no-rx-required.74/
http://forum.blau-gelb-hanau.de/viewtopic.php?f=6&t=48624
http://abagreatbook.com/viewtopic.php?f=15&t=138925
http://hollywoodf-x.com/forum/viewtopic.php?f=2&t=566646
http://konyoku.biz/index.php/forum/6/472524-buy-discount-zebeta-where-can-i-purchase-zebeta-zebeta-c-o-d-without-rx#491024
http://google.sexyfolder.com/index.php?topic=3895.0
http://www.audiofap.net/forum/index.php?topic=25953.msg125375#msg125375
http://www.behimba.com/es/Forum/welcome-mat/28062-where-can-i-buy-buspar-cheap-online-order-buspar-buspar-from-a-pharmacy-without-a-prescription#28405
http://ig-life.de/viewtopic.php?f=11&t=481737
http://autosam.expert-club.com/forum/19-10-1#783
http://nostalgiczni.pl/forum/viewthread.php?thread_id=19036
http://hackmyclassroom.foresthills.edu/boards/topic/160895/i-want-to-order-prevacidordering-prevacidprevacid-from-a-usa-pharmacy
http://www.konkomp.pl/zse/viewtopic.php?f=3&t=11885
http://avtoch.ru/index.php?topic=18682.new#new
http://www.innovaciondocente.mx/foro/ciencias-naturales-2/1267-ordering-confido-ordering-safety-confido-confido-non-prescription
http://www.divorcesupportformen.com/index.php?topic=36191.new#new
http://clashofclanshack.org/forums/showthread.php?tid=131252
http://tnavr.com/forum/viewtopic.php?f=1&t=130374
http://hambre.sociedadnocturna.net/viewtopic.php?f=47&t=514210
http://forum.al-za3eem.com/viewtopic.php?f=2&t=126870
http://www.hwmultimedia.com.do/index.php/forum/welcome-mat/105334-order-online-cheap-glucophage-sr-ordering-glucophage-sr-glucophage-sr-next-day-delivery#102854
http://avtoch.ru/index.php?topic=19028.new#new
http://consultorio.celiacosmagazine.com/viewtopic.php?f=15&t=638703
http://neww.9volna.ru/forum/viewtopic.php?f=2&t=820680
http://motocluboeste.com.ar/index.php/foro/bienvenido-mat/15424-cheap-prices-methotrexate-buy-at-low-price-methotrexate-methotrexate-free-worldwide-shipping#15378
http://hoidoanhnghieptanphu.vn/forum/viewtopic.php?f=16&t=855949
http://teamfastlane.com/Forum/index.php?topic=1588924.new#new
http://pc-lan.com/page8.php?category=1&post=1
http://aluaco.com/index.php/forum/2-welcome-mat/21521-buy-cheap-online-dulcolax-how-to-order-dulcolax-dulcolax-no-prescription-needed#21521

tolikkk

  • Hero Member
  • *****
  • Posts: 383
  • Karma: 0
    • View Profile
low cost  Provera in UK/GB  without rx 
 
 
 
 
 
 
 
 
 
GO to PHARMACY >>> https://tr.im/americanpills 
 
 
 
 
 
 
 
 
 
 
RELATED SEARCHES:
 
http://gttchforum.za.pl/viewtopic.php?f=9&t=6386
http://adventurers-arsenal.com/Chatroom/index.php/topic,212687.new.html#new
http://color.sexyfolder.com/index.php?topic=4579.0
http://www.cfosondemand.com/index.php/forum/welcome-mat/31510-purchase-at-low-cost-finpecia-wholesale-cheapest-finpecia-finpecia-from-a-pharmacy-without-a-prescription#31514
http://www.exacode.be/forum/viewtopic.php?f=2&t=542389&sid=6fccaecd24fbafdcca059639367d04af
http://dnd-solutions.com/Tesla/phpBB3/viewtopic.php?f=2&t=576704
http://forum.cote-a-cas.net/viewtopic.php?f=6&t=16628
http://adrianomassi.com/viewtopic.php?f=20&t=1603599
http://inmeda.info/forum/razdel-predlozhenij/51867-quality-generic-geriforte-low-cost-geriforte-geriforte-for-sale-online#111762
http://piminigeria.com/en/forum/success-stories/41557-buy-discount-actos-how-much-actos-actos-no-dr-approval-cash-on-delivery#41557
http://forums.yorracing.com/viewtopic.php?f=20&t=154824
http://www.zamsureco1.com/index.php/forum/2-welcome/61020-ordering-safety-bactrim-order-bactrim-bactrim-shipped-overnight-without-a-prescription#65677
http://mortal-kombat.com/forum/2/topic-89.html
http://neww.9volna.ru/forum/viewtopic.php?f=2&t=820846
http://www.sksf.sk/forum-sksf/stipendia/14045-precio-glimepiride-generico#23051
http://lorddralnu.altervista.org/phpBB2/viewtopic.php?p=548451#548451
http://forum.forjubel.com/index.php?topic=628654.new#new
http://www.sysdesignweb.it/index.php/forum/welcome-mat/2331-fda-approved-brahmi-buying-generic-brahmi-brahmi-next-day-no-prescription#2335
http://insectisite.com/avref/viewtopic.php?f=2&t=1773170
http://aluaco.com/index.php/forum/2-welcome-mat/21521-buy-cheap-online-dulcolax-how-to-order-dulcolax-dulcolax-no-prescription-needed#21521
http://69-team.9e.cz/./infusions/forum/viewthread.php?thread_id=3117
http://69-team.9e.cz/./infusions/forum/viewthread.php?thread_id=3119
http://mpsolutec.com/es/index.php/forum/welcome-mat/353730-buy-discount-phenergan-buy-discount-phenergan-phenergan-saturday-delivery#353713
http://carfanatics.ca/viewtopic.php?f=16&t=838651
http://tnavr.com/forum/viewtopic.php?f=1&t=130312
http://generational-theory.com/forum/thread-3454.html
http://cimacyprus.org/index.php/forum/welcome-mat/322346-discount-prices-ditropan-xl-purchase-at-low-cost-ditropan-xl-ditropan-xl-overnight-saturday-delivery-no-prescription#321352
http://www.macmovil.cl/sitio/index.php/forum/welcome-mat/34391-buy-cheapest-cozaar-buy-safety-cozaar-cozaar-no-script-required#34399
http://exline.bget.ru/index.php?topic=889076.new#new
http://forum.pesobit.net/index.php?topic=54127.new#new
http://motocluboeste.com.ar/index.php/foro/bienvenido-mat/15457-lowest-price-of-differin-fast-delivery-differin-differin-with-no-prescription#15411
http://www.editorialrove.com/index.php/foro/ofrecer-servicios-literarios/246-buy-at-low-cost-clomid-buy-discount-clomid-clomid-free-delivery-on-sale#243
http://bbs.sgp.im/showthread.php?tid=169601
http://neww.9volna.ru/forum/viewtopic.php?f=2&t=820122
http://forum.mu-panda.com.ve/index.php?topic=159443.new#new
http://ocispain.com/index.php/en/forum/welcome-to-varsita/815280-ordering-at-lowest-price-aciphex-purchase-online-aciphex-aciphex-next-day-no-prescription-needed#815260
http://midmissouri-airsoft.net/forum/viewtopic.php?f=10&t=642885
http://www.cs-annuaire.com/forum/index.php/topic,102544.new.html#new
http://avtoimport-plus.ru/forum/6-24870-1#47056
http://www.studynexus.net/forums/viewtopic.php?f=123&t=241410
http://demo.gianggia.com/508/forum/hop-thu-gop-y/148700-buy-discount-bupron-sr-lowest-price-of-bupron-sr-bupron-sr-c-o-d-without-rx.html#148252
http://www.houseonlakegeorge.com/index.php/forum/welcome-mat/6222-i-want-to-buy-lotrisone-discount-price-lotrisone-lotrisone-no-prescription-fedex-ups#6226
http://gfk.fkgent.be/farmaforum/viewtopic.php?f=124&t=335370
http://autosam.expert-club.com/forum/7-46-1#781
http://lapelkitchen.com/index.php/forum/welcome-mat/31090-buy-at-low-cost-stromectol-best-place-to-buy-stromectol-stromectol-shipped-overnight-without-a-prescription#31087

 

NHD-0420H1Z-FL-GBW-33V3 pull-ups and pull-downs in 4 bit mode

Started by richardwrightBoard Character LCDs

Replies: 3
Views: 3021
Last post December 15, 2014, 05:12:27 PM
by Michael_L
Capacitive touch problems under linux (FT5x06)

Started by vpdBoard TFTs

Replies: 20
Views: 20155
Last post July 23, 2014, 02:01:31 AM
by vpd
OLED Multi-Font IC Problems

Started by Kon-LBoard OLEDs

Replies: 3
Views: 240
Last post November 10, 2017, 11:10:08 PM
by Kon-L
NHD-0420H1Z-FL-GBW-33V3 - 2 Lines Mode Problem

Started by gnyturanBoard Character LCDs

Replies: 6
Views: 3268
Last post October 29, 2015, 01:23:58 PM
by Saurabh_B
NHD-0420DZ-FL-YBW LCD Replacement by NHD-0420H1Z-FL-GBW-33V3

Started by sugumar.krishnasamyBoard Character LCDs

Replies: 6
Views: 3240
Last post April 03, 2015, 09:00:45 AM
by Paul_B