LCD not working | Arduino Compatible Compiler for LabVIEW Discussions | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 4 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
LCD not working
May 27, 2015
6:50 pm
Avatar
hawk72
Member
Forum Posts: 5
Member Since:
May 27, 2015
sp_UserOfflineSmall Offline

Hello,

I have a "little" problem with my LCD-Dispay (no output).

 

http://www.pollin.de/shop/down.....10145B.PDF

 

It's like the saintsmart LCD2004-adapter Board with PCF8574(P)

 

When i tried to run I2C - 2 Line Example (the adress and dataline configuration is adopted to my adapterboard) i've no output on LCD and no Output on SCL/SDA-Lines. I tried the I2C - Master Example and SCL/SDA-Output is ok. I tried all LCD-Example but no output on SCL/SDA. 

Then I testet the LCD with the Arduino-IDE and the LCD is working nice (with LiquidCrystal_I2C.h -> F Malpartida's NewLiquidCrystal library) 

Now I need some help to run the LCD with Labview

Norbert

May 27, 2015
7:07 pm
Avatar
Steffan
Admin
Forum Posts: 305
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Only the Sainsmart LCD2004's have officially been tested.  However, if the interface is the same then it may work.  Did you make sure you have the I2C address set correctly for this display?  When you say there is no SCL/SDA output are you actually looking at it on a scope?  Can you post your modified VI?

May 27, 2015
7:37 pm
Avatar
hawk72
Member
Forum Posts: 5
Member Since:
May 27, 2015
sp_UserOfflineSmall Offline

The I2C adress is correct (64/40hex) is use the adress also in the Arduino-IDE it was ok. Yes I looking the SCL/SDA on a scope. The VI is attached, ignore the LCD referenz "1" 

I think that i can see SCL/SDA without LCD-Module like the I2C-Master Example ...

 

I use Ardunio 1.6.4 and Arduino 1.0.0.15 Compiler / LV2014SP1

May 27, 2015
8:02 pm
Avatar
Steffan
Admin
Forum Posts: 305
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

You have switched around some of the LCD pins in this example such as EN, R/W, RS, etc.  Can you zip your Arduino code and library you are using that works and post?  Again, this is not a supported LCD so there may not be much I can do without physically having the hardware.  But if you give me the Arduino code that seems to work I can take a look for you.

May 27, 2015
8:29 pm
Avatar
hawk72
Member
Forum Posts: 5
Member Since:
May 27, 2015
sp_UserOfflineSmall Offline

Thanks for the help. I send you tomorrow the code when I'm at the right PC.

May 28, 2015
8:53 am
Avatar
hawk72
Member
Forum Posts: 5
Member Since:
May 27, 2015
sp_UserOfflineSmall Offline

I've attached the working Arduino Code.  

May 28, 2015
7:16 pm
Avatar
Steffan
Admin
Forum Posts: 305
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

You are using the wrong I2C address.  If you look at the code it is 0x40 shifted right by one bit:

#define I2C_ADDR    0x40 >> 1 // I2C-Addresse

Therefore, you should be using 0x20 or Decimal 32 as the address, not 64. 

May 29, 2015
11:07 am
Avatar
hawk72
Member
Forum Posts: 5
Member Since:
May 27, 2015
sp_UserOfflineSmall Offline

Thx's for the help. 

The address 0x20 was the solution. I have used the addresses from the table on the converter board and they were wrong. I should have actually see it on the oscilloscope as it has the 0x20 ID displayed when the Arduino sketch was runnig.

Now it's working fine :o)

Norbert

May 29, 2015
4:00 pm
Avatar
Steffan
Admin
Forum Posts: 305
Member Since:
March 12, 2015
sp_UserOfflineSmall Offline

Ok, glad to hear.  Thanks for posting back.

Forum Timezone: UTC 0

Most Users Ever Online: 33

Currently Online:
3 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

John: 18

RTSLVU: 15

Dan6077: 11

Member Stats:

Guest Posters: 0

Members: 80

Moderators: 0

Admins: 3

Forum Stats:

Groups: 1

Forums: 2

Topics: 58

Posts: 289

Newest Members: Travlissah, viktorIcera, HowardClouG, Dianecet, Produktnaodchudzaniex

Administrators: geadmin: 5, filipealtoe: 35, Steffan: 89