Author Topic: I2C LCD with arduino  (Read 1766 times)

0 Members and 1 Guest are viewing this topic.

Offline Dan MoosTopic starter

  • Frequent Contributor
  • **
  • Posts: 357
  • Country: us
I2C LCD with arduino
« on: March 21, 2016, 03:04:34 am »
I cant seem to find an I2C LCD library that works. Help!

Wish I could offer more details, but Ive spent hours with libraries who's examples won't compile (syntax errors with types and the like), or just make the backlight flash, and nothing else.

I have SDA on analog pin 4
I have SCL on analog pin 5

I have Vcc on +5v
I have GND on GND

I feel dumb that I cant find the solution to what has to be a pretty common task.
 

Offline alsetalokin4017

  • Super Contributor
  • ***
  • Posts: 2055
  • Country: us
Re: I2C LCD with arduino
« Reply #1 on: March 21, 2016, 04:08:57 am »
The easiest person to fool is yourself. -- Richard Feynman
 

Offline Dan MoosTopic starter

  • Frequent Contributor
  • **
  • Posts: 357
  • Country: us
Re: I2C LCD with arduino
« Reply #2 on: March 21, 2016, 06:20:29 am »
Yeah, that was one of the first libraries I tried. It gave me really weird behavior, especially a frantically blinking back light. Almost like the pins were mis-mapped in the software. Its the one I most wanted to have work too, since it was a drop in replacement for the stock, I2C-less library the IDE comes with.

I did find a library that worked. I stumbled onto the library manager in the IDE and found one that seems to do what it should. So Solved I guess.

I do wish I could get the one you pointed me to going though, as it seems like a more convenient solution if I could get it to work.
 

Offline obiwanjacobi

  • Frequent Contributor
  • **
  • Posts: 988
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Re: I2C LCD with arduino
« Reply #3 on: March 21, 2016, 06:52:41 am »
You have just experienced one of the design problems with most Arduino Libraries. They almost all mix different responsibilities in a single library, namely the knowledge of the LCD (HD44780) protocol and how it is physically connected to the Arduino. This means that you almost always have to hack into libraries to make the work with your specific setup. This will also deter you from updating to a newer (and possibly better) version because of the changes you've made.

But don't be discouraged. There is a lot of info to be found and a lot of people are working on code for the Arduino. The good stuff will rise to the surface.

Good luck with your project.

PS: In my Arduino Template Library (see signature) I attempt to solve this. But this C++ template library is not for the beginner.
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf