Forum >LCD Display TWI/I2C + leonardo board
ArduinoGeneral

LCD Display TWI/I2C + leonardo board

userHead mrbbp 2012-10-30 08:14:51 6663 Views6 Replies
Hello,

i've tried the 1602 module with the SCL,SDA,AREF,GND from the board (after the pin N°13)...
It's impossible to have a good init.

i've tried the custom char and helloword sketch and i've just have as result a white bar (fist line)...
i've tried with a sketch of mine that work on a different board and an other 1602 I2C module.
It seems :

- custom characters does'n't init correctly (alien draw)
- all the code use in the init() function does not work...

in my sketch, i use regular lcd.print() and it work (except customs chars)...

I was thinking it was about the lcd module and test it with different boards and work fine.
The problem seems to come from the Leonardo board.
i testes with 9v power source and nothing better...

i'll try on the analogic pin as usual ...

Am i the only one to have these prob?
2012-12-21 22:09:16 have to rewire... and test again. (have a second leonardo) :o
i'll do during christmas vacation

I'm agree, it's strange, it does work only on the leonardo.
userHeadPic mrbbp
2012-12-21 19:51:39 @mrbbp
:o It's really strange because we just try to drive the module with our Leonardo with Xbee R3. It works properly.
I guess the software should be fine considering that you can drive it with the lilypad. And the I2C library is based on Arduino wire library. So the compatibility of the software for the Leonardo should be ok!

Would you like to post a hardware connection picture?
userHeadPic Lauren
2012-12-21 10:39:51 Am I alone with this strange pb?

Does anyone have tried the module with a LEonardo?

regards

éric
userHeadPic mrbbp
2012-10-30 23:47:55 I made with both: SDA & SCL labeled on the board and pin D2 & D3...
same problem

i've used a lilypad with the lcd and sketch works fine.

seems to come from Leonardo ! :-\
userHeadPic mrbbp
2012-10-30 17:05:29 Hi,




Have you tried to connect the SDA and SCL pins of the LCD directly to the Leonardo's SDA and SCL pins. The Leonardo provides these extra pins and they are labeled as such. Let me know your results. I will try testing one of our LCDs with a Leo
userHeadPic Hector
2012-10-30 09:37:04 On Leonardo, and 32u4 , pin mapping for sda and scl are different.

use digital pin 2 and 3.

The lcd does not respond correctly.

i've read a similar pb with and other i2C backpack
[url=http://electronics.stackexchange.com/questions/36571/lcd-not-work-with-leonardo]http://electronics.stackexchange.com/questions/36571/lcd-not-work-with-leonardo[/url]
but no constructive answers.
userHeadPic mrbbp