Bug on I2C lCD

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
ylanchec
Posts: 54
Joined: Mon Jan 14, 2013 10:14 pm
Has thanked: 2 times
Been thanked: 2 times
Contact:

Bug on I2C lCD

Post by ylanchec »

Hi,
I have open an existing working project from FC7 to FC8.
But now the I2C LCD does not works.
The LCD is a DFRobot (with PCF8574) and the card is a MEGA.
sch.png
(39.7 KiB) Downloaded 1475 times
I have compare the i2c dialog on both cases :
Good (on FC7) :
good_i2c.png
(114.08 KiB) Downloaded 1475 times
Bad (on FC8) :
bad_i2c.png
(115.69 KiB) Downloaded 1475 times
As you cas see there is a value added each time.
Best regards
Yannick

User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

Re: Bug on I2C lCD

Post by Jan Lichtenbelt »

Hi ylanchec

RW should always be at 0V (or GND). It is better to remove the conenction to P1 of the microchip.

Kind regards

Jan Lichtenbelt

ylanchec
Posts: 54
Joined: Mon Jan 14, 2013 10:14 pm
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: Bug on I2C lCD

Post by ylanchec »

Hi Jan,
Of course i can connect RW to GND in Proteus, but on the real card i can't modify this.
The bug seems to comes from the i2c dialog, there are too many bytes in the command. (the last byte)
Best regards
Yannick

User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

Re: Bug on I2C lCD

Post by Jan Lichtenbelt »

Dear ylanchec

Show us the flowcode and perhaps someone can help you with the software

Kind regards

Jan

ylanchec
Posts: 54
Joined: Mon Jan 14, 2013 10:14 pm
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: Bug on I2C lCD

Post by ylanchec »

Hi Jan,
You will find here a zip file including :
- 1 simple fc7 writing "hello" on a LCD I2C --> HEX file
- the same file renamed and opened with fc8 --> HEX file
- proteus 8.8 file with Arduino mega linked to fc7 hex --> WORKING
- proteus 8.8 file with Arduino mega linked to fc8 hex --> NOT WORKING
The problem is the i2c dialog... not good on lcd on fc8 !
Test_LCD_I2C_FC7_FC8.zip
(93.36 KiB) Downloaded 199 times
Best Regards
Yannick

ylanchec
Posts: 54
Joined: Mon Jan 14, 2013 10:14 pm
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: Bug on I2C lCD

Post by ylanchec »

Software FC7 and FC8
logfc8.png
(124.84 KiB) Downloaded 1381 times
logfc7.png
(128.83 KiB) Downloaded 1381 times

ylanchec
Posts: 54
Joined: Mon Jan 14, 2013 10:14 pm
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: Bug on I2C lCD

Post by ylanchec »

On proteus 8.8
fc7.png
(261.96 KiB) Downloaded 1381 times
fc8.png
(282 KiB) Downloaded 1381 times
On FC8 there is too many bytes in a dialog !

ylanchec
Posts: 54
Joined: Mon Jan 14, 2013 10:14 pm
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: Bug on I2C lCD

Post by ylanchec »

Good :
fc72.png
(6.87 KiB) Downloaded 1381 times
Bad : a 0x00 is immediatly sent after the good value !
fc82.png
(13.56 KiB) Downloaded 1381 times
Best regards
Yannick

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Bug on I2C lCD

Post by Benj »

Hi Yannick,

I've posted a new version of the v8 component to the update system now. It contains a new property to decide if the backlight is controlled via the main display communication. When set to "No" this should be identical to the v7 component.

Let us know how you get on.

Hopefully the problem is with Proteus and the v8 component would have worked fine with actual hardware. Can you confirm if you have tried on hardware or not and how you got on.

ylanchec
Posts: 54
Joined: Mon Jan 14, 2013 10:14 pm
Has thanked: 2 times
Been thanked: 2 times
Contact:

Re: Bug on I2C lCD

Post by ylanchec »

Hi Benj,
Thank you for your quick response.
I have tested your new update and it's ok on proteus.
I'm going to test on a real LCD at job in few days. You means that the second sent byte is a problem only on proteus ?
On a classical I2C LCD the back light is connected to P3 of 8574.
How is connected the back light on yours ?
Thank you.
Yannick

Post Reply