Chania

TRAIN YOURSELF IN ELECTRONICS

Free Electronic Projects

Internet of Things(IoT)

We are running through the era of internet of things, millions of integrated circuits are communicating each other using internet technology. As we are moving towards the development of highly integrated hetrogenous system containing analog, digital, software, physical & biological components. it is highly chalanging to achieve robust operations and System on chip (SoC) design. Wireless Communication & Technology are also playing a vital role in developing internet of things.

Internet of Things (IoT) server is established in which you can upload your data to the website via ESP8266 wifi module or any equivalent device. The refresh rate is about 7 seconds. When you first register and then login you will get an api_key this will be the unique key on which you will send the data. For complete transfer link you need to login .

.

How to send data via ESP8266

Steps to run ESP8266 normal mode

  1. Connect to Wifi
  2. Establish a connection using AT+CIPMUX=0
  3. Establish a connection by sending commands "AT+CIPSTART="TCP","iot.elctronixforu.com",80
  4. Send AT+CIPSEND=length of the link
  5. Then send GET /post.php?api_key=your api key&field1=value&field2=value&field3=value&field4=value HTTP/1.1\r\nHost: iot.electronixforu.com\r\nConnection: close\r\n\r\n
  6. Repeat steps from 3 to 5 in loop

Passthrough mode of ESP8266

Steps to run ESP8266 normal mode

In Passthrough mode you can send data as faster as you can Sample Code

  1. Connect to Wifi
  2. Establish a connection using AT+CIPMUX=0
  3. Establish a connection by sending commands "AT+CIPSTART="TCP","iot.elctronixforu.com",80...(establish it only once)
  4. To enable the passthrough mode send AT+CIPMODE=1
  5. Send AT+CIPSEND(without length)
  6. Then send GET /post.php?api_key=your api key&field1=value&field2=value&field3=value&field4=value HTTP/1.1\r\nHost: iot.electronixforu.com\r\n\r\n
  7. Repeat step 6 in loop, no need to establish TCP Connection.

Neoway M590 GPRS AT commands

Send the data to IoT web server using Neoway M590 GSM/GPRS Modem Follwo these steps

  1. once Powered on GSM Modem wait for the string "+PBREADY" it may take upto 20 seconds
  2. Send AT+XISP=0
  3. Set APN by sending the commands "AT+CGDCONT=1,"IP","your network APN
  4. Send AT+XIIC=1
  5. Send AT+XIIC?... (optional to check IP address)
  6. Send AT+DNS="iot.electronixforu.com" (optional b/c it only shows the ip address which is reuired in the next command, You can use ping or other tools to check IP address)
  7. Send AT+TCPSETUP=0,192.169.92.6, 80
  8. Send AT+TCPSEND=0, length of the link
  9. Then send GET /post.php?api_key=your api key&field1=value&field2=value&field3=value&field4=value HTTP/1.1\r\nHost: iot.electronixforu.com\r\nConnection: close\r\n\r\n
  10. Send AT+TCPCLOSE=0
  11. Repeat steps from 7 to 10 in loop.
  • your api key=It is unique key generated when you register an account.
  • value=Parameters you want to measure in string or byte.
  • length of the link=Calculate the length of complete string from GET to....\r\n\r\n including the values

Realtime GPS Tracking web server

Realtime GPS tracking webserver is established in which you can track your vehicle using GPRS modules. The format of the link includes latitude, longitude, speed in km/h and Vehicle battery voltage.

The steps and AT commands depends upon various GPRS modules however steps of Neoway M590 GPRS Module is given above.

Format of the link

iot.electronixforu.com/post.php?api_key=your api key&field1=Latitude&field2=Longitude&field3=Speed&field4=battery voltage

Sample data