{"id":2491,"date":"2019-06-16T14:32:29","date_gmt":"2019-06-16T06:32:29","guid":{"rendered":"http:\/\/chou-dan.com\/?p=1276"},"modified":"2026-01-13T10:05:48","modified_gmt":"2026-01-13T02:05:48","slug":"s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c","status":"publish","type":"post","link":"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/","title":{"rendered":"S27_Ball_Tilt_Switch(\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc)"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\u3010\u8aaa\u660e\u3011<\/h3>\n\n\n\n<p>\u793a\u7bc4\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc\u6a21\u7d44(Ball Tilt Switch)\u7684\u61c9\u7528\uff0c\u6b64\u6a21\u7d44\u4e26\u975e\u4ee5\u50be\u659c\u4f86\u5075\u5283\uff0c\u800c\u662f\u4ee5\u7576\u4e0b\u89d2\u5ea6\u5224\u65b7\u662f\u5426\u6709\u50be\u659c\u7570\u52d5\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7576\u50be\u659c\u6642\u8a0a\u6703\u8f38\u51fa\u6578\u4f4d\u8a0a\u865f 1 \u958b\u555f LED\uff0c<\/li>\n\n\n\n<li>\u7576\u4e0d\u50be\u659c\u6642\u8a0a\u6703\u8f38\u51fa\u6578\u4f4d\u8a0a\u865f 0 \u958b\u9589 LED\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u3010\u96f6\u4ef6\u8868\u3011<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>No.<\/strong><\/td><td><strong>\u96f6\u4ef6\u540d\u7a31<\/strong><\/td><td><strong>\u6578\u91cf<\/strong><\/td><\/tr><tr><td><strong>1<\/strong><\/td><td>LCD1602_I2C<\/td><td>1<\/td><\/tr><tr><td><strong>2<\/strong><\/td><td>S27_Ball_Tilt_Switch<\/td><td>1<\/td><\/tr><tr><td>3<\/td><td>LED<\/td><td>1<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u3010\u96f6\u4ef6\u63a5\u8173\u3011<\/h3>\n\n\n\n<p>\u8acb\u53c3\u8003 \u300c<a href=\"https:\/\/cfnavi.org\/aitech\/lcd1602_i2c-%e9%a1%af%e7%a4%ba%e5%99%a8\/\" target=\"_blank\" rel=\"noreferrer noopener sponsored nofollow\">LCD1602_I2C \u986f\u793a\u5668<\/a>\u300d \u63a5\u8173\u3002<\/p>\n\n\n\n<p>PS: \u6ce8\u610f\u96fb\u8def\u677f\u4e0a\u7684\u5370\u5237\u662f\u5426\u6b63\u78ba\uff0c\u4ee5\u6211\u7684\u6848\u4f8b\uff1a\u677f\u4e0a (- + S) \u4e0d\u6b63\u78ba\uff0c\u61c9\u662f (S + -)\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>No.<\/strong><\/td><td><strong>\u96f6\u4ef6\u63a5\u8173<\/strong><\/td><td><strong>UNO R3 \u63a5\u8173<\/strong><\/td><\/tr><tr><td>1<\/td><td> &#8211; (Ground)  <\/td><td>GND  <\/td><\/tr><tr><td>2<\/td><td>+ (Vcc) <\/td><td>Vcc<\/td><\/tr><tr><td>3<\/td><td> S (Signal) <\/td><td>D7 <\/td><\/tr><tr><td>4<\/td><td>LED + (\u9577\u8173)<\/td><td>D13<\/td><\/tr><tr><td>5<\/td><td>LED &#8211; (\u77ed\u8173)<\/td><td>GND<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u3010\u6309\u7dda\u5716\u3011<\/h3>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image\"><img decoding=\"async\" data-id=\"1278\" src=\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/06\/s27_ball_tilt_switch-1.png\" alt=\"\" class=\"wp-image-1278\"\/><\/figure>\n<\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u3010\u7a0b\u5f0f\u78bc\u3011<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"> \/*<br> \u793a\u7bc4\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc\u6a21\u7d44(Ball Tilt Switch)\u7684\u61c9\u7528<br> \u7576\u50be\u659c\u6642\u8a0a\u6703\u8f38\u51fa\u6578\u4f4d\u8a0a\u865f 1 \u958b\u555f LED\uff0c<br> \u7576\u4e0d\u50be\u659c\u6642\u8a0a\u6703\u8f38\u51fa\u6578\u4f4d\u8a0a\u865f 0 \u958b\u9589 LED\u3002<br> *\/ <br> <br>\/\/ \u4f7f\u7528 LCD1602 I2C \u986f\u793a\u5668\u986f\u793a\u7d50\u679c<br> \/\/ \u5b9a\u7fa9 LCD \u5143\u4ef6(\u4f4d\u7f6e 0x27 \u53ca 16x2 \u7684\u986f\u793a)<br> #include <br> LiquidCrystal_I2C lcd(0x27,16,2); <br> <br>\/\/ \u5b9a\u7fa9\u5168\u57df\u8b8a\u6578\u503c<br> byte sensorPinDO = 7;             \/\/ \u5b9a\u7fa9\u611f\u6e2c\u5668\u7684\u63a5\u6536\u8173\u4f4d<br> byte ledPin = 13;                 \/\/ \u5b9a\u7fa9 LED \u7684\u8173\u4f4d<br> byte sensorValueDO = 0;           \/\/ \u5132\u5b58\u611f\u6e2c\u5668\u7684\u503c<br> \/\/ \u7a0b\u5f0f\u521d\u5316\u8a2d\u5b9a<br> <br>void setup () <br> {<br>   lcd.begin();                    \/\/ \u958b\u555f LCD \u5143\u4ef6<br>   lcd.backlight();                \/\/ \u958b\u555f LCD \u80cc\u5149<br>   pinMode (ledPin, OUTPUT);       \/\/ \u8a2d\u5b9a LED \u70ba\u8f38\u51fa\u6a21\u5f0f<br>   pinMode (sensorPinDO, INPUT);   \/\/ \u8a2d\u5b9a\u611f\u6e2c\u5668\u70ba\u8f38\u5165\u6a21\u5f0f<br> }<br> <br>\/\/ \u4e3b\u7a0b\u5f0f\u8ff4\u5708<br> void loop () <br> {<br>   sensorValueDO = digitalRead(sensorPinDO);     \/\/ \u8b80\u53d6\u611f\u6e2c\u5668\u7684\u503c<br>   displayValue(sensorValueDO, 0);               \/\/ \u5c07\u611f\u61c9\u5668\u503c\u986f\u793a\u65bc LCD<br>   digitalWrite (ledPin, sensorValueDO);         \/\/ \u4f9d\u503c\u958b\u555f\u6216\u95dc\u9589 LED<br>   delay(500);                                   \/\/ \u904e\u65bc\u654f\u611f\uff0c\u66ab\u505c 500 ms<br> }<br> <br>\/\/ \u986f\u793a\u5075\u6e2c\u89f8\u767c\u7684\u503c<br> void displayValue(int value, byte row) {<br>   lcd.setCursor(0, row);                        \/\/ \u8a2d\u5b9a\u6e38\u6a19\u4f4d\u7f6e<br>   lcd.print(\"Value: \");<br>   lcd.print(value);                             \/\/ \u986f\u793a\u5075\u6e2c\u8cc7\u6599\u7684\u503c<br>   lcd.print(\"    \");<br> }<\/pre>\n\n\n\n<div class=\"wp-block-stackable-button-group stk-block-button-group stk-block stk-6d8a9a4\" data-block-id=\"6d8a9a4\"><div class=\"stk-row stk-inner-blocks stk-block-content stk-button-group\">\n<div class=\"wp-block-stackable-button stk-block-button is-style-ghost stk-block stk-631bf38\" data-block-id=\"631bf38\"><style>.stk-631bf38 .stk-button{background:transparent !important;}.stk-631bf38 .stk-button:hover:after{background:transparent !important;opacity:1 !important;}:where(.stk-hover-parent:hover,  .stk-hover-parent.stk--is-hovered) .stk-631bf38 .stk-button:after{background:transparent !important;opacity:1 !important;}.stk-631bf38 .stk-button:before{border-style:solid !important;}<\/style><a class=\"stk-link stk-button stk--hover-effect-darken\" href=\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/S27_Ball_Tilt_Switch.zip\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"stk-button__inner-text\">\u4e0b\u8f09\u7a0b\u5f0f\u78bc<\/span><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">&nbsp;\u203b &nbsp;\u5206\u4eab\u7d50\u675f &nbsp;\u203b<\/h3>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u8aaa\u660e\u3011 \u793a\u7bc4\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc\u6a21\u7d44(Ball Tilt Switch)\u7684\u61c9\u7528\uff0c\u6b64\u6a21\u7d44\u4e26\u975e\u4ee5\u50be\u659c\u4f86\u5075\u5283\uff0c\u800c\u662f\u4ee5\u7576\u4e0b [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":2433,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[86],"tags":[94,97,98,99,101],"class_list":["post-2491","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","tag-button","tag-lcd","tag-led","tag-sensor","tag-switch"],"blocksy_meta":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>S27_Ball_Tilt_Switch(\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc) - \u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc\/\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"S27_Ball_Tilt_Switch(\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc) - \u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280\" \/>\n<meta property=\"og:description\" content=\"\u3010\u8aaa\u660e\u3011 \u793a\u7bc4\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc\u6a21\u7d44(Ball Tilt Switch)\u7684\u61c9\u7528\uff0c\u6b64\u6a21\u7d44\u4e26\u975e\u4ee5\u50be\u659c\u4f86\u5075\u5283\uff0c\u800c\u662f\u4ee5\u7576\u4e0b [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc\/\" \/>\n<meta property=\"og:site_name\" content=\"\u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-16T06:32:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-13T02:05:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/06\/s27_ball_tilt_switch.png\" \/>\n\t<meta property=\"og:image:width\" content=\"803\" \/>\n\t<meta property=\"og:image:height\" content=\"510\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"\u4e58\u8c50\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005:\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u4e58\u8c50\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9810\u4f30\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/\"},\"author\":{\"name\":\"\u4e58\u8c50\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/#\/schema\/person\/8372c52e316d60d3fb84637968e786bb\"},\"headline\":\"S27_Ball_Tilt_Switch(\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc)\",\"datePublished\":\"2019-06-16T06:32:29+00:00\",\"dateModified\":\"2026-01-13T02:05:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/\"},\"wordCount\":45,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/#organization\"},\"image\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/06\/s27_ball_tilt_switch.png\",\"keywords\":[\"Button\",\"LCD\",\"LED\",\"Sensor\",\"Switch\"],\"articleSection\":[\"Arduino\"],\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/\",\"url\":\"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/\",\"name\":\"S27_Ball_Tilt_Switch(\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc) - \u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280\",\"isPartOf\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/06\/s27_ball_tilt_switch.png\",\"datePublished\":\"2019-06-16T06:32:29+00:00\",\"dateModified\":\"2026-01-13T02:05:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/#primaryimage\",\"url\":\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/06\/s27_ball_tilt_switch.png\",\"contentUrl\":\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/06\/s27_ball_tilt_switch.png\",\"width\":803,\"height\":510},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9801\",\"item\":\"https:\/\/cfnavi.org\/aitech\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"S27_Ball_Tilt_Switch(\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/#website\",\"url\":\"https:\/\/cfnavi.org\/aitech\/\",\"name\":\"\u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280\",\"description\":\"\u9019\u662f\u4e58\u8c50\u9818\u822a\u751f\u547d\u8266\u968a\u90e8\u843d\u683c\uff0c\u5206\u4eab\u5404\u5f0f\u7684\u8cc7\u8a0a\uff0c\u5982AI\u3001\u79d1\u629c\u3001\u6295\u8cc7\u7406\u8ca1\u3001\u8b80\u66f8\u5fc3\u5f97\u3001\u9000\u4f11\u751f\u6d3b\u3001 \u65c5\u904a\u2025\u7b49\u8cc7\u8a0a\u3002\",\"publisher\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cfnavi.org\/aitech\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/#organization\",\"name\":\"\u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280\",\"url\":\"https:\/\/cfnavi.org\/aitech\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/CFN-R1.png\",\"contentUrl\":\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/CFN-R1.png\",\"width\":800,\"height\":800,\"caption\":\"\u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280\"},\"image\":{\"@id\":\"https:\/\/cfnavi.org\/aitech\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/#\/schema\/person\/8372c52e316d60d3fb84637968e786bb\",\"name\":\"\u4e58\u8c50\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\/\/cfnavi.org\/aitech\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/CFN-R1-96x96.png\",\"contentUrl\":\"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/CFN-R1-96x96.png\",\"caption\":\"\u4e58\u8c50\"},\"url\":\"https:\/\/cfnavi.org\/aitech\/author\/chengfeng\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"S27_Ball_Tilt_Switch(\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc) - \u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc\/","og_locale":"zh_TW","og_type":"article","og_title":"S27_Ball_Tilt_Switch(\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc) - \u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280","og_description":"\u3010\u8aaa\u660e\u3011 \u793a\u7bc4\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc\u6a21\u7d44(Ball Tilt Switch)\u7684\u61c9\u7528\uff0c\u6b64\u6a21\u7d44\u4e26\u975e\u4ee5\u50be\u659c\u4f86\u5075\u5283\uff0c\u800c\u662f\u4ee5\u7576\u4e0b [&hellip;]","og_url":"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc\/","og_site_name":"\u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280","article_published_time":"2019-06-16T06:32:29+00:00","article_modified_time":"2026-01-13T02:05:48+00:00","og_image":[{"width":803,"height":510,"url":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/06\/s27_ball_tilt_switch.png","type":"image\/png"}],"author":"\u4e58\u8c50","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005:":"\u4e58\u8c50","\u9810\u4f30\u95b1\u8b80\u6642\u9593":"1 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/#article","isPartOf":{"@id":"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/"},"author":{"name":"\u4e58\u8c50","@id":"https:\/\/cfnavi.org\/aitech\/#\/schema\/person\/8372c52e316d60d3fb84637968e786bb"},"headline":"S27_Ball_Tilt_Switch(\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc)","datePublished":"2019-06-16T06:32:29+00:00","dateModified":"2026-01-13T02:05:48+00:00","mainEntityOfPage":{"@id":"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/"},"wordCount":45,"commentCount":0,"publisher":{"@id":"https:\/\/cfnavi.org\/aitech\/#organization"},"image":{"@id":"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/#primaryimage"},"thumbnailUrl":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/06\/s27_ball_tilt_switch.png","keywords":["Button","LCD","LED","Sensor","Switch"],"articleSection":["Arduino"],"inLanguage":"zh-TW","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/","url":"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/","name":"S27_Ball_Tilt_Switch(\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc) - \u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280","isPartOf":{"@id":"https:\/\/cfnavi.org\/aitech\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/#primaryimage"},"image":{"@id":"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/#primaryimage"},"thumbnailUrl":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/06\/s27_ball_tilt_switch.png","datePublished":"2019-06-16T06:32:29+00:00","dateModified":"2026-01-13T02:05:48+00:00","breadcrumb":{"@id":"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/"]}]},{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/#primaryimage","url":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/06\/s27_ball_tilt_switch.png","contentUrl":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2019\/06\/s27_ball_tilt_switch.png","width":803,"height":510},{"@type":"BreadcrumbList","@id":"https:\/\/cfnavi.org\/aitech\/s27_ball_tilt_switch%e9%87%91%e5%b1%ac%e7%90%83%e5%82%be%e6%96%9c%e9%96%8b%e9%97%9c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9801","item":"https:\/\/cfnavi.org\/aitech\/"},{"@type":"ListItem","position":2,"name":"S27_Ball_Tilt_Switch(\u91d1\u5c6c\u7403\u50be\u659c\u958b\u95dc)"}]},{"@type":"WebSite","@id":"https:\/\/cfnavi.org\/aitech\/#website","url":"https:\/\/cfnavi.org\/aitech\/","name":"\u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280","description":"\u9019\u662f\u4e58\u8c50\u9818\u822a\u751f\u547d\u8266\u968a\u90e8\u843d\u683c\uff0c\u5206\u4eab\u5404\u5f0f\u7684\u8cc7\u8a0a\uff0c\u5982AI\u3001\u79d1\u629c\u3001\u6295\u8cc7\u7406\u8ca1\u3001\u8b80\u66f8\u5fc3\u5f97\u3001\u9000\u4f11\u751f\u6d3b\u3001 \u65c5\u904a\u2025\u7b49\u8cc7\u8a0a\u3002","publisher":{"@id":"https:\/\/cfnavi.org\/aitech\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cfnavi.org\/aitech\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-TW"},{"@type":"Organization","@id":"https:\/\/cfnavi.org\/aitech\/#organization","name":"\u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280","url":"https:\/\/cfnavi.org\/aitech\/","logo":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/cfnavi.org\/aitech\/#\/schema\/logo\/image\/","url":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/CFN-R1.png","contentUrl":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/CFN-R1.png","width":800,"height":800,"caption":"\u4e58\u8c50\u9818\u822a-\uff21\uff29\u79d1\u6280"},"image":{"@id":"https:\/\/cfnavi.org\/aitech\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/cfnavi.org\/aitech\/#\/schema\/person\/8372c52e316d60d3fb84637968e786bb","name":"\u4e58\u8c50","image":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/cfnavi.org\/aitech\/#\/schema\/person\/image\/","url":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/CFN-R1-96x96.png","contentUrl":"https:\/\/cfnavi.org\/aitech\/wp-content\/uploads\/2026\/01\/CFN-R1-96x96.png","caption":"\u4e58\u8c50"},"url":"https:\/\/cfnavi.org\/aitech\/author\/chengfeng\/"}]}},"_links":{"self":[{"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/posts\/2491","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/comments?post=2491"}],"version-history":[{"count":3,"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/posts\/2491\/revisions"}],"predecessor-version":[{"id":2965,"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/posts\/2491\/revisions\/2965"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/media\/2433"}],"wp:attachment":[{"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/media?parent=2491"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/categories?post=2491"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cfnavi.org\/aitech\/wp-json\/wp\/v2\/tags?post=2491"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}