---
title: "Arduino & Ethernet Shield"
url: "https://maker.wiznet.io/irina/projects/arduino-ethernet-shield/"
markdown_url: "https://maker.wiznet.io/irina/projects/arduino-ethernet-shield/md"
type: "UCC: User Created Content"
author: "irina"
author_url: "https://maker.wiznet.io/irina/"
original_url: "https://learn.sparkfun.com/tutorials/pushing-data-to-datasparkfuncom/arduino--ethernet-shield"
published: "2023-02-02"
language: "en"
likes: 8
views: 431
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Arduino & Ethernet Shield

> Arduino & Ethernet Shield

Original source: https://learn.sparkfun.com/tutorials/pushing-data-to-datasparkfuncom/arduino--ethernet-shield

## Article

### Arduino Example Circuit

We'll use this circuit for all four of the Arduino examples. A simple selection of digital and analog sensors are used to demonstrate the abilities of the Data.SparkFun.com service.

[![Ethernet example hookup](https://cdn.sparkfun.com/r/600-600/assets/learn_tutorials/2/6/0/ethernet-shield_bb.png)](https://cdn.sparkfun.com/assets/learn_tutorials/2/6/0/ethernet-shield_bb.png)

The output of a [photocell](https://www.sparkfun.com/products/9088) ([voltage divided](https://learn.sparkfun.com/tutorials/voltage-dividers) with a [10kΩ resistor](https://www.sparkfun.com/products/8374)) connects to A0. A [momentary push-button](https://www.sparkfun.com/products/9190) is connected to D3 on one end and ground on the other. And a [SPDT switch](https://www.sparkfun.com/products/102) can connect D5 to ground or let it float.

#### Running the Sketch

After you've fixed the WiFi and datastream settings, upload the sketch. Then open the **Serial Monitor** and set the baud rate to **115200 bps**. Some debug messages will flow by at the start. Once you see your IP address printed, your Arduino is connected and you're ready to post some data.

[![CC3000 serial monitor](https://cdn.sparkfun.com/assets/learn_tutorials/2/6/0/cc3000_serial_2.png)](https://cdn.sparkfun.com/assets/learn_tutorials/2/6/0/cc3000_serial_2.png)

One of the fields in this example pushes a name to the server. If you want to update the name value, type in your name into the Serial Monitor and terminate it with a '!'.

To push your data to the server, simply press the button tied to D3 (or just short that pin to ground). A few serial lines will quickly be printed. Check to make sure `HTTP/1.1 200 OK` is somewhere among those lines -- that means the server accepted your request.

---

Source: https://maker.wiznet.io/irina/projects/arduino-ethernet-shield/
