Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Arduino Networking

You're reading from   Arduino Networking Connect your projects to the Web using the Arduino Ethernet library

Arrow left icon
Product type Paperback
Published in Aug 2014
Publisher
ISBN-13 9781783986866
Length 118 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Marco Schwartz Marco Schwartz
Author Profile Icon Marco Schwartz
Marco Schwartz
Arrow right icon
View More author details
Toc

Logging data on an SD card

Let's start with the first topic of this chapter—logging data on a SD card using the integrated SD card slot of the Ethernet shield. What we are going to do is perform some measurements on the Arduino board and log each of these measurements to the SD card in a simple text file.

However, compared to the project of the Chapter 2, Sending Data to a Web Server, we don't actually know the date when the measurement was taken. In the previous chapter, we simply used the date of the computer, but we don't have this information here. To get the time on the Arduino board, we are going to use another strategy. We are going to use the Ethernet shield to connect to an NTP time server, grab the time once when the Arduino sketch starts, and then use the Time library to track the time from there.

To learn more about the Time library, you can visit the following page on the Arduino website:

http://playground.arduino.cc/Code/Time

The process of logging data...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime