---
title: "Control Arduino Using Android App"
url: "https://maker.wiznet.io/WIZnet/projects/control-arduino-using-android-app/"
markdown_url: "https://maker.wiznet.io/WIZnet/projects/control-arduino-using-android-app/md"
type: "UCC: User Created Content"
author: "Laurens"
author_url: "https://www.instructables.com/Control-Arduino-using-android-app/"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "Laurens"
original_url: "https://www.instructables.com/Control-Arduino-using-android-app/"
published: "2023-02-07"
language: "en"
hardware: ["WIZnet W5100 ethernet shield"]
likes: 7
views: 506
comments: 1
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Control Arduino Using Android App

> In this instructables I'm going to explain how to control the arduino IO pins using an android app, which we'll write here.

Original author: Laurens (source: https://www.instructables.com/Control-Arduino-using-android-app/)

## Components

- **WIZnet W5100 ethernet shield** x 1 ([docs](https://www.wiznet.hk/en/open-source-hardware/102-w5100s-ethernetshield.html?search_query=W5100+ethernet+shield&results=84))

## Article

## **About this project**

In this instructables I’m going to explain how to control the arduino IO pins using an android app, which we’ll write here.

The communication will be over ethernet and we’ll use the GET request to activate the IO’s.

## **The Ethernet Shield**

[![The Ethernet Shield](https://content.instructables.com/ORIG/FDW/TYIY/IDFSMPCS/FDWTYIYIDFSMPCS.jpg?auto=webp&frame=1&fit=bounds&md=23b02c4a944ecbcc1fb305c0894c4bd1)](https://content.instructables.com/ORIG/FDW/TYIY/IDFSMPCS/FDWTYIYIDFSMPCS.jpg?auto=webp&frame=1&fit=bounds&md=23b02c4a944ecbcc1fb305c0894c4bd1)

I got this Ethernet shield from [gearbest.com](http://gearbest.com/).

It worked instantly on my arduino mega (also from [gearbest.com](http://gearbest.com/))

On the shield you have 2 SPI devices. The SD card reader and the W5100 IC for Ethernet.
In this instructables we’ll only be using the Ethernet part.

## **Schema**

[![Schema](https://content.instructables.com/ORIG/FBE/HA6Y/IDCXDG8J/FBEHA6YIDCXDG8J.jpg?auto=webp&frame=1&width=618&height=1024&fit=bounds&md=60fbd25f353700b0a4ab5be0e54fffef)](https://content.instructables.com/ORIG/FBE/HA6Y/IDCXDG8J/FBEHA6YIDCXDG8J.jpg?auto=webp&frame=1&height=1024&fit=bounds&md=60fbd25f353700b0a4ab5be0e54fffef)

[![Schema](https://content.instructables.com/ORIG/F8K/R5AB/IDCXDG8K/F8KR5ABIDCXDG8K.jpg?auto=webp&frame=1&width=467&height=1024&fit=bounds&md=bc6e015c62cf0d6a9367ca464dee4556)](https://content.instructables.com/ORIG/F8K/R5AB/IDCXDG8K/F8KR5ABIDCXDG8K.jpg?auto=webp&frame=1&width=1024&height=1024&fit=bounds&md=bc6e015c62cf0d6a9367ca464dee4556)

[![Schema](https://content.instructables.com/ORIG/FHC/PCV8/IDCXDG82/FHCPCV8IDCXDG82.jpg?auto=webp&frame=1&width=467&height=1024&fit=bounds&md=aec5040f108176dc3374371558f2117c)](https://content.instructables.com/ORIG/FHC/PCV8/IDCXDG82/FHCPCV8IDCXDG82.jpg?auto=webp&frame=1&width=1024&height=1024&fit=bounds&md=aec5040f108176dc3374371558f2117c)

We need to connect the 3 led’s to the arduino. You can use every pin except pin 0, 1, 10 to 13 and 50 to 53.
I’m using pin 22, pin 23 and pin 24.

You also need to connect your arduino to your local network. Internet isn’t needed.

## **Arduino Sketch**

[![Arduino Sketch](https://content.instructables.com/ORIG/FTO/BQAX/IDFSMZ6I/FTOBQAXIDFSMZ6I.jpg?auto=webp&frame=1&width=1024&height=1024&fit=bounds&md=74ac64e96b5f80acf9cd68821f171656)](https://content.instructables.com/ORIG/FTO/BQAX/IDFSMZ6I/FTOBQAXIDFSMZ6I.jpg?auto=webp&frame=1&width=1024&height=1024&fit=bounds&md=74ac64e96b5f80acf9cd68821f171656)

---

Source: https://maker.wiznet.io/WIZnet/projects/control-arduino-using-android-app/
