Tutorial.Datalogger History

Hide minor edits - Show changes to markup

September 03, 2015, at 08:41 AM by Simone Maiocchi -
Changed line 62 from:
  • Listfiles - how print out the files in a directory on a SD card.
to:
  • Listfiles - How print out the files in a directory on a SD card.
September 03, 2015, at 08:34 AM by Simone Maiocchi -
Changed lines 1-6 from:
to:
Added line 59:
  • CardInfo - Get info about your SD card.
Deleted line 63:
  • CardInfo - Get info about your SD card.
August 17, 2015, at 04:57 PM by Simone Maiocchi -
Changed line 37 from:
to:

Code

Changed lines 49-51 from:
to:

See Also


  • DumpFile - How to read a file from the SD card.
  • Files - How to create and destroy an SD card file.
  • Listfiles - how print out the files in a directory on a SD card.
  • ReadWrite - How to read and write data to and from an SD card.
  • CardInfo - Get info about your SD card.


Last revision 2015/08/17 by SM

August 17, 2015, at 04:56 PM by Simone Maiocchi -
Changed lines 1-4 from:

Examples > SD Datalogger

Using the SD library to log data

to:
Changed lines 13-15 from:
  • Three analog sensors
  • Arduino board
  • SD card board
to:
  • Arduino or Genuino board
  • Ethernet Shield (or other board with an SD slot)
  • 3 10k ohm potentiometers
  • hook-up wires
  • breadboard
Changed lines 23-25 from:
to:
Added lines 27-34:

The Arduino or Genuino board has to be connected to the Ethernet Shield. The three potentiometers may be substituted with other analog sensors, to be wired according to their interfacing techniques.

Schematics

image developed using Fritzing. For more circuit examples, see the Fritzing project page

Added line 37:
December 05, 2011, at 08:52 AM by Federico -
Changed lines 18-19 from:
to:
December 05, 2011, at 08:47 AM by Federico -
Changed line 31 from:
to:
March 18, 2011, at 06:04 PM by Tom Igoe -
Changed lines 24-25 from:

The code below is configured for use with an Ethernet shield, which has an onboard SD slot. In the setup(), we call SD.begin(), naming pin 4 as the CS pin. This pin varies depending on the make of shield or board.

to:

The code below is configured for use with an Ethernet shield, which has an onboard SD slot. In the setup(), call SD.begin(), naming pin 4 as the CS pin. This pin varies depending on the make of shield or board.

March 18, 2011, at 04:10 PM by Scott Fitzgerald -
Changed line 12 from:
  • Breadboard or prototyping Board
to:
  • Formatted SD card
March 16, 2011, at 07:55 PM by Scott Fitzgerald -
March 16, 2011, at 05:23 PM by Scott Fitzgerald -
Changed lines 36-37 from:
to:
March 16, 2011, at 05:08 PM by Scott Fitzgerald -
Changed lines 24-28 from:

The code below is configured for use with an Ethernet shield, which has an onboard SD slot. In the setup(), we call SD.begin(), naming pin 4 as the CS pin. This pin varies depending on the make of shield or board you are using.

In the loop(), a String is created to hold the information from three analog sensors. We iterate through the sensors, adding their data to the string.

Next, we open the file on the SD card using SD.open(). Once available, we write the data and close it to save the information.

to:

The code below is configured for use with an Ethernet shield, which has an onboard SD slot. In the setup(), we call SD.begin(), naming pin 4 as the CS pin. This pin varies depending on the make of shield or board.

In the loop(), a String is created to hold the information from three analog sensors. The code iterates through the sensors, adding their data to the string.

Next, the file on the SD card is opened by calling SD.open(). Once available, the data is written to the card when dataFile.println() is used. The file must be closed with dataFile.close() to save the information.

March 11, 2011, at 11:12 PM by Scott Fitzgerald -
Changed lines 18-19 from:
to:
Deleted lines 23-27:
March 11, 2011, at 02:04 PM by Scott Fitzgerald -
Changed lines 29-31 from:

In the code below, the Arduino starts out by setting the SCP1000's configuration registers in the setup(). In the main loop,it sets the sensor to read in high resolution mode, meaning that it will return a 19-bit value for the pressure reading, and 16 bits for the temperature. The actual reading in degrees Celsius is the 16-bit result divided by 20.

Then it reads the temperature's two bytes. Once it's got the temperature, it reads the pressure in two parts. First it reads the highest three bits, then the lower 16 bits. It combines these two into one single long integer by bit shifting the high bits then using a bitwise OR to combine them with the lower 16 bits. The actual humidity in Pascals is the 19-bit result divide by 4.

to:

The code below is configured for use with an Ethernet shield, which has an onboard SD slot. In the setup(), we call SD.begin(), naming pin 4 as the CS pin. This pin varies depending on the make of shield or board you are using.

In the loop(), a String is created to hold the information from three analog sensors. We iterate through the sensors, adding their data to the string.

Next, we open the file on the SD card using SD.open(). Once available, we write the data and close it to save the information.

February 24, 2011, at 12:16 AM by Scott Fitzgerald -
Changed lines 39-40 from:
to:
February 24, 2011, at 12:12 AM by Scott Fitzgerald - Page created
Added lines 1-39:

Share