Connect Grove LCD RGB to Base Shield on a Arduino

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

Moderator: Benj

Sam37
Posts: 14
Joined: Fri Dec 02, 2016 9:52 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

Connect Grove LCD RGB to Base Shield on a Arduino

Post by Sam37 »

I want to print on grove lcd number on I2C port on base shield, all this on arduino Uno PDIP but not work, after the transfer on the card it does not show me anything, the voltage is well on 5V.

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: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Benj »

Hi Sam,

Please can you attach your program and I will investigate for you.

Sam37
Posts: 14
Joined: Fri Dec 02, 2016 9:52 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Sam37 »

Benj wrote:Hi Sam,

Please can you attach your program and I will investigate for you.
Hey, I thought I had put it, and I do not have access to my pc, but it's just a program to test the screen, with a button and the LCD

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: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Benj »

Hello,

The program you're using will help a lot, it shows what chip you're using, your configuration settings, the specific LCD component etc. Just helps for us to rule out the easy stuff before having to dig into the more complicated specifics.

Attach it when you can and we will investigate.

Sam37
Posts: 14
Joined: Fri Dec 02, 2016 9:52 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Sam37 »

The file ^^
Attachments
test.fcfx
(6.8 KiB) Downloaded 423 times

Sam37
Posts: 14
Joined: Fri Dec 02, 2016 9:52 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Sam37 »

Benj wrote:Hello,

The program you're using will help a lot, it shows what chip you're using, your configuration settings, the specific LCD component etc. Just helps for us to rule out the easy stuff before having to dig into the more complicated specifics.

Attach it when you can and we will investigate.
So ? Have you a idea ?

User avatar
QMESAR
Valued Contributor
Valued Contributor
Posts: 1287
Joined: Sun Oct 05, 2014 3:20 pm
Location: Russia
Has thanked: 384 times
Been thanked: 614 times
Contact:

Re: Connect Grove LCD RGB to Base Shield on a Arduino

Post by QMESAR »

Sam37 wrote: So ? Have you a idea ?
Have a bit of patience it is Sunday, MATRIX staff as most other people in the world does not work on Sundays :D

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: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Benj »

Hello,

Right you're currently using the I2C LCD component which is meant for LCDs using the standard I2C Backpack.

For example.
https://www.adafruit.com/product/292

The Grove modules require asynchronous serial (UART) not I2C so that's probably why the code isn't working for you.

We have a plan to look at supporting the Grove modules in the near future.

In the mean time I will see if I can knock something together for you so you can use the display.

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: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Benj »

Right here is a new and untested component for the Grove display.

Simply add the component to your installation by copying the attached file to your "Flowcode 7/components" directory before starting Flowcode and the new component will appear in the displays component category.
lcd_Grove.fcpx
(25.14 KiB) Downloaded 436 times
Let me know how you get on.

Sam37
Posts: 14
Joined: Fri Dec 02, 2016 9:52 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Sam37 »

Benj wrote:Right here is a new and untested component for the Grove display.

Simply add the component to your installation by copying the attached file to your "Flowcode 7/components" directory before starting Flowcode and the new component will appear in the displays component category.
lcd_Grove.fcpx
Let me know how you get on.
Thank I try tomorrow ^^

Sam37
Posts: 14
Joined: Fri Dec 02, 2016 9:52 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Sam37 »

Benj wrote:Right here is a new and untested component for the Grove display.

Simply add the component to your installation by copying the attached file to your "Flowcode 7/components" directory before starting Flowcode and the new component will appear in the displays component category.
The attachment lcd_Grove.fcpx is no longer available
Let me know how you get on.
Not work
IMG_20161206_095836.jpg
IMG_20161206_095836.jpg (115.33 KiB) Viewed 17430 times
IMG_20161206_095908.jpg
IMG_20161206_095908.jpg (99.07 KiB) Viewed 17430 times

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: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Benj »

The component I made was for the serial version, I'll have another go now at the I2C version. I didn't even know they had I2C grove modules.

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: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Benj »

Right hopefully this component will work correctly for you.
lcd_Grove_I2C.fcpx
(25.54 KiB) Downloaded 362 times
Let me know how you get on.

Sam37
Posts: 14
Joined: Fri Dec 02, 2016 9:52 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Sam37 »

Benj wrote:Right hopefully this component will work correctly for you.
lcd_Grove_I2C.fcpx
Let me know how you get on.
Thank I'll try thursday

Sam37
Posts: 14
Joined: Fri Dec 02, 2016 9:52 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Sam37 »

Benj wrote:Right hopefully this component will work correctly for you.
The attachment lcd_Grove_I2C.fcpx is no longer available
Let me know how you get on.
Not work
Attachments
IMG_20161208_101737.jpg
IMG_20161208_101737.jpg (139.54 KiB) Viewed 17363 times

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: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Benj »

Hi Sam,

Please can you send me your program so we can double check there is nothing wrong there.

Also when you upload images please can you reduce the pixel size a bit, I'm reducing the pixel width to 640 to allow the image to be seen.

Sam37
Posts: 14
Joined: Fri Dec 02, 2016 9:52 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Sam37 »

Benj wrote:Hi Sam,

Please can you send me your program so we can double check there is nothing wrong there.

Also when you upload images please can you reduce the pixel size a bit, I'm reducing the pixel width to 640 to allow the image to be seen.
Ok, sorry but i send from my phone ^^ (for picture)
Attachments
test.fcfx
(5.75 KiB) Downloaded 327 times

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: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Benj »

Hello,

Thanks for the file. There may be a way on your phone to edit the image dimensions either when you take the photo or before you attach the file. Just makes it easier to look at what's going on.

Looking at the code, maybe try an LCD address of 62 rather than 124 and see if that makes any difference.

Everything else seems to look ok.

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: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Benj »

Aha found a minor problem that the I2C address is different for the backlight.

So this should now be fixed but might also need to be divided by 2 to work correctly.
lcd_Grove_I2C.fcpx
(25.2 KiB) Downloaded 315 times
The grove library looks like this which suggests the divide by 2 is needed.

#define LCD_ADDRESS (0x7c>>1)
#define RGB_ADDRESS (0xc4>>1)

(0x7c>>1) = 62
(0xc4>>1) = 98

Sam37
Posts: 14
Joined: Fri Dec 02, 2016 9:52 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Sam37 »

Benj wrote:Aha found a minor problem that the I2C address is different for the backlight.

So this should now be fixed but might also need to be divided by 2 to work correctly.
lcd_Grove_I2C.fcpx
The grove library looks like this which suggests the divide by 2 is needed.

#define LCD_ADDRESS (0x7c>>1)
#define RGB_ADDRESS (0xc4>>1)

(0x7c>>1) = 62
(0xc4>>1) = 98
Divised by 2 ? 2 i2c module in flowcode ? I must change lcd and rgb adress with 62 and 98 ? For now i have try with your NEW i2c module without division and with change of adress and not work, thank for ll i wait your answer

Sam37
Posts: 14
Joined: Fri Dec 02, 2016 9:52 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Sam37 »

I have buy a alternative arduino kit with a right lcd i2c, today i can try it, when i retry tpvuse a i2c lcd, not work
Attachments
test.fcfx
(5.84 KiB) Downloaded 263 times
Last edited by EtsDriver on Sun Jan 01, 2017 9:59 am, edited 2 times in total.
Reason: Removed images which were too large, better ones posted below by user.

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: Connect Grove LCD RGB to Base Shield on a Arduino

Post by kersing »

Please resize pictures to normal (800x600 max) dimensions before posting. These pictures are far to large.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

Sam37
Posts: 14
Joined: Fri Dec 02, 2016 9:52 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Sam37 »

kersing wrote:Please resize pictures to normal (800x600 max) dimensions before posting. These pictures are far to large.
Attachments
test.fcfx
(5.84 KiB) Downloaded 255 times
IMG_20161221_160844.jpg
IMG_20161221_160844.jpg (144.89 KiB) Viewed 16927 times
IMG_20161221_160049.jpg
(257.24 KiB) Downloaded 2177 times

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: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Benj »

maybe try an LCD address of 62 rather than 124 and see if that makes any difference.
Did you try this?

Sam37
Posts: 14
Joined: Fri Dec 02, 2016 9:52 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Connect Grove LCD RGB to Base Shield on a Arduino

Post by Sam37 »

Benj wrote:
maybe try an LCD address of 62 rather than 124 and see if that makes any difference.
Did you try this?
Where did you find 124, i have in i2c config 32, i'll try 64 and 124 and not work

Post Reply