Skip to main content

Posts

Showing posts with the label data logging

Day 23: Intro to C++ | Data Logging with SD Cards

Lab: Data Logging with SD Cards SD Cards Nonvolatile memory, useful for storing info Can both write data to a file and read existing information from SD card Before doing anything, we first needed to format the SD card. It was quite simple to do, I simply right-clicked the card under "My Computer"and selected the format option. Since the card I was using was 4GB, I used FAT32 for the file system type. Then I just clicked start to format it.  Interfacing with Arduino SD cards are 3.3V devices SPI: Serial Peripheral Interface bus. SD communication utilizes this Arduino comes with SD library, which abstracts away lower-level SPI communication and allows user to easily read and write files on SD card SD Card SPI Interface Pins Used: MOSI: Master Output, Slave Input.  MISO: Master Input, Slave Output SCLK: Serial Clock CS: Chip Select Writing to an SD Card Now it was time to actually take a shot at writing data to an SD card. I followed all...