Saving My Sensor data to Arduino

I am currently working on a fsr sensor data logger! I am building the logger on the arduino uno platform, but i plan on moving to an moteino platform to send my data wirelessly to my pc.

I have currently hit a road block. I want to save my serial data as a csv file locally on the arduino without using a sd card, and then every hour or so send the data to my other moteino/pc. I have researched thoroughly, but i do not understand how to save the csv file to the arduino without using an sd card.

The csv file format ( pressed/unpressed, time stamp).

Your help is greatly depreciated.

Thanks,
Shraavan997

Arduninos do not have file systems, so they have no concept of what a CSV file will look like. You can have CSV formatted data, but where you store it will depend on how much data you need to store, how often you are storing it, and whether or not it needs to survive a power cycle.

Or you can buy a cheap sd card module and 2-4 gb sd card and forget any extra hassle.

I plan on deploying 30 of these sensors, so the sd card approach gets expensive.
I would like to have csv formatted data, it does not have to survive a restart.
I would like one minute intervals, but i can mange 5 min intervals.

Thanks Arrch

shraavan97:
I plan on deploying 30 of these sensors, so the sd card approach gets expensive.
I would like to have csv formatted data, it does not have to survive a restart.
I would like one minute intervals, but i can mange 5 min intervals.

Thanks Arrch

You don't want to store the data in CSV format on the nodes, because that is going to be expensive on the memory. Keep it in binary form and only convert it to CSV when it's ready to get written to a file.

Tell us ALL your constraints:

  1. Need cheap solution (how much do you think will be cheap enough if you DO use sd card, $5 extra, $10 extra, or no no)
  2. Need 1 minute logging and caching one hour, how much data will there by in one hour? What happens if you can't upload data, cache more data needed?
  3. ...
  4. ...

If you are looking for cheap solutions to store data, but don't need a lot of storage, you can use an EEPROM module such as 24LC256, for 32KB of extra memory. If you are not using much of arduino's SRAM, store raw data in SRAM as Arrch said. There might be enough room. When you send data out, format them into CSV.

Arrch:

shraavan97:
I plan on deploying 30 of these sensors, so the sd card approach gets expensive.
I would like to have csv formatted data, it does not have to survive a restart.
I would like one minute intervals, but i can mange 5 min intervals.

Thanks Arrch

You don't want to store the data in CSV format on the nodes, because that is going to be expensive on the memory. Keep it in binary form and only convert it to CSV when it's ready to get written to a file.

go wireless and put an NRF24L01 on each sensor. Transmit the data back to your PC.

you can get the transceivers at about $1.50 ea.