Build Own Secured PHP IOT Website Free - Arduino

by jegatheesan.soundarapandian in Circuits > Websites

58943 Views, 176 Favorites, 0 Comments

Build Own Secured PHP IOT Website Free - Arduino

Screen37.JPG

I feel its costly to purchase IOT from websites. So i plan to build our own IOT web page. When come to IOT the security is more essential, So i use MD5 encryption from PHP to secure the page. With the page i design we able to control lot of devices with seperate user name and password for each device. And access the data with the user name of the device.

Materials Required

For Programming

1) PC with web connection.

For Testing

1) Link IT one board (Or Arduino UNO with WIFI or GSM Module"

2) ESP8266 WIFI module

3) Wifi hot spot of smart phone with internet connection and WIFI hotspot.

4) Power Supply

5) Relay module

6) Potentiometers

Find a Suitable Web Site

Screen1.jpg

Use google and Found a free Website hosting web site. Even with limited size is enough for testing. If we want to expand the project then purchase a space from them. I found 000webhost.Com is a nice web site with free database support. Database is very essential when develop a iot webpage.

The program we going to use is PHP with Mysql.

Free Signup and Verification

Screen1.bmp
Screen2.jpg
Screen3.jpg
Screen4.jpg
Screen5.jpg
Screen6.jpg

1) Sign up using your email id.

2) After verify email id in your web page.

3) Use mobile send the unique code listed in the page to the given mobile number.

4) Then your mobile number also verify.

Create a Website

Screen7.jpg
Screen15.jpg
Screen16.jpg
Screen22.jpg
Screen23.jpg
Screen24.jpg

1) When login the website.

2) Click the + sign on the web site and enter the website name and password of the website, then click create.

3) Your web site created sucessfully.

4) Use Build web site using three options given. I use upload own website. Because i develop a php web site. I give it in up coming pages.

Create a Domain

Screen8.jpg
Screen10.jpg
Screen9.jpg
Screen12.jpg
Screen13.jpg
Screen18.jpg
Screen19.jpg
Screen20.jpg

1) Now its time to create your domain name.

2) In the menu click my domains.

3) Then Click add domain in the screen.

4) In the domains page click Add domain.

5) In the Window click free subdomain.

6) Enter sub domain name and click save.

Create a Database

Screen25.jpg
Screen26.jpg
Screen27.jpg
Screen28.jpg
Screen29.jpg

1) Create your PHP data base.

2) In the databases click new database.

3) Enter the database name, username and password.

4) Click create.

5) Your database created.

Manage Database

Screen30.jpg
Screen31.jpg
Screen32.jpg
Screen33.jpg
Screen34.jpg
Screen35.jpg
Screen36.jpg

1) Create the tables in the database.

2) Create your tables in the php as per your requirement.

3) I given my DB here.

4) Download the local host.sql in the list.

5) Use import in the page to import the tables from file given.

Downloads

Create Iot Pages

1) I given my php files as rar here.

2) Down load the file and change your dbusername, password, db name in config .php file and upload.

Downloads

Upload to Website

Screen38.JPG
Screen39.JPG
Screen40.JPG
Screen41.JPG

1) Down load the pages i given and upload the pages in the upload own web site.

Arduino Program

Arduino.JPG

1) Upload the given program in linkit one (or change it for Arduino).

2) Run the kit and found the sensor value posted on in your database.

3) By use the Sensorvalue.php with your domain name u able to see sensor value any where in the world.

4) By use the Switches.php with your domain name u able change the switch status in the kit.

Syntax for each page:

1) To see sensor value

your web domain name/Sensorvalue.php?id=User name in table&pwd=Encrypted password using MD5

2) To change switch status

your web domain name/Switchesphp?id=User name in table&pwd=Encrypted password using MD5&switch=integer in decimal to control up to 10 digital pins.

In the arduino program u want to change the addresses and wifi settings. Also add program to convert received decimal to binary value and change the digital pin status according to the decimal value.

I php I add only basic pages use the coding add plugins like graph for php from net develop pages to view the details in graph. And use image map send the switch status from php page to database to switch on and off the devices.

Downloads