Go Down

Topic: LCD and SD CARD (Read 1 time) previous topic - next topic


Hi all,

i have this sd card reader : http://dx.com/p/sd-card-reading-writing-module-for-arduino-deep-blue-142121

and a lcd ; http://www.gotronic.fr/art-afficheur-lcd16216sbh-2236.htm

I manage to plus them on my arduino uno separately, but i cant put them working at the same time.

They share miso and modi ports, i dont know how to make them share these ports.

The lcd can display 2 sensors datas, the card reader can read the sd card, but with 2 differents sketches. When i mix the two sketches, the lcd print DDDDDDDDDDD ou fffffffffffffffff

But i still can read datas on the serial monitor.

They are plugged on  breadboard.

Any idea ?



If you have something like that for your LCD :
Code: [Select]
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
Don't use pin 4 to drive SD CS pin, but pin 10 ,for instance, if that pin is free :
Code: [Select]
const int chipSelect = 10; 


... and if you have something like this
Code: [Select]
LiquidCrystal lcd(7,8,9,6,5,0);
then the Serial Monitor is conflicting with your LCD.

Without being able to see your code we are just guessing.



Usually you can share the SCLK, MISO and MOSI lines of the SPI bus between devices so long as different CS signals are used
for each device.

However this can fail if the devices need different clock phase/sense.  You must ensure that at most one CS line is active (LOW) at
a time.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]


They share miso and modi ports, i dont know how to make them share these ports.

The datasheet for the LCD16216SBH indicates that it has a standard 16 pin parallel interface.  So it appears that there is some more missing information.


Go Up