SD Card Module
The SD Card Module is used to store any data to the Micro SD card. The module uses SPI communication to operate with the microcontroller and it has several applications such as data logger, playback data, reading data, and so on.
Figure 1: SD Card Module
The Schematic
The image below shows how the SD Card Module is connected to the Arduino Nano. Since the module uses SPI pins, they connect to the SPI pins on the Arduino Nano. In addition, the module uses 5V due to the level shifter IC.
Figure 2: The Schematic
How the code works
The video below shows how the values are displaying on the serial monitor. This is a simple LED brightness from 0 - 255, which is recorded from the SD Card module and saved in a file called "SD Card". The video below shows how the LED is behaving, which is just a simple brightness adjustment from the potentiometer.