Tutorial.DumpFile History

Hide minor edits - Show changes to markup

January 16, 2012, at 03:10 PM by David Cuartielles -
Changed line 30 from:
to:
March 18, 2011, at 04:09 PM by Scott Fitzgerald -
Added lines 11-12:
  • Formatted SD card with a file named "datalog.txt" containing some text
March 16, 2011, at 05:29 PM by Scott Fitzgerald -
Changed lines 23-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 you are using.

On our SD card, there is a file named "datalog.txt". In the loop(), we open the file by calling SD.open(). To send the file serially to our computer, we use Serial.print(), sending the contents of the file with SD.read().

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 you are using.

On the SD card, there is a file named "datalog.txt". In the loop(), the file is opened when calling SD.open(). To send the file serially to a computer, use Serial.print(), reading the contents of the file with SD.read().

Changed lines 33-34 from:
to:
March 14, 2011, at 02:30 AM by Scott Fitzgerald -
March 13, 2011, at 11:57 PM by Scott Fitzgerald -
Changed lines 23-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 you are using.

On our SD card, there is a file named "datalog.txt". In the loop(), we open the file by calling SD.open(). To send the file serially to our computer, we need use Serial.print(), sending the contents of the file with SD.read().

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.

On our SD card, there is a file named "datalog.txt". In the loop(), we open the file by calling SD.open(). To send the file serially to our computer, we use Serial.print(), sending the contents of the file with SD.read().

March 13, 2011, at 11:53 PM by Scott Fitzgerald -
Changed line 10 from:
  • SD card board
to:
  • Ethernet Shield (or other board with an SD slot)
Changed lines 15-19 from:
to:

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

None, but the Arduino has to have the Ethernet Shield and a USB cable connected to the computer.

March 13, 2011, at 11:50 PM by Scott Fitzgerald -
Changed line 15 from:
to:
March 13, 2011, at 11:48 PM by Scott Fitzgerald -
Added line 18:

Code

March 12, 2011, at 12:43 AM by Scott Fitzgerald -
Deleted line 10:
  • Breadboard or prototyping Board
March 12, 2011, at 12:42 AM by Scott Fitzgerald -
Deleted lines 16-24:
Changed lines 19-21 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.

On our SD card, there is a file named "datalog.txt". In the loop(), we open the file by calling SD.open(). To send the file serially to our computer, we need use Serial.print(), sending the contents of the file with SD.read().

March 12, 2011, at 12:35 AM by Scott Fitzgerald -
Changed lines 5-6 from:
 This example shows how to read a file from a SD card using the SD library and send it over the serial port. Please click here for more information on the SD library. 
to:

This example shows how to read a file from a SD card using the SD library and send it over the serial port. Please click here for more information on the SD library.

February 24, 2011, at 12:18 AM by Scott Fitzgerald -
Changed lines 3-6 from:

Using the SD library to log data

This example shows how to use the SD card Library to log data from three analog sensors to a SD card. Please click here for more information on the SD library.

to:

Using the SD library to retrieve information over a serial port

 This example shows how to read a file from a SD card using the SD library and send it over the serial port. Please click here for more information on the SD library. 
February 24, 2011, at 12:17 AM by Scott Fitzgerald - Page Created
Added lines 1-38:

Share