Arduino Uno Board Controlled Over Internet Using My Phone - IOT Application # 2

by rupjit81 in Circuits > Arduino

208 Views, 2 Favorites, 0 Comments

Arduino Uno Board Controlled Over Internet Using My Phone - IOT Application # 2

mobile phone used to control arduino 2.jpg

In this project we are using Arduino board with ethernet shield. The Arduino is connected to the router and used as a client.

The person who is controlling the Arduino is another client in the network. The server is anywhere on the internet.

The client and server are contacting each other through a common data file which is like a set of instruction between two clients.

In this method of implementation we can have multiple clients accessing the single server.

Supplies

  1. Arduino ethernet shield
  2. Arduino Uno board
  3. Multimeter to read voltage change.
  4. Ethernet cable for router.

Downloads

Description

Arduino Uno board controlled over Internet using my phone.
Arduino Uno as IOT device. Devices controlled over Internet.
Arduino Uno board controlled over Internet using my phone.

In this design we are controlling and viewing the Arduino Uno over the internet. The Arduino is a client in this case. The person who is controlling Arduino is also a client.

The two clients form a group.

The devices in one group will be controlled by the client in that group.

There are two three files in one group.

Arduino Uno sends and receives data to index.php file. Any update in Arduino data is handled by this index.php file.

The user who intends to control the Arduino sends and receives data to index1.php file.

There is a data exchange file that resides in the server are index.php and index1.php . Both index.php and index1.php exchange their using newfile.txt.

The server thus consists of three files

  1. index.php -> Data transfer to an from Arduino Uno.
  2. index1.php -> Data transfer to and from client from mobile phone.
  3. newfile.txt -> Data exchange file between two clients.

When we want to switch ON any device, say switch 5, We need to Check the Checkbox and click 'Submit' button.

The resulting change is reflected on the cell phone.

The same is written on newfile.txt

The Arduino accesses the index.php file every 10 seconds and reads the newfile.txt and updates the Arduino pin.

The voltage on multimeter on pin is now +5V.

Same way we can switch off Arduino pins.

The control action is shown clearly in a detailed video.