connecting i2c lcd screen

This forum is dedicated to all issues and questions related to your individual setups and configurations
Post Reply
serati
Posts: 5
Joined: Sun Aug 11, 2013 7:14 am

connecting i2c lcd screen

Post by serati »

Dear MultiWii community,

I bought the following lcd-screen:
http://www.hobbyking.com/hobbyking/store/__37409__Arduino_11C_12C_1602_Blue_Screen_LCD_Module.html

I connected pins for the i2c bus and connected the lcd to it.
Then i uncommented the following lines in config.h:
#define LCD_LCD03
#define LCD_TELEMETRY
#define LCD_TELEMETRY_AUTO "123452679"

Then I compiled the sketch and uploaded it.
Then, when I plug in the battery, the screen lights up, but does not display any text.
Also no text appears when I use the stick combinations to start the auto-telemetry.

I'm probably doing something minor wrong, but I don't have a clue what.
Can somebody help me with this?


Thanks in advance!

Regards,
Roel

serati
Posts: 5
Joined: Sun Aug 11, 2013 7:14 am

Re: connecting i2c lcd screen

Post by serati »

UPDATE:

after some searching I found that the lcd is the same as:
http://www.ebay.com/itm/Serial-IIC-I2C-TWI-1602-162-16X2-Character-LCD-Module-Display-For-Arduino-Blue-/180934118867

which has adress 0x27, so I changed the adress in my multiwii-code.
Now, at start-up it displays 0<- indicating that the adress is correct now.
However, when I try to start the telemetry, the screen starts flashing and behaving weirdly.
This leads me to suspect that the multiwii is sending the wrong commands.
Does anyone know how I can fix this?

BeringBullet
Posts: 27
Joined: Tue Nov 13, 2012 10:02 pm

Re: connecting i2c lcd screen

Post by BeringBullet »

I got my working, here is the thread.

viewtopic.php?f=18&t=4252

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: connecting i2c lcd screen

Post by Hamburger »

What makes you sure your lcd is of type lcd.lcd03?

serati
Posts: 5
Joined: Sun Aug 11, 2013 7:14 am

Re: connecting i2c lcd screen

Post by serati »

It looked most like the LCD03 and not any other i2c options.
but I'm afraid it uses a different protocol

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: connecting i2c lcd screen

Post by Hamburger »

I know there exists one chunk of lcds for which no basic support has been coded yet. I had bought one and found the existing library code not easy to carry over to MWii. Then I found the digole type available in small and real big sizes which I prefer.

Your best bet is to go to the vendors site and ask for example and library code. From there identify the type and hope it is already supported. Changing number of lines is simplest problem then.

robertha
Posts: 16
Joined: Sun Mar 17, 2013 10:12 pm

Re: connecting i2c lcd screen

Post by robertha »

This HK i2C display is compatible with DFRobot module I2C/TWI LCD1602 Module (SKU: DFR0063) - tested on my piece and with example and library from this link http://www.dfrobot.com/wiki/index.php/I ... U:_DFR0063), it is probably using different command set than LCD03, but I have no clue where to change what in Multiwii code.

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: connecting i2c lcd screen

Post by Hamburger »

If you want to go the easy route then check first which types of displays are supported.

Post Reply