Go Down

Topic: Micro SD and LCD display (Read 862 times) previous topic - next topic

MillerJLee98579

i am trying to build a robot with 2 servo, 3 sensors, an lcd display and a micro sd breakout board for data logging. my problem is i am not sure how to connect both my display and sd card since the appear to use the same pins

Osgeld

same pins? as in...

if they are SPI there should be a enable pin for each device, turn on the one you want to talk to and your good
if they are i2c then the whole thing happens as an address request
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL


MillerJLee98579

micro sd has these pins - 5v, 3v, GND, CLK, DO, D1, CS, CD

128x32 SPI OLED has these pins- GND, 3.3v, VIN, DATA, CLK, D/C< RST, CS

Osgeld

CS = chip select, they go to different outputs of the arduino to select which device your talking to
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL

MillerJLee98579

so i would be able to tell the arduino which device is on what pin for chip select?

MillerJLee98579

and do i need a special shield for my i2c line sensor?

Go Up