Arduino Uno Board Controlled Over Home Network , XAMPP Server Used - IOT Application # 1

by rupjit81 in Circuits > Arduino

456 Views, 1 Favorites, 0 Comments

Arduino Uno Board Controlled Over Home Network , XAMPP Server Used - IOT Application # 1

20230826_172229.jpg

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

The local server used in this project is XAMPP server.

The person who is controlling the Arduino is another client in the network. The server is XAMPP server on local home network..

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.


Arduino Uno as IOT device. Devices controlled over Internet.
Arduino Uno as IOT device. Devices controlled over Internet. Tested on XAMPP server
IoT based device controller for home using Arduino Uno and Xampp server using local network.

In this design we are controlling and viewing the Arduino Uno over local home network running XAMPP server. 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.