{"id":22163,"date":"2018-02-18T18:55:19","date_gmt":"2018-02-18T11:55:19","guid":{"rendered":"http:\/\/tom.ji42.com\/?p=22163"},"modified":"2018-02-18T19:25:06","modified_gmt":"2018-02-18T12:25:06","slug":"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%aa%e0%b9%88%e0%b8%87%e0%b8%82%e0%b9%89%e0%b8%ad%e0%b8%a1%e0%b8%b9%e0%b8%a5%e0%b8%ab%e0%b8%b2%e0%b8%81%e0%b8%b1%e0%b8%99%e0%b8%a3%e0%b8%b0%e0%b8%ab%e0%b8%a7%e0%b9%88","status":"publish","type":"post","link":"https:\/\/tom.tomwork.net\/?p=22163","title":{"rendered":"\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2b\u0e32\u0e01\u0e31\u0e19\u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07 Arduino to Nodemuc Esp8266 \u0e42\u0e14\u0e22\u0e1c\u0e48\u0e32\u0e19 Serial"},"content":{"rendered":"<p><strong>\u0e01\u0e32\u0e23\u0e2d\u0e2d\u0e01\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e08\u0e30\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e43\u0e2b\u0e49\u0e21\u0e35\u0e01\u0e32\u0e23\u0e16\u0e32\u0e21\u0e15\u0e2d\u0e1a \u0e43\u0e2b\u0e49\u0e21\u0e31\u0e19\u0e04\u0e38\u0e22\u0e01\u0e31\u0e19\u0e19\u0e31\u0e49\u0e19\u0e40\u0e2d\u0e07 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49\u0e44\u0e14\u0e49\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07\u0e04\u0e23\u0e31\u0e1a<\/strong><\/p>\n<blockquote>\n<ul>\n<li>Nodemcu : \u0e09\u0e31\u0e19\u0e16\u0e32\u0e21\u0e40\u0e18\u0e2d (\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e17\u0e35\u0e48 1 \u0e04\u0e37\u0e2d\u0e04\u0e48\u0e32\u0e2d\u0e30\u0e44\u0e23\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32\u0e21\u0e32\u0e19\u0e48\u0e30) \u0e16\u0e49\u0e32\u0e40\u0e18\u0e2d\u0e44\u0e21\u0e48\u0e15\u0e2d\u0e1a\u0e09\u0e31\u0e19\u0e08\u0e30\u0e16\u0e32\u0e21\u0e40\u0e18\u0e2d\u0e0b\u0e49\u0e33\u0e46 \u0e08\u0e19\u0e01\u0e27\u0e48\u0e32\u0e40\u0e18\u0e2d\u0e08\u0e30\u0e15\u0e2d\u0e1a<\/li>\n<li>Arduino : \u0e2a\u0e48\u0e07\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e43\u0e2b\u0e49 Nodemcu<\/li>\n<\/ul>\n<\/blockquote>\n<p><strong>\u0e1e\u0e35\u0e48\u0e08\u0e30\u0e22\u0e01\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 \u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32\u0e41\u0e1a\u0e1a\u0e04\u0e48\u0e32\u0e15\u0e32\u0e22\u0e15\u0e31\u0e27 \u0e43\u0e2b\u0e49\u0e19\u0e49\u0e2d\u0e07\u0e44\u0e14\u0e49\u0e44\u0e1b\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e01\u0e31\u0e19\u0e15\u0e48\u0e2d\u0e19\u0e48\u0e30\u0e04\u0e23\u0e31\u0e1a<\/strong><\/p>\n<p><strong>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e15\u0e48\u0e2d\u0e27\u0e07\u0e08\u0e23\u00a0<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/do.lnwfile.com\/_\/do\/_raw\/sj\/0u\/xc.png\" alt=\"\" width=\"400\" height=\"373\" \/><\/p>\n<p>&nbsp;<\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td><strong>Arduino<\/strong><\/td>\n<td><strong>Nodemcu Esp8266<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Pin 10<\/td>\n<td>Pin D6<\/td>\n<\/tr>\n<tr>\n<td>Pin 11<\/td>\n<td>Pin D5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<blockquote><p>\u0e2b\u0e32\u0e01\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e37\u0e48\u0e2d\u0e2a\u0e32\u0e23 \u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07 uno \u0e01\u0e31\u0e1a nodemcu \u0e14\u0e49\u0e27\u0e22 serial<\/p>\n<p>\u0e01\u0e32\u0e23\u0e15\u0e48\u0e2d tx , rx \u0e08\u0e32\u0e01 uno \u0e44\u0e1b node mcu\u00a0\u00a0\u0e15\u0e49\u0e2d\u0e07\u0e15\u0e48\u0e2d\u0e1c\u0e48\u0e32\u0e19 Logic Level Converter \u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e31\u0e1a<\/p>\n<p>\u0e40\u0e1e\u0e23\u0e32\u0e30 tx , rx \u0e02\u0e2d\u0e07 uno \u0e17\u0e33\u0e07\u0e32\u0e19\u0e17\u0e35\u0e48 5v \u0e41\u0e15\u0e48\u00a0\u00a0 nocd MCU\u00a0\u00a0tx,rx \u0e17\u0e33\u0e07\u0e32\u0e19\u0e17\u0e35\u0e48 3.3v<\/p>\n<p>UNO\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NodeMcu<br \/>\nTx\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8211; Logic level convert\u00a0\u00a0&#8211;&gt;\u00a0\u00a0\u00a0\u00a0 rx<br \/>\nrx\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;&#8212;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8212;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0tx<\/p><\/blockquote>\n<p><!--more--><\/p>\n<p><strong>Code \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32 \u0e1d\u0e31\u0e48\u0e07 Arduino \u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32 \u0e44\u0e1b\u0e22\u0e31\u0e07 Nodemcu<\/strong><\/p>\n<blockquote><p>int a = 13;<\/p>\n<p>int b = 25;<\/p>\n<p>#include &lt;SoftwareSerial.h&gt;<\/p>\n<p>SoftwareSerial chat(10, 11); \/\/ RX, TX<\/p>\n<p>int i;<\/p>\n<p>void setup() \u00a0{<\/p>\n<p>Serial.begin(9600);<\/p>\n<p>chat.begin(4800);<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>void loop() {<\/p>\n<p>if (chat.readString()){<\/p>\n<p>\/\/ chat.print(1);<\/p>\n<p>if(chat.readString()== &#8220;Question1&#8221;){\u00a0\/\/\u0e21\u0e35\u0e01\u0e32\u0e23\u0e16\u0e32\u0e21\u0e04\u0e33\u0e16\u0e32\u0e21\u00a0Question1\u00a0\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 a \u0e2d\u0e2d\u0e01\u0e44\u0e1b<\/p>\n<p>chat.print(a);<\/p>\n<p>}<\/p>\n<p>if(chat.readString()== &#8220;Question2&#8221;){\u00a0\/\/\u0e21\u0e35\u0e01\u0e32\u0e23\u0e16\u0e32\u0e21\u0e04\u0e33\u0e16\u0e32\u0e21\u00a0Question2\u00a0\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 b \u0e2d\u0e2d\u0e01\u0e44\u0e1b<\/p>\n<p>chat.print(b);<\/p>\n<p>}<\/p>\n<p>Serial.print(&#8220;Send = &#8220;);<\/p>\n<p>Serial.println(i);<\/p>\n<p>}<\/p>\n<p>i++;<\/p>\n<p>delay(1000);<\/p>\n<p>&nbsp;<\/p>\n<p>}<\/p><\/blockquote>\n<p><strong>\u00a0Code \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32 \u0e1d\u0e31\u0e48\u0e07 Arduino \u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32 \u0e44\u0e1b\u0e22\u0e31\u0e07 Nodemcu<\/strong><\/p>\n<blockquote><p>#include &lt;SoftwareSerial.h&gt;<\/p>\n<p>SoftwareSerial chat(D5, D6); \/\/ RX, TX<\/p>\n<p>String a;<\/p>\n<p>void setup() {<\/p>\n<p>Serial.begin(9600);<\/p>\n<p>chat.begin(4800);<\/p>\n<p>&nbsp;<\/p>\n<p>delay(10);<\/p>\n<p>}<\/p>\n<p>void loop() {<\/p>\n<p>Serial.println(&#8220;Please wait Serial..&#8221;);<\/p>\n<p>while (a == &#8220;&#8221;) {<\/p>\n<p>chat.print(&#8220;Question1&#8221;);\u00a0\/\/ \u0e2a\u0e48\u0e07\u0e2b\u0e31\u0e27\u0e02\u0e49\u0e2d\u0e04\u0e33\u0e16\u0e32\u0e21 \u0e27\u0e48\u0e32\u00a0Question1 \u0e44\u0e1b\u0e22\u0e31\u0e07 Arduino<\/p>\n<p>a = chat.readString(); \u00a0\/\/ \u0e2d\u0e48\u0e32\u0e19 Serial \u0e41\u0e25\u0e30\u0e19\u0e33\u0e44\u0e1b\u0e40\u0e01\u0e47\u0e1a\u0e43\u0e19\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 A<\/p>\n<p>Serial.print(a);<\/p>\n<p>delay(100);<\/p>\n<p>Serial.print(&#8220;.&#8221;);<\/p>\n<p>&nbsp;<\/p>\n<p>}<\/p>\n<p>}<\/p><\/blockquote>\n<p>\u0e40\u0e17\u0e48\u0e32\u0e19\u0e35\u0e49\u0e19\u0e49\u0e2d\u0e07\u0e01\u0e47\u0e08\u0e30\u0e44\u0e14\u0e49\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07 Arduino \u0e41\u0e25\u0e30 Nodecmu esp8266 \u0e40\u0e1e\u0e34\u0e48\u0e21\u0e02\u0e36\u0e49\u0e19 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e19\u0e33\u0e44\u0e1b\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e15\u0e48\u0e2d\u0e22\u0e2d\u0e14 \u0e44\u0e14\u0e49\u0e41\u0e25\u0e49\u0e27\u0e04\u0e23\u0e31\u0e1a \u0e15\u0e48\u0e2d\u0e44\u0e1b\u0e2d\u0e22\u0e32\u0e01\u0e43\u0e2b\u0e49 Nodecmu \u0e23\u0e31\u0e1a Sensor Analog \u0e44\u0e14\u0e49 16 \u0e15\u0e31\u0e27\u0e01\u0e47\u0e44\u0e21\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e1b\u0e31\u0e0d\u0e2b\u0e32\u0e2d\u0e35\u0e01\u0e15\u0e48\u0e2d\u0e44\u0e1b\u0e41\u0e25\u0e49\u0e27\u0e04\u0e23\u0e31\u0e1a \u0e40\u0e23\u0e32\u0e43\u0e0a\u0e49\u00a0<a href=\"https:\/\/www.9arduino.com\/product\/tag\/arduino-mega-2560\">Arduino Mega 2560<\/a>\u00a0\u0e15\u0e48\u0e2d \u0e01\u0e31\u0e1a\u00a0<a href=\"https:\/\/www.9arduino.com\/product\/tag\/nodemcu\">Nodemcu<\/a>\u00a0\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e01\u0e32\u0e23\u0e2d\u0e2d\u0e01\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e08\u0e30\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e43\u0e2b\u0e49\u0e21\u0e35\u0e01\u0e32\u0e23\u0e16\u0e32\u0e21\u0e15\u0e2d\u0e1a \u0e43\u0e2b\u0e49\u0e21\u0e31\u0e19\u0e04\u0e38\u0e22\u0e01\u0e31\u0e19\u0e19\u0e31\u0e49\u0e19\u0e40\u0e2d\u0e07 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e43\u0e2b\u0e49\u0e44\u0e14\u0e49\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07\u0e04\u0e23\u0e31\u0e1a Nodemcu : \u0e09\u0e31\u0e19\u0e16\u0e32\u0e21\u0e40\u0e18\u0e2d (\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e17\u0e35\u0e48 1 \u0e04\u0e37\u0e2d\u0e04\u0e48\u0e32\u0e2d\u0e30\u0e44\u0e23\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32\u0e21\u0e32\u0e19\u0e48\u0e30) \u0e16\u0e49\u0e32\u0e40\u0e18\u0e2d\u0e44\u0e21\u0e48\u0e15\u0e2d\u0e1a\u0e09\u0e31\u0e19\u0e08\u0e30\u0e16\u0e32\u0e21\u0e40\u0e18\u0e2d\u0e0b\u0e49\u0e33\u0e46 \u0e08\u0e19\u0e01\u0e27\u0e48\u0e32\u0e40\u0e18\u0e2d\u0e08\u0e30\u0e15\u0e2d\u0e1a Arduino : \u0e2a\u0e48\u0e07\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23\u0e43\u0e2b\u0e49 Nodemcu \u0e1e\u0e35\u0e48\u0e08\u0e30\u0e22\u0e01\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 \u0e01\u0e32\u0e23\u0e2a\u0e48\u0e07\u0e04\u0e48\u0e32\u0e41\u0e1a\u0e1a\u0e04\u0e48\u0e32\u0e15\u0e32\u0e22\u0e15\u0e31\u0e27 \u0e43\u0e2b\u0e49\u0e19\u0e49\u0e2d\u0e07\u0e44\u0e14\u0e49\u0e44\u0e1b\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e01\u0e31\u0e19\u0e15\u0e48\u0e2d\u0e19\u0e48\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e01\u0e32\u0e23\u0e15\u0e48\u0e2d\u0e27\u0e07\u0e08\u0e23\u00a0 &nbsp; Arduino Nodemcu Esp8266 Pin 10 Pin D6 Pin 11 Pin D5 \u0e2b\u0e32\u0e01\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e2a\u0e37\u0e48\u0e2d\u0e2a\u0e32\u0e23 \u0e23\u0e30\u0e2b\u0e27\u0e48\u0e32\u0e07 uno \u0e01\u0e31\u0e1a nodemcu \u0e14\u0e49\u0e27\u0e22 serial \u0e01\u0e32\u0e23\u0e15\u0e48\u0e2d tx , rx \u0e08\u0e32\u0e01 uno \u0e44\u0e1b node mcu\u00a0\u00a0\u0e15\u0e49\u0e2d\u0e07\u0e15\u0e48\u0e2d\u0e1c\u0e48\u0e32\u0e19 Logic Level Converter \u0e01\u0e48\u0e2d\u0e19\u0e04\u0e23\u0e31\u0e1a \u0e40\u0e1e\u0e23\u0e32\u0e30 tx , rx [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13],"tags":[],"class_list":["post-22163","post","type-post","status-publish","format-standard","hentry","category-13"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6cOVM-5Lt","_links":{"self":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/22163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=22163"}],"version-history":[{"count":2,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/22163\/revisions"}],"predecessor-version":[{"id":22165,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/22163\/revisions\/22165"}],"wp:attachment":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=22163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=22163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=22163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}