Transcript
Page 1: ESP8266 Wifi Temperature Logger

let's make Explore (/tag/type­id/) Publish (/about/create.jsp)

Featured: Intel IoT(/id/intel/) Kitchen & Bath(/id/Moen/) Parties(/tag/type­id/category­craft/channel­parties­and­weddings/)

LinkIt ONE(/id/mediatek­linkit­one/)

They day I read at hackaday (http://hackaday.com/tag/esp8266/(http://hackaday.com/tag/esp8266/)) that a new $5 wifi module was available, Iorder a few of them to test. Now, a few weeks later I want to share myexperience.

This is a very simple demo using the ESP8266 and Arduino to update a remoteserver (https://thingspeak.com/) using a digital temperature sensor.

These are really exciting times for the Internet of Things (r)evolution. Prices arecoming down and the Maker community is eager to develop the next generationof all things connected.

The following setup could be done under $20. This is using off the shelf "pricey"components (like Arduino), but you could program your own MCU with UARTsupport and make it cheaper.

Step 1: Materials

(/file/F0FZH4CI0RYTMAP/)

About This Instructable

8 451,822 views

361 favorites

License:

(/member/noelportugal/)

noelportugal(/member/noelportugal/)My blog(http://noelportugal.blogspot.com/)

Follow 80

More by noelportugal:

(/id/Halloween­

Pumpkin­Pay­NFC­Enabled­Pumpkins/)

(/id/ESP8266­Wifi­

Temperature­Logger/)

(/id/Interactive­

Magic­Mirror­with­Candy­Dispenser/)

ESP8266 (/tag/type­id/keyword­ESP8266/)

arduino (/tag/type­id/keyword­arduino/)

internet of things (/tag/type­id/keyword­internet%20of%20things/)

temperature (/tag/type­id/keyword­temperature/)

iot (/tag/type­id/keyword­iot/)

thingspeak (/tag/type­id/keyword­thingspeak/)

cheap wifi (/tag/type­id/keyword­cheap%20wifi/)

Tags:

Related

(/id/ESP8266­

wireless logger ESP8266NodeMCU v1.0 with ArduinoIDE (/id/ESP8266­NodeMCU­v10­ESP12­E­with­Arduino­IDE/)WIFI plant monitoringsystem based on ArduinoMEGA and ESP8266(/id/WIFI­plant­monitoring­

(/)share what you make >

Login (/account/login) | Sign Up (/account/gopro?sourcea=header)

Page 2: ESP8266 Wifi Temperature Logger

1 x ESP8266 (http://www.electrodragon.com/product/esp8266­wi07c­wifi­module/ (http://www.electrodragon.com/product/esp8266­wi07c­wifi­module/))1 x Arduino Pro Mini 328 ­ 3.3V/8MHz(https://www.sparkfun.com/products/11114(https://www.sparkfun.com/products/11114))1 x DS18B20 Digital Temperature Sensor(http://www.mouser.com/ProductDetail/Maxim­Integrat...(http://www.mouser.com/ProductDetail/Maxim­Integrated/DS18B20+/?qs=sGAEpiMZZMvbyeSUH4qH%2fLbikZ7SIep9)1 x 4.7k resistor1 x Power supply (3.3V up to 12V, I used a 9v)

Step 2: ESP8266 Setup

(/file/F9RJB5KI0RYRV30/)

(/file/FS9I33ZI0RYS6HN/)

(/id/WIFI­(/id/WIFI­plant­monitoring­system­based­on­Arduino­

(/id/Makers­

DIY PCB breakout forESP8266 (ESP­01) Maker'sIoT Kit (/id/Makers­IoT­Kit­for­ESP8266­ESP­01/)by shinteo (/member/shinteo/)

(/id/An­

An inexpensive IoT enablerusing ESP8266 (/id/An­inexpensive­IoT­enabler­using­ESP8266/)by gopinath.marappan

(/id/ESP8266­

ESP8266 WiFi relay switch(/id/ESP8266­WiFi­relay­switch/)by EasyIoT(/member/EasyIoT/)

Page 3: ESP8266 Wifi Temperature Logger

This is where things got tricky. I spent a lot of time testing differentconfigurations. Note that are two version of the ESP8266 going around. The firstone has the notification LEDs right next to the board pins. The second one(newer) has the LEDs by the antenna. I have the second one.

The best results came when I loaded V0.922 which allowed me to change thebaud rate to 9600. Follow these steps to load this firmware.

http://www.electrodragon.com/w/Wi07c#Firmware_uploading_tool(http://www.electrodragon.com/w/Wi07c#Firmware_uploading_tool)

The best way to test a good connection is by using a USB­to­TTL cable andusing a terminal like CoolTerm. Here is the command to change the baud rate:

AT+CIOBAUD=9600

These are the pin connections I used on ESP8266 to USB­to­TTL. I used theregulated 3.3v vcc of the Arduino to power the ESP8266. I know that Arduinovcc 3.3v max is output is 150 mA and ESP8266 will peak at 240 mA. But at thetime I had no other regulated 3.3v available. Regular usage for the ESP8266 isat 70mA.

Remember to connect GPIO0 to GND when you are uploading new firmware.After that remove for normal operation.

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­

UTXD ­­> RX (USB­to­TTL)

CH_PD <­­> VCC

RST

VCC ­­> VCC (power source)

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­

GND ­­> GND (power source)

GPIO2

GPIO0

URXD ­­> TX (USB­to­TTL)

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­

*Note also had to do USB­to­TTL GND to Arduino GND

(/file/FSQTKOYI0RYRV1U/)

Page 4: ESP8266 Wifi Temperature Logger

Step 3: Arduino Setup and Sketch

ESP8266 to Arduino

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­

UTXD ­­> RX Arduino

CH_PD <­­> VCC

RST

VCC ­­> VCC Arduino

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­GND ­­> GND Arduino

GPIO2

GPIO0

URXD ­­> TX Arduino

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­

Digital Temperature Sensor to Arduino

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­

Arduino GND ­­ > DS18B20 GND(1) ­­ > DS18B20 VDD(3)

DS18B20 DQ(2) ­­ > 4.7K R ­­> VCC Arduino 3.3v

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­

#include<stdlib.h>#include <SoftwareSerial.h>#include <OneWire.h>#include <DallasTemperature.h>#define ONE_WIRE_BUS 8OneWire oneWire(ONE_WIRE_BUS);DallasTemperature sensors(&oneWire);</p><p>#define SSID "[YOUR_SSID]"#define PASS "[YOUR_PASSWORD]"#define IP "184.106.153.149" // thingspeak.comString GET = "GET /update?key=[THINGSPEAK_KEY]&field1=";SoftwareSerial monitor(10, 11); // RX, TX

(/file/FBF8ATCI0RYS6HJ/)

Page 5: ESP8266 Wifi Temperature Logger

SoftwareSerial monitor(10, 11); // RX, TX

void setup() monitor.begin(9600); Serial.begin(9600); sensors.begin(); sendDebug("AT"); delay(5000); if(Serial.find("OK")) monitor.println("RECEIVED: OK"); connectWiFi();

void loop() sensors.requestTemperatures(); float tempC = sensors.getTempCByIndex(0); tempC = DallasTemperature::toFahrenheit(tempC); char buffer[10]; String tempF = dtostrf(tempC, 4, 1, buffer); updateTemp(tempF); delay(60000);

void updateTemp(String tenmpF) String cmd = "AT+CIPSTART=\"TCP\",\""; cmd += IP; cmd += "\",80"; sendDebug(cmd); delay(2000); if(Serial.find("Error")) monitor.print("RECEIVED: Error"); return; cmd = GET; cmd += tenmpF; cmd += "\r\n"; Serial.print("AT+CIPSEND="); Serial.println(cmd.length()); if(Serial.find(">")) monitor.print(">"); monitor.print(cmd); Serial.print(cmd); else sendDebug("AT+CIPCLOSE"); if(Serial.find("OK")) monitor.println("RECEIVED: OK"); else monitor.println("RECEIVED: Error"); void sendDebug(String cmd) monitor.print("SEND: "); monitor.println(cmd); Serial.println(cmd); boolean connectWiFi() Serial.println("AT+CWMODE=1"); delay(2000); String cmd="AT+CWJAP=\""; cmd+=SSID; cmd+="\",\""; cmd+=PASS; cmd+="\""; sendDebug(cmd); delay(5000); if(Serial.find("OK")) monitor.println("RECEIVED: OK"); return true; else monitor.println("RECEIVED: Error"); return false;

Page 6: ESP8266 Wifi Temperature Logger

return false;

*UPDATE. Once your done testing/monitoring. Load the same sketch withoutSoftwareSerial Monitor. This gave me better results as stand alone.

#include #include #include#define ONE_WIRE_BUS 8OneWire oneWire(ONE_WIRE_BUS);DallasTemperature sensors(&oneWire);

#define SSID "[YOUR_SSID]"#define PASS "[YOUR_PASSWORD]"#define IP "184.106.153.149" // thingspeak.comString GET = "GET /update?key=[THINGSPEAK_KEY]&field1=";

void setup() Serial.begin(9600); sensors.begin(); Serial.println("AT"); delay(5000); if(Serial.find("OK")) connectWiFi();

void loop() sensors.requestTemperatures(); float tempC = sensors.getTempCByIndex(0); tempC = DallasTemperature::toFahrenheit(tempC); char buffer[10]; String tempF = dtostrf(tempC, 4, 1, buffer); updateTemp(tempF); delay(60000);

void updateTemp(String tenmpF) String cmd = "AT+CIPSTART=\"TCP\",\""; cmd += IP; cmd += "\",80"; Serial.println(cmd); delay(2000); if(Serial.find("Error")) return; cmd = GET; cmd += tenmpF; cmd += "\r\n"; Serial.print("AT+CIPSEND="); Serial.println(cmd.length()); if(Serial.find(">")) Serial.print(cmd); else Serial.println("AT+CIPCLOSE");

boolean connectWiFi() Serial.println("AT+CWMODE=1"); delay(2000); String cmd="AT+CWJAP=\""; cmd+=SSID; cmd+="\",\""; cmd+=PASS; cmd+="\""; Serial.println(cmd); delay(5000); if(Serial.find("OK")) return true;

Page 7: ESP8266 Wifi Temperature Logger

return true; else return false;

Step 4: ThingSpeak setup

ThinkSpeak is just awesome! Follow these simple steps to start you own feed:

1. Sign up for a FREE account at https://thingspeak.com/(https://thingspeak.com/)

2. Go to Channels ­­> Create New Channel (you can leave all defaults)3. Go to API Keys and get your KEY4. Test by putting this on your browser

http://api.thingspeak.com/update?key=[THINGSPEAK_KEY]&field1=05. Check your results

http://api.thingspeak.com/channels/[CHANNEL_ID]/feed.json?key=[THINGSPEAK_KEY]

Now you are ready to start sending data.

(/file/FYX511HI0RYS6A4/)

Getting Started with ThingSpeak - ThingSpeak Introduction

0:03 / 2:04

Page 8: ESP8266 Wifi Temperature Logger

We have a be nice comment policy.Please be positive and constructive. w I Made it! Add Images Post Comment

Reply8 months agogphat (/member/gphat)

when I run this sketch, i show as below

ATAT+CIPSTART="TCP","184.106.153.149",80AT+CIPSEND=54AT+CIPCLOSEAT+CIPSTART="TCP","184.106.153.149",80AT+CIPSEND=54AT+CIPCLOSEAT+CIPSTART="TCP","184.106.153.149",80AT+CIPSEND=54AT+CIPCLOSEAT+CIPSTART="TCP","184.106.153.149",80AT+CIPSEND=54AT+CIPCLOSEAT+CIPSTART="TCP","184.106.153.149",80AT+CIPSEND=54AT+CIPCLOSEAT+CIPSTART="TCP","184.106.153.149",80AT+CIPSEND=54I cant upload to thingspeak. the 2 led on esp still on, Iconnect nothing to Uno. here is my code

#include <SoftwareSerial.h>

#define SSID " " // I delete it when post here#define PASS " " // I delete it when post here

#define IP "184.106.153.149" // thingspeak.comString GET = "GET /update?key=EDPAJHIWQLX2A8VB&field1=";SoftwareSerial monitor(10, 11); // RX, TX

void setup()monitor.begin(9600);Serial.begin(9600);

sendDebug("AT");delay(1000);if(Serial.find("OK"))monitor.println("RECEIVED: OK");connectWiFi();

void loop()

String tempF = String(5.4,DEC);updateTemp(tempF);delay(1000);

void updateTemp(String tenmpF)String cmd = "AT+CIPSTART=\"TCP\",\"";cmd += IP;cmd += "\",80";sendDebug(cmd);delay(1000);if(Serial.find("Error"))monitor.print("RECEIVED: Error");return;cmd = GET;cmd += tenmpF;cmd += "\r\n";Serial.print("AT+CIPSEND=");

Page 9: ESP8266 Wifi Temperature Logger

Reply

16 days ago

Reply2 months ago

Reply7 months ago

Serial.println(cmd.length());if(Serial.find(">"))monitor.print(">");monitor.print(cmd);Serial.print(cmd);elsesendDebug("AT+CIPCLOSE");if(Serial.find("OK"))monitor.println("RECEIVED: OK");elsemonitor.println("RECEIVED: Error");void sendDebug(String cmd)monitor.print("SEND: ");monitor.println(cmd);Serial.println(cmd);

boolean connectWiFi()Serial.println("AT+CWMODE=1");delay(1000);String cmd="AT+CWJAP=\"";cmd+=SSID;cmd+="\",\"";cmd+=PASS;cmd+="\"";sendDebug(cmd);delay(1000);if(Serial.find("OK"))monitor.println("RECEIVED: OK");return true;elsemonitor.println("RECEIVED: Error");return false;

NomanAhmed3 (/member/NomanAhmed3) . gphat (/member/gphat)

did your problem solved? i am having same error...i am usingesp8266_03 module

RidhwanA (/member/RidhwanA) . gphat (/member/gphat)

Please read my comment above. Hope this helps.

FlorentV (/member/FlorentV)

Hello,

I tried to connect a Mega Arduino , a sensor DS18B20 andesp8266 to send data from my sensor on the Internet.

After configuration, I sedhttps://codebender.cc/sketch:98754#thingspeak%20ds18b20%20esp8266.inothis code

but the data does not reach the server, why?

AT

AT + CIPSTART = " TCP ", " 184106153149 " 80

AT + CIPSEND = 47

AT + CIPCLOSE

AT + CIPSTART = " TCP ", " 184106153149 " 80

AT + CIPSEND = 47

AT + CIPCLOSE

Page 10: ESP8266 Wifi Temperature Logger

Reply16 days ago

Reply

2 months ago

Replya month ago

Reply16 days ago

Replya month ago

Reply5 months ago

AT + CIPCLOSE

AT + CIPSTART = " TCP ", " 184106153149 " 80

AT + CIPSEND = 47

AT + CIPCLOSE

Can anyone help me please ?

Thank you in advance

NomanAhmed3 (/member/NomanAhmed3) . FlorentV (/member/FlorentV)

did your problem solved? i am having same error...iam using esp8266_03 module

RidhwanA (/member/RidhwanA) . FlorentV (/member/FlorentV)

Please read my comment above. Hope this helps.

JohnW166 (/member/JohnW166)

i made this! part of my huge solar inverter controller project.Works like a charm. I even didnt bother to update thefirmware, i just instructed the arduino to tell the esp tochange port speed to 9600 at start up, and then change thearduino seriel port to 9600 also, and carry on. (too lazy tolearn how to update firmware unless i really needed it lol)

anyway, i have a question. I need to have more than onefeed (actually about 30)

How do i go about this?

NomanAhmed3 (/member/NomanAhmed3) . JohnW166 (/member/JohnW166)

can you please share your code?

ehsanito (/member/ehsanito)

There is an error in this piece of code:

if(Serial.find(">"))

Serial.print(cmd);

else

Serial.println("AT+CIPCLOSE");

It should be like this:

Serial.println(cmd);

JiříB (/member/JiříB)

Hi why mi in serial ports arduino duemilanove writing?:

AT

AT + CIPSTART = " TCP ", " 184106153149 " 80

AT + CIPSEND = 47

Page 11: ESP8266 Wifi Temperature Logger

Reply2 months ago

Reply4 months ago

Reply4 months agoX|8

Reply5 months ago

Reply5 months ago

Reply4 months ago

Reply5 months ago

Reply5 months ago

AT + CIPCLOSE

and temp no send to thingspeak.com ....

RidhwanA (/member/RidhwanA) . JiříB (/member/JiříB)

I got the same problem. To solve I connected RESET to VCC 3.3V. Hopethis helps.

LashaP (/member/LashaP) . JiříB (/member/JiříB)

I have same problem, did you solve? if yes, please send me instructions,thank you !

Ploopy (/member/Ploopy)

Cool!

Nget Chandara (/member/Nget Chandara)

i couldn't understand how to upload new firmware toesp2866 can you explain it clearly? What do u use toupload the firmware to esp2866? thank you for sharing thenew idea.

StefanoD1 (/member/StefanoD1) . Nget Chandara (/member/Nget Chandara)

try with this: (follow step by step)

http://www.xess.com/blog/esp8266­reflash/(http://www.xess.com/blog/esp8266­reflash/)

you can find a good firmware here:

http://www.instructables.com/id/Intro­Esp­8266­fir...(http://www.instructables.com/id/Intro­Esp­8266­firmware­update/)

Nget Chandara (/member/Nget Chandara) . StefanoD1 (/member/StefanoD1)

thank u

After some tinkering, It works! Thanks. I used DHT22 for temp and humidity.

https://thingspeak.com/channels/43907(https://thingspeak.com/channels/43907)

(http://cdn.instructables.com/FB6/2ZPC/IBC1W6D2/FB62ZPCIBC1W6D2.LARGE.jpg)

SandeshKa94 (/member/SandeshKa94)

inorder to post data to the website POST has to be used .Why GET method is used here ? Could you please explain

gabrielcw (/member/gabrielcw) made it!

Page 12: ESP8266 Wifi Temperature Logger

Reply

5 months ago

Reply10 months ago

Reply

5 months ago

Replya year ago

Why GET method is used here ? Could you please explainin detail

gabrielcw (/member/gabrielcw) . SandeshKa94 (/member/SandeshKa94)

Both can be used at thingspeak with same effect.

https://thingspeak.com/docs/channels#update_feed

I want to thank noelportugal for the great instructable. My project is working nowbut I was unable to get it to work initially so I thought I would post a schematicand the code that is working for me. My ESP8266 is running the 0018000902firmware. Also thanks to the other posters for your help.

(http://cdn.instructables.com/F1G/6SC1/I4PHMZ8H/F1G6SC1I4PHMZ8H.LARGE.jpg)

(http://cdn.instructables.com/FMV/F21R/I4PHMZA6/FMVF21RI4PHMZA6.LARGE.jpg)

(http://cdn.instructables.com/F43/6H42/I4PHMZHT/F436H42I4PHMZHT.LARGE.jpg)

sketch.pdf

(http://www.instructables.com/files/orig/FCU/P7UP/I4PHMZBU/FCUP7UPI4PHMZBU.pdf)

slarti.fartfast (/member/slarti.fartfast) . chrisrust (/member/chrisrust)

that circuit diagram is very helpful (I almost said sketch, butthat terminology might be confusing in this context!) but acouple of questions:

1) why 3.3v into raw? shouldn't that be vcc? if raw isregulated wouldnt 3.3v be too low?

2) shouldnt GPIO0 and GPIO2 be tied high in normaloperation to avoid erratic behaviour rather than left floating?

Jasonw3 (/member/Jasonw3)

Very amazing project. Wifi is suitable for the indoor monitor.For the outdoor monitoring, i recommend the Sub_G solutionbased on 433MHz. Only one module with 18b20 sensor. Plscheck as below:

http://www.appconwireless.com/NEWS/shownews.php?lang=en&id=13(http://www.appconwireless.com/NEWS/shownews.php?

chrisrust (/member/chrisrust) made it!

Page 13: ESP8266 Wifi Temperature Logger

Reply

5 months ago

Reply

5 months ago

Reply6 months ago

Reply7 months agoX8

Reply9 months ago

Reply7 months ago

Reply

9 months ago

Reply7 months ago

lang=en&id=13)

http://www.appconwireless.com/PRODUCTS/showproduct.php?lang=en&id=10(http://www.appconwireless.com/PRODUCTS/showproduct.php?lang=en&id=10)

slarti.fartfast (/member/slarti.fartfast) . Jasonw3 (/member/Jasonw3)

I have used several 433mhz devices and the ESP8266 is somuch more versatile and easy to use that IMHO I can'timagine many cirumstances where it wouldn't be the betterchoice ­ the range is easily comparable to the 433mhzdevices.

Jasonw3 (/member/Jasonw3) . slarti.fartfast (/member/slarti.fartfast)

I agree. The LoRa module RF1276 based on Sub­GHz ismore amazing solution since I have seen. The range is up to56Km long. There is a link for this information.

http://www.appconwireless.com/NEWS/shownews.php?lang=en&id=23

satyasankar09 (/member/satyasankar09)

thanks a ton..

bitsandbots (/member/bitsandbots)

I'm working on incorporating the ESP8266 into myAutomated Garden Controller project thanks to the finework you've shared here.

abom3e6 (/member/abom3e6)

thank you instructable, i did many projects according toyour advise and instructions, but know i have a projectusing ESP8266, i tried this code but its gives error wilecompiling

OneWire oneWire(ONE_WIRE_BUS);

DallasTemperature sensors(&oneWire);

so please any advise

m4rk61 (/member/m4rk61) . abom3e6 (/member/abom3e6)

The code seems to be missing:

#include <OneWire.h>#include <DallasTemperature.h>

zecanilis (/member/zecanilis) . abom3e6 (/member/abom3e6)

You need to add the libraries to the arduino program.

Michael Chan (/member/Michael Chan)

I wonder if the Arduino is indeed necessary. Is the MCU onthe ESP8266 inadequate?

Page 14: ESP8266 Wifi Temperature Logger

Reply9 months ago

Reply9 months agoX8

Reply

9 months ago

Reply

8 months ago

Reply

8 months ago

Reply

8 months agoX|8

Reply8 months ago8

Reply

8 months agoX|8

Reply10 months ago

fhovin (/member/fhovin)

This is the most messy and unprofessional howto I've readin a long time. You skip important information, and yourwiring descriptions are allmost impossible to understand.Please do better.

noelportugal (/member/noelportugal) (author) . fhovin (/member/fhovin)

I accept I wrote this long time ago in a rush to getinfo out there when the ESP8266 was brand new.Having said that I invite you to provide a better writeup to benefit the community. I haven't played with theESP8266 in a while but I bet there is way moredocumentation now. There are a lot of good pointershere as well http://www.esp8266.com(http://www.esp8266.com/.)

fhovin (/member/fhovin) . noelportugal (/member/noelportugal)

I'm sorry for the harsh sounding comment. I can only say thatI was frustrated from struggling with this. Thanks for yourtutorial :­)

slarti.fartfast (/member/slarti.fartfast) . fhovin (/member/fhovin)

easy to criticise, mate, where is your vastly superiordocumentation?

fhovin (/member/fhovin) . slarti.fartfast (/member/slarti.fartfast)

Did you read my last comment?

Akin Yildiz (/member/Akin Yildiz) . fhovin (/member/fhovin)

check this out; http://www.instructables.com/id/Envolysis/

hemalchevli (/member/hemalchevli)

Is below correct?

ESP8266 : usb TTL

GND : GND

Vcc : 3.3v

GPIO2 : Not connected

GPIO0 : Not connected

RST : Not connected

CH_PD : 3.3v

RX : TX

Tx : RX

Akin Yildiz (/member/Akin Yildiz) . hemalchevli (/member/hemalchevli)

check this out, http://www.instructables.com/id/Envolysis/

silver111 (/member/silver111)

Page 15: ESP8266 Wifi Temperature Logger

Reply10 months ago

Reply

8 months ago

Reply

8 months agoX|8

Reply9 months ago8

Reply8 months ago8

Reply8 months ago8

Reply8 months ago

Reply9 months ago

Reply

9 months ago

silver111 (/member/silver111)

hello. Is it possible to rewrite the code so that it runs onmultiple sensors DS18B20?

greersbeers (/member/greersbeers) . silver111 (/member/silver111)

Any chance anybody could update this for two sensorsplease? Being trying for weeks!!! Doing my head in now.

Akin Yildiz (/member/Akin Yildiz) . greersbeers (/member/greersbeers)

check this out,

http://www.instructables.com/id/ESP8266­with­Multi...(http://www.instructables.com/id/ESP8266­with­Multiple­Analog­Sensors/)

YourDuino­Maker (/member/YourDuino­Maker) . silver111 (/member/silver111)

See How­To Here:

http://arduino­info.wikispaces.com/Brick­Temperature­DS18B20#mult

Toby Robb (/member/Toby Robb)

Thanks for the code. Nice copy and paste works well!

hemalchevli (/member/hemalchevli)

Please put up a schematic, it'll be of great help

Thanks

greersbeers (/member/greersbeers)

I am trying to add a second DS16B20 on single OneWirebus.

I tried adding [&field2=] to the end of the line String GET ="GET /update?key=[THINGSPEAK_KEY]&field1=";

That didn't work. Any ideas please?

greersbeers (/member/greersbeers)

How would I amend the code to display graph in Celsiusplease?

zecanilis (/member/zecanilis) . greersbeers (/member/greersbeers)

void loop()

sensors.requestTemperatures();

float tempC = sensors.getTempCByIndex(0);

char buffer[10];

String tempF = dtostrf(tempC, 4, 1, buffer);

updateTemp(tempF);delay(60000);

Page 16: ESP8266 Wifi Temperature Logger

Reply

8 months ago

greersbeers (/member/greersbeers) . zecanilis (/member/zecanilis)

Thank you very much!!

IMore Comments

FEATURED CHANNELS

Parties(/tag/type­id/category­craft/channel­parties­and­weddings/)

Beauty(/tag/type­id/category­

home/channel­beauty/)

Kitchen & Bath(/id/moen/)

Breakfast(/tag/type­id/category­food/channel­breakfast/)

Intel IoT(/id/intel/)

Arduino(/tag/type­id/category­

technology/channel­arduino/)

LinkIt ONE(/id/mediatek­linkit­one/)

Laser Cut(/tag/type­id/category­

workshop/channel­laser­cutting/)

Minecraft(/tag/type­id/category­play/channel­minecraft/)Newsletter

Join 2 million + to receive instantinspiration in your inbox.

I'm in!

About UsWho We Are (/about/)Advertise (/advertise/)Contact (/about/contact.jsp)Jobs (/community/Positions­available­at­Instructables/)Help (/id/how­to­write­a­great­instructable/)

Find UsFacebook (http://www.facebook.com/instructables)

Youtube (http://www.youtube.com/user/instructablestv)

Twitter (http://www.twitter.com/instructables)

Pinterest (http://www.pinterest.com/instructables)

Google+ (https://plus.google.com/+instructables)

Tumblr (http://instructables.tumblr.com)

ResourcesFor Teachers (/teachers/)Artists in Residence (/air)Gift Pro Account (/account/give?sourcea=footer)Forums (/community/)Answers (/tag/type­question/?sort=RECENT)Sitemap (/sitemap/)

enter email

MobileDownload our apps!

Android » (https://play.google.com/store/apps/details?id=com.adsk.instructables)iOS » (https://itunes.apple.com/app/instructables/id586765571)Windows » (http://apps.microsoft.com/windows/en­us/app/7afc8194­c771­441a­9590­54250d6a8300)

Terms of Service (http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21959721) |Privacy Statement (http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21292079) |Legal Notices & Trademarks (http://usa.autodesk.com/legal­notices­trademarks/) | Mobile Site (http://m.instructables.com)

(http://usa.autodesk.com/adsk/servlet/pc/index?id=20781545&siteID=123112)© 2015 Autodesk, Inc.

ESP8266 Wifi Temperature Logger by noelportugal (/member/noelportugal/) Download (/id/ESP8266­Wifi­Temperature­Logger/?download=pdf)

Favorite I Made it! Collection

4 Steps .

Share

h (/id/ESP8266­Wifi­Temperature­Logger/)


Recommended