{"id":673,"date":"2016-03-02T06:53:48","date_gmt":"2016-03-02T06:53:48","guid":{"rendered":"http:\/\/blog.arduino.ir\/?p=673"},"modified":"2016-03-02T06:55:49","modified_gmt":"2016-03-02T06:55:49","slug":"%d8%ac%d9%84%d8%b3%d9%87-%d9%86%d9%88%d8%b2%d8%af%d9%87%d9%85-%d8%b1%d8%a7%d9%87-%d8%a7%d9%86%d8%af%d8%a7%d8%b2%db%8c-%d8%b1%d9%84%d9%87","status":"publish","type":"post","link":"https:\/\/blog.arduino.ir\/?p=673","title":{"rendered":"\u062c\u0644\u0633\u0647 \u0646\u0648\u0632\u062f\u0647\u0645 : \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0631\u0644\u0647"},"content":{"rendered":"<p>\u0628\u0647 \u0646\u0627\u0645 \u062e\u062f\u0627<br \/>\n\u0627\u06cc\u0646 \u062c\u0644\u0633\u0647 \u0642\u0635\u062f \u062f\u0627\u0631\u0645 \u062f\u0631 \u0645\u0648\u0631\u062f \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0631\u0644\u0647 \u0628\u0627\u0647\u0627\u062a\u0648\u0646 \u0635\u062d\u0628\u062a \u06a9\u0646\u0645 .<br \/>\n\u0642\u062f\u0645 \u0627\u0648\u0644 \u0627\u0635\u0644\u0627 \u0627\u06cc\u0646 \u06a9\u0647 \u0631\u0644\u0647 \u0686\u06cc\u0647\u061f \u0628\u0647 \u0637\u0648\u0631 \u062e\u06cc\u0644\u06cc \u062e\u06cc\u0644\u06cc \u062e\u06cc\u0644\u06cc \u06a9\u0644\u06cc \u0628\u062e\u0648\u0627\u0645 \u0628\u06af\u0645 \u0631\u0644\u0647 \u06cc\u0647 \u0633\u0648\u0626\u06cc\u0686\u0647 . \u0633\u0648\u0626\u06cc\u0686 \u0647\u0627\u06cc\u06cc \u06a9\u0647 \u062a\u0648 \u062c\u0644\u0633\u0647 \u0647\u0627\u06cc \u0642\u0628\u0644\u06cc \u0627\u0633\u062a\u0641\u0627\u0647 \u0645\u06cc \u06a9\u0631\u062f\u06cc\u0645 \u0631\u0648 \u06cc\u0627\u062f\u062a\u0648\u0646\u0647 \u061f \u0627\u06af\u0647 \u0642\u0631\u0627\u0631 \u0628\u0648\u062f \u0633\u0648\u0626\u06cc\u0686 \u0632\u062f\u0647 \u0628\u0634\u0647 (\u0627\u0635\u0637\u0644\u0627\u062d\u0627 \u0645\u06cc\u06af\u06cc\u0645 \u0633\u0648\u0626\u06cc\u0686 \u062a\u062d\u0631\u06cc\u06a9 \u0628\u0634\u0647 )\u060c \u0645\u0627 \u0628\u0627\u06cc\u062f \u0628\u0627 \u0627\u0646\u06af\u0634\u062a \u0631\u0648\u06cc \u062f\u06a9\u0645\u0647 \u06a9\u0644\u06cc\u062f \u0641\u0634\u0627\u0631 \u0645\u06cc \u0622\u0648\u0631\u062f\u06cc\u0645 \u062a\u0627 \u0632\u062f\u0647 \u0628\u0634\u0647 .<br \/>\n\u0627\u0645\u0627 \u0631\u0644\u0647 \u0647\u0627 \u0633\u0648\u0626\u06cc\u0686 \u0647\u0627\u06cc\u06cc \u0647\u0633\u062a\u0646 \u06a9\u0647 \u0628\u0627 \u06cc\u0647 \u0633\u0631\u06cc \u0641\u0639\u0644 \u0648 \u0627\u0646\u0641\u0639\u0627\u0644\u0627\u062a \u0627\u0644\u06a9\u062a\u0631\u0648\u0646\u06cc\u06a9\u06cc \u0648 \u0645\u06a9\u0627\u0646\u06cc\u06a9\u06cc \u06a9\u0627\u0631 \u0633\u0648\u0626\u06cc\u0686\u06cc\u0646\u06af \u0631\u0648 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u062f\u0646. \u0628\u0647 \u0639\u0628\u0627\u0631\u062a \u062f\u06cc\u06af\u0647 \u0645\u0627 \u0628\u0631\u0627\u06cc \u0642\u0637\u0639 \u0648 \u0648\u0635\u0644 \u06a9\u0631\u062f\u0646 \u0633\u0648\u0626\u06cc\u0686 \u062f\u0627\u062e\u0644\u06cc \u0631\u0644\u0647 \u0646\u06cc\u0627\u0632\u06cc \u0646\u062f\u0627\u0631\u06cc\u0645 \u06a9\u0647 \u0628\u0627 \u062f\u0633\u062a \u0641\u0634\u0627\u0631 \u0628\u062f\u06cc\u0645 \u06cc\u0627 \u0647\u0631 \u0646\u0648\u0639 \u06a9\u0627\u0631 \u0641\u06cc\u0632\u06cc\u06a9\u06cc \u062f\u06cc\u06af\u0647 \u0628\u06a9\u0646\u06cc\u0645\u060c \u0628\u0644\u06a9\u0647 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u06cc\u06a9\u0631\u0648\u06a9\u0646\u062a\u0631\u0644\u0631 \u0648 \u06a9\u062f \u0646\u0648\u06cc\u0633\u06cc \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0648 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc \u062f\u06cc\u0645.<br \/>\n\u06cc\u0647 \u06a9\u0645 \u0648\u0627\u0636\u062d \u062a\u0631 \u0628\u06af\u0645 \u0645\u0646\u0638\u0648\u0631\u0645 \u0686\u06cc\u0647 :<br \/>\n\u06cc\u0647 LED \u0631\u0648 \u062a\u0635\u0648\u0631 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0645\u06cc \u062e\u0648\u0627\u06cc\u0645 \u0631\u0648\u0634\u0646\u0634 \u06a9\u0646\u06cc\u0645 . \u06cc\u0647 \u0631\u0627\u0647 \u062d\u0644 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u062f\u0648 \u062a\u0627 \u0648\u0644\u062a\u0627\u0698 VCC \u0648 GND \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u0645 \u0645\u062b\u0644\u0627 \u0628\u0627\u062a\u0631\u06cc (\u0627\u06cc\u0646\u062c\u0648\u0631\u06cc:)<br \/>\n<a href=\"http:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/AABatteryHolder.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-674 aligncenter\" src=\"http:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/AABatteryHolder-300x190.jpg\" alt=\"AABatteryHolder\" width=\"210\" height=\"133\" srcset=\"https:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/AABatteryHolder-300x190.jpg 300w, https:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/AABatteryHolder.jpg 800w\" sizes=\"auto, (max-width: 210px) 100vw, 210px\" \/><\/a><br \/>\n \u062e\u0631\u0648\u062c\u06cc \u0628\u0627\u062a\u0631\u06cc \u0647\u0627 \u0631\u0648 \u0628\u0632\u0646\u06cc\u0645 \u0628\u0647 LED \u062a\u0627 \u0631\u0648\u0634\u0646 \u0628\u0634\u0647 \u0628\u0631\u062f\u0627\u0631\u06cc\u0645 \u062a\u0627 \u062e\u0627\u0645\u0648\u0634 \u0628\u0634\u0647 (\u0628\u0627 \u0631\u0639\u0627\u06cc\u062a \u067e\u0644\u0627\u0631\u06cc\u062a\u0647 \u0648\u06af\u0631\u0646\u0647 LED \u0645\u06cc \u0633\u0648\u0632\u0647 ). \u0627\u06cc\u0646\u062c\u0627 \u0645\u0627 \u062f\u0627\u0631\u06cc\u0645 \u0628\u0647 \u0635\u0648\u0631\u062a \u0641\u06cc\u0632\u06cc\u06a9\u06cc LED \u0631\u0648 \u062e\u0627\u0645\u0648\u0634 \u0648 \u0631\u0648 \u0634\u0646 \u0645\u06cc \u06a9\u0646\u06cc\u0645 . \u0648\u0644\u06cc \u0627\u06af\u0647 \u0628\u06cc\u0627\u06cc\u0645 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06cc\u0647 \u0645\u06cc\u06a9\u0631\u0648\u06a9\u0646\u062a\u0631\u0644\u0631 \u0645\u062b\u0644 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 \u0627\u06cc\u0646 \u0639\u0645\u0644\u06cc\u0627\u062a \u062e\u0627\u0645\u0648\u0634 \u0648 \u0631\u0648\u0634\u0646 \u0634\u062f\u0646 LED \u0631\u0648 \u0627\u0646\u062c\u0627\u0645 \u0628\u062f\u06cc\u0645 (\u0645\u062b\u0644 \u067e\u0631\u0648\u0698\u0647 \u0686\u0634\u0645\u06a9 \u0632\u0646 \u06a9\u0647<strong> <a href=\"http:\/\/blog.arduino.ir\/?p=231\">\u062c\u0644\u0633\u0647 \u067e\u0646\u062c\u0645<\/a><\/strong> \u0627\u0646\u062c\u0627\u0645 \u062f\u0627\u062f\u06cc\u0645 ) \u062f\u0627\u0631\u06cc\u0645 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u06a9\u062f\u0646\u0648\u06cc\u0633\u06cc \u0648 \u0628\u062f\u0648\u0646 \u062f\u062e\u0627\u0644\u062a \u0641\u06cc\u0632\u06cc\u06a9\u06cc \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0648 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u062f\u06cc\u0645.<br \/>\n\u062f\u0627\u0633\u062a\u0627\u0646 \u0631\u0644\u0647 \u0647\u0645 \u0647\u0645\u06cc\u0646\u0647 . \u0633\u0648\u0626\u06cc\u0686 \u0647\u0627\u06cc \u0642\u0628\u0644\u06cc \u06a9\u0647 \u0628\u0627\u0647\u0627\u0634\u0648\u0646 \u06a9\u0627\u0631 \u06a9\u0631\u062f\u06cc\u0645 \u0628\u0631\u0627\u06cc \u062a\u062d\u0631\u06cc\u06a9\u0634\u0648\u0646 \u0644\u0627\u0632\u0645 \u0628\u0648\u062f \u0628\u0647 \u0635\u0648\u0631\u062a \u0641\u06cc\u0632\u06cc\u06a9\u06cc \u0633\u0648\u0626\u06cc\u0686 \u0631\u0648 \u0642\u0637\u0639 \u0648 \u0648\u0635\u0644 \u06a9\u0646\u06cc\u0645 \u0648\u0644\u06cc \u0627\u06af\u0647 \u0647\u0645\u06cc\u0646 \u062a\u062d\u0631\u06cc\u06a9 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u06cc\u06a9\u0631\u0648\u06a9\u0646\u062a\u0631\u0644\u0631 \u0648 \u0628\u062f\u0648\u0646 \u062f\u062e\u0627\u0644\u062a \u0645\u0633\u062a\u0642\u06cc\u0645 \u062f\u0633\u062a \u0627\u0646\u062c\u0627\u0645 \u0628\u0634\u0647 \u0645\u06cc\u0634\u0647 \u0631\u0644\u0647 .<br \/>\n\u0627\u06cc\u0646 \u062a\u0639\u0631\u06cc\u0641 \u0647\u0627\u06cc \u0633\u0627\u062f\u0647 \u0627\u06cc \u0627\u0632 \u0631\u0644\u0647 \u0628\u0648\u062f \u060c \u0627\u06af\u0647 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u062f \u062e\u06cc\u0644\u06cc \u062c\u0632\u0626\u06cc \u062a\u0631 \u0628\u062f\u0648\u0646\u06cc\u062f \u0631\u0644\u0647 \u0686\u06cc\u0647<strong> <a href=\"http:\/\/electronic77.loxblog.com\/post\/20\/\u0631\u0644\u0647%20\u0686\u06cc\u0633\u062a\u061f.htm\">\u0627\u06cc\u0646 \u0644\u06cc\u0646\u06a9<\/a><\/strong> \u0631\u0648 \u0628\u062e\u0648\u0646\u06cc\u062f.<\/p>\n<p>\u0627\u0645\u0627 \u0628\u0631\u06cc\u0645 \u0633\u0631\u0627\u063a \u0645\u0639\u0631\u0641\u06cc \u0642\u0633\u0645\u062a \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u06cc\u0647 \u0631\u0644\u0647 \u06a9\u0647 \u0628\u0627\u0647\u0634\u0648\u0646 \u06a9\u0627\u0631 \u062f\u0627\u0631\u06cc\u0645. \u0634\u0645\u0627 \u0645\u06cc \u062a\u0648\u0646\u06cc\u062f \u0627\u0646\u0648\u0627\u0639 <strong><a href=\"http:\/\/shop.aftabrayaneh.com\/index.php?route=product\/search&amp;search=\u0631\u0644\u0647\">\u0645\u0627\u0698\u0648\u0644 \u0647\u0627\u06cc \u0631\u0644\u0647<\/a><\/strong> \u0631\u0648 \u0627\u0632 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f. \u0645\u062f\u0644\u06cc \u06a9\u0647 \u0645\u0646 \u0627\u0645\u0631\u0648\u0632 \u0628\u0627\u0647\u0627\u0634 \u06a9\u0627\u0631 \u0645\u06cc \u06a9\u0646\u0645 <strong><a href=\"http:\/\/shop.aftabrayaneh.com\/5V_KEEPONIC_Relay_Module_LOW_Trigger_High.html\">\u0627\u06cc\u0646 <\/a><\/strong>\u0647\u0633\u062a:<br \/>\n<a href=\"http:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/KEEPONIC_Relay_5v_2-500x500.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-677 aligncenter\" src=\"http:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/KEEPONIC_Relay_5v_2-500x500-300x300.jpg\" alt=\"KEEPONIC_Relay_5v_2-500x500\" width=\"235\" height=\"235\" srcset=\"https:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/KEEPONIC_Relay_5v_2-500x500-300x300.jpg 300w, https:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/KEEPONIC_Relay_5v_2-500x500-150x150.jpg 150w, https:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/KEEPONIC_Relay_5v_2-500x500.jpg 500w\" sizes=\"auto, (max-width: 235px) 100vw, 235px\" \/><\/a> \u0647\u0645\u0648\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0645\u06cc \u0628\u06cc\u0646\u06cc\u062f \u0627\u06cc\u0646 \u0631\u0644\u0647 3 \u0642\u0633\u0645\u062a \u0645\u0647\u0645 \u062f\u0627\u0631\u0647 \u06a9\u0647 \u062f\u0648\u0646\u0647 \u0628\u0647 \u062f\u0648\u0646\u0647 \u0645\u0639\u0631\u0641\u06cc\u0634\u0648\u0646 \u0645\u06cc \u06a9\u0646\u0645 :<br \/>\n<a href=\"http:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/1-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" size-medium wp-image-680 aligncenter\" src=\"http:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/1-1-300x284.jpg\" alt=\"1 (1)\" width=\"300\" height=\"284\" srcset=\"https:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/1-1-300x284.jpg 300w, https:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/1-1-1024x971.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u062e\u0628 \u0645\u0627 \u062a\u0648\u0633\u0637 \u0627\u06cc\u0646 \u0642\u0633\u0645\u062a \u0628\u0647 \u0631\u0644\u0647 \u0645\u06cc\u06af\u06cc\u0645 \u062e\u0627\u0645\u0648\u0634 \u0628\u0634\u0647 \u06cc\u0627 \u0631\u0648\u0634\u0646 \u0628\u0634\u0647. \u06cc\u0639\u0646\u06cc \u0647\u0645\u0648\u0646 \u0628\u062e\u0634 \u062a\u062d\u0631\u06cc\u06a9\u0634 \u062f\u0631 \u0648\u0627\u0642\u0639. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u0646\u062a\u0631\u0644 \u06cc\u0627 \u0628\u0627\u0632\u0647\u0645 \u0645\u06cc \u062a\u0648\u0646\u06cc\u0645 \u0645\u062b\u0644 \u0645\u062b\u0627\u0644 \u0628\u0627\u062a\u0631\u06cc \u0628\u0631\u06cc\u0645 \u0633\u06cc\u0645 \u0628\u0631\u062f\u0627\u0631\u06cc\u0645 \u0648 \u0647\u0631 \u0645\u0648\u0642\u0639 \u062e\u0648\u0627\u0633\u062a\u06cc\u0645 \u0648\u0635\u0644 \u06a9\u0646\u06cc\u0645 \u0648 \u0647\u0631 \u0645\u0648\u0642\u0639 \u0646\u062e\u0648\u0627\u0633\u062a\u06cc\u0645 \u0642\u0637\u0639 \u06a9\u0646\u06cc\u0645 (\u06cc\u0639\u0646\u06cc \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc \u0648 \u0641\u06cc\u0632\u06cc\u06a9\u06cc )\u060c \u06cc\u0627 \u0627\u06cc\u0646 \u06a9\u0647 \u0645\u06cc \u062a\u0648\u0646\u06cc\u0645 \u0627\u06cc\u0646 \u0642\u0633\u0645\u062a \u0631\u0648 \u0628\u0647 \u06cc\u0647 \u0645\u06cc\u06a9\u0631\u0648\u06a9\u0646\u062a\u0631\u0644\u0631 \u0645\u062b\u0644 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 \u0648\u0635\u0644 \u06a9\u0646\u06cc\u0645 \u0648 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u062f\u0633\u062a\u0648\u0631\u0647\u0627\u06cc \u06a9\u062f\u0646\u0648\u06cc\u0633\u06cc \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0648 \u0627\u0646\u062c\u0627\u0645 \u0628\u062f\u06cc\u0645. \u0627\u06af\u0631 \u062f\u0642\u062a \u06a9\u0646\u06cc\u062f \u0627\u06cc\u0646 \u0642\u0633\u0645\u062a \u0633\u0647 \u062a\u0627 \u067e\u0627\u06cc\u0647 \u062f\u0627\u0631\u0647 . \u06cc\u06a9\u06cc DC+ \u06a9\u0647 \u062f\u0631 \u0648\u0627\u0642\u0639 \u0647\u0645\u0648\u0646 \u067e\u0627\u06cc\u0647 VCC \u0647\u0633\u062a \u0648 \u0628\u0627\u06cc\u062f \u0628\u0647\u0634 5 \u0648\u0644\u062a \u0627\u0631\u062f\u0648\u06cc\u0646\u0648 \u0631\u0648 \u0648\u0635\u0644 \u06a9\u0646\u06cc\u0645. \u067e\u0627\u06cc\u0647 \u062f\u06cc\u06af\u0647 DC- \u0647\u0633\u062a \u06a9\u0647 \u0646\u0642\u0634 \u06af\u0631\u0627\u0646\u062f (GND) \u0631\u0648 \u062f\u0627\u0631\u0647 \u06a9\u0647 \u0628\u0647 \u067e\u06cc\u0646 \u0632\u0645\u06cc\u0646 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 \u0648\u0635\u0644\u0634 \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u06cc\u0647 \u067e\u0627\u06cc\u0647 \u062f\u06cc\u06af\u0647 \u062f\u0627\u0631\u0647 \u0628\u0647 \u0627\u0633\u0645 IN. \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0627\u06cc\u0646 \u067e\u0627\u06cc\u0647 \u0631\u0648\u0634\u0646 \u06cc\u0627 \u062e\u0627\u0645\u0648\u0634 \u0628\u0648\u062f\u0646 \u0631\u0644\u0647 \u06a9\u0646\u062a\u0631\u0644 \u0645\u06cc\u0634\u0647. \u06cc\u0639\u0646\u06cc \u06a9\u0644 \u06a9\u0627\u0631\u06cc \u06a9\u0647 \u0645\u0627 \u062f\u0631 \u06a9\u0646\u062a\u0631\u0644 \u06cc\u06a9 \u0631\u0644\u0647 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u062f\u06cc\u0645 \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u0628\u0627 \u0648\u0644\u062a\u0627\u0698 \u0627\u06cc\u0646 \u067e\u06cc\u0646 \u0631\u0644\u0647 \u0628\u0627\u0632\u06cc \u06a9\u0646\u06cc\u0645 . \u0686\u0648\u0646 \u0627\u06cc\u0646 \u0628\u0627\u0632\u06cc \u06a9\u0631\u062f\u0646 \u06cc\u0647 \u0648\u0636\u0639\u06cc\u062a \u062f\u0648\u062d\u0627\u0644\u062a\u0647 \u0647\u0633\u062a \u06cc\u0639\u0646\u06cc \u062e\u0627\u0645\u0648\u0634 \u0648 \u0631\u0648\u0634\u0646 (\u0645\u0639\u0627\u062f\u0644 0 \u0648 1 ) \u060c \u0627\u06cc\u0646 \u067e\u06cc\u0646 \u0631\u0644\u0647 \u0631\u0648 \u0628\u0647 \u06cc\u06a9\u06cc \u0627\u0632 \u067e\u06cc\u0646 \u0647\u0627\u06cc \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644 \u062f\u0644\u062e\u0648\u0627\u0647 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 \u0648\u0635\u0644 \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u0634\u0645\u0627\u0631\u0647 \u067e\u06cc\u0646 \u0645\u0647\u0645 \u0646\u06cc\u0633\u062a \u0686\u0648\u0646 \u0641\u0642\u0637 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 0 \u0648 1 \u06a9\u0646\u06cc\u0645 \u0648 \u0646\u0645 \u06cc\u062e\u0648\u0627\u06cc\u0645 PWM \u0628\u062f\u06cc\u0645. \u062d\u0627\u0644\u0627 \u0633\u0648\u0627\u0644\u06cc \u06a9\u0647 \u067e\u06cc\u0634 \u0645\u06cc\u0627\u062f \u0627\u06cc\u0646\u0647 \u06a9\u0647 \u0628\u0627\u06cc\u062f \u0628\u0647 \u067e\u06cc\u0646 \u0631\u0644\u0647 \u0631\u0648 0 \u06a9\u0646\u06cc\u0645 \u062a\u0627 \u0631\u0644\u0647 \u0631\u0648\u0634\u0646 \u0634\u0647 \u06cc\u0627 1 \u06a9\u0646\u06cc\u0645 \u062a\u0627 \u0631\u0648\u0634\u0646 \u0634\u0647 \u061f \u062c\u0648\u0627\u0628 \u0627\u06cc\u0646 \u0633\u0648\u0627\u0644\u062a\u0648\u0646 \u0631\u0648 \u062a\u0648 \u0628\u062e\u0634 \u0633\u0648\u0645 \u0647\u0645\u06cc\u0646 \u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u062e\u0648\u0627\u0647\u0645 \u062f\u0627\u062f.<\/p>\n<p><a href=\"http:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/1-3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" size-medium wp-image-682 aligncenter\" src=\"http:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/1-3-295x300.jpg\" alt=\"1 (3)\" width=\"295\" height=\"300\" srcset=\"https:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/1-3-295x300.jpg 295w, https:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/1-3-1007x1024.jpg 1007w\" sizes=\"auto, (max-width: 295px) 100vw, 295px\" \/><\/a><br \/>\n\u0627\u06cc\u0646 \u0642\u0633\u0645\u062a \u0627\u0632 \u0631\u0644\u0647 \u0631\u0648 \u0628\u0627\u06cc\u062f \u0628\u0647 \u0648\u0633\u06cc\u0644\u0647 \u0627\u06cc \u0648\u0635\u0644 \u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u062a\u062d\u062a \u06a9\u0646\u062a\u0631\u0644\u0634 \u0628\u06af\u06cc\u0631\u06cc\u0645. \u0645\u062b\u0644\u0627 \u0628\u0647 \u06cc\u0647 \u0645\u0648\u062a\u0648\u0631 \u0628\u0627 LED \u062a\u0648\u0627\u0646 \u0628\u0627\u0644\u0627. \u062e\u0628 \u0627\u06af\u0647 \u0628\u0647 \u0639\u06a9\u0633 \u062f\u0642\u062a \u06a9\u0646\u06cc\u062f \u0645\u06cc\u0628\u06cc\u0646\u06cc\u062f \u06a9\u0647 \u0627\u06cc\u0646 \u0642\u0633\u0645\u062a \u0627\u0632 \u0631\u0644\u0647 \u0633\u0647 \u062a\u0627 \u062a\u0631\u0645\u06cc\u0646\u0627\u0644 \u062f\u0627\u0631\u0647 \u06a9\u0647 \u0628\u0647 \u0635\u0648\u0631\u062a \u0632\u06cc\u0631 \u0646\u0627\u0645 \u06af\u0630\u0627\u0631\u06cc \u0645\u06cc \u0634\u0646:<br \/>\n<a href=\"http:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/1-31.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" size-medium wp-image-686 aligncenter\" src=\"http:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/1-31-300x223.jpg\" alt=\"1 (3)\" width=\"300\" height=\"223\" srcset=\"https:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/1-31-300x223.jpg 300w, https:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/1-31-1024x759.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u067e\u0627\u06cc\u0647 normally close \u067e\u0627\u06cc\u0647 \u0627\u06cc \u0647\u0633\u062a \u06a9\u0647 \u062f\u0631 \u062d\u0627\u0644\u062a \u0639\u0627\u062f\u06cc \u06a9\u0647 \u0631\u0644\u0647 \u062e\u0627\u0645\u0648\u0634\u0647 \u0628\u0647 \u067e\u0627\u06cc\u0647 common (\u06cc\u0639\u0646\u06cc \u067e\u0627\u06cc\u0647 \u06a9\u0646\u0627\u0631\u06cc\u0634) \u0648\u0635\u0644\u0647 . \u0627\u06cc\u0646 \u0627\u062a\u0635\u0627\u0644 \u0631\u0648 \u0645\u06cc \u062a\u0648\u0646\u06cc\u062f \u0627\u0632 \u0637\u0631\u06cc\u0642 \u06cc\u06a9 \u0645\u0648\u0644\u062a\u06cc \u0645\u062a\u0631 \u0647\u0645 \u0686\u06a9 \u06a9\u0646\u06cc\u062f. \u067e\u0627\u06cc\u0647 normally open \u067e\u0627\u06cc\u0647 \u0627\u06cc \u0647\u0633\u062a \u06a9\u0647 \u0648\u0642\u062a\u06cc \u0631\u0644\u0647 \u0631\u0648\u0634\u0646 \u0645\u06cc\u0634\u0647 \u0628\u0647 \u067e\u0627\u06cc\u0647 common \u0648\u0635\u0644 \u0645\u06cc\u0634\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u062d\u0627\u0644\u062a \u067e\u0627\u06cc\u0647 common \u0627\u0632 \u067e\u0627\u06cc\u0647 normally close \u062c\u062f\u0627 \u0645\u06cc\u0634\u0647 \u06a9\u0647 \u0628\u0627\u0632 \u0647\u0645 \u0645\u06cc \u062a\u0648\u0646\u06cc\u062f \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0645\u0648\u0644\u062a\u06cc \u0645\u062a\u0631 \u062a\u0633\u062a \u0628\u06af\u06cc\u0631\u06cc\u062f. \u062f\u0631 \u0647\u0645\u06cc\u0646 \u062d\u062f \u0628\u0631\u0627\u06cc \u0645\u0627 \u06a9\u0627\u0641\u06cc\u0647 \u06a9\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u0642\u0633\u0645\u062a \u0628\u06af\u06cc\u0645 \u0648 \u0644\u06cc \u0627\u06af\u0647 \u0633\u0648\u0627\u0644 \u062f\u0627\u0631\u06cc\u062f \u06a9\u0647 \u0627\u0635\u0644\u0627 \u067e\u0627\u06cc\u0647 normally close \u0686\u06cc\u0647 \u0648 \u0686\u0631\u0627 \u062f\u0631 \u062d\u0627\u0644\u062a \u062e\u0627\u0645\u0648\u0634 \u0631\u0644\u0647 \u0645\u06cc \u0686\u0633\u0628\u0647 \u0628\u0647 common <a href=\"http:\/\/u2ugsmrmp.blogsky.com\/tag\/%D8%AA%D8%B3%D8%AA-%D8%B1%D9%84%D9%87\">\u0627\u06cc\u0646 \u0644\u06cc\u0646\u06a9<\/a> \u0631\u0648 \u0645\u0637\u0627\u0644\u0639\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<p><a href=\"http:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/1-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" size-medium wp-image-681 aligncenter\" src=\"http:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/1-2-274x300.jpg\" alt=\"1 (2)\" width=\"274\" height=\"300\" srcset=\"https:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/1-2-274x300.jpg 274w, https:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/1-2-935x1024.jpg 935w\" sizes=\"auto, (max-width: 274px) 100vw, 274px\" \/><\/a><br \/>\n\u0627\u06cc\u0646 \u0642\u0633\u0645\u062a \u062a\u0639\u06cc\u06cc\u0646 \u0645\u06cc\u06a9\u0646\u06cc\u0645 \u06a9\u0647 \u0633\u0637\u062d \u062a\u062d\u0631\u06cc\u06a9\u0645\u0648\u0646 high \u0628\u0627\u0634\u0647 \u06cc\u0627 low \u0628\u0627\u0634\u0647. \u06cc\u0639\u0646\u06cc \u0686\u06cc \u061f<br \/>\n\u06cc\u0627\u062f\u062a\u0648\u0646\u0647 \u062a\u0648 \u0645\u0639\u0631\u0641\u06cc \u0642\u0633\u0645\u062a \u06cc\u06a9 \u0647\u0645\u06cc\u0646 \u062c\u0644\u0633\u0647 \u06af\u0641\u062a\u0645 \u062d\u0627\u0644\u0627 \u0628\u0631\u0627\u06cc \u0631\u0648\u0634\u0646 \u06a9\u0631\u062f\u0646 \u0631\u0644\u0647 \u0628\u0627\u06cc\u062f \u0628\u0647 \u067e\u0627\u06cc\u0647 IN \u0635\u0641\u0631 \u0628\u062f\u06cc\u0645 \u06cc\u0627 \u06cc\u06a9 \u0628\u062f\u06cc\u0645\u061f \u062a\u0648\u06cc \u0627\u06cc\u0646 \u0642\u0633\u0645\u062a \u0631\u0644\u0647 \u062f\u0627\u0631\u06cc\u0645 \u0647\u0645\u06cc\u0646 \u0631\u0648 \u062a\u0639\u06cc\u06cc\u0646 \u0645\u06cc \u06a9\u0646\u06cc\u0645. \u0627\u06af\u0647 \u0648\u0636\u0639\u06cc\u062a \u062c\u0627\u0645\u067e\u0631 \u0632\u0631\u062f \u0631\u0646\u06af \u0628\u0647 \u0647\u0645\u06cc\u0646 \u0635\u0648\u0631\u062a \u0627\u0644\u0627\u0646\u0634 \u0628\u0627\u0634\u0647 (\u06cc\u0639\u0646\u06cc \u0631\u0648\u06cc H \u0628\u0627\u0634\u0647 ) \u0628\u0631\u0627\u06cc \u0631\u0648\u0634\u0646 \u06a9\u0631\u062f\u0646 \u0631\u0644\u0647 \u0628\u0627\u06cc\u062f \u0628\u0647 \u067e\u0627\u06cc\u0647 IN \u0645\u0646\u0637\u0642 HIGH \u0648\u0635\u0644 \u06a9\u0646\u06cc\u0645 \u0627\u06af\u0647 \u0648\u0636\u0639\u06cc\u062a \u062c\u0627\u0645\u067e\u0631 \u0631\u0644\u0647 \u0628\u0631 \u0639\u06a9\u0633 \u0628\u0627\u0634\u0647 \u06cc\u0639\u0646\u06cc \u0631\u0648\u06cc L \u0628\u0627\u0634\u0647 \u0628\u0627\u06cc\u062f \u0628\u0631\u0627\u06cc \u0631\u0648\u0634\u0646 \u06a9\u0631\u062f\u0646 \u0631\u0644\u0647 \u0628\u0647\u0634 LOW \u0628\u062f\u06cc\u0645. \u0627\u0635\u0637\u0644\u0627\u062d\u0627 \u0628\u0647 \u062d\u0627\u0644\u062a \u0627\u0648\u0644 \u0645\u06cc\u06af\u0646 \u0631\u0644\u0647 1 \u0641\u0639\u0627\u0644\u0647 \u0648 \u0628\u0647 \u062d\u0627\u0644\u062a \u062f\u0648\u0645 \u0645\u06cc\u06af\u0646 0 \u0641\u0639\u0627\u0644\u0647.<\/p>\n<p>\u062e\u0628 \u0627\u06cc\u0646 \u062c\u0627 \u0645\u0639\u0631\u0641\u06cc \u0631\u0644\u0647 \u062a\u0645\u0648\u0645 \u0634\u062f \u0627\u0632 \u0627\u06cc\u0646\u062c\u0627 \u0628\u0647 \u0628\u0639\u062f \u067e\u0631\u0648\u0698\u0645\u0648\u0646 \u0631\u0648 \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc\u062f\u06cc\u0645 .<\/p>\n<p>************************************************************************************************<\/p>\n<p>\u062e\u0628 \u062a\u0648 \u067e\u0631\u0648\u0698\u0645\u0648\u0646 \u0642\u0635\u062f \u062f\u0627\u0631\u06cc\u0645 \u0641\u0642\u0637 \u0631\u0644\u0647 \u0631\u0648 \u0631\u0648\u0634\u0646 \u0648 \u062e\u0627\u0645\u0648\u0634 \u06a9\u0646\u06cc\u0645. \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0645\u0637\u0627\u0628\u0642 \u062a\u0648\u0636\u06cc\u062d \u0632\u06cc\u0631 \u0645\u062f\u0627\u0631 \u0631\u0648 \u0628\u0628\u0646\u062f\u06cc\u062f:<\/p>\n<p>\u067e\u0627\u06cc\u0647 DC+ \u0631\u0644\u0647 \u0628\u0647 \u067e\u0627\u06cc\u0647 5v \u0622\u0631\u062f\u0648\u06cc\u0646\u0648<br \/>\n\u067e\u0627\u06cc\u0647 DC- \u0631\u0644\u0647 \u0628\u0647 \u067e\u0627\u06cc\u0647 GND \u0622\u0631\u062f\u0648\u06cc\u0646\u0648<br \/>\n\u067e\u0627\u06cc\u0647 IN \u0631\u0644\u0647 \u0628\u0647 \u067e\u0627\u06cc\u0647 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644 \u0634\u0645\u0627\u0631\u0647 8 \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 (\u0628\u0647 \u062c\u0627\u06cc \u0627\u06cc\u0646 \u067e\u06cc\u0646 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644 \u0647\u0631 \u067e\u06cc\u0646 \u062f\u06cc\u062c\u06cc\u062a\u0627\u0644 \u062f\u0644\u062e\u0648\u0627\u0647 \u062f\u06cc\u06af\u0647 \u0627\u06cc \u0631\u0648 \u0647\u0645 \u0645\u06cc \u062a\u0648\u0646\u06cc\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f)<\/p>\n<p>\u0633\u0627\u062f\u0633\u062a \u062f\u06cc\u06af\u0647 \u0645\u06af\u0647 \u0646\u0647 \u061f<br \/>\n\u062e\u0628 \u062d\u0627\u0644\u0627 \u0645\u06cc\u0631\u06cc\u0645 \u0633\u0631\u0627\u063a \u0645\u0631\u062d\u0644\u0647 \u06a9\u062f \u0646\u0648\u06cc\u0633\u06cc :<br \/>\n\u06a9\u062f \u0632\u06cc\u0631 \u0631\u0648 \u0622\u067e\u0644\u0648\u062f \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0647\u0631 \u0642\u0633\u0645\u062a\u0634 \u0631\u0648 \u062a\u0648\u0636\u06cc\u062d \u0628\u062f\u0645 :<br \/>\n<a href=\"http:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/2016-02-20_15-31-08.png\"><img loading=\"lazy\" decoding=\"async\" class=\" size-medium wp-image-688 aligncenter\" src=\"http:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/2016-02-20_15-31-08-240x300.png\" alt=\"2016-02-20_15-31-08\" width=\"240\" height=\"300\" srcset=\"https:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/2016-02-20_15-31-08-240x300.png 240w, https:\/\/blog.arduino.ir\/wp-content\/uploads\/2016\/02\/2016-02-20_15-31-08.png 507w\" sizes=\"auto, (max-width: 240px) 100vw, 240px\" \/><\/a><br \/>\n<strong>\u0642\u0633\u0645\u062a 1<\/strong> : \u0645\u0639\u0631\u0641\u06cc \u067e\u06cc\u0646 8 (\u067e\u06cc\u0646 \u0645\u062a\u0635\u0644 \u0628\u0647 \u0631\u0644\u0647 ) \u0628\u0647 \u0646\u0627\u0645 relay_pin<br \/>\n<strong>\u0642\u0633\u0645\u062a 2<\/strong> :\u06a9\u0627\u0646\u0641\u06cc\u06af \u0627\u0631\u062a\u0628\u0627\u0637 \u0633\u0631\u06cc\u0627\u0644<br \/>\n<strong>\u0642\u0633\u0645\u062a 3<\/strong> :\u0634\u0631\u0637  if . \u0627\u06cc\u0646 \u0634\u0631\u0637 \u06a9\u0647 \u062f\u0631 \u062c\u0644\u0633\u0627\u062a \u067e\u06cc\u0634 \u0628\u0647 \u062a\u0641\u0635\u06cc\u0644 \u062a\u0648\u0636\u06cc\u062d \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0645\u0639\u06cc\u0646 \u0645\u06cc \u06a9\u0646\u0647 \u06a9\u0647 \u0622\u06cc\u0627 \u062f\u0627\u062f\u0647 \u0627\u06cc \u062f\u0631 \u06a9\u0646\u0633\u0648\u0644 \u0633\u0631\u06cc\u0627\u0644 \u062f\u0631\u06cc\u0627\u0641\u062a \u0634\u062f\u0647 \u06cc\u0627 \u0646\u0647.<br \/>\n<strong>\u0642\u0633\u0645\u062a 4:<\/strong> :\u062f\u0631 \u0627\u06cc\u0646 \u062e\u0637 \u06a9\u062f\u060c \u062f\u0627\u062f\u0647 \u06a9\u0646\u0633\u0648\u0644 \u0633\u0631\u06cc\u0627\u0644 \u062a\u0648\u0633\u0637 \u062f\u0633\u062a\u0648\u0631 Serial.read \u062e\u0648\u0646\u062f\u0647 \u0645\u06cc \u0634\u0647. \u0628\u0639\u062f \u0627\u0632 \u0622\u0646 \u060c\u0639\u062f\u062f 48 \u0627\u0632 \u0627\u06cc\u0646 \u062f\u0627\u062f\u0647 \u06a9\u0645 \u0645\u06cc \u0634\u0647. \u0639\u0644\u062a \u06a9\u0645 \u0634\u062f\u0646 \u0639\u062f\u062f 48 \u0686\u06cc\u0647 \u061f<br \/>\n \u0627\u06af\u0647 \u0647\u0645\u06cc\u0646 \u06a9\u062f \u0631\u0648 \u0628\u062f\u0648\u0646 -48 \u067e\u0631\u0648\u06af\u0631\u0627\u0645 \u06a9\u0646\u06cc\u062f \u0648 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f  \u0648\u0642\u062a\u06cc \u062a\u0648 \u06a9\u0646\u0633\u0648\u0644 \u0639\u062f\u062f 0 \u062a\u0627\u06cc\u067e \u0628\u0634\u0647 \u062a\u0648 \u062e\u0631\u0648\u062c\u06cc \u06a9\u0646\u0633\u0648\u0644 \u0639\u062f\u062f 48 \u062f\u06cc\u062f\u0647 \u0645\u06cc \u0634\u0647 ( \u0686\u06cc \u0634\u062f \u061f \u0645\u0646 0 \u062a\u0627\u06cc\u067e \u06a9\u0631\u062f\u0645 \u0648\u0644\u06cc \u062f\u0627\u0631\u0647 48 \u0646\u0634\u0648\u0646 \u0645\u06cc\u062f\u0647 ). \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0639\u062f\u062f 9 \u062a\u0627\u06cc\u067e \u0628\u0634\u0647 \u062f\u0631 \u062e\u0631\u0648\u062c\u06cc \u06a9\u0646\u0633\u0648\u0644 \u0639\u062f\u062f 57 \u062f\u06cc\u062f\u0647 \u0645\u06cc \u0634\u0647. \u062f\u0627\u0633\u062a\u0627\u0646 \u0686\u06cc\u0647 \u061f<br \/>\n\u0628\u0627 \u06a9\u0645\u06cc \u062c\u0633\u062a \u0648 \u062c\u0648 \u0645\u0639\u0644\u0648\u0645 \u0645\u06cc \u0634\u0647 \u06a9\u0647 \u062e\u0631\u0648\u062c\u06cc \u062f\u0633\u062a\u0648\u0631 Serial.read \u062f\u0631 \u0648\u0627\u0642\u0639 <a href=\"http:\/\/bytegate.ir\/%D8%A7%D8%B3%DA%A9%DB%8C-ascii-%DA%86%DB%8C%D8%B3%D8%AA%D8%9F\/\">\u06a9\u062f \u0627\u0633\u06a9\u06cc<\/a> \u0639\u062f\u062f 0 \u0648 9  \u0647\u0633\u062a. \u06cc\u0639\u0646\u06cc 48 \u06a9\u062f \u0627\u0633\u06a9\u06cc \u0639\u062f\u062f 0 \u0647\u0633\u062a \u0648 57 \u06a9\u062f \u0627\u0633\u06a9\u06cc \u0639\u062f\u062f 9 ! \u06cc\u0639\u0646\u06cc \u0648\u0642\u062a\u06cc \u0645\u0627 0 \u062a\u0627\u06cc\u067e \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u062a\u0648 \u0648\u0631\u0648\u062f\u06cc \u06a9\u0646\u0633\u0648\u0644 \u060c \u0622\u0631\u062f\u0648\u06cc\u0646\u0648 \u0645\u06cc\u0631\u0647 \u0639\u062f\u062f 48 \u06a9\u0647 \u0645\u0639\u0627\u062f\u0644 \u06a9\u062f \u0627\u0633\u06a9\u06cc 0 \u0647\u0633\u062a \u0631\u0648 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u062e\u0631\u0648\u062c\u06cc \u062f\u0633\u062a\u0648\u0631 Serial.read \u062a\u062d\u0648\u06cc\u0644 \u0645\u06cc\u062f\u0647.<br \/>\n\u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0645\u0627 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u06a9\u0647 \u0628\u062a\u0648\u0646\u06cc\u0645 \u0627\u0632 \u0627\u06cc\u0646 \u062e\u0631\u0648\u062c\u06cc \u0627\u0633\u06a9\u06cc (\u06a9\u0647 \u0645\u0637\u0644\u0648\u0628\u0645\u0648\u0646 \u0646\u06cc\u0633\u062a ) \u0628\u0647 \u062e\u0631\u0648\u062c\u06cc \u0648\u0627\u0642\u0639\u06cc \u062e\u0648\u062f\u0645\u0648\u0646 \u0628\u0631\u0633\u06cc\u0645 \u0644\u0627\u0632\u0645\u0647 \u0627\u0632 \u06a9\u062f \u0627\u0633\u06a9\u06cc (\u06a9\u0647 \u0627\u0644\u0627\u0646 \u062e\u0631\u0648\u062c\u06cc \u062f\u0633\u062a\u0648\u0631 Serial.read \u0647\u0633\u062a ) \u0639\u062f\u062f 48 \u0631\u0648 \u06a9\u0645 \u06a9\u0646\u06cc\u0645 .\u0628\u0647 \u0647\u0645\u06cc\u0646 \u0633\u0627\u062f\u06af\u06cc. \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u062e\u0631\u0648\u062c\u06cc \u0627\u06cc\u0646 \u062e\u0637 \u06a9\u062f \u06a9\u0647 \u062a\u0648 \u0645\u062a\u063a\u06cc\u0631 data \u0631\u06cc\u062e\u062a\u0647 \u0645\u06cc\u0634\u0647 \u0647\u0645\u0648\u0646 \u0639\u062f\u062f\u06cc \u0647\u0633\u062a \u06a9\u0647 \u0645\u0627 \u062a\u0648\u06cc \u06a9\u0646\u0633\u0648\u0644 \u062a\u0627\u06cc\u067e\u0634 \u06a9\u0631\u062f\u06cc\u0645 \u06cc\u0639\u0646\u06cc 0 \u06cc\u0627 9 . \u0628\u0647 \u0646\u0638\u0631 \u0645\u0646 \u06cc\u0647 \u0628\u0627\u0631 \u0628\u062f\u0648\u0646 -48 \u06a9\u062f \u0631\u0648 \u062a\u0633\u062a \u06a9\u0646\u06cc\u062f \u0648 \u0628\u0628\u06cc\u0646\u06cc\u062f.<br \/>\n<strong>\u0642\u0633\u0645\u062a 5<\/strong> :\u062f\u0627\u062f\u0647 \u0627\u06cc \u06a9\u0647 \u062a\u0648\u06cc \u06a9\u0646\u0633\u0648\u0644 \u062a\u0627\u06cc\u067e \u06a9\u0631\u062f\u06cc\u0645 \u062a\u0648 \u0642\u0633\u0645\u062a \u062e\u0631\u0648\u062c\u06cc \u06a9\u0646\u0633\u0648\u0644 \u0628\u0631\u0627\u0645\u0648\u0646 \u0646\u0634\u0648\u0646 \u062f\u0627\u062f\u0647 \u0645\u06cc\u0634\u0647.<br \/>\n<strong>\u0642\u0633\u0645\u062a 6<\/strong> : \u062f\u0627\u062f\u0647 \u062a\u0648\u06cc \u0645\u062a\u063a\u06cc\u0631 data  \u0645\u0633\u062a\u0642\u06cc\u0645\u0627 \u0628\u0647 \u067e\u06cc\u0646 \u0645\u062a\u0635\u0644 \u0628\u0647 \u0631\u0644\u0647 \u0641\u0631\u0633\u062a\u0627\u062f\u0647 \u0645\u06cc\u0634\u0647. <\/p>\n<p>\u062d\u0627\u0644\u0627 \u06a9\u062f \u0631\u0648 \u062a\u0633\u062a \u06a9\u0646\u06cc\u062f.<br \/>\n\u0627\u06af\u0647 \u062c\u0627\u0645\u067e\u0631 \u0631\u0648\u06cc \u0642\u0633\u0645\u062a H \u0628\u0627\u0634\u0647 \u0648\u0642\u062a\u06cc 1 \u0645\u06cc\u062f\u06cc\u062f \u0631\u0644\u0647 \u0631\u0648\u0634\u0646 \u0645\u06cc\u0634\u0647 \u0648  \u0648\u0642\u062a\u06cc 0 \u0645\u06cc\u062f\u06cc\u062f \u0631\u0644\u0647 \u062e\u0627\u0645\u0648\u0634 \u0645\u06cc\u0634\u0647 .<br \/>\n\u0627\u06af\u0647 \u062c\u0627\u0645\u067e\u0631 \u0631\u0648\u06cc \u0642\u0633\u0645\u062a L  \u0628\u0627\u0634\u0647 \u0648\u0642\u062a\u06cc 0 \u0645\u06cc\u062f\u06cc\u062f \u0631\u0644\u0647 \u0631\u0648\u0634\u0646 \u0645\u06cc\u0634\u0647 \u0648  \u0648\u0642\u062a\u06cc 1 \u0645\u06cc\u062f\u06cc\u062f \u0631\u0644\u0647 \u062e\u0627\u0645\u0648\u0634 \u0645\u06cc\u0634\u0647 . <\/p>\n<p>\u0627\u06cc\u0646 \u062c\u0644\u0633\u0647 \u0647\u0645 \u0647\u0645\u06cc\u0646\u062c\u0627 \u062a\u0645\u0648\u0645 \u0634\u062f.<br \/>\n\u0633\u0648\u0627\u0644\u062a\u062a\u0648\u0646 \u0631\u0648 \u062a\u0648 \u0627\u0646\u062c\u0645\u0646 \u0628\u067e\u0631\u0633\u06cc\u062f \u0644\u0637\u0641\u0627 .<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0628\u0647 \u0646\u0627\u0645 \u062e\u062f\u0627 \u0627\u06cc\u0646 \u062c\u0644\u0633\u0647 \u0642\u0635\u062f \u062f\u0627\u0631\u0645 \u062f\u0631 \u0645\u0648\u0631\u062f \u0631\u0627\u0647 \u0627\u0646\u062f\u0627\u0632\u06cc \u0631\u0644\u0647 \u0628\u0627\u0647\u0627\u062a\u0648\u0646 \u0635\u062d\u0628\u062a \u06a9\u0646\u0645 . \u0642\u062f\u0645 \u0627\u0648\u0644 \u0627\u0635\u0644\u0627 \u0627\u06cc\u0646 \u06a9\u0647 \u0631\u0644\u0647 \u0686\u06cc\u0647\u061f \u0628\u0647 \u0637\u0648\u0631 \u062e\u06cc\u0644\u06cc \u062e\u06cc\u0644\u06cc \u062e\u06cc\u0644\u06cc \u06a9\u0644\u06cc \u0628\u062e\u0648\u0627\u0645 \u0628\u06af\u0645 \u0631\u0644\u0647 \u06cc\u0647 \u0633\u0648\u0626\u06cc\u0686\u0647 . \u0633\u0648\u0626\u06cc\u0686 \u0647\u0627\u06cc\u06cc \u06a9\u0647 \u062a\u0648 \u062c\u0644\u0633\u0647 \u0647\u0627\u06cc \u0642\u0628\u0644\u06cc \u0627\u0633\u062a\u0641\u0627\u0647 \u0645\u06cc \u06a9\u0631\u062f\u06cc\u0645 \u0631\u0648 \u06cc\u0627\u062f\u062a\u0648\u0646\u0647 \u061f \u0627\u06af\u0647 \u0642\u0631\u0627\u0631 \u0628\u0648\u062f \u0633\u0648\u0626\u06cc\u0686 \u0632\u062f\u0647 \u0628\u0634\u0647 (\u0627\u0635\u0637\u0644\u0627\u062d\u0627 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[9,233,107,237,108,232,231,230,56,6,208,235,234,236,238,139,14,229,37,38,119,58],"class_list":["post-673","post","type-post","status-publish","format-standard","hentry","category-tutorials","category-arduino_tutorials","tag-arduino","tag-common","tag-high","tag-in","tag-low","tag-normally-close","tag-normally-open","tag-relay","tag-serial-read","tag-6","tag-208","tag-235","tag-234","tag-236","tag-238","tag-139","tag-14","tag-229","tag-37","tag-38","tag-119","tag-58"],"_links":{"self":[{"href":"https:\/\/blog.arduino.ir\/index.php?rest_route=\/wp\/v2\/posts\/673","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.arduino.ir\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.arduino.ir\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.arduino.ir\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.arduino.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=673"}],"version-history":[{"count":14,"href":"https:\/\/blog.arduino.ir\/index.php?rest_route=\/wp\/v2\/posts\/673\/revisions"}],"predecessor-version":[{"id":695,"href":"https:\/\/blog.arduino.ir\/index.php?rest_route=\/wp\/v2\/posts\/673\/revisions\/695"}],"wp:attachment":[{"href":"https:\/\/blog.arduino.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=673"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.arduino.ir\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=673"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.arduino.ir\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}