Connecting Arduino Uno with ThingSpeak using ESP 8266 Wi-Fi Module

Connecting Arduino Uno with ThingSpeak using ESP 8266 Wi-Fi Module

We will connect ARDUINO with ThingSpeak using TCP Connection and HTTP port with GET method.

Required:
1-      Arduino Uno
2-      ESP 8266
3-      Jumper Wires
4-      Account on ThingSpeak

Circuit Diagram:
·         ESP Vcc, and CH_PD PIN to Arduino 3.3V
·         ESP GND PIN to Arduino GND Pin
·         ESP RXD to Arduino pin 1 (TX)
·         ESP TXD to Arduino pin 0 (RX)
Testing circuit:
Open serial monitor and enter “AT”. The response should be “OK”, otherwise your circuit is not properly connected.
ACCOUNT on ThingSpeak:
Visit www.thingspeak.com and click on the "Get Started" button to make a free account.
Now click on the "New Channel" (second image above). Give it a name and select two fields. If you want you can fill more info about your channel, e.g. Latitude and Longitude of your sensor. If you want to share sensor info with your friends (and more...) click on the "Make Public?" check box option. Finally click on the "Save Channel" button.
Click on your new channel and select the API keys tab.
Copy GET Method for Write/ Send, using Write API Key, as follows:

Connecting with WIFI:
In serial monitor type following commands:
AT+CWMODE=1 // This is to program ESP for basic connection mode
AT+CWJAP="Android","12345678" // This command connects with SSID= Android with PW= 12345678
Creating a TCP Connection and sending data:
In serial monitor type following commands:
AT+CIPSTART="TCP","184.106.153.149",80 // The IP is for ThingSpeak website
AT+CIPSEND=52 // This is the length of the text we will send using GET Method
GET /update?api_key=QLOQF4XBLZPIOHIL&field1=65\r\n // In get method, use your API Write key and remove thingspeak domain address. Must add “\r\n” at the end.

If all above commands go well, the you will get some response, otherwise after some time connection will get closed.



2 comments:

  1. Casino Site Review + Bonus Promo Codes
    Casino Site is ranked #4 among India online gambling sites according to our Ranking Algorithm. Read ₹1,000 in Casino Site We think that this is a very luckyclub.live good place to start

    ReplyDelete
  2. What do they do in the casino? - DrMCD
    The Casino, with its 김포 출장안마 own 사설토토 selection of games and 인천광역 출장안마 live dealer games, has 동두천 출장마사지 been among the best casinos in the industry for many years. They are now 남양주 출장안마

    ReplyDelete

Connecting Arduino Uno with ThingSpeak using ESP 8266 Wi-Fi Module

Connecting Arduino Uno with ThingSpeak using ESP 8266 Wi-Fi Module We will connect ARDUINO with ThingSpeak using TCP Connection and HT...