---
title: "Arduino Tutorial : Sending and Receiving String via UDP"
url: "https://maker.wiznet.io/WIZnet/projects/arduino-tutorial-%3A-sending-and-receiving-string-via-udp/"
markdown_url: "https://maker.wiznet.io/WIZnet/projects/arduino-tutorial-%3A-sending-and-receiving-string-via-udp/md"
type: "UCC: User Created Content"
author: "WIZnet"
original_url: "https://myrobotduino.blogspot.com/2016/08/sending-and-receiving-string-via-udp.html"
published: "2023-02-17"
language: "en"
likes: 4
views: 570
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Arduino Tutorial : Sending and Receiving String via UDP

> .

Original source: https://myrobotduino.blogspot.com/2016/08/sending-and-receiving-string-via-udp.html

## Article

**DETAILS**

In this example, you will use your[Ethernet Shield](http://www.lelong.com.my/arduino-ethernet-w5100-shield-micro-sd-card-slot-robotshop-I2404949-2007-01-Sale-I.htm) and your [Arduino](http://www.lelong.com.my/merchant/robotshop-Arduino-C1-206687-1.htm)to send and receive text strings via the UDP protocol (Universal Datagram Packet). You’ll need another device to send to and from. The [Processing](http://www.processing.org/)sketch included at the end of the code will send to and receive from your [Arduino](http://www.lelong.com.my/merchant/robotshop-Arduino-C1-206687-1.htm)running this example.

## **Step 1: What You Need?**

1 x [Arduino Board](http://www.lelong.com.my/merchant/robotshop-Arduino-C1-206687-1.htm) ( [Arduino UNO](http://www.lelong.com.my/arduino-compatible-dccduino-uno-r3-atmel-atmega-328p-ver2-robotshop-I5277877-2007-01-Sale-I.htm) used in this tutorial)
1 x [Arduino Ethernet Shield](http://www.lelong.com.my/arduino-ethernet-w5100-shield-micro-sd-card-slot-robotshop-I2404949-2007-01-Sale-I.htm)

## **Step 2: Build Your Circuit.**

The [Ethernet shield](http://www.lelong.com.my/arduino-ethernet-w5100-shield-micro-sd-card-slot-robotshop-I2404949-2007-01-Sale-I.htm) allows you to connect a WizNet Ethernet controller to the [Arduino boards](http://www.lelong.com.my/merchant/robotshop-Arduino-C1-206687-1.htm) via the SPI bus. It uses pins 10, 11, 12, and 13 for the SPI connection to the WizNet. Later models of the [Ethernet shield](http://www.lelong.com.my/arduino-ethernet-w5100-shield-micro-sd-card-slot-robotshop-I2404949-2007-01-Sale-I.htm) also have an SD Card on board. Digital pin 4 is used to control the slave select pin on the SD card.

[![](https://4.bp.blogspot.com/-7J5x-NNmThE/V591WCRRoKI/AAAAAAAACuo/mE8WIh18d68Ajcg9W6beRCgaXO3wc0BgwCLcB/s400/EthernetShield_bb.png)](https://4.bp.blogspot.com/-7J5x-NNmThE/V591WCRRoKI/AAAAAAAACuo/mE8WIh18d68Ajcg9W6beRCgaXO3wc0BgwCLcB/s1600/EthernetShield_bb.png)

## **Step 3: Upload The Code.**

– Details are explained! You just do step by step!

[![](https://2.bp.blogspot.com/-NQyG2tC3FWY/V3SkaGHpQbI/AAAAAAAAAD4/oOEb4hvwgXYj5vp_kiTHq-Kf6N-wxXrVQCKgB/s640/21.png)](https://2.bp.blogspot.com/-NQyG2tC3FWY/V3SkaGHpQbI/AAAAAAAAAD4/oOEb4hvwgXYj5vp_kiTHq-Kf6N-wxXrVQCKgB/s1600/21.png)

![](https://2.bp.blogspot.com/-NMW9L0CMtHk/V3SlE9yZ8KI/AAAAAAAAAEE/UDgebBaJcUMu74uGsE-sdJzNTzLwah4ZACKgB/s640/22.PNG)

[Code_Link](https://codebender.cc/utilities/download/356932?referrer=myrobotduino)

Dated : Friday, August 05, 2016

Source : https://myrobotduino.blogspot.kr/2016/08/sending-and-receiving-string-via-udp.html

Author : [Robot edu](https://plus.google.com/111138818629979878874)

---

Source: https://maker.wiznet.io/WIZnet/projects/arduino-tutorial-%3A-sending-and-receiving-string-via-udp/
