EasyManuals Logo

Arduino uno User Manual

Arduino uno
311 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #195 background imageLoading...
Page #195 background image
More Fun with Networking Arduinos
Wearables and e-textiles are getting more and more popular, and theyre still a good
way to impress your colleagues and friends. Different types of interactive T-shirts are
available in every well-stocked geek shop. Some of them show the current Wi-Fi
strength, while others come with a full-blown built-in electronic rock guitar.
With an Arduino LilyPad,
a
a Bluetooth dongle, and an Android phone, you can build
a T-shirt that displays the current number of unread emails in your inbox.
b
Not only can you show the number of unread email messages, you can also use the
LilyPad and an XBee module to teach children important information about bees and
their behavior.
c
a.
http://arduino.cc/en/Main/ArduinoBoardLilyPad
b.
http://blog.makezine.com/2010/03/30/email-counting-t-shirt/
c.
http://www.instructables.com/id/Interactive-Bee-Game/
Ethernet/TimeServerDnsDhcp/TimeServerDnsDhcp.ino
#include <SPI.h>
Line 1
#include <Ethernet.h>
-
-
const unsigned int BAUD_RATE = 9600;
-
const unsigned int DAYTIME_PORT = 13;
5
-
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
-
char* time_server = "time.nist.gov";
-
EthernetClient client;
-
10
void setup() {
-
Serial.begin(BAUD_RATE);
-
if (Ethernet.begin(mac) == 0) {
-
for (;;) {
-
Serial.println("Could not obtain an IP address using DHCP.");
15
delay(1000);
-
}
-
} else {
-
print_ip_address(Ethernet.localIP());
-
}
20
}
-
-
-
void loop() {
-
delay(1000);
25
Serial.print("Connecting...");
-
if (client.connect(time_server, DAYTIME_PORT) <= 0) {
-
Serial.println("connection failed.");
-
} else {
-
Serial.println("connected.");
30
Chapter 10. Networking with Arduino 178
report erratum discuss
www.it-ebooks.info

Table of Contents

Other manuals for Arduino uno

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Arduino uno and is the answer not in the manual?

Arduino uno Specifications

General IconGeneral
Form factorArduino
CertificationRoHS, FC, CE
Processor model-
Processor frequency- MHz
Microcontroller modelATmega328
Microcontroller frequency16 MHz
DC input voltage7-12 V
Operating voltage5 V
DC current per I/O pin40 mA
Flash memory0.032 MB
Maximum internal memory- GB
SRAM (Static Random Access Memory)2 KB
EEPROM (Electrically Erasable Programmable Read-Only Memory)1 KB
Wi-FiNo
Number of analog I/O pins6
Number of digital I/O pins14
Weight and Dimensions IconWeight and Dimensions
Board dimensions53.4 x 68.6 mm

Related product manuals