{"id":19254,"date":"2022-05-26T00:00:59","date_gmt":"2022-05-25T16:00:59","guid":{"rendered":"https:\/\/techclass.wfjydl.com\/?p=19254"},"modified":"2024-11-14T14:16:16","modified_gmt":"2024-11-14T06:16:16","slug":"arduino%e5%9f%ba%e7%a1%80%ef%bc%9a-%e8%af%bb%e5%8f%96%e7%94%b5%e5%8e%8b","status":"publish","type":"post","link":"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/arduino\/the-basics-of-arduino-reading-voltage\/","title":{"rendered":"Arduino\u57fa\u7840\uff1a \u8bfb\u53d6\u7535\u538b"},"content":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e<a href=\"https:\/\/www.deviceplus.com\/\">DevicePlus.com<\/a>\u82f1\u8bed\u7f51\u7ad9\u7684\u7ffb\u8bd1\u7a3f\u3002<\/p>\n<p><em>\u672c\u6587\u6700\u521d\u53d1\u5e03\u5728<a href=\"https:\/\/deviceplus.jp\">deviceplus.jp<\/a>\u7f51\u7ad9\u4e0a\uff0c\u800c\u540e\u88ab\u7ffb\u8bd1\u6210\u82f1\u8bed\u3002<\/em><\/p>\n<h2>\u76ee\u5f55<\/h2>\n<ol>\n<li><a href=\"#Introduction\">\u524d\u8a00<\/a><\/li>\n<li><a href=\"#Convert\">\u5c06\u6a21\u62df\u503c\u8f6c\u6362\u4e3a\u6570\u5b57\u503c<\/a><\/li>\n<li><a href=\"#Arduino\">Arduino\u7684\u6a21\u62df\u8f93\u5165<\/a><\/li>\n<li><a href=\"#Adjust\">\u53ef\u4ee5\u8c03\u8282\u7535\u538b\u7684\u7535\u4f4d\u5668<\/a><\/li>\n<li><a href=\"#Volume\">\u901a\u8fc7\u7535\u4f4d\u5668\u5b9e\u73b0\u6a21\u62df\u8f93\u5165<\/a><\/li>\n<li><a href=\"#Conclusion\">\u603b\u7ed3<\/a><\/li>\n<li><a href=\"#RelatedArticles\">\u76f8\u5173\u6587\u7ae0<\/a><\/li>\n<\/ol>\n<h2 id=\"Introduction\"><strong>\u524d\u8a00<\/strong><\/h2>\n<p>\u4f7f\u7528\u6570\u5b57\u8f93\u5165\uff0c\u53ef\u4ee5\u5c065V\u8bfb\u53d6\u4e3a\u201cHIGH\u201d\uff0c\u5c060V\u8bfb\u53d6\u4e3a\u201cLOW\u201d\u3002\u53ef\u4ee5\u901a\u8fc7\u72b6\u6001\u6765\u5224\u65ad\u5f00\u5173\u662f\u5426\u5df2\u5bfc\u901a\u3002\u4f46\u662f\uff0c\u5b9e\u9645\u4e0a\u7535\u538b\u4e0d\u53ea\u662f5V\u548c0V\uff0c\u800c\u662f\u5404\u79cd\u5404\u6837\u3002\u4f8b\u5982\uff0c\u4e00\u8282AA\u7535\u6c60\u7684\u7535\u538b\u4e3a1.5V\uff0c\u65e5\u672c\u5bb6\u7528\u63d2\u5ea7\u7684\u7535\u538b\u4e3a100V\u3002<\/p>\n<p>Arduino\u652f\u6301\u6a21\u62df\u8f93\u5165\uff0c\u4ee5\u80fd\u591f\u8bfb\u53d6\u8fd9\u4e9b\u4e0d\u540c\u7684\u7535\u538b\u3002\u5229\u7528\u6a21\u62df\u8f93\u5165\u529f\u80fd\uff0c\u80fd\u591f\u8bfb\u53d6\u9010\u6e10\u53d8\u5316\u7684\u7535\u5b50\u5143\u5668\u4ef6\u7684\u72b6\u6001\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u201c\u7535\u4f4d\u5668\u201d\u53ef\u4ee5\u8c03\u8282\u4eae\u5ea6\u6216\u97f3\u91cf\uff0c\u4e5f\u53ef\u4ee5\u4ece\u6e29\u5ea6\u4f20\u611f\u5668\u83b7\u53d6\u5f53\u524d\u6e29\u5ea6\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-9221\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage1.png\" alt=\"voltage can be read from analog input\" width=\"531\" height=\"353\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage1.png 531w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage1-300x199.png 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage1-220x146.png 220w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage1-50x33.png 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage1-113x75.png 113w\" sizes=\"auto, (max-width: 531px) 100vw, 531px\" \/><\/p>\n<p>\u672c\u6587\u662f\u672c\u7cfb\u5217\u6587\u7ae0\u7684\u6700\u540e\u4e00\u7bc7\uff0c\u5c06\u4ecb\u7ecd\u4f7f\u7528\u201c\u7535\u4f4d\u5668\u201d\u8fdb\u884c\u6a21\u62df\u8f93\u5165\u7684\u65b9\u6cd5\u3002<\/p>\n<h2 id=\"Convert\"><strong>\u5c06\u6a21\u62df\u503c\u8f6c\u6362\u4e3a\u6570\u5b57\u503c<\/strong><\/h2>\n<p>\u5b9e\u9645\u7684\u7535\u538b\u4e0d\u662f\u50cf1V\u62165V\u8fd9\u6837\u7684\u7cbe\u786e\u503c\uff0c\u800c\u662f\u50cf5.01342&#8230;V\u8fd9\u6837\u7684\u65e0\u7406\u6570\uff0c\u5176\u5c0f\u6570\u70b9\u540e\u7684\u6570\u5b57\u662f\u65e0\u9650\u4e0d\u5faa\u73af\u7684\u3002\u8fd9\u6837\u7684\u503c\u662f\u65e0\u6cd5\u901a\u8fc7\u8ba1\u7b97\u673a\u76f4\u63a5\u5904\u7406\u7684\u3002\u56e0\u6b64\uff0c\u5728\u7535\u5b50\u7535\u8def\u4e2d\uff0c\u4f1a\u4f7f\u7528\u4e00\u79cd\u79f0\u4e3a\u201cAD\u8f6c\u6362\u5668\u201d\u7684\u673a\u5236\u5c06\u6a21\u62df\u503c\u8f6c\u6362\u4e3a\u6570\u5b57\u503c\uff0c\u4ee5\u4fbf\u5b83\u4eec\u53ef\u4ee5\u7531\u8ba1\u7b97\u673a\u5904\u7406\u3002Arduino\u4f5c\u4e3a\u6807\u914d\u642d\u8f7d\u4e86AD\u8f6c\u6362\u5668\uff0c\u53ef\u4ee5\u8bfb\u53d6\u6a21\u62df\u7535\u538b\u503c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u6570\u5b57\u503c\u3002<\/p>\n<p>AD\u8f6c\u6362\u5668\u4f1a\u5c06\u5bf9\u8c61\u7535\u538b\u7b49\u5206\u3002\u5bf9\u4e8eArduino Uno\u800c\u8a00\uff0c\u53ef\u4ee5\u8bfb\u53d60-5V\u8303\u56f4\u5185\u7684\u7535\u538b\uff0c\u5e76\u4f1a\u5c06\u8fd9\u4e9b0-5V\u7684\u7535\u538b\u503c\u5206\u62101023\u7b49\u4efd\u3002AD\u8f6c\u6362\u5668\u4f1a\u5c06\u8bfb\u53d6\u5230\u7684\u6a21\u62df\u7535\u538b\u503c\u8f6c\u6362\u4e3a\u6700\u63a5\u8fd1\u7b49\u5206\u503c\u7684\u503c\u3002\u4f8b\u5982\uff0c\u5982\u679c\u7535\u538b\u4e3a3V\uff0c\u5219\u201c614\u201d\u662f\u6700\u63a5\u8fd1\u7684\u503c\u3002\u8fd9\u4e2a\u503c\u5c06\u53d1\u9001\u7ed9Arduino\u4f7f\u7528\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-9222\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage2.png\" alt=\"how the analog value is converted to digital value\" width=\"700\" height=\"286\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage2.png 700w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage2-300x123.png 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage2-260x106.png 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage2-50x20.png 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage2-150x61.png 150w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p>\u8bfb\u53d6\u5230\u7684\u591a\u8fbe1023\u4e2a\u7684\u6574\u6570\u503c\u5c06\u4f1a\u7528\u4e8e\u7a0b\u5e8f\u5904\u7406\u3002\u4f46\u662f\uff0c\u8f93\u5165\u503c\u4e0d\u662f\u7535\u538b\u503c\u3002\u5982\u679c\u60f3\u77e5\u9053\u7535\u538b\u503c\uff0c\u53ef\u4ee5\u8fdb\u884c\u5982\u4e0b\u8ba1\u7b97\uff1a<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-9223\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage3.png\" alt=\"how to calculate the voltage\" width=\"596\" height=\"391\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage3.png 596w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage3-300x197.png 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage3-223x146.png 223w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage3-50x33.png 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage3-114x75.png 114w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><\/p>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u6765\u81eaAD\u8f6c\u6362\u5668\u7684\u503c\u4e3a\u201c614\u201d\uff0c\u5219\u9664\u4ee51023\u518d\u4e58\u4ee55\u5373\u53ef\u5f97\u5230\u7ea63V\u3002<\/p>\n<h2 id=\"Arduino\"><strong>Arduino\u7684\u6a21\u62df\u8f93\u5165<\/strong><\/h2>\n<p>\u8981\u4f7f\u7528Arduino Uno\u7684\u6570\u5b57\u8f93\u5165\u529f\u80fd\u65f6\uff0c\u6709\u4eceA0\u5230A5\u76846\u4e2a\u5f15\u811a\u53ef\u7528\u3002\u901a\u8fc7\u5c06\u7535\u5b50\u5143\u5668\u4ef6\u8fde\u63a5\u5230\u8fd9\u4e9b\u5f15\u811a\u4e0a\uff0c\u5373\u53ef\u8bfb\u53d6\u65bd\u52a0\u4e86\u591a\u5c11\u7535\u538b\u3002\u4f46\u662f\uff0c\u5f15\u811aA4\u548cA5\u4e5f\u7528\u4e8e\u79f0\u4e3a\u201cI2C\u201d\u7684\u6570\u5b57\u901a\u4fe1\u3002\u8bf7\u6ce8\u610f\uff0c\u5728\u8fde\u63a5\u4f20\u611f\u5668\u6216\u663e\u793a\u5668\u7b49\u4f7f\u7528I2C\u6570\u5b57\u901a\u4fe1\u7684\u7535\u5b50\u5143\u5668\u4ef6\u65f6\uff0c\u8fd9\u4e9b\u5f15\u811a\u4e0d\u80fd\u7528\u4e8e\u6a21\u62df\u8f93\u5165\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-9224\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage4.png\" alt=\"pins that support analog input\" width=\"698\" height=\"317\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage4.png 698w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage4-300x136.png 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage4-260x118.png 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage4-50x23.png 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage4-150x68.png 150w\" sizes=\"auto, (max-width: 698px) 100vw, 698px\" \/><\/p>\n<h2 id=\"Adjust\"><strong>\u53ef\u4ee5\u8c03\u8282\u7535\u538b\u7684\u7535\u4f4d\u5668<\/strong><\/h2>\n<p>\u201c\u7535\u4f4d\u5668\u201d\u662f\u4e00\u4e2a\u53ef\u4ee5\u7528\u6765\u8c03\u8282\u97f3\u91cf\u6216\u7167\u660e\u4eae\u5ea6\u7684\u7535\u5b50\u90e8\u4ef6\u3002\u5728\u7535\u4f4d\u5668\u5185\u90e8\u914d\u6709\u7535\u963b\u5143\u4ef6\uff0c\u5e76\u6709\u5728\u7535\u963b\u5143\u4ef6\u4e0a\u79fb\u52a8\u7684\u5f15\u811a\u3002\u901a\u8fc7\u79fb\u52a8\u5f15\u811a\u53ef\u4ee5\u6539\u53d8\u7535\u963b\u3002<\/p>\n<p>\u7535\u4f4d\u5668\u901a\u5e38\u4f1a\u914d\u6709\u4e09\u4e2a\u5f15\u811a\u3002\u5de6\u53f3\u4e24\u4fa7\u7684\u5f15\u811a\u5b89\u88c5\u5728\u7535\u963b\u5668\u7684\u4e24\u7aef\u3002\u4e2d\u95f4\u7684\u5f15\u811a\u53ef\u4ee5\u5728\u7535\u963b\u5143\u4ef6\u4e0a\u79fb\u52a8\u3002\u5982\u679c\u5c06\u4e2d\u95f4\u5f15\u811a\u5411\u53f3\u79fb\u52a8\uff0c\u5219\u5de6\u4fa7\u548c\u4e2d\u95f4\u5f15\u811a\u4e4b\u95f4\u7684\u7535\u963b\u4f1a\u589e\u52a0\u3002\u53cd\u4e4b\uff0c\u5982\u679c\u5c06\u4e2d\u95f4\u5f15\u811a\u5411\u5de6\u79fb\u52a8\uff0c\u5219\u5de6\u4fa7\u548c\u4e2d\u95f4\u5f15\u811a\u4e4b\u95f4\u7684\u7535\u963b\u4f1a\u51cf\u5c0f\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-9225\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage5.png\" alt=\"how the volume works\" width=\"719\" height=\"274\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage5.png 719w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage5-300x114.png 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage5-260x99.png 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage5-50x19.png 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage5-150x57.png 150w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/p>\n<p>\u5728\u4e0a\u56fe\u4e2d\uff0c\u7535\u963b\u5143\u4ef6\u662f\u7ebf\u6027\u7684\uff0c\u4f46\u5728\u65cb\u8f6c\u5f0f\u7684\u7535\u4f4d\u5668\u4e2d\uff0c\u5185\u90e8\u7535\u963b\u5143\u4ef6\u662f\u5706\u5f62\u7684\u3002\u5c3d\u7ba1\u5f62\u72b6\u4e0d\u540c\uff0c\u4f46\u5b83\u4eec\u7684\u5de5\u4f5c\u539f\u7406\u57fa\u672c\u76f8\u540c\u3002<\/p>\n<p>Arduino\u7684\u6a21\u62df\u8f93\u5165\u4f7f\u7528\u7535\u538b\u7684\u53d8\u5316\u8fdb\u884c\u8f93\u5165\u3002\u4f46\u662f\uff0c\u7531\u4e8e\u7535\u4f4d\u5668\u7684\u7535\u963b\u4f1a\u53d1\u751f\u53d8\u5316\uff0c\u56e0\u6b64\u65e0\u6cd5\u901a\u8fc7\u5c06\u5176\u76f4\u63a5\u8fde\u63a5\u5230Arduino\u6765\u8bfb\u53d6\u7535\u4f4d\u5668\u7684\u53d8\u5316\u60c5\u51b5\u3002\u56e0\u6b64\uff0c\u9700\u8981\u5c06\u7535\u963b\u7684\u53d8\u5316\u8f6c\u6362\u4e3a\u7535\u538b\u7684\u53d8\u5316\u3002\u5c06\u7535\u6e90\u548cGND\u5206\u522b\u8fde\u63a5\u5230\u7535\u963b\u7684\u5de6\u53f3\u5f15\u811a\u3002\u8fd9\u6837\uff0c\u4e2d\u95f4\u5f15\u811a\u7684\u7535\u538b\u5c06\u6839\u636e\u5f15\u811a\u7684\u4f4d\u7f6e\u53d1\u751f\u53d8\u5316\u3002\u4f8b\u5982\uff0c\u5047\u8bbe\u5c06GND\u8fde\u63a5\u5230\u5de6\u4fa7\u5f15\u811a\uff0c\u5c06\u7535\u6e90(5V)\u8fde\u63a5\u5230\u53f3\u4fa7\u5f15\u811a\uff0c\u5f53\u4e2d\u95f4\u5f15\u811a\u5411\u53f3\u79fb\u52a8\uff0c\u7535\u538b\u4f1a\u5347\u9ad8\uff0c\u5411\u5de6\u79fb\u52a8\u65f6\uff0c\u7535\u538b\u4f1a\u964d\u4f4e\u3002\u6b64\u5916\uff0c\u7531\u4e8e\u5de6\u7aef\u4e3a0V\uff0c\u53f3\u7aef\u4e3a5V\uff0c\u56e0\u6b64\u53ef\u4ee5\u4f7f\u7535\u538b\u503c\u57280V\u52305V\u7684\u8303\u56f4\u5185\u53d8\u5316\u3002<\/p>\n<p>\u53ea\u8981\u5c06\u8fd9\u4e2a\u4e2d\u95f4\u5f15\u811a\u4e0eArduino\u7684\u6a21\u62df\u8f93\u5165\u5f15\u811a\u76f8\u8fde\u63a5\uff0c\u5c31\u53ef\u4ee5\u901a\u8fc7\u64cd\u4f5c\u7535\u4f4d\u5668\u6765\u66f4\u6539\u8f93\u5165\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-9226\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage6.png\" alt=\"how the volume works\" width=\"706\" height=\"256\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage6.png 706w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage6-300x109.png 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage6-260x94.png 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage6-50x18.png 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage6-150x54.png 150w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/p>\n<h2 id=\"Volume\"><strong>\u901a\u8fc7\u7535\u4f4d\u5668\u5b9e\u73b0\u6a21\u62df\u8f93\u5165<\/strong><\/h2>\n<p>\u73b0\u5728\uff0c\u6211\u4eec\u5c1d\u8bd5\u4f7f\u7528\u7535\u4f4d\u5668\u8fdb\u884c\u6a21\u62df\u8f93\u5165\u3002\u9700\u8981\u51c6\u5907\u597d\u4ee5\u4e0b\u7535\u5b50\u90e8\u4ef6\uff1a<br \/>\n<a href=\"https:\/\/www.amazon.com\/Terminal-Linear-Taper-Rotary-Potentiometer\/dp\/B074N43CV1\"><strong>\u7535\u4f4d\u5668<\/strong><\/a><br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-9227\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage7.jpg\" alt=\"volume pod\" width=\"258\" height=\"300\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage7.jpg 258w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage7-126x146.jpg 126w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage7-43x50.jpg 43w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage7-65x75.jpg 65w\" sizes=\"auto, (max-width: 258px) 100vw, 258px\" \/><\/p>\n<p>\u7535\u4f4d\u5668\u4f1a\u8bb0\u5f55\u53ef\u8c03\u8303\u56f4\u5185\u7684\u7535\u963b\u503c\u3002\u4f5c\u4e3aArduino\u8f93\u5165\u4f7f\u7528\u65f6\uff0c\u6700\u597d\u4f7f\u752810k\u03a9\u7684\u7535\u4f4d\u5668\u3002\u53e6\u5916\uff0c\u5982\u679c\u7535\u4f4d\u5668\u7684\u65cb\u8f6c\u8f74\u914d\u6709<a href=\"https:\/\/www.amazon.com\/Taiss-Silver-Rotary-Potentiometer-Diameter\/dp\/B07F2B9L6G\/ref=sr_1_29?dchild=1&amp;keywords=volume+knob&amp;qid=1585637278&amp;sr=8-29\">\u65cb\u94ae<\/a>\u4f1a\u66f4\u5bb9\u6613\u64cd\u4f5c\u3002<\/p>\n<p><a href=\"https:\/\/www.amazon.com\/UCTRONICS-Breadboard-Alligator-Clip-Jumpers\/dp\/B07GVGGYJ7\/ref=sr_1_19?crid=3K6FRU8V4N5B2&amp;keywords=jumper+wire+with+alligator+clips&amp;qid=1580976559&amp;sprefix=jumper+wire+with+alli%2Caps%2C337&amp;sr=8-19\"><strong>\u9cc4\u9c7c\u5939\u7ebf<\/strong><\/a><br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-9228\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage8.jpg\" alt=\"alligator clip jumper line\" width=\"300\" height=\"227\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage8.jpg 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage8-193x146.jpg 193w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage8-50x38.jpg 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage8-99x75.jpg 99w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u7528\u4e8e\u8fde\u63a5\u7535\u4f4d\u5668\uff0c\u4f7f\u7528\u65f6\u7528\u9cc4\u9c7c\u5939\u5939\u4f4f\u7535\u4f4d\u5668\u7684\u5f15\u811a\u3002\u70b9\u51fb\u94fe\u63a5\u53ef\u4ee5\u770b\u5230\u6211\u4eec\u4f7f\u7528\u7684\u662f2\u6761\u7ea2\u7ebf\u548c2\u6761\u9ed1\u7ebf\u914d\u5957\u9500\u552e\u7684\u4ea7\u54c1\u3002<\/p>\n<p>\u6240\u9700\u90e8\u4ef6\u51c6\u5907\u597d\u4ee5\u540e\uff0c\u6309\u5982\u4e0b\u65b9\u5f0f\u8fde\u63a5\u3002\u7531\u4e8e\u7535\u4f4d\u5668\u65e0\u6cd5\u63d2\u5165\u9762\u5305\u677f\uff0c\u56e0\u6b64\u9700\u8981\u4f7f\u7528\u9cc4\u9c7c\u5939\u7ebf\u5c06\u5176\u76f4\u63a5\u8fde\u63a5\u5230Arduino\u3002\u6b64\u65f6\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8981\u786e\u4fdd\u9cc4\u9c7c\u5939\u7684\u91d1\u5c5e\u90e8\u5206\u4e0d\u8981\u63a5\u89e6\u76f8\u90bb\u7684\u5939\u5b50\u90e8\u5206\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-9229\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage9.png\" alt=\"connecting volume pod to arduino\" width=\"676\" height=\"303\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage9.png 676w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage9-300x134.png 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage9-260x117.png 260w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage9-50x22.png 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage9-150x67.png 150w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/p>\n<p>\u7f16\u5199\u4ee5\u4e0b\u7a0b\u5e8f\uff1a<\/p>\n<p><script type=\"text\/javascript\" src=\"https:\/\/gist.github.com\/deviceplususer\/993480844b82169d8843c41e31cc7c7b.js\"><\/script><\/p>\n<p>\u8981\u786e\u8ba4\u6a21\u62df\u8f93\u5165\u5f15\u811a\u7684\u8fde\u63a5\u72b6\u6001\u65f6\uff0c\u8bf7\u5728\u7b2c11\u884c\u7684\u201canalogRead()\u201d\u4e2d\u6307\u5b9a\u5bf9\u8c61\u5f15\u811a\u3002\u8fd9\u6837\uff0c\u5373\u53ef\u4f7f\u75280\u52301023\u7684\u503c\u8f93\u5165\u5f15\u811a\u7535\u538b\u503c\u3002\u5982\u679c\u60f3\u77e5\u9053\u7535\u538b\uff0c\u8bf7\u6309\u7b2c13\u884c\u6240\u793a\u8fdb\u884c\u8ba1\u7b97\u5e76\u5c06\u8ba1\u7b97\u503c\u8f6c\u6362\u4e3a\u7535\u538b\u503c\u3002<\/p>\n<p>\u5c06\u7a0b\u5e8f\u53d1\u9001\u7ed9Arduino\u5e76\u663e\u793a\u4e32\u884c\u76d1\u89c6\u5668\u3002<br \/>\n\u60a8\u53ef\u4ee5\u770b\u5230\uff0c\u7ecfAD\u8f6c\u6362\u5668\u8f6c\u6362\u4e3a\u6570\u5b57\u7684\u503c\u663e\u793a\u5728\u201cValue:\u201d\u4e4b\u540e\uff0c\u7ecf\u8ba1\u7b97\u5e76\u8f6c\u6362\u4e3a\u7535\u538b\u7684\u503c\u663e\u793a\u5728\u201cVolt:\u201d\u4e4b\u540e\uff0c\u5f53\u8f6c\u52a8\u7535\u4f4d\u5668\u65f6\uff0c\u503c\u4e5f\u968f\u4e4b\u53d8\u5316\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-9230\" src=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage10.png\" alt=\"converted value and volt\" width=\"718\" height=\"460\" srcset=\"https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage10.png 718w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage10-300x192.png 300w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage10-228x146.png 228w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage10-50x32.png 50w, https:\/\/www.deviceplus.com\/wp-content\/uploads\/2020\/03\/Reading-Voltage10-117x75.png 117w\" sizes=\"auto, (max-width: 718px) 100vw, 718px\" \/><\/p>\n<h2 id=\"Conclusion\"><strong>\u603b\u7ed3<\/strong><\/h2>\n<p>\u5728\u672c\u7cfb\u5217\u8fde\u8f7d\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u4ecb\u7ecd\u4e86Arduino\u57fa\u7840\u7684\u7528\u6cd5\u3002\u6b22\u8fce\u60a8\u6839\u636e\u8fd9\u4e9b\u5185\u5bb9\u6765\u5c1d\u8bd5\u5236\u4f5c\u5404\u79cd\u7535\u5b50\u4f5c\u54c1\u6216\u8005\u8ba9\u4e00\u4e9b\u7535\u5b50\u90e8\u4ef6\u52a8\u8d77\u6765\u3002\u975e\u5e38\u611f\u8c22\u60a8\u8fde\u7eed\u5173\u6ce8\u8fd9\u4e2a\u957f\u8fbe\u534a\u5e74\u7684\u8fde\u8f7d\u7cfb\u5217\uff0c\u8c22\u8c22\uff01<\/p>\n<h2 id=\"RelatedArticles\"><strong>\u76f8\u5173\u6587\u7ae0<\/strong><\/h2>\n<p>\u60f3\u4e86\u89e3\u66f4\u591a\u6709\u5173Arduino\u7684\u57fa\u7840\u77e5\u8bc6\u5417\uff1f\u6b22\u8fce\u67e5\u770b\u76f8\u5173\u7684\u6587\u7ae0\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/arduino\/the-basics-of-arduino-adjusting-led-brightness\">Arduino\u57fa\u7840\uff1a \u8c03\u8282LED\u7684\u4eae\u5ea6<\/a><\/li>\n<li><a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/arduino\/the-basics-of-arduino-electronics-controlling-the-motor\">Arduino\u57fa\u7840\uff1a \u63a7\u5236\u7535\u673a<\/a><\/li>\n<li><a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/arduino\/the-basics-of-arduino-reading-switch-states\/\">Arduino\u57fa\u7840\uff1a \u8bfb\u53d6\u5f00\u5173\u72b6\u6001<\/a><\/li>\n<li><a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/how-tos\/arduino\/the-basics-of-arduino-control-led-lighting-with-digital-output\">Arduino\u57fa\u7840\uff1a \u901a\u8fc7\u6570\u5b57\u8f93\u51fa\u63a7\u5236LED\u7167\u660e<\/a><\/li>\n<li><a href=\"https:\/\/techclass.wfjydl.com\/knowledge\/tech-info\/how-tos\/arduino\/the-basics-of-arduino-prepping-the-arduino\">Arduino\u57fa\u7840\uff1a Arduino\u7684\u524d\u671f\u51c6\u5907<\/a><\/li>\n<\/ul>\n<div class=\"author-box-wrapper\">\n<div class=\"avatar-wrapper\">\n\t\t<img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/micro.wfjydl.com\/deviceplus\/wp-content\/uploads\/2018\/08\/Device-Plus-logo-for-author-info-75x75.png\" width=\"64\" height=\"64\" alt=\"DevicePlus \u7f16\u8f91\u56e2\u961f\">\n\t<\/div>\n<div class=\"desc-wrapper\">\n<h5>DevicePlus \u7f16\u8f91\u56e2\u961f<\/h5>\n<div class=\"desc\">\n<p>\u8bbe\u5907\u5347\u7ea7\u7248\u9002\u7528\u4e8e\u6240\u6709\u70ed\u7231\u7535\u5b50\u548c\u673a\u7535\u4e00\u4f53\u5316\u7684\u4eba\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"\u8fd9\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8eDevicePlus.com\u82f1\u8bed\u7f51\u7ad9\u7684\u7ffb\u8bd1\u7a3f\u3002 \u672c\u6587\u6700\u521d\u53d1\u5e03\u5728deviceplus.jp\u7f51\u7ad9\u4e0a\uff0c\u800c\u540e\u88ab\u7ffb\u8bd1\u6210\u82f1\u8bed\u3002 \u76ee\u5f55 \u524d\u8a00 \u5c06\u6a21\u62df\u503c\u8f6c\u6362\u4e3a\u6570\u5b57\u503c Arduino\u7684\u6a21\u62df\u8f93\u5165 \u53ef\u4ee5\u8c03\u8282\u7535\u538b\u7684\u7535\u4f4d\u5668 \u901a\u8fc7\u7535\u4f4d [&hellip;]","protected":false},"author":1,"featured_media":19255,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1130],"tags":[2425],"class_list":["post-19254","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","tag-arduino"],"acf":[],"wps_subtitle":"","_links":{"self":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/19254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/comments?post=19254"}],"version-history":[{"count":14,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/19254\/revisions"}],"predecessor-version":[{"id":19342,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/posts\/19254\/revisions\/19342"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media\/19255"}],"wp:attachment":[{"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/media?parent=19254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/categories?post=19254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techclass.wfjydl.com\/wp-json\/wp\/v2\/tags?post=19254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}