0% found this document useful (0 votes)
9 views

Programming Arduino (1) Pages 180

Uploaded by

axl1994
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Programming Arduino (1) Pages 180

Uploaded by

axl1994
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

text that it contains in a large bold font.

The p tag is a paragraph tag, and so all


the text contained within it is displayed as a paragraph.
This really just scratches the surface of HTML. Many books and Internet
resources are available for learning about HTML.

Arduino Uno as a Web Server


The first example sketch simply uses the Arduino and Ethernet shield to make a
small Web server. It’s definitely not a Google server farm, but it will allow you
to send a Web request to your Arduino and view the results in a browser on your
computer. An alternative to Arduino Uno and Ethernet Shield is to use the
EtherTen board from Freetronics that conbines both Uno and shield into one
board that is compatible with the Uno and shield.
Before uploading sketch 10-01, you may want to make a change to the code.
If you look at the top of the sketch, you will see the following line:
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };

The mac address must be unique among all the devices connected to your
network.
Attach the Arduino to your computer using the USB lead and upload the
sketch. You can now disconnect the USB lead and attach the power supply to the
Arduino and the Ethernet lead.
Open the Serial Monitor of the Arduino IDE and you should see something
like Figure 10-3 telling you the IP address that has been allocated to your
Arduino by your network. Navigate to that IP address using your browser and
you should see a webpage like the one shown in Figure 10-4 .

You might also like