Offline
Newbie
Karma: 0
Posts: 34
|
 |
« on: March 20, 2013, 11:25:38 pm » |
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
|
|
|
|
|
Logged
|
|
|
|
|
SE USA
Online
Faraday Member
Karma: 33
Posts: 3617
@ssh0le
|
 |
« Reply #1 on: March 21, 2013, 12:09:07 am » |
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
|
|
|
|
|
Logged
|
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
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 34
|
 |
« Reply #2 on: March 21, 2013, 12:22:23 am » |
both are spi
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 34
|
 |
« Reply #3 on: March 21, 2013, 12:35:50 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
SE USA
Online
Faraday Member
Karma: 33
Posts: 3617
@ssh0le
|
 |
« Reply #4 on: March 21, 2013, 12:37:55 am » |
CS = chip select, they go to different outputs of the arduino to select which device your talking to
|
|
|
|
|
Logged
|
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
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 34
|
 |
« Reply #5 on: March 21, 2013, 12:40:39 am » |
so i would be able to tell the arduino which device is on what pin for chip select?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 34
|
 |
« Reply #6 on: March 21, 2013, 12:48:46 am » |
and do i need a special shield for my i2c line sensor?
|
|
|
|
|
Logged
|
|
|
|
|
|