Pages: [1]   Go Down
Author Topic: Which pins to use for SPI communication of an "Arduino nano v3"?  (Read 2467 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Dear everybody,

I have an   arduino nano V3                     and trying to connect to an
                SPI LCD TFT Module with MicroSD
http://www.sainsmart.com/home-page-view/sainsmart-1-8-spi-lcd-module-with-microsd-led-backlight-for-arduino-mega-atmel-atmega.html[url=http://]]]http://www.sainsmart.com/home-page-view/sainsmart-1-8-spi-lcd-module-with-microsd-led-backlight-for-arduino-mega-atmel-atmega.html


After seeing all the post in arduino forum to find which pins to connect(miso,mosi,cslk,ss), I did not find anything but
[url=http://
http://arduino.cc/forum/index.php/topic,105052.msg787993.html#msg787993][url]]]]][url]]http://arduino.cc/forum/index.php/topic,105052.msg787993.html#msg787993[url]]][url][/url]


Could you tell me which pins to use in my nano for SPI communication(as a master)?
(Example    mosi=pin? miso=pin? sclk=pin? ss=pin?)

Also which pins to use of the SPI TFT LDC Module to pair it with nano?
(Example    nano's mosi pin  pairs with LCD's  miso pin?   or   nano's miso pin pairs with LCD's mosi pin?   etc.)

And at last can I use the both the LCD and the SD card with just with one and only arduino nano?


(What I am really trying to learn is how to use an arduino nano to load photos from the SD card  to the TFT screen. And preferably without burning anything)


Thank you all in advanced.
« Last Edit: November 13, 2012, 02:26:20 pm by xalpage » Logged

Seattle, WA USA
Online Online
Brattain Member
*****
Karma: 547
Posts: 45979
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Something wrong with going to the source?
http://arduino.cc/en/Main/ArduinoBoardNano
Quote
SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13 (SCK). These pins support SPI communication, which, although provided by the underlying hardware, is not currently included in the Arduino language.
But the SPI library does include the support.
Logged

Siena Italia
Offline Offline
Full Member
***
Karma: 2
Posts: 149
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

SS, also known as CS or "chip select" can be any available digital pin, and you can communicate with several SPI components by having each connected to a different pin for CS and having software pull one down to activate that component and pull the others up to disactivate the others.  All SPI devices share the same pins for the other 3.  Do read through the documentation for the Nano and for your display board, and work through the sample programs.  There are other shields around that have 2 SPI links, e.g. a CAN shield that also has a micro card slot, and there's lots of documentation and examples for that.
Ciao,
Lenny
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you for the response.
PaulS next time I should read the documentation more carefully.
LROBBINS you have been very helpful.
Logged

Pages: [1]   Go Up
Jump to: