LCD Shield and free PIN

Hi !
I have buy a LCD shield for arduino : ( robotshop.com/eu/fr/blindage … ytron.html ) and I didn’t find which PIN can be used for other thinks (pilot LED for example).
There is no documentation… To init the LCD I use this line :
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

So we can suppose all other PINs of 4,5,6,7,8,9 can be used but for example when I use the PIN 3 the LCD cannot be used :confused:

I need your help please and sorry for my bad english, thanks.

I will try to rephrase : I need to use the LCD and 5 digitals PIN, which PINs can be used without conflict with the LCD ?

Hi,

First, we recommend that you check the documentation on the product page (RB-Cyt-73). You can find it under Useful Links.
Here is a direct link to the documentation.

According to the manufacturer, you need to use a modified library, not the standard LiquidCrystal library from Arduino.

From their schematic, you may notice that the device seems to use D4/D5/D6/D7 (4-bit data), D8 (RS), D9 (E), D10 (backlight) and A0 (buttons).

You can find the modified library here. They also offer another Arduino 1.0 compatible library here. You should probably also check out the user manual (check page 4 for pin listing) and the guide on using the modified 4-bit library.

Sincerely,

P.-S.: N’hésitez pas à répondre en français, si vous préférez! :slight_smile:

Bonjour, et merci pour votre réponse, effectivement le français va mieux me convenir :slight_smile:

J’ai bien mis a jour mon programme avec la librairie LCD4Bit mais je n’observe aucun changement :confused:
J’ai effectuer quelques mesures pour faire un état des lieu :

[table][tr][td] PIN[/td][td] 0[/td][td] 1[/td][td] 2[/td][td] 3[/td][td] 11[/td][td] 12[/td][td] 13[/td][/tr][tr][td] LOW[/td][td] 0[/td][td] 0[/td][td] 0[/td][td] 0[/td][td] 0[/td][td][highlight=#ff0000][highlight=#ffffff]2.4[/highlight]
[/highlight][/td][td][highlight=#ff0000] [highlight=#ffffff]0[/highlight]
[/highlight][/td][/tr][tr][td] HIGH[/td][td] 4.8[/td][td] 4.8[/td][td] 3.8
[/td][td] 3.8
[/td][td] 2.1
[/td][td] 4.5[/td][td] 2.1[/td][/tr][/table]
Il s’agit des valeurs des tensions aux bornes des PIN 0,1,2,3,11,12,13 lorsqu’elle sont aux états LOW ou HIGH avec l’écran est connecté à la carte.
J’ai mis en rouge les valeurs qui posent problèmes sachant que lorsque l’écran n’est pas connecté à la carte les valeurs sont toujours bonne (à savoir 0 V pour LOW et 4.9V pour HIGH).

Voici le code que j’ai utilisé pour ce test (même si je ne pense pas qu’il vous soit utile) :

[code]#include “LCD4Bit_mod.h”

LCD4Bit_mod lcd = LCD4Bit_mod(2);

void setup() {
// put your setup code here, to run once:
lcd.init();
lcd.clear();
lcd.printIn(“TEST”);

int state = HIGH; // ou LOW pour le test à l’état bas
pinMode(0, OUTPUT);
pinMode(1, OUTPUT);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
pinMode(13, OUTPUT);

digitalWrite(0, state);
digitalWrite(1, state);
digitalWrite(2, state);
digitalWrite(3, state);
digitalWrite(11, state);
digitalWrite(12, state);
digitalWrite(13, state);
}

void loop() {
// put your main code here, to run repeatedly:

}[/code]

Voila tous ce que je peux vous dire, j’espère que vous pourrez m’aider.

EDIT: petite précision, j’ai tenter de brancher l’ecran sans le connecter aux PIN 0,1,2,3,11,12,13 mais ce dernier ne fonctionne pas dans ce cas

J’ai résolu mon problème enfaite j’avais sans le vouloir fais pas mal de court circuit, car je pensais que les petits rond devant les PIN digital était relier à la PIN directement en face (ce qui n’est pas le cas).
PS : au final le programme marche très bien avec la librairie LiquidCrystal.

C’est de très bonnes nouvelles tout ça!

Bonne chance avec votre projet!

Cordialement,