Data Logger Shield acts as Arduino Shield via 1Sheeld

Buy 1Sheeld
1Sheeld Data logger shield acts as Arduino SD Card shield

Use the memory of your smart phone to log the any data (eg. an ultrasonic sensor) with Arduino, you can then export the data in CSV format.

Special shields allow your Arduino board to use some capabilities your smartphone can do, like playing music, taking a picture, getting notifications, accessing the clock data and using the touch screen for various functions. Learn more from the special shields tutorial.

Data Logger library allows your Arduino board to log data from sensors (whether exists on your phone or individual Hardware sensors dealt directly with Arduino) or even peripherals and saving the readings with time in a spreadsheet on your smartphone’s memory card.

Adding #define CUSTOM_SETTINGS along with #define INCLUDE_DATA_LOGGER_SHIELD is a key that will let you unlock the Data Logger shield only amongst all shields and prevent 1Sheeld library from eating your memory specially for UNO board.

Note

For Android M(6) or greater, there are permissions to be granted before using the Data Logger shield, please make sure to grant the permissions or else it may affect the application’s performance.

 

void start(void)

Creates a spreadsheet file to log the data into with unspecified file name.

SYNTAX
Logger.start( );

RETURNS
None.

PARAMETERS
None, file will be saved with auto name given by system.

USAGE
Logger.start();

 

void start(const char *,bool)

-Creates a spreadsheet file to log the data into, given a certain name to the file.
-Has an option to append new data to previously saved files by giving the file name.(this functionality currently supported by IOS application only)

SYNTAX
Logger.start(fileName,true);

RETURNS
None.

PARAMETERS
-1st parameter takes the name of file as an array of bytes.
-2nd parameter takes a true or false value to add new data to old files.(false by default)

USAGE
Logger.start(“myFile”);

 

void start(String,bool)

-Creates a spreadsheet file to log the data into, given a certain name to the file.
-Has an option to append new data to previously saved files by giving the file name.(this functionality currently supported by IOS application only)

SYNTAX
Logger.start(fileName,true);

RETURNS
None.

PARAMETERS
-1st parameter takes the name of file as a string object.
-2nd parameter takes a true or false value to add new data to old files.(false by default)

USAGE
String fileName = “myFile”;
Logger.start(fileName);

 

void stop(void)

Stops logging data onto the certain file and save the file into the smartphone’s memory.

SYNTAX
Logger.stop( );

RETURNS
None.

PARAMETERS
None.

USAGE
Logger.stop();

 

void add(const char*,float)

Creates a new column (if not existed before) and adds float data in it each time called.

SYNTAX
Logger.add(keyName,value);

RETURNS
None.

PARAMETERS
-1st Parameter takes a keyword which identify the logged data as an array of bytes.
-2nd Parameter takes the value to be logged.

USAGE
Logger.add(“MicValue”, Mic.getValue());

 

void add(String,float)

Creates a new column (if not existed before) and adds float data in it each time called.

SYNTAX
Logger.add(key,value);

RETURNS
None.

PARAMETERS
-1st Parameter takes a keyword which identify the logged data as String object.
-2nd Parameter takes the value to be logged.

USAGE
String keyName = “MicValue”;
Logger.add(keyName ,Mic.getValue());

 

void add(const char *,const char *)

Creates a new column (if not existed before) and adds char array data in it each time called.

SYNTAX
Logger.add(key,data);

RETURNS
None.

PARAMETERS
-1st Parameter takes a keyword which identify the logged data as an array of bytes.
-2nd Parameter takes the data to be logged as array of bytes.

USAGE
Logger.add("keyName","data");

 

void add(String,String)

Creates a new column (if not existed before) and adds string object data in it each time called

SYNTAX
Logger.add(key,data);

RETURNS
None.

PARAMETERS
-1st Parameter takes a keyword which identify the logged data as String object.
-2nd Parameter takes the data to be logged as String object.

USAGE
String keyName = “ClassA”;
String data = “StudentName”;
Logger.add( keyName ,data);

 

void log(void)

Jumps to a new row so that Logger.add( ) function adds a new data in columns.

SYNTAX
Logger.log( );

RETURNS
None.

PARAMETERS
None.

USAGE
Logger.log();