Notifications
Clear all

LCD Displays: 1602 and 2004. 2004 Support?  

  RSS

JoeLyddon
(@joelyddon)
Reputable Member
Joined: 1 year ago
Posts: 320
2019-10-07 12:01 am  

I want to use the 2004 LCD display & have it ordered... the 2004 is 4 rows of 20 chars.

I look at the Reference Library for LCD...  all I see is stuff for the 1602...

When I ordered, it said Arduino Compatible for the 2004.

I can't find ANYTHING in the supporting Library about the 2004.

Is it supported? 

If so, how? 

Another Library for it?

Example instructions for the 2004?

Thank you very much for your help...

 

Have Fun,
Joe Lyddon

www.woodworkstuff.net


Quote
Robo Pi
(@robo-pi)
Robotics Engineer Moderator
Joined: 1 year ago
Posts: 1788
2019-10-07 1:47 am  
Posted by: @joelyddon

Example instructions for the 2004?

I don't know anything about it, but after reading your post I Googled LCD 2004 Arduino and came up with a bunch of stuff, including the following 3 YouTube videos just on the first page.

I haven't watched these.  Neither do I have a clue exactly what you are looking for.   This was so easy to find surely it must not be what you are looking for?

DroneBot Workshop Robotics Engineer
James


ReplyQuote
triform
(@triform)
Reputable Member
Joined: 1 year ago
Posts: 330
2019-10-07 1:56 am  

@joelyddon

They are the same

 


ReplyQuote
JoeLyddon
(@joelyddon)
Reputable Member
Joined: 1 year ago
Posts: 320
2019-10-07 2:03 am  

@robo-pi

YES!

This is exactly what I was looking for!

I missed the Forest for the Trees...  forgetting about Google... !  🙁  duh...

Thank you very much...  This helps a lot!

 

Have Fun,
Joe Lyddon

www.woodworkstuff.net


ReplyQuote
JoeLyddon
(@joelyddon)
Reputable Member
Joined: 1 year ago
Posts: 320
2019-10-07 2:15 am  
Posted by: @triform

@joelyddon

They are the same

 

Are you saying that I could just Use & Code for the 2004 from the 1602 examples?

Just refer to 2004 positions and have it work just fine?!

If so, I wish someone would have said so!!

That would be too good to be true...  usually, there is a GOTCHA...  right?  🙂  😀

Thank you...  I hope you are right...  We shall see, in a few days, Thanks to the China Holiday Week...

 

 

 

Have Fun,
Joe Lyddon

www.woodworkstuff.net


ReplyQuote
triform
(@triform)
Reputable Member
Joined: 1 year ago
Posts: 330
2019-10-07 2:20 am  

@joelyddon

One is 16x2 and the other 20x4, but the same pins and registers.


ReplyQuote
JoeLyddon
(@joelyddon)
Reputable Member
Joined: 1 year ago
Posts: 320
2019-10-07 5:10 am  

@triform

OK, are you saying I can just pretend it's 20x04 and expect it to work?!

Just use it AS IF it was 2004 and be done with it?

I hope you are right...  I will let you know when I get it and TRY it...   🙂

Thank you...  I really hope you're right!

 

 

Have Fun,
Joe Lyddon

www.woodworkstuff.net


ReplyQuote
ZeFerby
(@zeferby)
Reputable Member
Joined: 1 year ago
Posts: 380
2019-10-07 11:29 am  

@joelyddon

You'll have to initialize the LCD2004 in setup() with :

 lcd.begin(20,4);

 

And before setup() in your sketch, depending on the I2C module you have, you may have to adjust the following (my I2C module, pre-installed at the back of the LCD2004, is a PCF8574T in SO16 form factor) :

 

// Define LCD pinout
const int en = 2, rw = 1, rs = 0, d4 = 4, d5 = 5, d6 = 6, d7 = 7, bl = 3;

// Define LCD I2C Address - change if required
const int i2c_addr = 0x27;

LiquidCrystal_I2C lcd(i2c_addr, en, rw, rs, d4, d5, d6, d7, bl, POSITIVE);

Here is an example I edited for my LCD2004 from Bill's demo :

 

Eric


ReplyQuote
OlinOvid
(@olinovid)
New Member
Joined: 12 months ago
Posts: 1
2019-10-07 5:47 pm  

Hi..I just tried the Generic module with know luck. 1602 works and 2004 does not? I looked at the limited info from ebay and it says the the units are universal. However the module looks very similar to the sain smart unit. I then looked back on the Sain smart website and this unit is universal. Does any one have any ideas? Maybe I have a defective unit?

 

ReplyQuote
ZeFerby
(@zeferby)
Reputable Member
Joined: 1 year ago
Posts: 380
2019-10-07 6:08 pm  

@olinovid Could you give  bit more info on what you tried ? Is it an LCD with an I2C module ?

If so, remember to first check the I2C address with the I2CScanner sketch from Bill's article and video https://dronebotworkshop.com/lcd-displays-arduino/

Eric


JoeLyddon liked
ReplyQuote
JoeLyddon
(@joelyddon)
Reputable Member
Joined: 1 year ago
Posts: 320
2019-10-07 6:42 pm  

@zeferby

Eric,

Thank you very VERY much!

That is what I was looking for...  I knew something special HAD to happen to go from 1602 to 2004...  🙂

 

Have Fun,
Joe Lyddon

www.woodworkstuff.net


ReplyQuote
JoeLyddon
(@joelyddon)
Reputable Member
Joined: 1 year ago
Posts: 320
2019-10-07 6:44 pm  

@olinovid

Check out ZeFerby post just ahead of yours...  🙂

Welcome aboard!

 

Have Fun,
Joe Lyddon

www.woodworkstuff.net


ReplyQuote
JoeLyddon
(@joelyddon)
Reputable Member
Joined: 1 year ago
Posts: 320
2019-10-07 6:51 pm  

@zeferby

I2C...  I think...

 

Have Fun,
Joe Lyddon

www.woodworkstuff.net


ReplyQuote