CNCãã³ãããã¿ã¼ã®ä½æããã®2
ååã®ç¶ãã§ãã
- Inkscapeã使ã£ã¦G-Codeãçæãã
- 12Vé»æºã®ç¢ºä¿ã¨åå¯å¤æµæã®èª¿æ´
- è¿½è¨ : ãµã¼ãã¢ã¼ã¿ã¼ã®æ¥ç¶
- bCNCããArduino(grbl)ã«G-Codeãéä¿¡ããï¼
ååã¯bCNCã®ã¤ã³ã¹ãã¼ã«ã¾ã§è¡ã£ãã®ã§ã次ã¯å®éã«ã¢ã¼ã¿ã¼ãåããã¨ããã¾ã§ãã£ã¦ããããã¨æãã¾ãã
ã¾ãã¯ãSVGããG-Codeãçæããããã«ãInkscapeãã¤ã³ã¹ãã¼ã«ãã¾ãã
â»Macã®å ´åã«ã¤ãã¦æ¸ãã¦ãã¾ããWindowsã§ã¯ãã¾ããããªãå ´åãããã¾ãã
Inkscapeã使ã£ã¦G-Codeãçæãã
1. Xquartzã®ã¤ã³ã¹ãã¼ã« (Macã®å ´åã®ã¿)
Macã§Inkscapeã使ãå ´åã«ã¯XQuartzãå¿
è¦ã§ãã
ãã¦ã³ãã¼ããããéãã¦ãå³ä¸ã®ãã¿ã³ãæ¼ãã¦ããã°ã¤ã³ã¹ãã¼ã«ãå®äºãã¾ãã
2. Inkscapeã®ã¤ã³ã¹ãã¼ã«
以ä¸ã®ãµã¤ããããInkscapeãããã¦ã³ãã¼ããã¾ãã
Inkscape 0.92.2 - macOS | Inkscape
Inkscape 0.92.2 - Windows | Inkscape
ããã§ãæ¡å¼µæ©è½ãMI Inkscape Extensionãã使ãããã«ã¯ãå¤ããã¼ã¸ã§ã³ãã¤ã³ã¹ãã¼ã«ããªãã¨ãããªãã¨ããæ å ±ãããã¾ãããã³ã¼ããå°ãæ¸ãæããã°ææ°çã§ã使ãã¾ãã
Inkscapeèµ·åãã¦ãWhere is X11 ?ãã¨èãããå ´åã¯ãã/Applications/Utilities/XQuartz.appããé¸æããã°èµ·åãã¾ããããã§ããã¾ãèµ·åããªããã°ãPCãåèµ·åãã¦ã¿ã¦ãã ããã
3. Inkscapeã®æ¡å¼µæ©è½ãMI Inkscape Extensionãã®ã¤ã³ã¹ãã¼ã«
ãããããã¦ã³ãã¼ããã¾ãã
解åããã¨ã次ã®ãããª4ã¤ã®ãã¡ã¤ã«ãå ¥ã£ã¦ãã¾ãã ãã ããã®ã¾ã¾ã ã¨ææ°çInkscape0.92ã§åããªãã®ã§ãservo.pyã以ä¸ã®ããã«æ¸ãæãã¾ãã
//3085è¡ç® - doc_height = inkex.unittouu(self.document.getroot().get('height')) + doc_height = self.unittouu(self.document.getroot().get('height'))
次ã«ããããã®4ã¤ã®ãã¡ã¤ã«å
¨ã¦ãã~/.config/inkscape/extensions/ãã®ä¸ã«å
¥ãã¾ãã
ã¿ã¼ããã«ãã次ã®ããã«ããã¨æ¥½ã§ãã
//解åå¾ã®MI Inkscape Extensionã«ç§»åãã $ mv ./* ~/.config/inkscape/extensions/ //ããã§ã4ã¤å ¨ã¦ã®ãã¡ã¤ã«ã移åããã
4. Inkscapeãèµ·åãã¦SVGããG-Codeãä½ã
æ¡å¼µæ©è½ãå ¥ããããInkscapeãåèµ·åãã¦ãã¾ãé©å½ãªSVGãä½ãã¾ãã試ãã«é·æ¹å½¢ãæãã¦ã¿ã¾ãã
- ç©å½¢ãã¼ã«ã§é·æ¹å½¢ãæã
- ã¡ãã¥ã¼ããã¹ãããããªãã¸ã§ã¯ãããã¹ã¸ããé¸æï¼ä½ãå¤åã¯ããã¾ãããããã¹åããã¦ãã¾ãï¼
- ã¡ãã¥ã¼ãã¨ã¯ã¹ãã³ã·ã§ã³ããããMI GRBLZ-AXIS Servo Controller/MI GRBLZ-AXIS Servo Controllerããé¸æãã
ããã¨ããã®ãããªã¦ã£ã³ãã¦ãåºã¦ããã®ã§ããX軸ã®åãéãããY軸ã®åãéãããã©ã¡ããã2000mm/minãã«è¨å®ãã¾ã(ä»»æã®å¤ã§ããããåãã¯å°ããæ¹ããã)ã
ãã¡ã¤ã«ã®ä¿åå
ãè¨å®ãããããApplyããæ¼ãã¦G-Codeãçæãã¾ãã
çæãããG-Codeã®ä¸èº«ãã¿ã¦ã¿ãã¨ããããªæãã«ãªã£ã¦ãã¾ãã
ã³ãã³ã | æ©è½ |
---|---|
G21 | 座æ¨ã®åä½ããããª(mm)ãã§ãããã¨ãä¼ããå½ä»¤ããG20ãã¯ã¤ã³ãã§ããã |
G04 | ãä¸æåæ¢ãã®å½ä»¤ãç¶ãã¦ãPãããã¨æ¸ãã¨ããããªç§éåæ¢ãããSãããã¨æ¸ãã¨ããç§éåæ¢ããã 追è¨:ç§ã®ç°å¢ã§ã¯Pã¯ããªç§ã§ã¯ãªãç§ã«ãªã£ã¦ãã¾ããããµã¤ãã«ãã£ã¦æ å ±ãéãã®ã§ãè¨å®ã«ããã®ããããã¾ããã |
F | ããã£ã¼ãçãã¨ãããG1ãå®è¡ããã¦ããã¨ãã®åãéãã決ããå½ä»¤ããG1 Fãããã¨æ¸ãã¨ãåéããmmã§ç§»åããã |
â»ãã®ä»ã®ã³ãã³ãã«ã¤ãã¦ã¯ãååã®è¨äºã®æå¾ã«æ¸ãã¾ããã
ãã¦ããããããã®G-CodeãbCNCã«èªã¿è¾¼ã¾ãã¦ãArduino(grbl)ã«éä¿¡ãããã¨æãã¾ãã
ã¨ããã®åã«ãã¢ã¼ã¿ã¼ãåããããã®12Vé»æºã確ä¿ãã¾ãï¼
12Vé»æºã®ç¢ºä¿ã¨åå¯å¤æµæã®èª¿æ´
ãã®CNCã·ã¼ã«ãã«ã¯12V~36Vã®ç´æµé»æºãæµããã¨ãã§ãã¾ã(使ç¨ããã¢ã¼ã¿ã¼ã«ãã£ã¦å¤ãã)ããã®ããä»åã¯ã12Vã®ACã¢ããã¿ã¼ããããã¯12Vã®ã¹ã¤ããã³ã°é»æºãå¿ è¦ã§ãã
- åºç社/ã¡ã¼ã«ã¼: ãé»æºã®å®¶ã
- ã¡ãã£ã¢: ã¨ã¬ã¯ãããã¯ã¹
- ãã®ååãå«ãããã°ãè¦ã
ç´æµå®å®åé»æº AC DC 12V ã³ã³ãã¼ã¿ã¼ å®å ¨ä¿è· åè·¯ è£ ç½® æ大 (10A)
- åºç社/ã¡ã¼ã«ã¼: NoBrand
- ã¡ãã£ã¢:
- ãã®ååãå«ãããã°ãè¦ã
- ã¢ã¼ã¿ã¼å:å極æ§ã¹ãããã¼
- ã¹ãããè§åº¦:1.8°
- ä¿æãã«ã¯ï¼26Ncm(36.8oz.in)
- å®æ ¼é»æµ/ä½ç¸: 0.4A
- ä½ç¸æµæï¼30ãªã¼ã
ã¨ãªã£ã¦ãã¾ãããã£ã¦ãä»åã¯ãã®ã¢ã¼ã¿ã¼ã2ã¤ä½¿ãã®ã§ãæ大2Aã®é»æµãå¼ãåºãã12Vã®ACã¢ããã¿ã¼ãããã°ååã¨èãã¾ããã
ããã§ã使ããªããªã£ã12V-2Aç¨åº¦ã®ACã¢ããã¿ãæ¢ãã¦ããã¨ãããWiiã®ACã¢ããã¿ã¼ãã¡ããã©12V-3.7Aã§ãã£ãã®ã§ãããã使ç¨ãã¾ããã â»ã¡ããã¨ç±ç¸®ãã¥ã¼ãã§ã«ãã¼ããªãã¨ã·ã§ã¼ãããå±éºãããã®ã§æ³¨æãã¦ãã ããã
ã¾ããã¢ã¼ã¿ã¼ãã©ã¤ããA4988ãã®è£½é å ã®ãPololuãã®ãµã¤ããè¦ãã¨ãA4988ã¯ä»¥ä¸ã®å¼ãæºããããã«ä½¿ç¨ããã¹ãã¨æ¸ãã¦ããã¾ããã
ãããã£ã¦ãä»åã¯ã¢ã¼ã¿ã¼ã®å®æ ¼é»æµ0.4Aã ã«ä»£å ¥ãã¦ã]
ã¨ãªãã¾ããã¨ãããã¨ã§ãArduinoã®USBé»æºãå ¥ãã¦ãã測å®ãã¾ã(12Vé»æºã¯å ¥ããå¿ è¦ãªã)ãã¯ä¸ã®åçã®ããã«ãåå¯å¤æµæã¨GNDéã®é»å§ã測ãã¾ãã 測å®ãã¦ã¿ãã¨ã0.646Vã«ãªã£ã¦ãããããã ã¨ã¢ã¼ã¿ã¼ã«éé»æµãæµãã¦ãã¾ãã¾ããããã§ãåå¯å¤æµæãåæè¨åãã«åãã¦æµæå¤ããããã¨ã0.176Vã¾ã§ä¸ããã¾ãããããã§æºåOKã§ãã
è¿½è¨ : ãµã¼ãã¢ã¼ã¿ã¼ã®æ¥ç¶
ãµã¼ãã¢ã¼ã¿ã¼ã«ã¤ãã¦æ¸ãã®ãå¿ãã¦ãã¾ãããç§ã使ç¨ããã®ã¯ãSG92Rãã¨ãããµã¼ãã¢ã¼ã¿ã¼ã§ããã³ãä¸ãä¸ãããã ããªã®ã§ãã«ã¯ã¯ã»ã¨ãã©å¿ è¦ãªãã§ãããã®ãããArduinoå ¥éãããã«ããå ¥ã£ã¦ãããSG90ãã¨ãããµã¼ãã¢ã¼ã¿ã¼ã§ãåé¡ãªãã¨æããã¾ããã©ã¡ããåä½é»å§ã¯4.8Vã§ããã®ã§ãåé¡ãªã使ããã¨ãã§ãã¾ãã
CNCã·ã¼ã«ãã¨ã®æ¥ç¶æ¹æ³ã«ã¤ãã¦ã¯ãååã®è¨äºã§æ¸ããéãããµã¼ãã¢ã¼ã¿ã¼ã®ä¸å¤®ã®ç·ã5Vã«ã端ã®ãªã¬ã³ã¸è²ã®ä¿¡å·ç·ãZ+ã«ãæ®ãã®GNDç·ãGNDã«æ¥ç¶ããã°OKã§ãã
bCNCããArduino(grbl)ã«G-Codeãéä¿¡ããï¼
ãã¦ãããããã¢ã¼ã¿ã¼ãåããã¦ããã¾ãï¼ãããã¾ã§æã£ã¦ããããããããã¨ãå¤ãã¦å¤§å¤ã§ãã...ã
ã¾ãã¯ãbCNCãèµ·åãã¾ããèµ·åããããä¸ã®æ¹ã®ããã¡ã¤ã«ãã¨ãããã¿ã³ãæ¼ãã¾ããããã¨ã次ã®ãããªç»é¢ãã§ãã®ã§ããSerialãã®ä¸ã®ããã¼ã¬ã¼ãããã115200ãã«è¨å®ãã¾ãã(ããgrbl v0.8ã使ã£ã¦ãããªã9600ã«è¨å®ãã)
次ã«ãArduinoã¨PCãæ¥ç¶ãã¦ããSerialãã®ä¸ã®ããã¼ãããããArduinoã®ãã¼ããæ¢ãã¦é¸æãã¾ããçµãã£ããããã®å³ã®ãéããã¨ãããã¿ã³ãæ¼ãã¨ãä¸é¨ã®ãStatusãããIdleãã¨ããç¶æ
ã«å¤ããã¨æãã¾ããããã§æ¥ç¶å®äºã§ãã
ããã¦ãç»é¢ä¸é¨ã®ããã¡ã¤ã«ã®ã¢ã¤ã³ã³ãã®ãã¿ã³ãæ¼ãã¦ãInkscapeã§ä½æãã.gcodeã®ãã¡ã¤ã«ãéãã¾ããéãã¨ãç»é¢å³ã«ä½æããå³å½¢ã表示ãããã¨æãã¾ãã(ä»åã®ä¾ã ã¨é·æ¹å½¢ã表示ãããã¯ã)
ããããããç»é¢ä¸é¨ã®ãControlãã¨ãããã¿ã³ãæ¼ãã¾ããããã¦ãããã§CNCã·ã¼ã«ãã®12Vé»æºãå ¥ãã¾ãã(ã¿ã¤ãã³ã°ã¯ãã¤ã§ããã)
ããã§è©¦ãã«ãç»é¢å·¦ä¸ã®ç¢å°ãã¿ã³ãå·¦å³ã«æ¼ãã¦ã¿ã¦ãã¢ã¼ã¿ã¼ãæ»ããã«åãã°åé¡ãªãã§ãã(é³ãç«ã¦ã¦æ¿ããæ¯åãã¦ããããããã¯ããããã«æ¯åãã¦ããã ãã®å ´åã¯ãå ã»ã©ã®é»å§ã®èª¿æ´ãééã£ã¦ããå ´åãããã¾ã) ããã¾ã§ãå ¨ã¦é 調ã ã£ãããç»é¢ä¸é¨ã®ãStartããã¿ã³ãæ¼ãã¾ããããã¨ãã¹ãããã³ã°ã¢ã¼ã¿ã¼ãåãåºãããµã¼ãã¢ã¼ã¿ã¼ãé©åãªã¿ã¤ãã³ã°ã§ä¸ãä¸ãããã¨æãã¾ãã
bCNCããGã³ã¼ããgrblã«éã£ã¦ãã¹ãããã³ã°ã¢ã¼ã¿ã¼ã¨ãµã¼ãã¢ã¼ã¿ã¼ãå¶å¾¡ã§ããï¼ pic.twitter.com/RFHNdHtYT3
— ãã@大å¦å¢ (@tamu60) August 19, 2019
Y軸ã®ã¹ãããã³ã°ã¢ã¼ã¿ã¼ãåãä»ããã°ããã¼ãã¦ã§ã¢ã¨ã½ããã¦ã§ã¢ã®æ¹ã¯å®æã§ãã
ãã¨ã¯ããã³ãããã¿ã¼ã¨ãã¦çµã¿ç«ã¦ãã ãã§ããï¼
ããã§ã¯ã次åã¯é¨åãçµã¿ç«ã¦ã¦ããããã³ãããã¿ã¼ãå®æããããã¨æãã¾ãã