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:

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

Post by Sam37 »

Sam37 wrote:
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
Please

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,

How are you getting on, any joy?

I've had another look at the code compared to the Arduino library and haven't spotted any problems so far.

ProfSTI
Posts: 2
Joined: Thu Mar 02, 2017 3:38 pm
Contact:

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

Post by ProfSTI »

Hello,

We tried your last component library "lcd_Grove_I2C.fcpx" with the grove I2C LCD RGB backlight V4.0: It doesn't work!
After some investigations with simulation on ISIS, there is a problem with the initialization macro "START". By comparing the LCD datasheet with the frames generated, it appears that it lacks the "Entry Mode Set" instruction (see Page 14 of the JHD1214). https://seeeddoc.github.io/Grove-LCD_RG ... YG_1.0.pdf

Do not forget to connect 2 pull-up resistors on the SDA and SCL pins. Internal resistors can be used, but the oscillograph shows signals not very clean.

We redo the sequences of initializations and we arrived at the following program which works.

We hope this will solve the problem, and that you will update the library of the Grove I2C LCD component which is currently unusable.

Best regards
Attachments
INIT_I2C_LCD_OK.fcfx
(11.62 KiB) Downloaded 424 times

ProfSTI
Posts: 2
Joined: Thu Mar 02, 2017 3:38 pm
Contact:

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

Post by ProfSTI »

Hello
Did you update the 'START' macro? If so, can you update the library "lcd_Grove_I2C.fcpx" because we would like to use it with our students.
Thank you
Best regards

Proflolo
Posts: 19
Joined: Fri Dec 07, 2018 11:34 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

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

Post by Proflolo »

Profsti :
Bonjour,
J'écris en Francais :
Une solution pour utiliser le GROVE LCD RGB Backlight a-t-elle été trouvée ?
J'utilise Flowcode 8. et j'aimerai l'utiliser avec les élèves.
La simulation fonctionne mais pas sur l'arduino R3 avec Shield Grove
Merci
Bonne journée

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 »

Thanks for letting us know. I have had a go at fixing the problem and the latest version of the component is attached.
lcd_Grove_I2C.fcpx
(25.25 KiB) Downloaded 352 times
I've also rolled out the fix for v8 and it is available via the Help -> Check For Updates menu. Note you need to be running the latest 8.1 installation for the updates to work correctly.

J'ai également déployé le correctif pour la v8 et il est disponible via le menu Aide -> Rechercher les mises à jour. Notez que vous devez exécuter la dernière installation 8.1 pour que les mises à jour fonctionnent correctement.

Proflolo
Posts: 19
Joined: Fri Dec 07, 2018 11:34 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

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

Post by Proflolo »

Bonjour,
Merci pour la rapidité de votre réponse.
Nous sommes un lycée et nous avons la version 8.0.0.6..
La mise à jour vers la version 8.1 peut elle être faite avec l'aide de la version 8.0 ?
Merci

Proflolo
Posts: 19
Joined: Fri Dec 07, 2018 11:34 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

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

Post by Proflolo »

Bonjour,
nous avons placé la version 8.1 et la mise à jour du Grove-LCD RGB V4.0 I2C.
Mais cela ne fonctionne toujours pas.
Impossible de faire fonctionner l'écran qui fonctionne avec l'IDE en C.
Merci

Proflolo
Posts: 19
Joined: Fri Dec 07, 2018 11:34 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

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

Post by Proflolo »

Effectivement, cela fonctionne avec deux résistances Pull UP
"I placed two pull up resistor on the SCL and SDA"
Dommage que cela fonctionne sans aucune résistance avec l'IDE mais avec résistance avec Flowcode

Avez vous une solution puor le faire fonctionner directement sur shield Grove ?
Merci b cp pour votre aide

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 »

Bonjour,

Brilliant content que cela fonctionne correctement pour vous maintenant. Pouvez-vous me dire quel périphérique cible vous utilisez et quelles broches sont connectées à l'écran et je vous générerai le code C nécessaire pour activer les résistances de rappel internes sur ces broches.



Hello,

Brilliant glad it's working correctly for you now. Please can you tell me which target device you are using and what pins the display is connected to and I will generate you the C code required to enable the internal pull up resistors on those pins.

Proflolo
Posts: 19
Joined: Fri Dec 07, 2018 11:34 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

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

Post by Proflolo »

bonjour,

Il n'y a donc pas d'espoir pour que cela fonctionne sans "astuce" ou directement sur le shield grove ?
Merci pour votre aide.
J'utilise le GROVE LCD RGB Backlight v4.0. sur une Arduino Uno R3 PDIP
Les broches utilisées sont
SDA -->A5
SDL --> A4

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 »

Bonjour,

Seulement si vous montez les résistances de rappel externes sur les blindages.

J'ai bien peur que l'IDE Arduino fasse la même chose en coulisse.
Voici le code pour activer les tractions sur les pins Arduino A4 et A5.

Code: Select all

DDRC = 0x00;  //PortC est une entrée
PORTC = 0x30;  //Les bits PortC 4 et 5 activent le pull-up interne


Hello,

Only if you fit the external pull up resistors to the shields.

I'm afraid the Arduino IDE will be doing the same thing behind the scenes.
Here is the code to activate the pull ups on the Arduino pins A4 and A5.

Code: Select all

DDRC = 0x00;  //PortC is an input
PORTC = 0x30;  //PortC bits 4 and 5 activate internal pullup

Proflolo
Posts: 19
Joined: Fri Dec 07, 2018 11:34 am
Has thanked: 1 time
Been thanked: 1 time
Contact:

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

Post by Proflolo »

Bonjour,
Merci beaucoup pour votre aide et pour la rapidité de votre réponse.
Je n'ai pas encore essayé votre astuce. Je vous tiens au courant si cela fonctionne.

Post Reply