BL0032 20x4 liniers LCD display with I2C

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

Moderator: Benj

Post Reply
Monie Jacobsen
Posts: 484
Joined: Mon Jul 30, 2012 3:39 pm
Has thanked: 17 times
Been thanked: 46 times
Contact:

BL0032 20x4 liniers LCD display with I2C

Post by Monie Jacobsen »

Hello everyone
User: BL0032 - 16-Bit dsPIC

How do I get 20x4 liniers LCD display (HD44780) Module with I2C to work with BL0032?

Please see here: https://nettigo.eu/products/lcd-4x20-i2c-blue

Attach test code:
BL0032_Display4x20_I2C.fcfx
(8.07 KiB) Downloaded 205 times
Best Regard
Monie

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: BL0032 20x4 liniers LCD display with I2C

Post by Benj »

Hi Monie,

It looks like that display uses the PCF8574 IO expander to drive it. So you will likely need to use this component instead.
Display.jpg
Display.jpg (52.21 KiB) Viewed 3622 times
I beleive the backpack component uses the MCP23017 IO expander instead.

Monie Jacobsen
Posts: 484
Joined: Mon Jul 30, 2012 3:39 pm
Has thanked: 17 times
Been thanked: 46 times
Contact:

Re: BL0032 20x4 liniers LCD display with I2C

Post by Monie Jacobsen »

Hi Benj
Have tried PCF8574 IO expander to drive
Also tried MCP23017 IO expander instead
But can not get LCD I2C (Backpack) to work.
Do you have a suggestion?

Attachment file:
BL0032_Display4x20_I2C.fcfx
(9.36 KiB) Downloaded 213 times
Best Regard
Monie

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: BL0032 20x4 liniers LCD display with I2C

Post by Benj »

Hi Monie,

Have you tried the component I highlighted in the screenshot - LCD I2C (LCM1602)?

This has the PCF8574 code built into it. If this isn't working then do you have any example code to work from that I can compare with the component.

Monie Jacobsen
Posts: 484
Joined: Mon Jul 30, 2012 3:39 pm
Has thanked: 17 times
Been thanked: 46 times
Contact:

Re: BL0032 20x4 liniers LCD display with I2C

Post by Monie Jacobsen »

Hi Benj
I've been trying as you suggested, but without the hassle of anything on display.
User LCD I2C (LCM1602)...
Please refer to the codes below!
Do you want to help with a code example like writing for display whole to LCD 20x4 ;-)
Display connect to PORTF / C. Or do you have another suggestion?
See attachment:
BL0032_Display4x20_I2C.fcfx
(9.93 KiB) Downloaded 198 times
Best Regard
Monie

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: BL0032 20x4 liniers LCD display with I2C

Post by Jan Lichtenbelt »

Hi Monie,

Try to add a delay of at least 300 msec after the printstring.

Kind regards

Jan

Monie Jacobsen
Posts: 484
Joined: Mon Jul 30, 2012 3:39 pm
Has thanked: 17 times
Been thanked: 46 times
Contact:

Re: BL0032 20x4 liniers LCD display with I2C

Post by Monie Jacobsen »

Hi Jan Lichtenbelt

Thank you so much for the suggestion.

Found the error, tried to upload the wrong driver. :oops:
Now works BL0032 med LCD display with 4x20
Best Regard
Monie

Post Reply