Notifications
Clear all

LCD Displays: 1602 and 2004. 2004 Support?

13 Posts
5 Users
1 Likes
4,042 Views
JoeLyddon
(@joelyddon)
Member
Joined: 5 years ago
Posts: 157
Topic starter  

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
Joined: 5 years ago
Posts: 1669
 
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)
Member
Joined: 5 years ago
Posts: 324
 

@joelyddon

They are the same

 


   
ReplyQuote
JoeLyddon
(@joelyddon)
Member
Joined: 5 years ago
Posts: 157
Topic starter  

@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)
Member
Joined: 5 years ago
Posts: 157
Topic starter  
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)
Member
Joined: 5 years ago
Posts: 324
 

@joelyddon

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


   
ReplyQuote
JoeLyddon
(@joelyddon)
Member
Joined: 5 years ago
Posts: 157
Topic starter  

@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)
Member
Joined: 5 years ago
Posts: 355
 

@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)
Member
Joined: 5 years ago
Posts: 1
 

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)
Member
Joined: 5 years ago
Posts: 355
 

@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 reacted
ReplyQuote
JoeLyddon
(@joelyddon)
Member
Joined: 5 years ago
Posts: 157
Topic starter  

@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)
Member
Joined: 5 years ago
Posts: 157
Topic starter  

@olinovid

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

Welcome aboard!

 

Have Fun,
Joe Lyddon

www.woodworkstuff.net


   
ReplyQuote
JoeLyddon
(@joelyddon)
Member
Joined: 5 years ago
Posts: 157
Topic starter  

@zeferby

I2C...  I think...

 

Have Fun,
Joe Lyddon

www.woodworkstuff.net


   
ReplyQuote