Reading 12 rows of data from an SD card every minute and storing the data into Arrays using Gboard pro Arduino Answered
Hi, I am working on a project that measures temperature and current, store it on an SD card (csv file) and send them to a website. I decided to sample the signals every 5 seconds and store the data to the SD card using time interrupt (TimerOne). My plan is to sample and store data for 1 minute and then read the sampled data from the SD card and store them into 2 Arrays i.e Array1 for temperature and Array2 for the current and send the data to the website.
Thus far I have managed to sample and store the data using the time interrupt. I also included a count variable in the interrupt subroutine so as to know how many times the interrupt has occurred. Since I am sampling and storing the data every 5 seconds and I want to read the data stored in the SD card every minute, so when count = 12 I would like to read the last 12 readings (24 since its current and temperature ) and store them into 2 Arrays. The problem I have is that I do not know how to read the data from the SD card and store them into two Arrays and would like your help.
Note: the Reading of the SD card will not be in the Interrupt subroutine
Any help or suggestions will be highly appreciated.