Page 1 of 2

Connect Grove LCD RGB to Base Shield on a Arduino

Posted: Fri Dec 02, 2016 10:03 am
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.

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

Posted: Fri Dec 02, 2016 11:10 am
by Benj
Hi Sam,

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

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

Posted: Fri Dec 02, 2016 12:06 pm
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

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

Posted: Fri Dec 02, 2016 12:11 pm
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.

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

Posted: Sat Dec 03, 2016 10:52 pm
by Sam37
The file ^^

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

Posted: Sun Dec 04, 2016 5:04 pm
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 ?

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

Posted: Sun Dec 04, 2016 6:12 pm
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

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

Posted: Mon Dec 05, 2016 12:30 pm
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.

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

Posted: Mon Dec 05, 2016 1:09 pm
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 443 times
Let me know how you get on.

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

Posted: Mon Dec 05, 2016 11:11 pm
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 ^^

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

Posted: Tue Dec 06, 2016 10:05 am
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 17586 times
IMG_20161206_095908.jpg
IMG_20161206_095908.jpg (99.07 KiB) Viewed 17586 times

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

Posted: Tue Dec 06, 2016 11:36 am
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.

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

Posted: Tue Dec 06, 2016 12:24 pm
by Benj
Right hopefully this component will work correctly for you.
lcd_Grove_I2C.fcpx
(25.54 KiB) Downloaded 366 times
Let me know how you get on.

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

Posted: Tue Dec 06, 2016 12:58 pm
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

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

Posted: Thu Dec 08, 2016 10:21 am
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

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

Posted: Thu Dec 08, 2016 11:44 am
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.

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

Posted: Thu Dec 08, 2016 1:05 pm
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)

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

Posted: Thu Dec 08, 2016 1:58 pm
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.

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

Posted: Thu Dec 08, 2016 2:01 pm
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 320 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

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

Posted: Fri Dec 09, 2016 9:35 am
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

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

Posted: Wed Dec 21, 2016 4:27 pm
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

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

Posted: Wed Dec 21, 2016 10:01 pm
by kersing
Please resize pictures to normal (800x600 max) dimensions before posting. These pictures are far to large.

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

Posted: Wed Dec 21, 2016 10:37 pm
by Sam37
kersing wrote:Please resize pictures to normal (800x600 max) dimensions before posting. These pictures are far to large.

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

Posted: Thu Dec 22, 2016 1:47 pm
by Benj
maybe try an LCD address of 62 rather than 124 and see if that makes any difference.
Did you try this?

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

Posted: Thu Dec 22, 2016 3:28 pm
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