Cov txheej txheem:
- Kauj Ruam 1: Kauj Ruam 1: Tsim Koj Lub Ntsuas Kub
- Kauj Ruam 2: Kauj Ruam 2: Tsim Twitter Account thiab Teeb Arduino-tweet.appspot.com
- Kauj Ruam 3: Kauj Ruam 3: Nthuav Koj Cov Cai ntawm Build.particle.io (Code Hauv Qab thiab Hauv Duab)
- Kauj Ruam 4: Kauj Ruam 4: Tsim Kev Ruaj Ntseg thiab Tau Txais Tweeting
Video: Tweeting Temp Sensor: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Ua koj tus kheej Tweeting Kub Sensor uas tuaj yeem ua haujlwm nyob txhua qhov chaw nrog WiFi.
Kauj Ruam 1: Kauj Ruam 1: Tsim Koj Lub Ntsuas Kub
Yam Yuav Tsum Tau:
1 - Photon
1 - dht22 Kub Sensor
1 - Daim ntawv qhia zaub mov
1 - 10K Resistor
5 - Cov xov hlau
1 - USB rau Mini -USB Cord
1 - Ntsa Plug
Teeb koj lub photon zoo li qhia hauv Fritzing Diagram saum toj no:)
Kauj Ruam 2: Kauj Ruam 2: Tsim Twitter Account thiab Teeb Arduino-tweet.appspot.com
Tsim twitter koj xav tweet los ntawm Photon. Tom qab tsim twitter mus rau arduino-tweet.appspot.com thiab muab tso rau hauv koj tus lej cim twitter. Lub vev xaib no yuav muab tus cim tshiab rau koj uas koj yuav muab tso rau hauv cov lej hauv cov kauj ruam tom ntej. Qhov no tso cai rau koj los tweet los ntawm photon.
Kauj Ruam 3: Kauj Ruam 3: Nthuav Koj Cov Cai ntawm Build.particle.io (Code Hauv Qab thiab Hauv Duab)
// Cov lus #suav nrog no tau txiav txim siab ntxiv los ntawm Particle IDE.
#suav nrog
// OAuth Key #define TOKEN "825469186306617344-sDdIZblaYgQhyNLGgIuk1p4a5yuFytD"
// Twitter Proxy #define LIB_DOMAIN "arduino-tweet.appspot.com"
TCPClient tus neeg siv khoom; #define DHTPIN 0 // dab tsi tus pin peb txuas nrog #define DHTTYPE DHT22 // uas lub sensor peb siv: DHT 22
DHT dht (DHTPIN, DHTTYPE);
ob chav curr_hum; // tam sim no hum ob npaug curr_temp; // tam sim no ntsuas tsis muaj nuj nqis checkHum () {curr_hum = dht.getHumidity (); }
tsis muaj dab tsi checkTemp () {curr_temp = dht.getTempFarenheit (); } void teeb () {pinMode (DHTPIN, INPUT); checkTemp (); char msg = "Nyob zoo!" + Txoj hlua (curr_temp); // msg = "Nyob zoo!" + char (curr_temp); ncua (1000); client.connect (LIB_DOMAIN, 80); client.println ("POST /hloov tshiab HTTP /1.0"); client.println ("Host:" LIB_DOMAIN); client.print ("Cov ntsiab lus-Ntev:"); client.println (tawv ncauj (msg)+tawv ncauj (TOKEN) +14); client.println (); cov. client.print ("token ="); cov. client.print (TOKEN); client.print ("& xwm txheej ="); client.println (msg); } /*void tweetOut (String message) {// char msg = message.toCharArray (); ncua (1000);
client.connect (LIB_DOMAIN, 80); client.println ("POST /hloov tshiab HTTP /1.0"); client.println ("Host:" LIB_DOMAIN); client.print ("Cov ntsiab lus-Ntev:"); client.println (tawv ncauj (msg)+tawv ncauj (TOKEN) +14); client.println (); cov. client.print ("token ="); cov. client.print (TOKEN); client.print ("& xwm txheej ="); client.println (msg); } * / void loop () { / * checkHum (); // xyuas cov av noo. Teeb tsa cov kev hloov pauv hauv zos curr_hum thiab curr_hum str checkTemp (); char msg = "Nyob zoo sawv ntxov! Qhov ntsuas kub tam sim no yog:"+Char (curr_temp)+". Cov av noo tam sim no yog:"+Char (curr_hum)+"."); ncua (1000); client.connect (LIB_DOMAIN, 80); client.println ("POST /hloov tshiab HTTP /1.0"); client.println ("Host:" LIB_DOMAIN); client.print ("Cov ntsiab lus-Ntev:"); client.println (tawv ncauj (msg)+tawv ncauj (TOKEN) +14); client.println (); cov. client.print ("token ="); cov. client.print (TOKEN); client.print ("& xwm txheej ="); client.println (msg); ncua (60000); */}
Kauj Ruam 4: Kauj Ruam 4: Tsim Kev Ruaj Ntseg thiab Tau Txais Tweeting
Tsim lub thaiv, ntsaws rau hauv phab ntsa uas koj xav tau qhov kub thiab txias thiab thawb cov cai los ntawm build.particle.io!
Pom zoo:
ThingSpeak, IFTTT, Temp thiab Humidity Sensor thiab Google Sheet: 8 Cov Kauj Ruam
ThingSpeak, IFTTT, Temp thiab Humidity Sensor thiab Google Sheet: Hauv qhov haujlwm no, peb yuav ntsuas qhov ntsuas kub thiab av noo siv NCD qhov ntsuas kub thiab av noo, ESP32, thiab ThingSpeak. Peb tseem yuav xa qhov ntsuas kub thiab av noo sib txawv mus rau Google Daim Ntawv Siv ThingSpeak thiab IFTTT txhawm rau txheeb xyuas qhov tseeb
Tweeting Teeb Bot: 5 Cov Kauj Ruam (nrog Duab)
Tweeting Teeb Bot: Cov lus qhia no yuav qhia koj yuav ua li cas thiaj ua lub xov tooj ntawm tes tswj Tweeting - Teeb. Nws yog qhov yooj yim txoj haujlwm txias uas siv MIT app tus tsim khoom nrog rau qhov ib puag ncig ib puag ncig coding los tsim lub xov tooj ntawm tes tswj lub teeb los ntawm IoT uas tweets
Temp Sensor DS18B20 (Raspberry Pi): 4 Cov Kauj Ruam (nrog Duab)
Temp Sensor DS18B20 (Raspberry Pi): Qhia yooj yim ntawm yuav ua li cas teeb tsa DS18b20 ntsuas kub nrog raspberry pi
Txhim Kho Cov Hloov Pauv Hloov Rau Hauv Ntse Kov Hloov Nrog Temp Monitoring: 4 Cov Kauj Ruam
Txhim Kho Qhov Hloov Pauv Hloov Mus Rau Ntse Kov Hloov Nrog Lub Sijhawm Saib Xyuas: Kuv paub txhua tus ntawm koj ntsib qhov teeb meem no tsawg kawg ib qho hauv koj lub neej lub rooj hloov pauv tau tawg los ntawm kev siv tas mus li. ntau lub sijhawm yog lub caij nplooj ntoo hlav sab hauv hloov pauv los yog m
Pib Phau Ntawv Qhia rau ESP8266 thiab Tweeting Siv ESP8266: 17 Cov Kauj Ruam (nrog Duab)
Pib Phau Ntawv Qhia rau ESP8266 thiab Tweeting Siv ESP8266: Kuv tau kawm txog Arduino 2 xyoos dhau los.Yog li kuv pib ua si ib puag ncig nrog cov khoom yooj yim xws li LEDs, khawm, lub cav thiab lwm yam. huab cua ib hnub, tus nqi hauv Tshuag, sijhawm qhia tsheb ciav hlau ntawm LCD.Kuv