Sie sind auf Seite 1von 16

let's make

IntelIoT(/id/intel/)
Kitchen&Bath(/id/Moen/)
Featured: share what
you make >
(/)
LinkItONE(/id/mediateklinkitone/)

Explore(/tag/typeid/)
Login(/account/login)
Publish(/about/create.jsp)
| SignUp(/account/gopro?sourcea=header)
Parties(/tag/typeid/categorycraft/channelpartiesandweddings/)

AboutThisInstructable

8 451,822views

License:

361favorites
noelportugal
(/member/noelportugal/)
Myblog
(http://noelportugal.blogspot.com/)

(/member/noelportugal/)
Follow

80

Morebynoelportugal:

(/id/Halloween

PumpkinPayNFCEnabledPumpkins/)
(/file/F0FZH4CI0RYTMAP/)
(/id/ESP8266Wifi

TheydayIreadathackaday(http://hackaday.com/tag/esp8266/
(http://hackaday.com/tag/esp8266/))thatanew$5wifimodulewasavailable,I
orderafewofthemtotest.Now,afewweekslaterIwanttosharemy
experience.

TemperatureLogger/)

ThisisaverysimpledemousingtheESP8266andArduinotoupdatearemote
server(https://thingspeak.com/)usingadigitaltemperaturesensor.
ThesearereallyexcitingtimesfortheInternetofThings(r)evolution.Pricesare
comingdownandtheMakercommunityiseagertodevelopthenextgeneration
ofallthingsconnected.
Thefollowingsetupcouldbedoneunder$20.Thisisusingofftheshelf"pricey"
components(likeArduino),butyoucouldprogramyourownMCUwithUART
supportandmakeitcheaper.

(/id/Interactive

MagicMirrorwithCandyDispenser/)
Tags:

ESP8266(/tag/typeid/keywordESP8266/)

arduino(/tag/typeid/keywordarduino/)
internetofthings(/tag/typeid/keywordinternet%20of%20things/)
temperature(/tag/typeid/keywordtemperature/)

Step1:Materials

iot(/tag/typeid/keywordiot/)
thingspeak(/tag/typeid/keywordthingspeak/)
cheapwifi(/tag/typeid/keywordcheap%20wifi/)

Related
wirelessloggerESP8266
NodeMCUv1.0withArduino
IDE(/id/ESP8266NodeMCU
v10ESP12EwithArduino
(/id/ESP8266 IDE/)
WIFIplantmonitoring
systembasedonArduino
MEGAandESP8266
(/id/WIFIplantmonitoring

(/id/WIFIplantmonitoring
systembasedonArduino
DIYPCBbreakoutfor
ESP8266(ESP01)Maker's
IoTKit(/id/MakersIoTKitfor
ESP8266ESP01/)
(/id/Makers byshinteo(/member/shinteo/)
AninexpensiveIoTenabler
usingESP8266(/id/An
inexpensiveIoTenabler
usingESP8266/)
bygopinath.marappan
(/id/An
ESP8266WiFirelayswitch
(/id/ESP8266WiFirelay
switch/)
byEasyIoT
(/id/ESP8266 (/member/EasyIoT/)
(/id/WIFI

(/file/F9RJB5KI0RYRV30/)

(/file/FS9I33ZI0RYS6HN/)

1xESP8266(http://www.electrodragon.com/product/esp8266wi07cwifi
module/(http://www.electrodragon.com/product/esp8266wi07cwifi
module/))
1xArduinoProMini3283.3V/8MHz
(https://www.sparkfun.com/products/11114
(https://www.sparkfun.com/products/11114))
1xDS18B20DigitalTemperatureSensor
(http://www.mouser.com/ProductDetail/MaximIntegrat...
(http://www.mouser.com/ProductDetail/MaximIntegrated/DS18B20+/?
qs=sGAEpiMZZMvbyeSUH4qH%2fLbikZ7SIep9)
1x4.7kresistor
1xPowersupply(3.3Vupto12V,Iuseda9v)

Step2:ESP8266Setup

(/file/FSQTKOYI0RYRV1U/)

Thisiswherethingsgottricky.Ispentalotoftimetestingdifferent
configurations.NotethataretwoversionoftheESP8266goingaround.Thefirst
onehasthenotificationLEDsrightnexttotheboardpins.Thesecondone
(newer)hastheLEDsbytheantenna.Ihavethesecondone.
ThebestresultscamewhenIloadedV0.922whichallowedmetochangethe
baudrateto9600.Followthesestepstoloadthisfirmware.
http://www.electrodragon.com/w/Wi07c#Firmware_uploading_tool
(http://www.electrodragon.com/w/Wi07c#Firmware_uploading_tool)
ThebestwaytotestagoodconnectionisbyusingaUSBtoTTLcableand
usingaterminallikeCoolTerm.Hereisthecommandtochangethebaudrate:
AT+CIOBAUD=9600
ThesearethepinconnectionsIusedonESP8266toUSBtoTTL.Iusedthe
regulated3.3vvccoftheArduinotopowertheESP8266.IknowthatArduino
vcc3.3vmaxisoutputis150mAandESP8266willpeakat240mA.Butatthe
timeIhadnootherregulated3.3vavailable.RegularusagefortheESP8266is
at70mA.
RemembertoconnectGPIO0toGNDwhenyouareuploadingnewfirmware.
Afterthatremovefornormaloperation.

UTXD>RX(USBtoTTL)
CH_PD<>VCC
RST
VCC>VCC(powersource)

GND>GND(powersource)
GPIO2
GPIO0
URXD>TX(USBtoTTL)

*NotealsohadtodoUSBtoTTLGNDtoArduinoGND

Step3:ArduinoSetupandSketch

(/file/FBF8ATCI0RYS6HJ/)

ESP8266toArduino

UTXD>RXArduino
CH_PD<>VCC
RST
VCC>VCCArduino

GND>GNDArduino
GPIO2
GPIO0
URXD>TXArduino

DigitalTemperatureSensortoArduino

ArduinoGND>DS18B20GND(1)>DS18B20VDD(3)
DS18B20DQ(2)>4.7KR>VCCArduino3.3v

#include<stdlib.h>
#include<SoftwareSerial.h>
#include<OneWire.h>
#include<DallasTemperature.h>
#defineONE_WIRE_BUS8
OneWireoneWire(ONE_WIRE_BUS);
DallasTemperaturesensors(&oneWire);</p><p>
#defineSSID"[YOUR_SSID]"
#definePASS"[YOUR_PASSWORD]"
#defineIP"184.106.153.149"//thingspeak.com
StringGET="GET/update?key=[THINGSPEAK_KEY]&field1=";
SoftwareSerialmonitor(10,11);//RX,TX

SoftwareSerialmonitor(10,11);//RX,TX
voidsetup()
{
monitor.begin(9600);
Serial.begin(9600);
sensors.begin();
sendDebug("AT");
delay(5000);
if(Serial.find("OK")){
monitor.println("RECEIVED:OK");
connectWiFi();
}
}
voidloop(){
sensors.requestTemperatures();
floattempC=sensors.getTempCByIndex(0);
tempC=DallasTemperature::toFahrenheit(tempC);
charbuffer[10];
StringtempF=dtostrf(tempC,4,1,buffer);
updateTemp(tempF);
delay(60000);
}
voidupdateTemp(StringtenmpF){
Stringcmd="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");
}
}
voidsendDebug(Stringcmd){
monitor.print("SEND:");
monitor.println(cmd);
Serial.println(cmd);
}

booleanconnectWiFi(){
Serial.println("AT+CWMODE=1");
delay(2000);
Stringcmd="AT+CWJAP=\"";
cmd+=SSID;
cmd+="\",\"";
cmd+=PASS;
cmd+="\"";
sendDebug(cmd);
delay(5000);
if(Serial.find("OK")){
monitor.println("RECEIVED:OK");
returntrue;
}else{
monitor.println("RECEIVED:Error");
returnfalse;

returnfalse;
}
}

*UPDATE.Onceyourdonetesting/monitoring.Loadthesamesketchwithout
SoftwareSerialMonitor.Thisgavemebetterresultsasstandalone.
#include
#include
#include
#defineONE_WIRE_BUS8
OneWireoneWire(ONE_WIRE_BUS);
DallasTemperaturesensors(&oneWire);
#defineSSID"[YOUR_SSID]"
#definePASS"[YOUR_PASSWORD]"
#defineIP"184.106.153.149"//thingspeak.com
StringGET="GET/update?key=[THINGSPEAK_KEY]&field1=";

voidsetup()
{
Serial.begin(9600);
sensors.begin();
Serial.println("AT");
delay(5000);
if(Serial.find("OK")){
connectWiFi();
}
}
voidloop(){
sensors.requestTemperatures();
floattempC=sensors.getTempCByIndex(0);
tempC=DallasTemperature::toFahrenheit(tempC);
charbuffer[10];
StringtempF=dtostrf(tempC,4,1,buffer);
updateTemp(tempF);
delay(60000);
}
voidupdateTemp(StringtenmpF){
Stringcmd="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");
}
}

booleanconnectWiFi(){
Serial.println("AT+CWMODE=1");
delay(2000);
Stringcmd="AT+CWJAP=\"";
cmd+=SSID;
cmd+="\",\"";
cmd+=PASS;
cmd+="\"";
Serial.println(cmd);
delay(5000);
if(Serial.find("OK")){
returntrue;

returntrue;
}else{
returnfalse;
}
}

Step4:ThingSpeaksetup

(/file/FYX511HI0RYS6A4/)

Getting Started with ThingSpeak - ThingSpeak Introduction

0:03 / 2:04

ThinkSpeakisjustawesome!Followthesesimplestepstostartyouownfeed:
1. SignupforaFREEaccountathttps://thingspeak.com/
(https://thingspeak.com/)
2. GotoChannels>CreateNewChannel(youcanleavealldefaults)
3. GotoAPIKeysandgetyourKEY
4. Testbyputtingthisonyourbrowser
http://api.thingspeak.com/update?key=[THINGSPEAK_KEY]&field1=0
5. Checkyourresults
http://api.thingspeak.com/channels/[CHANNEL_ID]/feed.json?key=
[THINGSPEAK_KEY]
Nowyouarereadytostartsendingdata.

Wehaveabenicecommentpolicy.

Pleasebepositiveandconstructive.

wIMadeit!

AddImages

gphat(/member/gphat)

whenIrunthissketch,ishowasbelow
AT
AT+CIPSTART="TCP","184.106.153.149",80
AT+CIPSEND=54
AT+CIPCLOSE
AT+CIPSTART="TCP","184.106.153.149",80
AT+CIPSEND=54
AT+CIPCLOSE
AT+CIPSTART="TCP","184.106.153.149",80
AT+CIPSEND=54
AT+CIPCLOSE
AT+CIPSTART="TCP","184.106.153.149",80
AT+CIPSEND=54
AT+CIPCLOSE
AT+CIPSTART="TCP","184.106.153.149",80
AT+CIPSEND=54
AT+CIPCLOSE
AT+CIPSTART="TCP","184.106.153.149",80
AT+CIPSEND=54
Icantuploadtothingspeak.the2ledonespstillon,I
connectnothingtoUno.hereismycode
#include<SoftwareSerial.h>
#defineSSID""//Ideleteitwhenposthere
#definePASS""
//Ideleteitwhenposthere
#defineIP"184.106.153.149"//thingspeak.com
StringGET="GET/update?
key=EDPAJHIWQLX2A8VB&field1="
SoftwareSerialmonitor(10,11)//RX,TX
voidsetup()
{
monitor.begin(9600)
Serial.begin(9600)
sendDebug("AT")
delay(1000)
if(Serial.find("OK")){
monitor.println("RECEIVED:OK")
connectWiFi()
}
}
voidloop(){
StringtempF=String(5.4,DEC)
updateTemp(tempF)
delay(1000)
}
voidupdateTemp(StringtenmpF){
Stringcmd="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=")

PostComment

8monthsago

Reply

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")
}
}
voidsendDebug(Stringcmd){
monitor.print("SEND:")
monitor.println(cmd)
Serial.println(cmd)
}
booleanconnectWiFi(){
Serial.println("AT+CWMODE=1")
delay(1000)
Stringcmd="AT+CWJAP=\""
cmd+=SSID
cmd+="\",\""
cmd+=PASS
cmd+="\""
sendDebug(cmd)
delay(1000)
if(Serial.find("OK")){
monitor.println("RECEIVED:OK")
returntrue
}else{
monitor.println("RECEIVED:Error")
returnfalse
}
}

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

didyourproblemsolved?iamhavingsameerror...iamusing
esp8266_03module

Reply

16daysago

RidhwanA(/member/RidhwanA) . gphat(/member/gphat) 2monthsago

Reply

Pleasereadmycommentabove.Hopethishelps.

FlorentV(/member/FlorentV)

7monthsago

Reply

Hello,
ItriedtoconnectaMegaArduino,asensorDS18B20and
esp8266tosenddatafrommysensorontheInternet.
Afterconfiguration,Ised
https://codebender.cc/sketch:98754#thingspeak%20ds18b20%20esp8266.ino
thiscode
butthedatadoesnotreachtheserver,why?
AT
AT+CIPSTART="TCP","184106153149"80
AT+CIPSEND=47
AT+CIPCLOSE
AT+CIPSTART="TCP","184106153149"80
AT+CIPSEND=47
AT+CIPCLOSE

AT+CIPCLOSE
AT+CIPSTART="TCP","184106153149"80
AT+CIPSEND=47
AT+CIPCLOSE
Cananyonehelpmeplease?
Thankyouinadvance

NomanAhmed3(/member/NomanAhmed3) . FlorentV(/member/FlorentV)
16daysago

didyourproblemsolved?iamhavingsameerror...i
amusingesp8266_03module

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

Reply

Reply

2monthsago

Pleasereadmycommentabove.Hopethishelps.

JohnW166(/member/JohnW166)

amonthago

Reply

imadethis!partofmyhugesolarinvertercontrollerproject.
Workslikeacharm.Ievendidntbothertoupdatethe
firmware,ijustinstructedthearduinototelltheespto
changeportspeedto9600atstartup,andthenchangethe
arduinoserielportto9600also,andcarryon.(toolazyto
learnhowtoupdatefirmwareunlessireallyneededitlol)
anyway,ihaveaquestion.Ineedtohavemorethanone
feed(actuallyabout30)
Howdoigoaboutthis?

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

canyoupleaseshareyourcode?

ehsanito(/member/ehsanito)

16daysago

Reply

amonthago

Reply

5monthsago

Reply

Thereisanerrorinthispieceofcode:
if(Serial.find(">"))
{
Serial.print(cmd)
}
else
{
Serial.println("AT+CIPCLOSE")
}
Itshouldbelikethis:
Serial.println(cmd)

JiB(/member/JiB)

Hiwhymiinserialportsarduinoduemilanovewriting?:
AT
AT+CIPSTART="TCP","184106153149"80
AT+CIPSEND=47

AT+CIPCLOSE
andtempnosendtothingspeak.com....

RidhwanA(/member/RidhwanA) . JiB(/member/JiB)

2monthsago

Reply

Igotthesameproblem.TosolveIconnectedRESETtoVCC3.3V.Hope
thishelps.

LashaP(/member/LashaP) . JiB(/member/JiB)

4monthsago

Reply

Ihavesameproblem,didyousolve?ifyes,pleasesendmeinstructions,
thankyou!

X
|
8

Ploopy(/member/Ploopy)

4monthsago

Reply

5monthsago

Reply

Cool!

NgetChandara(/member/NgetChandara)

icouldn'tunderstandhowtouploadnewfirmwareto
esp2866canyouexplainitclearly?Whatdouuseto
uploadthefirmwaretoesp2866?thankyouforsharingthe
newidea.

StefanoD1(/member/StefanoD1) . NgetChandara(/member/NgetChandara)

trywiththis:(followstepbystep)

5monthsago

Reply

http://www.xess.com/blog/esp8266reflash/
(http://www.xess.com/blog/esp8266reflash/)
youcanfindagoodfirmwarehere:
http://www.instructables.com/id/IntroEsp8266fir...
(http://www.instructables.com/id/IntroEsp8266
firmwareupdate/)

NgetChandara(/member/NgetChandara) . StefanoD1(/member/StefanoD1)

thanku

gabrielcw(/member/gabrielcw)madeit!

4monthsago

Reply

5monthsago

Reply

Aftersometinkering,Itworks!Thanks.IusedDHT22fortempandhumidity.
https://thingspeak.com/channels/43907
(https://thingspeak.com/channels/43907)

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

SandeshKa94(/member/SandeshKa94)

inordertopostdatatothewebsitePOSThastobeused.
WhyGETmethodisusedhere?Couldyoupleaseexplain

5monthsago

Reply

WhyGETmethodisusedhere?Couldyoupleaseexplain
indetail

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

Reply

5monthsago

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

chrisrust(/member/chrisrust)madeit!

10monthsago

Reply

Iwanttothanknoelportugalforthegreatinstructable.Myprojectisworkingnow
butIwasunabletogetittoworkinitiallysoIthoughtIwouldpostaschematic
andthecodethatisworkingforme.MyESP8266isrunningthe0018000902
firmware.Alsothankstotheotherpostersforyourhelp.

(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)

thatcircuitdiagramisveryhelpful(Ialmostsaidsketch,but
thatterminologymightbeconfusinginthiscontext!)buta
coupleofquestions:

Reply

5monthsago

1)why3.3vintoraw?shouldn'tthatbevcc?ifrawis
regulatedwouldnt3.3vbetoolow?
2)shouldntGPIO0andGPIO2betiedhighinnormal
operationtoavoiderraticbehaviourratherthanleftfloating?

Jasonw3(/member/Jasonw3)

Veryamazingproject.Wifiissuitablefortheindoormonitor.
Fortheoutdoormonitoring,irecommendtheSub_Gsolution
basedon433MHz.Onlyonemodulewith18b20sensor.Pls
checkasbelow:
http://www.appconwireless.com/NEWS/shownews.php?
lang=en&id=13
(http://www.appconwireless.com/NEWS/shownews.php?

ayearago

Reply

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)

Reply

Ihaveusedseveral433mhzdevicesandtheESP8266isso 5monthsago
muchmoreversatileandeasytousethatIMHOIcan't
imaginemanycirumstanceswhereitwouldn'tbethebetter
choicetherangeiseasilycomparabletothe433mhz
devices.

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

Iagree.TheLoRamoduleRF1276basedonSubGHzis
moreamazingsolutionsinceIhaveseen.Therangeisupto
56Kmlong.Thereisalinkforthisinformation.

Reply

5monthsago

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

satyasankar09(/member/satyasankar09)

6monthsago

Reply

7monthsago

Reply

9monthsago

Reply

m4rk61(/member/m4rk61) . abom3e6(/member/abom3e6) 7monthsago

Reply

thanksaton..

X
8

bitsandbots(/member/bitsandbots)

I'mworkingonincorporatingtheESP8266intomy
AutomatedGardenControllerprojectthankstothefine
workyou'vesharedhere.

abom3e6(/member/abom3e6)

thankyouinstructable,ididmanyprojectsaccordingto
youradviseandinstructions,butknowihaveaproject
usingESP8266,itriedthiscodebutitsgiveserrorwile
compiling
OneWireoneWire(ONE_WIRE_BUS)
DallasTemperaturesensors(&oneWire)
sopleaseanyadvise

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

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

Youneedtoaddthelibrariestothearduinoprogram.

MichaelChan(/member/MichaelChan)

IwonderiftheArduinoisindeednecessary.IstheMCUon
theESP8266inadequate?

Reply

9monthsago

7monthsago

Reply

fhovin(/member/fhovin)

9monthsago

Reply

ThisisthemostmessyandunprofessionalhowtoI'veread
inalongtime.Youskipimportantinformation,andyour
wiringdescriptionsareallmostimpossibletounderstand.
Pleasedobetter.

X
8

noelportugal(/member/noelportugal)(author) . fhovin(/member/fhovin)
9monthsago
IacceptIwrotethislongtimeagoinarushtoget
infoouttherewhentheESP8266wasbrandnew.
HavingsaidthatIinviteyoutoprovideabetterwrite
uptobenefitthecommunity.Ihaven'tplayedwiththe
ESP8266inawhilebutIbetthereiswaymore
documentationnow.Therearealotofgoodpointers
hereaswellhttp://www.esp8266.com
(http://www.esp8266.com/.)

Reply

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

Reply

I'msorryfortheharshsoundingcomment.Icanonlysaythat 9monthsago
Iwasfrustratedfromstrugglingwiththis.Thanksforyour
tutorial:)

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

Reply

8monthsago

easytocriticise,mate,whereisyourvastlysuperior
documentation?

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

Didyoureadmylastcomment?

X
|
8

Reply

8monthsago

AkinYildiz(/member/AkinYildiz) . fhovin(/member/fhovin)

checkthisouthttp://www.instructables.com/id/Envolysis/

hemalchevli(/member/hemalchevli)

Reply

8monthsago

8monthsago

Reply

Isbelowcorrect?
ESP8266:usbTTL
GND:GND
Vcc:3.3v
GPIO2:Notconnected
GPIO0:Notconnected
RST:Notconnected
CH_PD:3.3v
RX:TX
Tx:RX

X
|
8

AkinYildiz(/member/AkinYildiz) . hemalchevli(/member/hemalchevli)

checkthisout,http://www.instructables.com/id/Envolysis/

silver111(/member/silver111)

Reply

8monthsago

10monthsago

Reply

silver111(/member/silver111)

10monthsago

Reply

hello.Isitpossibletorewritethecodesothatitrunson
multiplesensorsDS18B20?

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

Anychanceanybodycouldupdatethisfortwosensors
please?Beingtryingforweeks!!!Doingmyheadinnow.

X
|
8

Reply

8monthsago

AkinYildiz(/member/AkinYildiz) . greersbeers(/member/greersbeers)

Reply

8monthsago

checkthisout,
http://www.instructables.com/id/ESP8266withMulti...
(http://www.instructables.com/id/ESP8266withMultiple
AnalogSensors/)

YourDuinoMaker(/member/YourDuinoMaker) . silver111(/member/silver111)

SeeHowToHere:

9monthsago

Reply

8monthsago

Reply

8monthsago

Reply

8monthsago

Reply

9monthsago

Reply

http://arduinoinfo.wikispaces.com/Brick
TemperatureDS18B20#mult

TobyRobb(/member/TobyRobb)

Thanksforthecode.Nicecopyandpasteworkswell!

hemalchevli(/member/hemalchevli)

Pleaseputupaschematic,it'llbeofgreathelp
Thanks

greersbeers(/member/greersbeers)

IamtryingtoaddasecondDS16B20onsingleOneWire
bus.
Itriedadding[&field2=]totheendofthelineStringGET=
"GET/update?key=[THINGSPEAK_KEY]&field1="
Thatdidn'twork.Anyideasplease?

greersbeers(/member/greersbeers)

HowwouldIamendthecodetodisplaygraphinCelsius
please?

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

voidloop()
{
sensors.requestTemperatures()
floattempC=sensors.getTempCByIndex(0)
charbuffer[10]
StringtempF=dtostrf(tempC,4,1,buffer)
updateTemp(tempF)
delay(60000)
}

Reply

9monthsago

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

Reply

8monthsago

Thankyouverymuch!!

I MoreComments

ESP8266WifiTemperatureLogger bynoelportugal(/member/noelportugal/)
FEATURED CHANNELS
Download(/id/ESP8266WifiTemperatureLogger/?download=pdf) h(/id/ESP8266WifiTemperatureLogger/)
Collection

IMadeit!

4Steps

Favorite

Share

Parties
(/tag/type

Beauty

Breakfast

Arduino

LaserCut

Minecraft

id/category

(/tag/type

(/tag/type

(/tag/type

(/tag/type

(/tag/type

id/category

id/category

id/category

id/category

craft/channel
partiesand
weddings/)

home/channel Kitchen&Bath
food/channel
Newsletter
beauty/)
(/id/moen/) breakfast/)

id/category
IntelIoT
(/id/intel/)

LinkItONE

technology/channel
(/id/mediatek
workshop/channelplay/channel

arduino/)

linkitone/)
lasercutting/) minecraft/)

Join2million+toreceiveinstant
inspirationinyourinbox.
enteremail

I'min!

Mobile
Downloadourapps!
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/enus/app/7afc8194c771441a959054250d6a8300)

AboutUs

FindUs

WhoWeAre(/about/)

Facebook(http://www.facebook.com/instructables)

Advertise(/advertise/)

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

Contact(/about/contact.jsp)

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

Jobs(/community/PositionsavailableatInstructables/)
Help(/id/howtowriteagreatinstructable/)

Pinterest(http://www.pinterest.com/instructables)
Google+(https://plus.google.com/+instructables)
Tumblr(http://instructables.tumblr.com)

Resources
ForTeachers(/teachers/)
ArtistsinResidence(/air)
GiftProAccount(/account/give?sourcea=footer)
Forums(/community/)
Answers(/tag/typequestion/?sort=RECENT)
Sitemap(/sitemap/)

TermsofService(http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21959721) |
PrivacyStatement(http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=21292079) |
LegalNotices&Trademarks(http://usa.autodesk.com/legalnoticestrademarks/) | MobileSite(http://m.instructables.com)
(http://usa.autodesk.com/adsk/servlet/pc/index?id=20781545&siteID=123112)
2015Autodesk,Inc.

Das könnte Ihnen auch gefallen