SD Card and Arduino Nano

In a follow up to my last post I decided that since I was integrating these sensors on a Nano I should actually prove that as well.

I took to the Arduino Nano schematic so I could figure out which pins are which.

I don’t remember where I found this PNG (one of the Aruino forum posts), but here’s a nice detailed image of the Nano.

Alright, with all of that, let’s wire this up and get to the code (which will be a very fast tutorial).

Fortunately for us this build follows the pin recommendations that are inside the Datalogger sketch save one: CS – pin 4 should be 10

Remember this from the last post:
CS – Chip Select
VCC – 3.3v
CLK – Clock
GND – Ground

CS goes to pin 10 (D10)
D1 – MOSI – to pin 11 (D11)
D0 – MISO – to pin 12 (D12)
CLK – to pin 13 (D13 – opposite side of the board from D12)
when you’re done go into the Datalogger sketch and change one line:
const int chipSelect = 4; to const int chipSelect = 10;

then compile and upload.  Fire up the serial monitor when you’re done and watch the numbers scroll like they did on the Mega.

Now it’s time to wire up the bluetooth HC-05 and OLED, load data from the SD card and then display it on the OLED.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: