{"id":4185,"date":"2025-08-04T14:25:59","date_gmt":"2025-08-04T05:25:59","guid":{"rendered":"https:\/\/www.elehobby.fun\/?page_id=4185"},"modified":"2025-08-04T14:25:59","modified_gmt":"2025-08-04T05:25:59","slug":"arduino%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e3%83%a9%e3%82%a4%e3%83%b3%e3%83%95%e3%82%a9%e3%83%ad%e3%83%af%e3%83%bc%e3%83%ad%e3%83%9c%e3%83%83%e3%83%88%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9","status":"publish","type":"page","link":"https:\/\/www.elehobby.fun\/?page_id=4185","title":{"rendered":"Arduino\u3092\u4f7f\u3063\u305f\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306e\u4f5c\u308a\u65b9"},"content":{"rendered":"\n<div id=\"toc_container\" class=\"toc_light_blue no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">1<\/span> <\/a><ul><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_2\">1.1<\/span> \u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306e\u52d5\u4f5c<\/a><ul><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_3\">1.1.1<\/span> \u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306f\u3069\u306e\u3088\u3046\u306b\u30ca\u30d3\u30b2\u30fc\u30c8\u3059\u308b\u306e\u3067\u3057\u3087\u3046\u304b?<\/a><\/li><\/ul><\/li><li><a href=\"#i-4\"><span class=\"toc_number toc_depth_2\">1.2<\/span> \u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3068\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u8981\u4ef6<\/a><\/li><li><a href=\"#L293D__nbsp\"><span class=\"toc_number toc_depth_2\">1.3<\/span> L293D \u30e2\u30fc\u30bf\u30fc \u30c9\u30e9\u30a4\u30d0\u30fc \u30b7\u30fc\u30eb\u30c9\u304c\u5fc5\u8981\u306a\u306e\u306f\u306a\u305c\u3067\u3059\u304b?&nbsp;<\/a><\/li><li><a href=\"#i-5\"><span class=\"toc_number toc_depth_2\">1.4<\/span> \u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306e\u56de\u8def\u56f3<\/a><\/li><li><a href=\"#Arduino\"><span class=\"toc_number toc_depth_2\">1.5<\/span> Arduino\u30d9\u30fc\u30b9\u306e\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306e\u7d44\u307f\u7acb\u3066<\/a><\/li><li><a href=\"#Arduino-2\"><span class=\"toc_number toc_depth_2\">1.6<\/span> Arduino \u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u30b3\u30fc\u30c9<\/a><ul><li><a href=\"#i-6\"><span class=\"toc_number toc_depth_3\">1.6.1<\/span> \u30b3\u30fc\u30c9\u306e\u8aac\u660e<\/a><\/li><\/ul><\/li><li><a href=\"#i-7\"><span class=\"toc_number toc_depth_2\">1.7<\/span> \u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u3092\u30ad\u30e3\u30ea\u30d6\u30ec\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b?<\/a><ul><li><a href=\"#i-8\"><span class=\"toc_number toc_depth_3\">1.7.1<\/span> \u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/div>\n<h1 class=\"wp-block-heading\"><span id=\"i\"><\/span><\/h1>\n\n\n\n<p><a href=\"https:\/\/playwithcircuit.com\/arduino\/\">\u30a2\u30eb\u30c9\u30a5\u30a4\u30fc\u30ce<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/playwithcircuit.com\/wp-content\/uploads\/2024\/10\/Line-follower-robot-using-Arduino.webp\" alt=\"Arduino\u3092\u4f7f\u3063\u305f\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306e\u4f5c\u308a\u65b9\"\/><\/figure>\n\n\n\n<p>\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\uff08LFR\uff09\u306f\u3001\u901a\u5e38\u306f\u767d\u5730\u306b\u9ed2\u7dda\u3001\u307e\u305f\u306f\u9ed2\u5730\u306b\u767d\u7dda\u3067\u793a\u3055\u308c\u305f\u6240\u5b9a\u306e\u7d4c\u8def\u3092\u8fbf\u308b\u81ea\u5f8b\u8a98\u5c0e\u30ed\u30dc\u30c3\u30c8\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u30ed\u30dc\u30c3\u30c8\u306f\u3001\u7523\u696d\u30aa\u30fc\u30c8\u30e1\u30fc\u30b7\u30e7\u30f3\u3001\u5009\u5eab\u7269\u6d41\u3001\u6559\u80b2\u76ee\u7684\u3067\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u3053\u306e\u5305\u62ec\u7684\u306a\u30ac\u30a4\u30c9\u306b\u306f\u3001Arduino\u30d9\u30fc\u30b9\u306e\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306e\u69cb\u7bc9\u3068\u64cd\u4f5c\u306b\u5fc5\u8981\u306a\u60c5\u5831\u304c\u3059\u3079\u3066\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u3055\u3042\u3001\u59cb\u3081\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<p>\u6982\u8981<a href=\"https:\/\/playwithcircuit.com\/line-follower-robot-using-arduino\/#\"><\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/playwithcircuit.com\/line-follower-robot-using-arduino\/#Working_of_a_Line_Follower_Robot\">\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306e\u52d5\u4f5c<\/a>\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/playwithcircuit.com\/line-follower-robot-using-arduino\/#How_does_a_Line_Follower_Robot_Navigates\">\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306f\u3069\u306e\u3088\u3046\u306b\u30ca\u30d3\u30b2\u30fc\u30c8\u3059\u308b\u306e\u3067\u3057\u3087\u3046\u304b?<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/playwithcircuit.com\/line-follower-robot-using-arduino\/#Hardware_and_Software_Requirements\">\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3068\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u8981\u4ef6<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/playwithcircuit.com\/line-follower-robot-using-arduino\/#Why_do_we_need_an_L293D_Motor_Driver_Shield\">L293D \u30e2\u30fc\u30bf\u30fc \u30c9\u30e9\u30a4\u30d0\u30fc \u30b7\u30fc\u30eb\u30c9\u304c\u5fc5\u8981\u306a\u306e\u306f\u306a\u305c\u3067\u3059\u304b?\u00a0<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/playwithcircuit.com\/line-follower-robot-using-arduino\/#Circuit_Diagram_of_Line_Follower_Robot\">\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306e\u56de\u8def\u56f3<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/playwithcircuit.com\/line-follower-robot-using-arduino\/#Assembling_the_Arduino-based_Line_Follower_Robot\">Arduino\u30d9\u30fc\u30b9\u306e\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306e\u7d44\u307f\u7acb\u3066<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/playwithcircuit.com\/line-follower-robot-using-arduino\/#Arduino_Line_Follower_Robot_Code\">Arduino \u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u30b3\u30fc\u30c9<\/a>\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/playwithcircuit.com\/line-follower-robot-using-arduino\/#Code_Description\">\u30b3\u30fc\u30c9\u306e\u8aac\u660e<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/playwithcircuit.com\/line-follower-robot-using-arduino\/#How_to_calibrate_line_follower_Robot\">\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u3092\u30ad\u30e3\u30ea\u30d6\u30ec\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b?<\/a>\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/playwithcircuit.com\/line-follower-robot-using-arduino\/#Troubleshooting\">\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"https:\/\/playwithcircuit.com\/line-follower-robot-using-arduino\/#Project_Demonstration\">\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30c7\u30e2\u30f3\u30b9\u30c8\u30ec\u30fc\u30b7\u30e7\u30f3<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span id=\"i-2\"><strong>\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306e\u52d5\u4f5c<\/strong><\/span><\/h2>\n\n\n\n<p>\u524d\u8ff0\u306e\u901a\u308a\u3001\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306f\u9ed2\u7dda\u3092\u691c\u51fa\u3057\u3001\u305d\u306e\u7dda\u306b\u6cbf\u3063\u3066\u79fb\u52d5\u3057\u307e\u3059\u3002\u3067\u306f\u3001LFR\u306b\u3053\u306e\u7dda\u691c\u51fa\u6a5f\u69cb\u3092\u3069\u306e\u3088\u3046\u306b\u5b9f\u88c5\u3059\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\u9ed2\u3044\u8868\u9762\u306f\u6700\u3082\u591a\u304f\u306e\u5149\u3092\u5438\u53ce\u3057\u3001\u767d\u3044\u8868\u9762\u306f\u307b\u307c\u3059\u3079\u3066\u306e\u5149\u3092\u53cd\u5c04\u3059\u308b\u3053\u3068\u304c\u77e5\u3089\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u5149\u306e\u7279\u6027\u306f\u3001LDR\uff08\u5149\u4f9d\u5b58\u62b5\u6297\u5668\uff09\u3001IR\u30bb\u30f3\u30b5\u30fc\u3001\u30e9\u30a4\u30f3\u30bb\u30f3\u30b5\u30fc\u306a\u3069\u3001\u591a\u304f\u306e\u30bb\u30f3\u30b5\u30fc\u306b\u3088\u3063\u3066\u7dda\u691c\u51fa\u306b\u5229\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u3001\u9ad8\u7cbe\u5ea6\u304b\u3064\u6b63\u78ba\u306a\u7dda\u691c\u51fa\u306e\u305f\u3081\u306b\u30e9\u30a4\u30f3\u30bb\u30f3\u30b5\u30fc\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30e9\u30a4\u30f3\u30bb\u30f3\u30b5\u30fc\u306f\u901a\u5e38\u3001\u8d64\u5916\u7dda\u767a\u5149\u90e8\uff08LED\uff09\u3068\u8d64\u5916\u7dda\u53d7\u5149\u90e8\uff08\u30d5\u30a9\u30c8\u30c0\u30a4\u30aa\u30fc\u30c9\uff09\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u767a\u5149\u90e8\u306f\u8d64\u5916\u7dda\u3092\u9023\u7d9a\u7684\u306b\u767a\u5149\u3057\u3001\u53d7\u5149\u90e8\u306f\u305d\u306e\u53cd\u5c04\u5149\u3092\u691c\u51fa\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u767a\u5149\u90e8\u304b\u3089\u653e\u5c04\u3055\u308c\u305f\u8d64\u5916\u7dda\u304c\u767d\u3044\u8868\u9762\u306b\u5f53\u305f\u308b\u3068\u53cd\u5c04\u3057\u3001\u53d7\u5149\u90e8\u3067\u691c\u51fa\u3055\u308c\u307e\u3059\u3002\u5149\u304c\u9ed2\u3044\u7dda\u306b\u5f53\u305f\u308b\u3068\u5438\u53ce\u3055\u308c\u3001\u53d7\u5149\u90e8\u306b\u5230\u9054\u3057\u307e\u305b\u3093\u3002\u4e0b\u56f3\u306f\u30e9\u30a4\u30f3\u30bb\u30f3\u30b5\u30fc\u306e\u52d5\u4f5c\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/playwithcircuit.com\/wp-content\/uploads\/2023\/12\/IR-Proximity-Sensor-Module-Working.jpg\" alt=\"IR\u8fd1\u63a5\u30bb\u30f3\u30b5\u30fc\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u52d5\u4f5c\" class=\"wp-image-5771\"\/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\"><span id=\"i-3\"><strong>\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306f\u3069\u306e\u3088\u3046\u306b\u30ca\u30d3\u30b2\u30fc\u30c8\u3059\u308b\u306e\u3067\u3057\u3087\u3046\u304b?<\/strong><\/span><\/h3>\n\n\n\n<p>\u30ed\u30dc\u30c3\u30c8\u306b\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b\u306b\u306f\u30012\u3064\u306e\u30e2\u30fc\u30bf\u30fc\u304c\u5fc5\u8981\u3067\u3059\u30021\u3064\u306f\u30b7\u30e3\u30fc\u30b7\u306e\u5de6\u5074\u306b\u3001\u3082\u30461\u3064\u306f\u53f3\u5074\u306b\u8a2d\u7f6e\u3057\u307e\u3059\u3002\u30e2\u30fc\u30bf\u30fc\u306e\u56de\u8ee2\u65b9\u5411\u306f\u3001\u5de6\u53f3\u306b\u914d\u7f6e\u3055\u308c\u305f\u30bb\u30f3\u30b5\u30fc\u304b\u3089\u53d7\u4fe1\u3057\u305f\u4fe1\u53f7\u306b\u3088\u3063\u3066\u5236\u5fa1\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30ed\u30dc\u30c3\u30c8\u304c\u79fb\u52d5\u3067\u304d\u308b\u30b1\u30fc\u30b9\u306f 4 \u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u30b1\u30fc\u30b91\uff1a\u30ed\u30dc\u30c3\u30c8\u304c\u524d\u9032\u3059\u308b\u5834\u5408<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\u4e21\u65b9\u306e\u30bb\u30f3\u30b5\u30fc\u304c\u767d\u3044\u9762\u306b\u3042\u308b\u5834\u5408\u3001\u3064\u307e\u308a\u7dda\u3092\u691c\u77e5\u3057\u3066\u3044\u306a\u3044\uff08\u9ed2\u3044\u7dda\u304c\u30bb\u30f3\u30b5\u30fc\u306e\u9593\u306b\u3042\u308b\uff09\u5834\u5408\u3001\u30ed\u30dc\u30c3\u30c8\u306f\u524d\u9032\u3059\u308b\u306f\u305a\u3067\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u4e21\u65b9\u306e\u30e2\u30fc\u30bf\u30fc\u304c\u524d\u9032\u65b9\u5411\u306b\u56de\u8ee2\u3057\u3001\u30ed\u30dc\u30c3\u30c8\u306f\u524d\u9032\u3057\u307e\u3059\u3002<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/playwithcircuit.com\/wp-content\/uploads\/2024\/10\/Robot-moves-forward.webp\" alt=\"\u30ed\u30dc\u30c3\u30c8\u306f\u524d\u9032\u3059\u308b\" class=\"wp-image-9461\"\/><\/figure>\n<\/div>\n\n\n<p><strong>\u30b1\u30fc\u30b92: \u30ed\u30dc\u30c3\u30c8\u304c\u5de6\u306b\u66f2\u304c\u308b\u5834\u5408<\/strong><\/p>\n\n\n\n<p>\u53f3\u306e\u30bb\u30f3\u30b5\u30fc\u304c\u767d\u3044\u8868\u9762\u4e0a\u306b\u3042\u308a\u3001\u5de6\u306e\u30bb\u30f3\u30b5\u30fc\u304c\u9ed2\u3044\u7dda\u3092\u691c\u77e5\u3059\u308b\u3068\u3001\u30de\u30a4\u30af\u30ed\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306b\u4fe1\u53f7\u304c\u9001\u3089\u308c\u307e\u3059\u3002\u30ed\u30dc\u30c3\u30c8\u306f\u5de6\u306b\u66f2\u304c\u308b\u306f\u305a\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u5de6\u306e\u30e2\u30fc\u30bf\u30fc\u306f\u9006\u56de\u8ee2\u3057\u3001\u53f3\u306e\u30e2\u30fc\u30bf\u30fc\u306f\u524d\u9032\u3092\u7d9a\u3051\u307e\u3059\u3002\u305d\u306e\u7d50\u679c\u3001\u30ed\u30dc\u30c3\u30c8\u306f\u5de6\u306b\u66f2\u304c\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/playwithcircuit.com\/wp-content\/uploads\/2024\/10\/When-robot-turns-to-left.webp\" alt=\"\u30ed\u30dc\u30c3\u30c8\u304c\u5de6\u306b\u66f2\u304c\u308b\u3068\u304d\" class=\"wp-image-9464\"\/><\/figure>\n<\/div>\n\n\n<p><strong>\u30b1\u30fc\u30b93: \u30ed\u30dc\u30c3\u30c8\u304c\u53f3\u306b\u66f2\u304c\u308b\u5834\u5408<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5de6\u306e\u30bb\u30f3\u30b5\u30fc\u304c\u767d\u3044\u9762\u4e0a\u306b\u3042\u308a\u3001\u53f3\u306e\u30bb\u30f3\u30b5\u30fc\u304c\u7dda\u3092\u691c\u77e5\u3057\u305f\u5834\u5408\u3001\u30de\u30a4\u30af\u30ed\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306b\u4fe1\u53f7\u304c\u9001\u3089\u308c\u307e\u3059\u3002\u3064\u307e\u308a\u3001\u30ed\u30dc\u30c3\u30c8\u306f\u53f3\u306b\u66f2\u304c\u308b\u306f\u305a\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u5de6\u306e\u30e2\u30fc\u30bf\u30fc\u306f\u524d\u9032\u3057\u3001\u53f3\u306e\u30e2\u30fc\u30bf\u30fc\u306f\u5f8c\u9000\u3059\u308b\u306e\u3067\u3001\u30ed\u30dc\u30c3\u30c8\u306f\u53f3\u306b\u9032\u307f\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/playwithcircuit.com\/wp-content\/uploads\/2024\/10\/When-robot-turns-to-right.webp\" alt=\"\u30ed\u30dc\u30c3\u30c8\u304c\u53f3\u306b\u66f2\u304c\u308b\u3068\u304d\" class=\"wp-image-9463\"\/><\/figure>\n<\/div>\n\n\n<p><strong>\u30b1\u30fc\u30b94: \u30ed\u30dc\u30c3\u30c8\u304c\u505c\u6b62\u3057\u305f\u5834\u5408<\/strong><\/p>\n\n\n\n<p>\u4e21\u65b9\u306e\u30bb\u30f3\u30b5\u30fc\u304c\u540c\u6642\u306b\u9ed2\u7dda\u3092\u691c\u77e5\u3059\u308b\u3068\u3001\u30ed\u30dc\u30c3\u30c8\u306f\u505c\u6b62\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u4e21\u65b9\u306e\u30e2\u30fc\u30bf\u30fc\u306e\u52d5\u304d\u304c\u505c\u6b62\u3057\u3001\u30ed\u30dc\u30c3\u30c8\u306f\u505c\u6b62\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/playwithcircuit.com\/wp-content\/uploads\/2024\/10\/Robot-stops.webp\" alt=\"\u30ed\u30dc\u30c3\u30c8\u304c\u505c\u6b62\u3059\u308b\" class=\"wp-image-9462\"\/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\"><span id=\"i-4\"><strong>\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3068\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u8981\u4ef6<\/strong><\/span><\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u8981\u4ef6<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u540d<\/th><th>\u91cf<\/th><th>\u8cfc\u5165\u5834\u6240<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th><\/th><th><\/th><th><\/th><\/tr><\/thead><tbody><tr><td>\u30a2\u30eb\u30c9\u30a5\u30a4\u30fc\u30ceUNO R3<\/td><td>1<\/td><td><a href=\"https:\/\/amzn.to\/3Q1pIEi\" rel=\"noreferrer noopener\" target=\"_blank\">Amazon.com<\/a>&nbsp;\/&nbsp;<a href=\"https:\/\/amzn.to\/3DiNIiI\" target=\"_blank\" rel=\"noreferrer noopener\">Amazon.in<\/a>&nbsp;\/<a href=\"https:\/\/www.banggood.in\/custlink\/3DGSCN1GZE\" rel=\"noreferrer noopener\" target=\"_blank\">\u30d0\u30f3\u30b0\u30c3\u30c9<\/a><\/td><\/tr><tr><td>L293D \u30e2\u30fc\u30bf\u30fc\u30c9\u30e9\u30a4\u30d0\u30fc\u30b7\u30fc\u30eb\u30c9<\/td><td>1<\/td><td><a href=\"https:\/\/amzn.to\/3YdfR1k\" rel=\"noreferrer noopener\" target=\"_blank\">Amazon.com<\/a>&nbsp;\/&nbsp;<a href=\"https:\/\/amzn.to\/49GPJS0\" target=\"_blank\" rel=\"noreferrer noopener\">Amazon.in<\/a><\/td><\/tr><tr><td>\u30b8\u30e3\u30f3\u30d1\u30fc\u7dda<\/td><td>\u8907\u6570<\/td><td><a href=\"https:\/\/amzn.to\/4fbRVSI\" rel=\"noreferrer noopener\" target=\"_blank\">Amazon.com<\/a>&nbsp;\/&nbsp;<a href=\"https:\/\/amzn.to\/3VFPBwh\" target=\"_blank\" rel=\"noreferrer noopener\">Amazon.in<\/a>&nbsp;\/<a href=\"https:\/\/www.banggood.in\/custlink\/DKvIJbfKal\" rel=\"noreferrer noopener\" target=\"_blank\">\u30d0\u30f3\u30b0\u30c3\u30c9<\/a><\/td><\/tr><tr><td>USB A-B\u30b1\u30fc\u30d6\u30eb<\/td><td>1<\/td><td><a href=\"https:\/\/amzn.to\/48m0OHk\" rel=\"noreferrer noopener\" target=\"_blank\">Amazon.com<\/a>&nbsp;\/&nbsp;<a href=\"https:\/\/amzn.to\/4gBoVEN\" target=\"_blank\" rel=\"noreferrer noopener\">Amazon.in<\/a><\/td><\/tr><tr><td>\u30ed\u30dc\u30c3\u30c8\u30b7\u30e3\u30fc\u30b7\u3001\u30db\u30a4\u30fc\u30eb\u3001\u30ae\u30e4\u30fc\u30c9\u30e2\u30fc\u30bf\u30fc\uff08\u30ad\u30c3\u30c8\uff09<\/td><td>&#8211;<\/td><td><a href=\"https:\/\/amzn.to\/3YlqOy0\" rel=\"noreferrer noopener\" target=\"_blank\">Amazon.com<\/a>&nbsp;\/&nbsp;<a href=\"https:\/\/amzn.to\/3ZFU2s3\" target=\"_blank\" rel=\"noreferrer noopener\">Amazon.in<\/a><\/td><\/tr><tr><td>\u30e9\u30a4\u30f3\u30bb\u30f3\u30b5\u30fc\u30e2\u30b8\u30e5\u30fc\u30eb<\/td><td>2<\/td><td><a href=\"https:\/\/amzn.to\/3NCemVy\" rel=\"noreferrer noopener\" target=\"_blank\">Amazon.com<\/a>&nbsp;\/&nbsp;<a href=\"https:\/\/amzn.to\/3OYEbQm\" target=\"_blank\" rel=\"noreferrer noopener\">Amazon.in<\/a>&nbsp;\/<a href=\"https:\/\/www.banggood.in\/custlink\/m3m8Zlte0g\" target=\"_blank\" rel=\"noreferrer noopener\">\u30d0\u30f3\u30b0\u30c3\u30c9<\/a><\/td><\/tr><tr><td>\u30d6\u30e9\u30c3\u30af\u30c6\u30fc\u30d7<\/td><td>1<\/td><td><a href=\"https:\/\/amzn.to\/3Uk24Vq\" rel=\"noreferrer noopener\" target=\"_blank\">Amazon.com<\/a>&nbsp;\/&nbsp;<a href=\"https:\/\/amzn.to\/3OVfvIn\" target=\"_blank\" rel=\"noreferrer noopener\">Amazon.in<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n\n\n<p>\u4e0a\u8a18\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u500b\u5225\u306b\u8cfc\u5165\u3059\u308b\u3053\u3068\u3082\u3001\u901a\u5e38\u306f\u5fc5\u8981\u306a\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u3059\u3079\u3066\u542b\u307e\u308c\u3066\u3044\u308bDIY \u30e9\u30a4\u30f3 \u30d5\u30a9\u30ed\u30ef\u30fc \u30ed\u30dc\u30c3\u30c8 \u30ad\u30c3\u30c8\u3092\u8cfc\u5165\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u5fc5\u8981\u306a\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>PC\u306bArduino IDE\u30d0\u30fc\u30b8\u30e7\u30f32.1.1\u4ee5\u4e0a\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b<\/li>\n\n\n\n<li>Adafruit \u306e Adafruit Motor Shield Library (V1) \u30d0\u30fc\u30b8\u30e7\u30f3 1.0.1\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span id=\"L293D__nbsp\"><strong>L293D \u30e2\u30fc\u30bf\u30fc \u30c9\u30e9\u30a4\u30d0\u30fc \u30b7\u30fc\u30eb\u30c9\u304c\u5fc5\u8981\u306a\u306e\u306f\u306a\u305c\u3067\u3059\u304b?&nbsp;<\/strong><\/span><\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>\u3053\u3053\u3067\u306f\u3001L293D\u30e2\u30fc\u30bf\u30fc\u30c9\u30e9\u30a4\u30d0\u30b7\u30fc\u30eb\u30c9\u3092\u4f7f\u7528\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30ed\u30dc\u30c3\u30c8\u3067\u4f7f\u7528\u3055\u308c\u308bDC\u30e2\u30fc\u30bf\u30fc\u306f\u3001Arduino\u304c\u76f4\u63a5\u4f9b\u7d66\u3067\u304d\u308b\u3088\u308a\u3082\u9ad8\u3044\u96fb\u5727\u3068\u96fb\u6d41\u3092\u5fc5\u8981\u3068\u3059\u308b\u305f\u3081\u3067\u3059\u3002\u30e2\u30fc\u30bf\u30fc\u30c9\u30e9\u30a4\u30d0\u306f\u9ad8\u3044\u96fb\u529b\u8981\u4ef6\u3092\u5b89\u5168\u306b\u51e6\u7406\u3057\u3001Arduino\u3078\u306e\u640d\u50b7\u3092\u9632\u304e\u307e\u3059\u3002&nbsp;<\/p>\n\n\n\n<p>\u307e\u305f\u3001\u53cc\u65b9\u5411\u5236\u5fa1\u304c\u53ef\u80fd\u3067\u3001\u30e2\u30fc\u30bf\u30fc\u3092\u6b63\u9006\u4e21\u65b9\u5411\u306b\u56de\u8ee2\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/playwithcircuit.com\/wp-content\/uploads\/2024\/10\/L293D-Motor-Driver-Shield.webp\" alt=\"L293D \u30e2\u30fc\u30bf\u30fc\u30c9\u30e9\u30a4\u30d0\u30fc\u30b7\u30fc\u30eb\u30c9\" class=\"wp-image-9440\"\/><\/figure>\n<\/div>\n\n\n<p>L293d\u30e2\u30fc\u30bf\u30fc\u30c9\u30e9\u30a4\u30d0\u30fc\u30b7\u30fc\u30eb\u30c9\u3068\u3001\u30b7\u30fc\u30eb\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30e2\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u308bAdafruit\u30e9\u30a4\u30d6\u30e9\u30ea\u95a2\u6570\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\uff1a<strong><a href=\"https:\/\/playwithcircuit.com\/l293d-motor-driver-shield-arduino-tutorial\/\" target=\"_blank\" rel=\"noreferrer noopener\">L293D\u30e2\u30fc\u30bf\u30fc\u30c9\u30e9\u30a4\u30d0\u30fc\u30b7\u30fc\u30eb\u30c9\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb<\/a><\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span id=\"i-5\"><strong>\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306e\u56de\u8def\u56f3<\/strong><\/span><\/h2>\n\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/playwithcircuit.com\/wp-content\/uploads\/2024\/10\/Circuit-Diagram-of-Line-Following-Robot.webp\" alt=\"\u30e9\u30a4\u30f3\u8ffd\u5f93\u30ed\u30dc\u30c3\u30c8\u306e\u56de\u8def\u56f3\" class=\"wp-image-9441\"\/><\/figure>\n<\/div>\n\n\n<p>\u3053\u306e\u56de\u8def\u306f4\u3064\u306e\u90e8\u54c1\u3067\u69cb\u6210\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u8d64\u5916\u7dda\u30bb\u30f3\u30b5\u30fc2\u500b\u3001<strong>L293D<\/strong>\u30e2\u30fc\u30bf\u30fc\u30c9\u30e9\u30a4\u30d0\u30fc1\u500b\u300112V BO\u30e2\u30fc\u30bf\u30fc4\u500b\u3001\u305d\u3057\u3066Arduino\u30dc\u30fc\u30c91\u679a\u3067\u3059\u300212V\u96fb\u6e90\u306f\u3053\u3053\u306b\u306f\u793a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u304c\u3001Arduino\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002\u30b7\u30fc\u30eb\u30c9\u306fArduino\u30dc\u30fc\u30c9\u306e\u4e0a\u90e8\u306b\u914d\u7f6e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30bb\u30f3\u30b5\u30fc\u306e VCC \u30d4\u30f3\u3068\u30b0\u30e9\u30a6\u30f3\u30c9 \u30d4\u30f3\u306f\u3001Arduino \u306e VCC \u30d4\u30f3\u3068\u30b0\u30e9\u30a6\u30f3\u30c9 \u30d4\u30f3\u306b\u63a5\u7d9a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5de6\u5074\u306e IR \u30bb\u30f3\u30b5\u30fc\u307e\u305f\u306f\u30e9\u30a4\u30f3 \u30bb\u30f3\u30b5\u30fc\u306e\u30a2\u30ca\u30ed\u30b0\u51fa\u529b\u30d4\u30f3\u306f Arduino \u306e\u30a2\u30ca\u30ed\u30b0\u5165\u529b\u30d4\u30f3 A0 \u306b\u63a5\u7d9a\u3055\u308c\u3001\u53f3\u5074\u306e\u30e9\u30a4\u30f3 \u30bb\u30f3\u30b5\u30fc\u306e\u30a2\u30ca\u30ed\u30b0\u51fa\u529b\u30d4\u30f3\u306f Arduino \u306e\u30a2\u30ca\u30ed\u30b0\u5165\u529b\u30d4\u30f3 A1 \u306b\u63a5\u7d9a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5de6\u5074\u306e\u30e2\u30fc\u30bf\u30fc\u306f\u30e2\u30fc\u30bf\u30fc \u30c9\u30e9\u30a4\u30d0\u30fc \u30b7\u30fc\u30eb\u30c9\u306e\u30dd\u30fc\u30c8 M3 \u306b\u4e26\u5217\u306b\u63a5\u7d9a\u3055\u308c\u3001\u53f3\u5074\u306e\u30e2\u30fc\u30bf\u30fc\u306f\u30e2\u30fc\u30bf\u30fc \u30c9\u30e9\u30a4\u30d0\u30fc \u30b7\u30fc\u30eb\u30c9\u306e\u30dd\u30fc\u30c8 M4 \u306b\u4e26\u5217\u306b\u63a5\u7d9a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p><strong>\u2755\u6ce8\u8a18<\/strong><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u30e2\u30fc\u30bf\u30fc\u30c9\u30e9\u30a4\u30d0\u3068\u30e2\u30fc\u30bf\u30fc\u3092Arduino\u30dc\u30fc\u30c9\u306b\u63a5\u7d9a\u3057\u305f\u72b6\u614b\u3067\u30b3\u30fc\u30c9\u3092\u66f4\u65b0\u3059\u308b\u5834\u5408\u306f\u3001\u5b89\u5168\u4e0a\u306e\u6ce8\u610f\u4e8b\u9805\u3092\u5b88\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7528\u306eUSB\u30b1\u30fc\u30d6\u30eb\u3092\u63a5\u7d9a\u3059\u308b\u524d\u306b\u3001\u30e2\u30fc\u30bf\u30fc\u30c9\u30e9\u30a4\u30d0\u30b7\u30fc\u30eb\u30c9\u306e\u96fb\u6e90\u30b8\u30e3\u30f3\u30d1\u30fc\u3092\u5916\u3057\u3001Arduino\u304b\u3089\u5916\u90e812V\u96fb\u6e90\u3092\u53d6\u308a\u5916\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001USB\u30b1\u30fc\u30d6\u30eb\u3092\u53d6\u308a\u5916\u3057\u3001Arduino\u306b12V\u96fb\u6e90\u3092\u518d\u63a5\u7d9a\u3057\u3001\u30b7\u30fc\u30eb\u30c9\u306e\u96fb\u6e90\u30b8\u30e3\u30f3\u30d1\u30fc\u3092\u518d\u63a5\u7d9a\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u5b89\u5168\u6027\u304c\u78ba\u4fdd\u3055\u308c\u3001\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30d7\u30ed\u30bb\u30b9\u4e2d\u306e\u640d\u50b7\u3092\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span id=\"Arduino\"><strong>Arduino\u30d9\u30fc\u30b9\u306e\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306e\u7d44\u307f\u7acb\u3066<\/strong><\/span><\/h2>\n\n\n\n<p>\u3059\u3079\u3066\u306e\u63a5\u7d9a\u304c\u308f\u304b\u3063\u305f\u306e\u3067\u3001\u30ed\u30dc\u30c3\u30c8\u306e\u7d44\u307f\u7acb\u3066\u3092\u59cb\u3081\u307e\u3057\u3087\u3046\u3002\u30ed\u30dc\u30c3\u30c8\u306e\u7d44\u307f\u7acb\u3066\u624b\u9806\u306f\u3001\u52d5\u753b\u306e\u6700\u5f8c\u306b\u63b2\u8f09\u3057\u305f\u30d3\u30c7\u30aa\u3067\u6bb5\u968e\u7684\u306b\u8aac\u660e\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p><strong><em>\u30b9\u30c6\u30c3\u30d71<\/em><\/strong>&nbsp;\u30ed\u30dc\u30c3\u30c8\u3092\u7d44\u307f\u7acb\u3066\u308b\u306b\u306f\u3001\u307e\u305a\u30b7\u30e3\u30fc\u30b7\u304c\u5fc5\u8981\u3067\u3059\u3002\u3053\u3053\u3067\u306f\u65e2\u88fd\u306e\u30b7\u30e3\u30fc\u30b7\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u6b21\u306b\u3001&nbsp;4\u3064\u306e\u30e2\u30fc\u30bf\u30fc\u3059\u3079\u3066\u3092\u5c11\u306a\u304f\u3068\u308215cm\u306e\u30ef\u30a4\u30e4\u30fc\u3067\u306f\u3093\u3060\u4ed8\u3051\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/playwithcircuit.com\/wp-content\/uploads\/2024\/10\/Soldering-motors.webp\" alt=\"\u30e2\u30fc\u30bf\u30fc\u306e\u306f\u3093\u3060\u4ed8\u3051\" class=\"wp-image-9445\"\/><\/figure>\n<\/div>\n\n\n<p><strong><em>\u30b9\u30c6\u30c3\u30d72\uff1a<\/em><\/strong>\u30b7\u30e3\u30fc\u30b7\u306e\u4fdd\u8b77\u30ab\u30d0\u30fc\u3092\u5916\u3057\u30014\u3064\u306e\u30e2\u30fc\u30bf\u30fc\u3001\u30e9\u30a4\u30f3\u30bb\u30f3\u30b5\u30fc\u3001\u30db\u30a4\u30fc\u30eb\u3092\u3059\u3079\u3066\u30b7\u30e3\u30fc\u30b7\u306b\u53d6\u308a\u4ed8\u3051\u307e\u3059\u3002\u6b21\u306b\u3001\u5de6\u5074\u30e2\u30fc\u30bf\u30fc\uff08\u524d\u5f8c\uff09\u306e\u8d64\u3044\u914d\u7dda\u3068\u3001\u53f3\u5074\u30e2\u30fc\u30bf\u30fc\uff08\u524d\u5f8c\uff09\u306e\u9ed2\u3044\u914d\u7dda\u3092\u63a5\u7d9a\u3057\u307e\u3059\u3002\u53f3\u5074\u30e2\u30fc\u30bf\u30fc\u3082\u540c\u69d8\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>2\u3064\u306e\u30e9\u30a4\u30f3\u30bb\u30f3\u30b5\u30fc\u306e<strong>\u4e2d\u5fc3\u9593\u8ddd\u96e2\u306f<\/strong>11&nbsp;<strong>\uff5e11.5cm\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059<\/strong>\u3002\u3053\u306e\u8ddd\u96e2\u306f\u3001\u6b63\u78ba\u306a\u30e9\u30a4\u30f3\u691c\u51fa\u3068\u9ed2\u30c6\u30fc\u30d7\u306b\u6cbf\u3063\u305f\u30b9\u30e0\u30fc\u30ba\u306a\u30ca\u30d3\u30b2\u30fc\u30b7\u30e7\u30f3\u306b\u4e0d\u53ef\u6b20\u3067\u3059\u3002<strong><\/strong><\/p>\n\n\n\n<p><strong>\u30bb\u30f3\u30b5\u30fc\u306e LED&nbsp;<\/strong>(\u5730\u9762\u306b\u6700\u3082\u8fd1\u3044\u30bb\u30f3\u30b5\u30fc\u90e8\u5206) \u3068<strong>\u5e73\u3089\u306a\u9762\u306e\u9593\u306e<\/strong>\u8ddd\u96e2\u306f\u3001\u6b63\u78ba\u306b<strong>2 cm<\/strong>\u306b\u7dad\u6301\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002&nbsp;<strong><\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/playwithcircuit.com\/wp-content\/uploads\/2024\/10\/Attaching-sensors-motors-and-wheels.webp\" alt=\"\u30e2\u30fc\u30bf\u30fc\u3001\u30bb\u30f3\u30b5\u30fc\u3001\u30db\u30a4\u30fc\u30eb\u3092\u30b7\u30e3\u30fc\u30b7\u306b\u53d6\u308a\u4ed8\u3051\u308b\" class=\"wp-image-9447\"\/><\/figure>\n<\/div>\n\n\n<p><strong><em>\u30b9\u30c6\u30c3\u30d73<\/em><\/strong>&nbsp;\u6b21\u306b\u3001\u30e2\u30fc\u30bf\u30fc\u30c9\u30e9\u30a4\u30d0\u30fc\u30b7\u30fc\u30eb\u30c9\u3092Arduino Uno\u30dc\u30fc\u30c9\u306b\u53d6\u308a\u4ed8\u3051\u3001\u4e21\u9762\u30c6\u30fc\u30d7\u307e\u305f\u306f\u53d6\u308a\u4ed8\u3051\u30cd\u30b8\u3092\u4f7f\u3063\u3066\u30b7\u30e3\u30fc\u30b7\u306b\u53d6\u308a\u4ed8\u3051\u307e\u3059\u3002\u3057\u3063\u304b\u308a\u3068\u56fa\u5b9a\u3057\u3001\u4ed6\u306e\u90e8\u54c1\u306b\u7c21\u5358\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u524d\u9762\u306b\u914d\u7f6e\u3057\u3066\u304f\u3060\u3055\u3044\u3002&nbsp;<\/p>\n\n\n\n<p>\u6b21\u306b\u3001\u56de\u8def\u56f3\u306b\u5f93\u3063\u3066\u3001\u30e9\u30a4\u30f3\u30bb\u30f3\u30b5\u30fc\u3068\u30e2\u30fc\u30bf\u30fc\u3092\u30b7\u30fc\u30eb\u30c9\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002\u5de6\u5074\u306e\u30e2\u30fc\u30bf\u30fc\u306f\u30e2\u30fc\u30bf\u30fc\u30c9\u30e9\u30a4\u30d0\u30fc\u30b7\u30fc\u30eb\u30c9\u306e\u30dd\u30fc\u30c8M3\u306b\u63a5\u7d9a\u3057\u3001\u53f3\u5074\u306e\u30e2\u30fc\u30bf\u30fc\u306f\u30b7\u30fc\u30eb\u30c9\u306e\u30dd\u30fc\u30c8M4\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/playwithcircuit.com\/wp-content\/uploads\/2024\/10\/Attaching-arduino-and-motor-driver.webp\" alt=\"Arduino\u3068\u30e2\u30fc\u30bf\u30fc\u30c9\u30e9\u30a4\u30d0\u30fc\u3092\u30b7\u30e3\u30fc\u30b7\u306b\u63a5\u7d9a\u3059\u308b\" class=\"wp-image-9448\"\/><\/figure>\n<\/div>\n\n\n<p><strong><em>\u30b9\u30c6\u30c3\u30d74<\/em><\/strong>&nbsp;\u6b21\u306b\u3001Arduino UNO\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u3057\u307e\u3059\u3002\u30e2\u30fc\u30bf\u30fc\u30c9\u30e9\u30a4\u30d0\u30fc\u30b7\u30fc\u30eb\u30c9\u306ePWR\u30b8\u30e3\u30f3\u30d1\u30fc\u304c\u63a5\u7d9a\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/playwithcircuit.com\/wp-content\/uploads\/2024\/10\/Programming-the-Arduino-UNO.webp\" alt=\"Arduino UNO\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\" class=\"wp-image-9451\"\/><\/figure>\n<\/div>\n\n\n<p><strong><em>\u30b9\u30c6\u30c3\u30d75\uff1a<\/em><\/strong>&nbsp;\u30ed\u30dc\u30c3\u30c8\u306e\u80cc\u9762\u306b\u30d0\u30c3\u30c6\u30ea\u30fc\u30d1\u30c3\u30af\u3092\u53d6\u308a\u4ed8\u3051\u3001\u7d50\u675f\u30d0\u30f3\u30c9\u307e\u305f\u306f\u4e21\u9762\u30c6\u30fc\u30d7\u3067\u7de0\u3081\u4ed8\u3051\u307e\u3059\u3002\u6b21\u306b\u3001PWR\u30b8\u30e3\u30f3\u30d1\u30fc\u3092\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/playwithcircuit.com\/wp-content\/uploads\/2024\/10\/Attaching-the-battery-pack.webp\" alt=\"\u30d0\u30c3\u30c6\u30ea\u30fc\u30d1\u30c3\u30af\u306e\u53d6\u308a\u4ed8\u3051\" class=\"wp-image-9452\"\/><\/figure>\n<\/div>\n\n\n<p>\u30ed\u30dc\u30c3\u30c8\u306e\u6e96\u5099\u304c\u3067\u304d\u307e\u3057\u305f\u300250mm\u5e45\u306e\u9ed2\u3044\u30c6\u30fc\u30d7\u3092\u4f7f\u3063\u3066\u7d4c\u8def\u3092\u4f5c\u308a\u307e\u3057\u3087\u3046\u3002<strong>\u9ed2\u3044\u30c6\u30fc\u30d7\u306e\u5e45\u306f<\/strong><strong>4.8\uff5e5cm<\/strong>\u3067\u3059\u3002\u30c6\u30fc\u30d7\u306f<strong>\u5149\u6ca2\u306e\u3042\u308b\u3082\u306e\u306f\u4f7f\u7528\u3057\u306a\u3044<\/strong>\u3067\u304f\u3060\u3055\u3044\u3002\u5149\u6ca2\u306e\u3042\u308b\u8868\u9762\u306f\u30bb\u30f3\u30b5\u30fc\u306e\u5149\u3092\u53cd\u5c04\u3057\u3001\u6b63\u78ba\u306a\u691c\u51fa\u3092\u59a8\u3052\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<strong><\/strong><strong><\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span id=\"Arduino-2\"><strong>Arduino \u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u30b3\u30fc\u30c9<\/strong><\/span><\/h2>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u30b9\u30b1\u30c3\u30c1\u306f\u3001Arduino\u3068Adafruit Motor Shield\u3092\u4f7f\u3063\u3066\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u3092\u5236\u5fa1\u3059\u308b\u3088\u3046\u306b\u8a2d\u8a08\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30b3\u30fc\u30c9\u3092Arduino\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/* Library used: Adafruit Motor Shield library V1 version: 1.0.1For this code to run as expected: 1.The centre to centre distance between the Line sensors should be 11 to 11.5 cm2. The width of black tape should be 4.8 to 5 cm3. The distance of the sensor LED from the flat ground surface should be 2 cm.*\/#include &lt;AFMotor.h>\/\/ MACROS for Debug print, while calibrating set its value to 1 else keep it 0#define DEBUG_PRINT 0\/\/ MACROS for Analog Input#define LEFT_IR A0#define RIGHT_IR A1\/\/ MACROS to control the Robot#define DETECT_LIMIT 300#define FORWARD_SPEED 60#define TURN_SHARP_SPEED 150#define TURN_SLIGHT_SPEED 120#define DELAY_AFTER_TURN 140#define BEFORE_TURN_DELAY 10\/\/ BO Motor control related data here\/\/ Here motors are running using M3 and M4 of the shield and Left Motor is connected to M3 and Right Motor is connected to M4 using IC2 of the shieldAF_DCMotor motorL(3);  \/\/ Uses PWM0B pin of Arduino Pin 5 for EnableAF_DCMotor motorR(4);  \/\/ Uses PWM0A pin of Arduino Pin 6 for Enable\/\/ variables to store the analog valuesint left_value;int right_value;\/\/ Set the last direction to Stopchar lastDirection = 'S';  void setup() {#if DEBUG_PRINT    Serial.begin(9600);#endif    \/\/ Set the current speed of Left Motor to 0  motorL.setSpeed(0);  \/\/ turn on motor  motorL.run(RELEASE);  \/\/ Set the current speed of Right Motor to 0  motorR.setSpeed(0);  \/\/ turn off motor  motorR.run(RELEASE);  \/\/ To provide starting push to Robot these values are set  motorR.run(FORWARD);  motorL.run(FORWARD);  motorL.setSpeed(255);  motorR.setSpeed(255);  delay(40);  \/\/ delay of 40 ms}void loop() {  left_value = analogRead(LEFT_IR);  right_value = analogRead(RIGHT_IR);#if DEBUG_PRINT  \/\/ This is for debugging. To check the analog inputs the DETECT_LIMIT MACRO value 300 is set by analysing the debug prints  Serial.print(left_value);  Serial.print(\",\");  Serial.print(right_value);  Serial.print(\",\");  Serial.print(lastDirection);  Serial.write(10);#endif  \/\/ Right Sensor detects black line and left does not detect  if (right_value >= DETECT_LIMIT &amp;&amp; !(left_value >= DETECT_LIMIT)) {    turnRight();  }  \/\/ Left Sensor detects black line and right does not detect  else if ((left_value >= DETECT_LIMIT) &amp;&amp; !(right_value >= DETECT_LIMIT)) {    turnLeft();  }  \/\/ both sensors doesn't detect black line  else if (!(left_value >= DETECT_LIMIT) &amp;&amp; !(right_value >= DETECT_LIMIT)) {    moveForward();  }  \/\/ both sensors detect black line  else if ((left_value >= DETECT_LIMIT) &amp;&amp; (right_value >= DETECT_LIMIT)) {    stop();  }}void moveForward() {  if (lastDirection != 'F') {    \/\/ To provide starting push to Robot when last direction was not forward    motorR.run(FORWARD);    motorL.run(FORWARD);    motorL.setSpeed(255);    motorR.setSpeed(255);    lastDirection = 'F';    delay(20);  } else {    \/\/ If the last direction was forward    motorR.run(FORWARD);    motorL.run(FORWARD);    motorL.setSpeed(FORWARD_SPEED);    motorR.setSpeed(FORWARD_SPEED);  }}void stop() {  if (lastDirection != 'S') {    \/\/ When stop is detected move further one time to check if its actual stop or not, needed when the robot turns    motorR.run(FORWARD);    motorL.run(FORWARD);    motorL.setSpeed(255);    motorR.setSpeed(255);    lastDirection = 'S';    delay(40);  } else {    \/\/ When stop is detected next time then stop the Robot    motorL.setSpeed(0);    motorR.setSpeed(0);    motorL.run(RELEASE);    motorR.run(RELEASE);    lastDirection = 'S';  }}void turnRight(void) {  \/\/ If first time Right Turn is taken  if (lastDirection != 'R') {    lastDirection = 'R';    \/\/ Stop the motor for some time    motorL.setSpeed(0);    motorR.setSpeed(0);    delay(BEFORE_TURN_DELAY);    \/\/ take Slight Right turn    motorL.run(FORWARD);    motorR.run(BACKWARD);    motorL.setSpeed(TURN_SLIGHT_SPEED);    motorR.setSpeed(TURN_SLIGHT_SPEED);  } else {    \/\/ take sharp Right turn    motorL.run(FORWARD);    motorR.run(BACKWARD);    motorL.setSpeed(TURN_SHARP_SPEED);    motorR.setSpeed(TURN_SHARP_SPEED);  }  delay(DELAY_AFTER_TURN);}void turnLeft() {  \/\/ If first time Left Turn is taken  if (lastDirection != 'L') {    lastDirection = 'L';    \/\/ Stop the motor for some time    motorL.setSpeed(0);    motorR.setSpeed(0);    delay(BEFORE_TURN_DELAY);    \/\/ take slight Left turn    motorR.run(FORWARD);    motorL.run(BACKWARD);    motorL.setSpeed(TURN_SLIGHT_SPEED);    motorR.setSpeed(TURN_SLIGHT_SPEED);  } else {    \/\/ take sharp Left turn    motorR.run(FORWARD);    motorL.run(BACKWARD);    motorL.setSpeed(TURN_SHARP_SPEED);    motorR.setSpeed(TURN_SHARP_SPEED);  }  delay(DELAY_AFTER_TURN);}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"i-6\"><strong>\u30b3\u30fc\u30c9\u306e\u8aac\u660e<\/strong><\/span><\/h3>\n\n\n\n<p>\u307e\u305a\u3001&nbsp;\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001Adafruit Motor Shield\u3092\u4ecb\u3057\u3066\u30e2\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<code>AFMotor.h<\/code><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">#include &lt;AFMotor.h><\/pre>\n\n\n\n<p>\u6b21\u306b\u3001\u30a2\u30ca\u30ed\u30b0\u5165\u529b\u3068\u30ed\u30dc\u30c3\u30c8\u5236\u5fa1\u7528\u306e\u30de\u30af\u30ed\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>DEBUG_PRINT<\/code>\u521d\u671f\u5024\u306f0\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30ad\u30e3\u30ea\u30d6\u30ec\u30fc\u30b7\u30e7\u30f3\u4e2d\u306b1\u306b\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<\/li>\n\n\n\n<li><code>LEFT_IR<\/code>\u00a0\u5de6\u53f3\u306e\u30e9\u30a4\u30f3\u30bb\u30f3\u30b5\u30fc\u304c\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u30a2\u30ca\u30ed\u30b0\u30d4\u30f3\uff08A0 \u3068 A1\uff09\u3092\u53c2\u7167\u3057\u307e\u3059\u3002<code>RIGHT_IR<\/code><\/li>\n\n\n\n<li><code>DETECT_LIMIT<\/code>\u30bb\u30f3\u30b5\u30fc\u304c\u9ed2\u7dda\u3092\u691c\u77e5\u3059\u308b\u95be\u5024\u3067\u3059\u3002\u30bb\u30f3\u30b5\u30fc\u306e\u8aad\u307f\u53d6\u308a\u5024\u304c300\u4ee5\u4e0a\u306e\u5834\u5408\u3001\u9ed2\u7dda\u304c\u691c\u77e5\u3055\u308c\u305f\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li><code>FORWARD_SPEED<\/code>\u3001\u3001 \u306f\u00a0\u305d\u308c\u305e\u308c\u524d\u9032\u3001\u6025\u65cb\u56de\u3001\u5c0f\u65cb\u56de\u306e\u901f\u5ea6\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<code>TURN_SHARP_SPEED<\/code><code>TURN_SLIGHT_SPEED<\/code><\/li>\n\n\n\n<li><code>DELAY_AFTER_TURN<\/code>\u30ed\u30dc\u30c3\u30c8\u306e\u65cb\u56de\u524d\u5f8c\u306e\u30e2\u30fc\u30bf\u30fc\u52d5\u4f5c\u306e\u9045\u5ef6\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<code>BEFORE_TURN_DELAY<\/code><\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ MACROS to for Debug print, while calibrating set its value to 1 else let it remain 0#define DEBUG_PRINT 0\/\/ MACROS for Analog Input#define LEFT_IR A0#define RIGHT_IR A1\/\/ MACROS to control the Robot#define DETECT_LIMIT 300#define FORWARD_SPEED 60#define TURN_SHARP_SPEED 150#define TURN_SLIGHT_SPEED 120#define DELAY_AFTER_TURN 140#define BEFORE_TURN_DELAY 10<\/pre>\n\n\n\n<p>\u6b21\u306b\u3001\u30e2\u30fc\u30bf\u30fc\u3092\u521d\u671f\u5316\u3057\u307e\u3059\u3002\u5de6\u5074\u306e\u30e2\u30fc\u30bf\u30fc\u306f\u51fa\u529bM3\u306b\u3001\u53f3\u5074\u306e\u30e2\u30fc\u30bf\u30fc\u306f\u51fa\u529bM4\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002&nbsp;<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ BO Motor control related data here\/\/ Here motors are running using M3 and M4 of the shield and Left Motor is connected to M3 and Right Motor is connected to M4 using IC2 of the shieldAF_DCMotor motorL(3);  \/\/ Uses PWM0B pin of Arduino Pin 5 for EnableAF_DCMotor motorR(4);  \/\/ Uses PWM0A pin of Arduino Pin 6 for Enable<\/pre>\n\n\n\n<p>\u3053\u3053\u3067\u3044\u304f\u3064\u304b\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>left_value<\/code>\u5de6\u53f3\u306e\u30e9\u30a4\u30f3 \u30bb\u30f3\u30b5\u30fc\u304b\u3089\u306e\u30bb\u30f3\u30b5\u30fc\u8aad\u307f\u53d6\u308a\u5024\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<code>right_value<\/code><\/li>\n\n\n\n<li><code>lastDirection<\/code>\u30ed\u30dc\u30c3\u30c8\u306e\u6700\u5f8c\u306e\u52d5\u304d\u3092\u8a18\u9332\u3057\u307e\u3059\u3002\u521d\u671f\u5024\u306f\u300cS\u300d\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001\u30ed\u30dc\u30c3\u30c8\u304c\u505c\u6b62\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/ variables to store the Analog Valuesint left_value;int right_value;\/\/ Set the Last Direction to Stopchar lastDirection = 'S';  <\/pre>\n\n\n\n<p>\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u95a2\u6570\u3067\u306f\u3001\u30c7\u30d0\u30c3\u30b0\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u5834\u5408\uff08&nbsp;DEBUG_PRINT \u304c1 \u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\uff09\u3001\u30b7\u30ea\u30a2\u30eb\u901a\u4fe1\u3092\u521d\u671f\u5316\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u306b\u3001\u4e21\u65b9\u306e\u30e2\u30fc\u30bf\u30fc\u306e\u901f\u5ea6\u3092 0 \u306b\u8a2d\u5b9a\u3057\u3001RELEASE\u3092\u4f7f\u7528\u3057\u3066\u30e2\u30fc\u30bf\u30fc\u3092\u505c\u6b62\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30e2\u30fc\u30bf\u30fc\u3078\u306e\u96fb\u6e90\u304c\u5207\u65ad\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u5f8c\u3001\u30e2\u30fc\u30bf\u30fc\u3092\u524d\u9032\u65b9\u5411\u306b\u6700\u5927\u901f\u5ea6\uff08255\uff09\u306b\u8a2d\u5b9a\u3057\u3001\u6700\u521d\u306e\u300c\u30d7\u30c3\u30b7\u30e5\u300d\u3092\u884c\u3044\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30ed\u30dc\u30c3\u30c8\u306f\u30b9\u30bf\u30fc\u30c8\u76f4\u5f8c\u304b\u3089\u52d5\u304d\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">void setup() {#if DEBUG_PRINT    Serial.begin(9600);#endif    \/\/ Set the current speed of left Motor to 0  motorL.setSpeed(0);  \/\/ turn on motor  motorL.run(RELEASE);  \/\/ Set the current speed of Right Motor to 0  motorR.setSpeed(0);  \/\/ turn off motor  motorR.run(RELEASE);  \/\/ To provide starting push to Robot these values are set  motorR.run(FORWARD);  motorL.run(FORWARD);  motorL.setSpeed(255);  motorR.setSpeed(255);  delay(40);  \/\/ delay of 40 ms}<\/pre>\n\n\n\n<p>\u30eb\u30fc\u30d7\u95a2\u6570\u3067\u306f\u3001&nbsp;analogRead\u3092\u4f7f\u7528\u3057\u3066\u5de6\u53f3\u306e Line \u30bb\u30f3\u30b5\u30fc\u304b\u3089\u5024\u3092\u7d99\u7d9a\u7684\u306b\u8aad\u307f\u53d6\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30c7\u30d0\u30c3\u30b0\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u3053\u308c\u3089\u306e\u5024\u3092\u5206\u6790\u306e\u305f\u3081\u306b\u30b7\u30ea\u30a2\u30eb \u30e2\u30cb\u30bf\u30fc\u306b\u51fa\u529b\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u6b21\u306b\u3001\u30bb\u30f3\u30b5\u30fc\u306e\u5024\u3092\u78ba\u8a8d\u3057\u3001\u3069\u306e\u30bb\u30f3\u30b5\u30fc\u304c\u9ed2\u3044\u7dda\u3092\u691c\u51fa\u3057\u305f\u304b\u306b\u57fa\u3065\u3044\u3066\u30ed\u30dc\u30c3\u30c8\u306e\u52d5\u304d\u3092\u6c7a\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u53f3\u306e\u30bb\u30f3\u30b5\u30fc\u304c\u9ed2\u3044\u7dda\u3092\u691c\u51fa\u3057\u305f\u304c\u3001\u5de6\u306e\u30bb\u30f3\u30b5\u30fc\u304c\u691c\u51fa\u3057\u306a\u304b\u3063\u305f\u5834\u5408\u3001\u30ed\u30dc\u30c3\u30c8\u306f\u53f3\u306b\u66f2\u304c\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u5de6\u306e\u30bb\u30f3\u30b5\u30fc\u304c\u9ed2\u7dda\u3092\u691c\u77e5\u3057\u3001\u53f3\u306e\u30bb\u30f3\u30b5\u30fc\u304c\u691c\u77e5\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u5de6\u306b\u66f2\u304c\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u3069\u3061\u3089\u306e\u30bb\u30f3\u30b5\u30fc\u3082\u30e9\u30a4\u30f3\u3092\u691c\u51fa\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u30ed\u30dc\u30c3\u30c8\u306f\u524d\u9032\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u4e21\u65b9\u306e\u30bb\u30f3\u30b5\u30fc\u304c\u9ed2\u3044\u7dda\u3092\u691c\u51fa\u3059\u308b\u3068\u3001\u30ed\u30dc\u30c3\u30c8\u306f\u505c\u6b62\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">void loop() {  left_value = analogRead(LEFT_IR);  right_value = analogRead(RIGHT_IR);#if DEBUG_PRINT  \/\/ This is for debugging. To check the analog inputs the DETECT_LIMIT MACRO value 300 is set by analysing the debug prints  Serial.print(left_value);  Serial.print(\",\");  Serial.print(right_value);  Serial.print(\",\");  Serial.print(lastDirection);  Serial.write(10);#endif  \/\/ Right Sensor detects black line and left does not detect  if (right_value >= DETECT_LIMIT &amp;&amp; !(left_value >= DETECT_LIMIT)) {    turnRight();  }  \/\/ Left Sensor detects black line and right does not detect  else if ((left_value >= DETECT_LIMIT) &amp;&amp; !(right_value >= DETECT_LIMIT)) {    turnLeft();  }  \/\/ both sensors doesn't detect black line  else if (!(left_value >= DETECT_LIMIT) &amp;&amp; !(right_value >= DETECT_LIMIT)) {    moveForward();  }  \/\/ both sensors detect black line  else if ((left_value >= DETECT_LIMIT) &amp;&amp; (right_value >= DETECT_LIMIT)) {    stop();  }}<\/pre>\n\n\n\n<p><strong>\u524d\u9032<\/strong><\/p>\n\n\n\n<p>\u6700\u5f8c\u306e\u79fb\u52d5\u304c\u524d\u9032\u3067\u306a\u304b\u3063\u305f\u5834\u5408\u3001\u30ed\u30dc\u30c3\u30c8\u306f\u524d\u9032\u3092\u958b\u59cb\u3059\u308b\u305f\u3081\u306b\u4e00\u6642\u7684\u306b\u5168\u901f\u529b\u3067\u8d70\u884c\u3057\u307e\u3059\u3002\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u306f\u3001\u5b9a\u7fa9\u3055\u308c\u305f\u901f\u5ea6\u3067\u8d70\u884c\u3057\u307e\u3059\u3002<code>FORWARD_SPEED<\/code><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">void moveForward() {  if (lastDirection != 'F') {    \/\/ To provide starting push to Robot when last direction was not forward    motorR.run(FORWARD);    motorL.run(FORWARD);    motorL.setSpeed(255);    motorR.setSpeed(255);    lastDirection = 'F';    delay(20);  } else {    \/\/ If the last direction was forward    motorR.run(FORWARD);    motorL.run(FORWARD);    motorL.setSpeed(FORWARD_SPEED);    motorR.setSpeed(FORWARD_SPEED);  }}<\/pre>\n\n\n\n<p><strong>\u505c\u6b62<\/strong><\/p>\n\n\n\n<p>\u4e21\u65b9\u306e\u30bb\u30f3\u30b5\u30fc\u304c\u9ed2\u7dda\u3092\u691c\u51fa\u3059\u308b\u3068\u3001\u30ed\u30dc\u30c3\u30c8\u306f\u505c\u6b62\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u5c11\u3057\u524d\u9032\u3057\u307e\u3059\u3002\u518d\u3073\u505c\u6b62\u6761\u4ef6\u3092\u691c\u51fa\u3059\u308b\u3068\u3001\u30ed\u30dc\u30c3\u30c8\u306f\u5b8c\u5168\u306b\u505c\u6b62\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">void stop() {  if (lastDirection != 'S') {    \/\/ When stop is detected move further one time to check if its actual stop or not, needed when the robot turns    motorR.run(FORWARD);    motorL.run(FORWARD);    motorL.setSpeed(255);    motorR.setSpeed(255);    lastDirection = 'S';    delay(40);  } else {    \/\/ When stop is detected next time then stop the Robot    motorL.setSpeed(0);    motorR.setSpeed(0);    motorL.run(RELEASE);    motorR.run(RELEASE);    lastDirection = 'S';  }}<\/pre>\n\n\n\n<p><strong>\u53f3\u6298<\/strong><\/p>\n\n\n\n<p>\u30ed\u30dc\u30c3\u30c8\u304c\u521d\u3081\u3066\u53f3\u306b\u66f2\u304c\u308b\u5834\u5408\u3001\u5c11\u3057\u306e\u9593\u505c\u6b62\u3057\u3001\u308f\u305a\u304b\u306b\u65cb\u56de\u3057\u305f\u5f8c\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3055\u3089\u306b\u6025\u306a\u65cb\u56de\u3092\u7d9a\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">void turnRight(void) {  \/\/ If First time Right Turn is Taken  if (lastDirection != 'R') {    lastDirection = 'R';    \/\/ Stop the motor for some time    motorL.setSpeed(0);    motorR.setSpeed(0);    delay(BEFORE_TURN_DELAY);    \/\/ take Slight Right turn    motorL.run(FORWARD);    motorR.run(BACKWARD);    motorL.setSpeed(TURN_SLIGHT_SPEED);    motorR.setSpeed(TURN_SLIGHT_SPEED);  } else {    \/\/ take sharp Right turn    motorL.run(FORWARD);    motorR.run(BACKWARD);    motorL.setSpeed(TURN_SHARP_SPEED);    motorR.setSpeed(TURN_SHARP_SPEED);  }  delay(DELAY_AFTER_TURN);}<\/pre>\n\n\n\n<p><strong>\u5de6\u6298<\/strong><\/p>\n\n\n\n<p>\u3053\u306e\u95a2\u6570\u306f\u30ed\u30dc\u30c3\u30c8\u306e\u5de6\u65cb\u56de\u3092\u5236\u5fa1\u3057\u307e\u3059\u3002\u5909\u6570 \u3092\u6bd4\u8f03\u3059\u308b\u3053\u3068\u3067\u3001\u30ed\u30dc\u30c3\u30c8\u304c\u521d\u3081\u3066\u5de6\u65cb\u56de\u3059\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<code>turnLeft()<\/code><code>lastDirection<\/code><\/p>\n\n\n\n<p>\u6700\u521d\u306e\u5de6\u6298\u306e\u5834\u5408\u3001\u30ed\u30dc\u30c3\u30c8\u306f\u4e21\u65b9\u306e\u30e2\u30fc\u30bf\u30fc\u3092\u77ed\u6642\u9593\u505c\u6b62\u3057\u3001\u53f3\u306e\u30e2\u30fc\u30bf\u30fc\u3092\u524d\u65b9\u306b\u3001\u5de6\u306e\u30e2\u30fc\u30bf\u30fc\u3092\u4f4e\u901f\u3067\u5f8c\u65b9\u306b\u52d5\u304b\u3057\u3066\u308f\u305a\u304b\u306b\u5de6\u306b\u66f2\u304c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30ed\u30dc\u30c3\u30c8\u304c\u65e2\u306b\u5de6\u6298\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u505c\u6b62\u3092\u30b9\u30ad\u30c3\u30d7\u3057\u3001\u30e2\u30fc\u30bf\u30fc\u3092\u9ad8\u901f\u3067\u56de\u8ee2\u3055\u305b\u3066\u6025\u6fc0\u306b\u5de6\u6298\u3057\u307e\u3059\u3002\u6700\u5f8c\u306b\u3001\u6b21\u306e\u79fb\u52d5\u524d\u306b\u65cb\u56de\u3092\u5b8c\u4e86\u3059\u308b\u305f\u3081\u306e\u9045\u5ef6\uff08 \uff09\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002<code>DELAY_AFTER_TURN<\/code><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">void turnLeft() {  \/\/ If First time Left Turn is Taken  if (lastDirection != 'L') {    lastDirection = 'L';    \/\/ Stop the motor for some time    motorL.setSpeed(0);    motorR.setSpeed(0);    delay(BEFORE_TURN_DELAY);    \/\/ take slight Left turn    motorR.run(FORWARD);    motorL.run(BACKWARD);    motorL.setSpeed(TURN_SLIGHT_SPEED);    motorR.setSpeed(TURN_SLIGHT_SPEED);  } else {    \/\/ take sharp Left turn    motorR.run(FORWARD);    motorL.run(BACKWARD);    motorL.setSpeed(TURN_SHARP_SPEED);    motorR.setSpeed(TURN_SHARP_SPEED);  }  delay(DELAY_AFTER_TURN);}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span id=\"i-7\"><strong>\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u3092\u30ad\u30e3\u30ea\u30d6\u30ec\u30fc\u30b7\u30e7\u30f3\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u3067\u3059\u304b?<\/strong><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30b3\u30fc\u30c9\u3067 MACRO \u3092 1 \u306b\u8a2d\u5b9a\u3057\u3001\u30b3\u30fc\u30c9\u3092 Arduino \u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002PWR \u30d4\u30f3 \u30b8\u30e3\u30f3\u30d1\u30fc\u304c\u5207\u65ad\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30b1\u30fc\u30d6\u30eb\u304c Arduino \u306b\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u9593\u306b\u3001\u30ed\u30dc\u30c3\u30c8\u3092\u9ed2\u3044\u7dda\u306e\u4e0a\u306b\u7f6e\u304d\u3001\u9ed2\u3044\u7dda\u304c\u30bb\u30f3\u30b5\u30fc\u306e\u9593\u306b\u6b63\u78ba\u306b\u4f4d\u7f6e\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u3001\u30b7\u30ea\u30a2\u30eb\u30e2\u30cb\u30bf\u30fc\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u51fa\u529b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u6700\u521d\u306e\u5024\u306f\u5de6\u5074\u306e\u30bb\u30f3\u30b5\u30fc\u306e\u30a2\u30ca\u30ed\u30b0\u51fa\u529b\u3067\u3042\u308a\u3001\u30ab\u30f3\u30de\u306e\u5f8c\u306e\u5024\u306f\u53f3\u5074\u306e\u30bb\u30f3\u30b5\u30fc\u306e\u30a2\u30ca\u30ed\u30b0\u51fa\u529b\u3067\u3059\u3002<\/li>\n\n\n\n<li>\u6b21\u306b\u3001\u5de6\u306e\u30bb\u30f3\u30b5\u30fc\u3092\u9ed2\u3044\u7dda\u306e\u4e0a\u306b\u7f6e\u304f\u3068\u3001\u6700\u521d\u306e\u5024\u304c\u5897\u52a0\u3059\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u540c\u69d8\u306b\u3001\u53f3\u306e\u30bb\u30f3\u30b5\u30fc\u3092\u9ed2\u3044\u7dda\u306e\u4e0a\u306b\u7f6e\u304f\u3068\u30012 \u756a\u76ee\u306e\u5024\u304c\u5897\u52a0\u3059\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30bb\u30f3\u30b5\u30fc\u304c\u9ed2\u7dda\u3092\u5c11\u3057\u8d85\u3048\u305f\u6642\u306b\u5f97\u3089\u308c\u308b\u6700\u5c0f\u5024\u306f\u3001\u30b3\u30fc\u30c9\u5185\u306eMACRO\u00a0DETECT_LIMIT\u306e\u5024\u3067\u3059\u3002\u3053\u306e\u5024\u306f\u5de6\u53f3\u306e\u30bb\u30f3\u30b5\u30fc\u3067\u540c\u3058\u3067\u3059\u3002\u30ed\u30dc\u30c3\u30c8\u306e\u30b3\u30fc\u30c9\u3067\u3053\u306e\u5024\u3092\u66f4\u65b0\u3057\u3001Arduino\u306b\u30b3\u30fc\u30c9\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n\n\n\n<li>Arduino\u304b\u3089\u30b1\u30fc\u30d6\u30eb\u3092\u5916\u3057\u307e\u3059\u3002Arduino\u306b12V\u96fb\u6e90\u3092\u63a5\u7d9a\u3057\u3001PWR\u30b8\u30e3\u30f3\u30d1\u30fc\u3092\u914d\u7f6e\u3057\u3066\u3001\u81ea\u5f8b\u578b\u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><span id=\"i-8\"><strong>\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0<\/strong><\/span><\/h3>\n\n\n\n<p><strong>\u554f\u984c 1: \u30ed\u30dc\u30c3\u30c8\u304c\u30b3\u30fc\u30b9\u304b\u3089\u5916\u308c\u305f\u308a\u3001\u4e00\u8cab\u3057\u3066\u30e9\u30a4\u30f3\u3092\u305f\u3069\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u304b\u3063\u305f\u308a\u3057\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<p>\u89e3\u6c7a\u7b56\uff1a\u30bb\u30f3\u30b5\u30fc\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u4f4d\u7f6e\u5408\u308f\u305b\u3092\u78ba\u8a8d\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u4f4d\u7f6e\u3092\u8abf\u6574\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001\u30e2\u30fc\u30bf\u30fc\u304c\u6b63\u3057\u304f\u6a5f\u80fd\u3057\u3066\u3044\u308b\u3053\u3068\u3001\u304a\u3088\u3073\u30db\u30a4\u30fc\u30eb\u304c\u30b7\u30e3\u30fc\u30b7\u306b\u6b63\u3057\u304f\u53d6\u308a\u4ed8\u3051\u3089\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p><strong>\u554f\u984c 2: \u30bb\u30f3\u30b5\u30fc\u306e\u8aad\u307f\u53d6\u308a\u5024\u304c\u4e0d\u5b89\u5b9a\u307e\u305f\u306f\u4fe1\u983c\u3067\u304d\u306a\u3044\u3002<\/strong><\/p>\n\n\n\n<p>\u89e3\u6c7a\u7b56\uff1a\u30bb\u30f3\u30b5\u30fc\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u30ed\u30dc\u30c3\u30c8\u304c\u52d5\u4f5c\u3059\u308b\u8868\u9762\u3092\u6e05\u6383\u3057\u3001\u30bb\u30f3\u30b5\u30fc\u306e\u8aad\u307f\u53d6\u308a\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u53ef\u80fd\u6027\u306e\u3042\u308b\u6c5a\u308c\u3084\u30b4\u30df\u3092\u53d6\u308a\u9664\u304d\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u914d\u7dda\u306e\u63a5\u7d9a\u90e8\u306b\u7de9\u307f\u3084\u640d\u50b7\u304c\u306a\u3044\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p><strong>\u554f\u984c 3: \u30e2\u30fc\u30bf\u30fc\u304c Arduino \u30b3\u30de\u30f3\u30c9\u306b\u5fdc\u7b54\u3057\u307e\u305b\u3093\u3002<\/strong><\/p>\n\n\n\n<p>\u89e3\u6c7a\u7b56\uff1aArduino\u3001\u30e2\u30fc\u30bf\u30fc\u30c9\u30e9\u30a4\u30d0\u30e2\u30b8\u30e5\u30fc\u30eb\u3001\u305d\u3057\u3066\u30e2\u30fc\u30bf\u30fc\u9593\u306e\u914d\u7dda\u63a5\u7d9a\u3092\u518d\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30e2\u30fc\u30bf\u30fc\u30c9\u30e9\u30a4\u30d0\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u96fb\u6e90\u304c\u4f9b\u7d66\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3001\u305d\u3057\u3066Arduino\u304c\u30e2\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3059\u308b\u305f\u3081\u306e\u6b63\u3057\u3044\u4fe1\u53f7\u3092\u9001\u4fe1\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p><\/p>\n<div class=\"veu_socialSet veu_socialSet-position-after veu_contentAddSection\"><script>window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return t;js=d.createElement(s);js.id=id;js.src=\"https:\/\/platform.twitter.com\/widgets.js\";fjs.parentNode.insertBefore(js,fjs);t._e=[];t.ready=function(f){t._e.push(f);};return t;}(document,\"script\",\"twitter-wjs\"));<\/script><ul><li class=\"sb_facebook sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/www.facebook.com\/sharer.php?src=bm&u=https%3A%2F%2Fwww.elehobby.fun%2F%3Fpage_id%3D4185&amp;t=%E5%AE%9F%E8%B7%B5%E3%81%A7%E3%81%8D%E3%81%9F%E9%9B%BB%E5%AD%90%E5%B7%A5%E4%BD%9C%E3%81%A8%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E9%96%8B%E7%99%BA\" target=\"_blank\" onclick=\"window.open(this.href,'FBwindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_fb icon_sns\"><\/span><span class=\"sns_txt\">Facebook<\/span><span class=\"veu_count_sns_fb\"><\/span><\/a><\/li><li class=\"sb_twitter sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.elehobby.fun%2F%3Fpage_id%3D4185&amp;text=%E5%AE%9F%E8%B7%B5%E3%81%A7%E3%81%8D%E3%81%9F%E9%9B%BB%E5%AD%90%E5%B7%A5%E4%BD%9C%E3%81%A8%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E9%96%8B%E7%99%BA\" target=\"_blank\" ><span class=\"vk_icon_w_r_sns_twitter icon_sns\"><\/span><span class=\"sns_txt\">twitter<\/span><\/a><\/li><li class=\"sb_hatena sb_icon\"><a class=\"sb_icon_inner\" href=\"\/\/b.hatena.ne.jp\/add?mode=confirm&url=https%3A%2F%2Fwww.elehobby.fun%2F%3Fpage_id%3D4185&amp;title=%E5%AE%9F%E8%B7%B5%E3%81%A7%E3%81%8D%E3%81%9F%E9%9B%BB%E5%AD%90%E5%B7%A5%E4%BD%9C%E3%81%A8%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E9%96%8B%E7%99%BA\" target=\"_blank\"  onclick=\"window.open(this.href,'Hatenawindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_hatena icon_sns\"><\/span><span class=\"sns_txt\">Hatena<\/span><span class=\"veu_count_sns_hb\"><\/span><\/a><\/li><li class=\"sb_pocket sb_icon\"><a class=\"sb_icon_inner\"  href=\"\/\/getpocket.com\/edit?url=https%3A%2F%2Fwww.elehobby.fun%2F%3Fpage_id%3D4185&title=%E5%AE%9F%E8%B7%B5%E3%81%A7%E3%81%8D%E3%81%9F%E9%9B%BB%E5%AD%90%E5%B7%A5%E4%BD%9C%E3%81%A8%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E9%96%8B%E7%99%BA\" target=\"_blank\"  onclick=\"window.open(this.href,'Pokcetwindow','width=650,height=450,menubar=no,toolbar=no,scrollbars=yes');return false;\"><span class=\"vk_icon_w_r_sns_pocket icon_sns\"><\/span><span class=\"sns_txt\">Pocket<\/span><span class=\"veu_count_sns_pocket\"><\/span><\/a><\/li><li class=\"sb_copy sb_icon\"><button class=\"copy-button sb_icon_inner\"data-clipboard-text=\"\u5b9f\u8df5\u3067\u304d\u305f\u96fb\u5b50\u5de5\u4f5c\u3068\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u958b\u767a https:\/\/www.elehobby.fun\/?page_id=4185\"><span class=\"vk_icon_w_r_sns_copy icon_sns\"><i class=\"fas fa-copy\"><\/i><\/span><span class=\"sns_txt\">Copy<\/span><\/button><\/li><\/ul><\/div><!-- [ \/.socialSet ] -->","protected":false},"excerpt":{"rendered":"<p>Contents1 1.1 \u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306e\u52d5\u4f5c1.1.1 \u30e9\u30a4\u30f3\u30d5\u30a9\u30ed\u30ef\u30fc\u30ed\u30dc\u30c3\u30c8\u306f\u3069\u306e\u3088\u3046\u306b\u30ca\u30d3\u30b2\u30fc\u30c8\u3059\u308b\u306e\u3067\u3057\u3087\u3046\u304b?1.2 \u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3068\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u8981\u4ef61.3 L293D \u30e2\u30fc\u30bf\u30fc \u30c9\u30e9\u30a4\u30d0\u30fc \u30b7\u30fc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"vkexunit_cta_each_option":"","footnotes":""},"class_list":["post-4185","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/pages\/4185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4185"}],"version-history":[{"count":1,"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/pages\/4185\/revisions"}],"predecessor-version":[{"id":4186,"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=\/wp\/v2\/pages\/4185\/revisions\/4186"}],"wp:attachment":[{"href":"https:\/\/www.elehobby.fun\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}