{"id":578,"date":"2015-04-26T14:41:13","date_gmt":"2015-04-26T05:41:13","guid":{"rendered":"https:\/\/hack.gpl.jp\/?p=578"},"modified":"2015-04-26T14:41:13","modified_gmt":"2015-04-26T05:41:13","slug":"fdd4","status":"publish","type":"post","link":"https:\/\/hack.gpl.jp\/2015\/04\/26\/fdd4.html","title":{"rendered":"FDD4"},"content":{"rendered":"

\u73fe\u5834\u5408\u308f\u305b\u3067\u3001XY\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3057\u305fyo\u3002<\/p>\n

\"IMG_0179\" <\/p>\n

\"IMG_0180\" <\/p>\n

\u30d5\u30e9\u30c3\u30c8\u306a\u9762\u306f\u30015\u30a4\u30f3\u30c1\u30d9\u30a4\u306e\u76ee\u96a0\u3057\u90e8\u5206\u304c\u624b\u5143\u306b\u3042\u3063\u305f\u306e\u3067\u305d\u308c\u3092\u6d41\u7528\u3057\u307e\u3057\u305f\u3002\u63a5\u7740\u306f\u3001\u30b0\u30eb\u30fc\u30ac\u30f3\u3067\u3059\u3002\u305d\u308c\u306a\u308a\u306e\u5f37\u5ea6\u3082\u3042\u308b\u3088\u3046\u3060\u3057\u3001\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u3067\u3044\u3044\u304b\u7684\u306a\u611f\u3058\u3067\u3059\u304c\u3002\u3082\u3068\u3082\u3068FDD\u306e\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u90e8\u5206\u306a\u306e\u3067\u3001\u4e57\u305b\u308b\u306b\u306f\u305d\u308c\u306a\u308a\u306e\u5de5\u592b\u304c\u5fc5\u8981\u3067\u3059\u306d\u3002<\/p>\n

 <\/p>\n

\u6b21\u306f\u3001Z\u8ef8\u306e\u30da\u30f3\u3092\u79fb\u52d5\u3055\u305b\u308b\u7e26\u8ef8\u3092\u3069\u3046\u3059\u308b\u304b\u3067\u3059\u3002\u3053\u3053\u306f\u3001\u30da\u30f3\u3092\u4ea4\u63db\u3057\u305f\u308a\u3057\u305f\u3044\u306e\u3067\u3001\u306a\u306b\u304b\u4e00\u5de5\u592b\u304c\u5fc5\u8981\u3067\u3059\u30023D\u30d7\u30ea\u30f3\u30bf\u30fc\u304c\u3042\u308c\u3070\u3001\u30b8\u30e7\u30a4\u30f3\u30c8\u306e\u90e8\u5206\u3092\u4f5c\u308b\u306e\u3067\u3059\u304c\u3001\u6b8b\u5ff5\u306a\u304c\u3089\u7121\u3044\u306e\u3067\u30b8\u30e7\u30a4\u30f3\u30c8\u90e8\u5206\u3092\u3069\u3046\u3059\u308b\u304b\u3092\u3042\u308c\u3053\u308c\u601d\u6848\u4e2d\u3002<\/p>\n

 <\/p>\n

\u307e\u305f\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8\u3067\u3001\u300c\u30dc\u30ed\u3055\u3092\u3069\u3046\u6f14\u51fa\u3059\u308b\u304b\uff1f\u300d\u3067\u3059\u3002<\/p>\n

 <\/p>\n

\u52d5\u753b\u3082\u4f5c\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u3088\u304b\u3063\u305f\u3089\u3069\u3046\u305e\u3002<\/p>\n

[youtube https:\/\/www.youtube.com\/watch?v=lAH7oG_1HfU] <\/p>\n

\u3060\u3093\u3060\u3093\u3068\u3001\u30d7\u30ed\u30c3\u30bf\u30fc\u306b\u8fd1\u3065\u304d\u3064\u3064\u3042\u308a\u307e\u3059\u306d\u3002<\/p>\n

 <\/p>\n

\u30b3\u30fc\u30c9\u306f\u3001\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002AccelStepper \u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002\u95a2\u6570\u306f\u307e\u3060\u5168\u90e8\u308f\u304b\u3063\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u304a\u3044\u304a\u3044\u8abf\u3079\u3066\u307f\u307e\u3059\u3002<\/p>\n

\/*\n Junk FDD Stepper Motor Control Sample.\n xy table moving sample.\n AccelStepper ver 1.47\n JunkHack 2015.04.26\n *\/\n\n#include <AccelStepper.h>\n\nAccelStepper y_stepper(1, 3, 2); \/\/ 1 > two wires. 3 > STEP pin , 2 > DIR pin.\nAccelStepper x_stepper(1, 5, 4); \/\/ 1 > two wires. 5 > STEP pin , 4 > DIR pin.\nint halfRev = 700; \/\/ \u7247\u9053\u79fb\u52d5\u5e45 ( Step )\nint halfdelay = 10;\n\nvoid setup() {\n    y_stepper.setMaxSpeed(3000); \/\/ \u6700\u5927\u8a31\u5bb9\u901f\u5ea6\n    y_stepper.setAcceleration(6000); \/\/ \u52a0\u901f\n    x_stepper.setMaxSpeed(6000);\n    x_stepper.setAcceleration(12000);\n}\nvoid loop() {\n    if (y_stepper.distanceToGo() == 0) {\n        delay(halfdelay);\n        halfRev = -halfRev;\n        y_stepper.moveTo(halfRev);\n    }\n    if (x_stepper.distanceToGo() == 0) {\n        delay(halfdelay);\n        halfRev = -halfRev;\n        x_stepper.moveTo(halfRev);\n    }\n    y_stepper.run();\n    x_stepper.run();\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u73fe\u5834\u5408\u308f\u305b\u3067\u3001XY\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3057\u305fyo\u3002 \u30d5\u30e9\u30c3\u30c8\u306a\u9762\u306f\u30015\u30a4\u30f3\u30c1\u30d9\u30a4\u306e\u76ee\u96a0\u3057\u90e8\u5206\u304c\u624b\u5143\u306b\u3042\u3063\u305f\u306e\u3067\u305d\u308c\u3092\u6d41\u7528\u3057\u307e\u3057\u305f\u3002\u63a5\u7740\u306f\u3001\u30b0\u30eb\u30fc\u30ac\u30f3\u3067\u3059\u3002\u305d\u308c\u306a\u308a\u306e\u5f37\u5ea6\u3082\u3042\u308b\u3088\u3046\u3060\u3057\u3001\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u3067\u3044\u3044\u304b\u7684\u306a\u611f\u3058\u3067\u3059\u304c\u3002\u3082 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","footnotes":""},"categories":[9,45],"tags":[],"acf":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"JunkHack","author_link":"https:\/\/hack.gpl.jp\/author\/junkhack\/"},"uagb_comment_info":0,"uagb_excerpt":"\u73fe\u5834\u5408\u308f\u305b\u3067\u3001XY\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3057\u305fyo\u3002 \u30d5\u30e9\u30c3\u30c8\u306a\u9762\u306f\u30015\u30a4\u30f3\u30c1\u30d9\u30a4\u306e\u76ee\u96a0\u3057\u90e8\u5206\u304c\u624b\u5143\u306b\u3042\u3063\u305f\u306e\u3067\u305d\u308c…","_links":{"self":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/578"}],"collection":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/comments?post=578"}],"version-history":[{"count":0,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/posts\/578\/revisions"}],"wp:attachment":[{"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/media?parent=578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/categories?post=578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hack.gpl.jp\/wp-json\/wp\/v2\/tags?post=578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}