Notifications
Clear all

Arduino 1602 display help

32 Posts
5 Users
1 Reactions
255 Views
TFMcCarthy
(@tfmccarthy)
Member
Joined: 7 months ago
Posts: 279
 

@zander 

Something about the links on these pages is afoul. I got the same 404. Dunno why.

Might be my parens.

Try again: 

https://github.com/johnrickman/LiquidCrystal_I2C

 

The one who has the most fun, wins!


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 8046
 

@tfmccarthy This is the one you didn't catch. I make at least 3 authors, for identical library in at least 4 locations, only ONE of which is 'official' which is Ver 1.1.2 and is inside the IDE, no need to get from github.

Screenshot 2025 01 14 at 21.57.44

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 8046
 

@tfmccarthy The original link had a ) at the end. That author is not the author of the official library, and it has been moved to 

Screenshot 2025 01 14 at 22.03.59

PLUS, the library.properties is for the OFFICAL library of Frank de Brabander, BUT the version number appears to have been reset when Frank's was adopted by Arduino as the Official Library.

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 8046
 

@tfmccarthy Here is a very revealing screen grab and there is even more that might interest those trying to grok how Arduino does things. I will point out a few things of not on the screen grab. First a total of 21 libraries for LCD display, this one has ben forked 399 times, the author is Frank, the maintainer is Marco (both makes agree with what I saw earlier) and is Ver 1.1.2.

 

Screenshot 2025 01 14 at 22.14.35

 

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 8046
 

@tfmccarthy Just an FYI, here is a screen from the Arduino docs, it is a page of Library entries filtered on Display first and Liquid second. I think this is an accurate page as I see dates and is probably generated by a crawler app that gathers all the info from the actual files.

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
TFMcCarthy
(@tfmccarthy)
Member
Joined: 7 months ago
Posts: 279
 

@zander 

I'm missing something.

Here's a screenshot of the doc page with the link

LiquidCrystal I2C page

The author and maintainer names match what's on the github properties file.

Either that's not the doc page or the link on the page is wrong. And that github repository isn't archived like the others are.

The one who has the most fun, wins!


   
ReplyQuote
TFMcCarthy
(@tfmccarthy)
Member
Joined: 7 months ago
Posts: 279
 

@zander

Posted by: @zander

here is a screen from the Arduino docs,

Where's a screen?

Ron, we should stop here. We're tripping over our feet.

The one who has the most fun, wins!


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 8046
 

@tfmccarthy That has the same info I just posted. The official ver is 1.1.2 and author is Frank Brabander. It looks like we are finally seeing the same thing.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 8046
 

@tfmccarthy Oops. I just wanted to make sure nobody following this thread got the wrong info you inadvertently posted.

EDIT: Now I see why you were on the wrong trail, the GOTO REPOSITORY link is WRONG!!!

Screenshot 2025 01 14 at 22.19.01
This post was modified 4 weeks ago by Ron

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 8046
 

@tfmccarthy Let me wrap this up in a bow Tim. Indeed you were right that the Arduino docs are wrong in this case (and I suspect more) The repository the text is linked to is the wrong author and a different library. The Ver, Author, Maintainer are all correct. Now I see why we thought the other was looking at something wrong. It was Arduino that messed both of us up. Thanks for uncovering that. As long as you Install the library from the Library Manager you will get the correct one. The second screen grab shows the Author the Repository link points to, the real author version number is highlighted in the first pic. I will report the issue to the Arduino support folks.

Screenshot 2025 01 14 at 22.41.33
Screenshot 2025 01 14 at 22.41.52

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
(@davemorris)
Member
Joined: 4 years ago
Posts: 34
Topic starter  

@zander  Ron, I figured out how to get it working, but now my only issue is the backlighting on the display is not even, it is a little wavy almost like there is a grounding issue going on, and if I adjust the backlight level so that it is a nice blue background with bright white letters, only the first few characters on the left side are visible. I tried it with two different displays with the same result. I am running it connected to an Arduino nano which is powered by a 6v power supply going into the GND and Vin pins on the nano. Should I power the display straight from the power supply? Or is there something else that would cause the display to not look right? 

it’s been a long time since I have worked with the Arduino and the programming is giving me a bit of a headache.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 8046
 

@davemorris In almost all cases always power the MCU/MPU separate from displays, motors, even sensors unless you know for sure they draw only 10ma.

Did you fix the Hellow World bug? It may also be tripping you up.

p.s. There is a second minor bug, the init method is called twice, only once is needed.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 8046
 

@davemorris I assume you are using this library

Screenshot 2025 01 14 at 23.31.36

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 4 years ago
Posts: 8046
 

@davemorris Do you know you have to adjust the pot on the back so that the backlight doesn't wash out any characters?

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, 360, fairly knowledge in PC plus numerous MPU's & MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
(@bits2bots)
Member
Joined: 4 weeks ago
Posts: 6
 

There is a contrast control on the back of the board. As I recall its a small potentiometer so maybe jewelers screwdriver size screwhead. With the unit powered up turn the control until you get the contrast you like.


   
ReplyQuote
Page 2 / 3