Disclosure: Some of the links provided in this section are Amazon affiliate links. We may receive a commission for any purchases made through these links at no additional cost to you. Additionally, some of these links are for products from our own brand, DIYables .
Overview of Micro SD Card Module
If you are unfamiliar with the Micro SD Card Module, including its pinout, how it works, and how to program it, check out the Arduino Nano - Micro SD Card tutorial.
How It Works
Each key-value pair is stored on the Micro SD Card in its own line. The key and value are divided by an = sign. A newline character separates each key-value pair from the others.
The Arduino Nano code will search for the key and locate the associated value, storing it in a variable. The variable can be of type int, float, or String.
Wiring Diagram
You can use male-to-female jumper wires to connect the micro SD Card module to Arduino Nano
This image is created using Fritzing. Click to enlarge image
Or you can plug the micro SD Card module to breadboard and then use the male-to-male jumper wires
This image is created using Fritzing. Click to enlarge image
The Serial Monitor displays values from variables that are the same as those stored on the micro SD Card.
You can now alter the code in order to include additional variables.
※ NOTE THAT:
The code does not take into account the sequence of key-value pairs. It will search through the file from the start to the finish until the key is found.
Please feel free to share the link of this tutorial. However, Please do not use our content on any other websites. We invested a lot of effort and time to create the content, please respect our work!