Pages: [1]   Go Down
Author Topic: LCD and SD CARD  (Read 780 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 29
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ?
Logged

France
Offline Offline
God Member
*****
Karma: 4
Posts: 972
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

If you have something like that for your LCD :
Code:
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:
const int chipSelect = 10; 

Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 39
Posts: 4393
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

... and if you have something like this
Code:
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.


Don

Logged

0
Offline Offline
Shannon Member
****
Karma: 215
Posts: 12455
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

[ I won't respond to messages, use the forum please ]

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 39
Posts: 4393
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
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.

Don
Logged

Pages: [1]   Go Up
Jump to: