国内成人免费视频|中文字幕一区精品欧美|国产精品玖玖玖在线观看|国产成人精品久久免费动漫|欧美日韩亚洲一区在线观看|91午夜精品亚洲一区二区|9 9久热RE在线精品视频|精品无码国产不卡在线观看首页

RepRap的X_STEPS_PER_MM參數(shù)

開(kāi)源技術(shù)
2013
01/31
00:11
分享
評(píng)論
背景介紹:
參數(shù)Steps per mm:這個(gè)參數(shù)是決定了工作臺(tái)每運(yùn)動(dòng)1mm,步進(jìn)電機(jī)需要多少個(gè)脈沖。
計(jì)算方法(公式)=(步進(jìn)電機(jī)旋轉(zhuǎn)1圈的標(biāo)準(zhǔn)脈沖數(shù)*驅(qū)動(dòng)器細(xì)分?jǐn)?shù))/絲杠導(dǎo)程(導(dǎo)程也就是螺距,如果絲杠不是直接連接電機(jī)而是通過(guò)減速后連接則計(jì)算結(jié)果還需要再乘以減速比)
例如:1.8度/脈沖的步進(jìn)電機(jī)旋轉(zhuǎn)1圈需要360/1.8度=200個(gè)脈沖。驅(qū)動(dòng)器使用8細(xì)分,絲杠導(dǎo)程為2.5mm。
      Steps per=200*8/2.5=640個(gè)脈沖
http://reprap.org/wiki/Arduino_GCode_Interpreter
Usage
Firmware Configuration
In order for the firmware to operate properly, you must configure the proper variables in the firmware and then upload the firmware to your Arduino. The values are stored in the file _init.pde. An example version is included in the distribution called _init.pde.dist.
We'll cover each of the variables below:
X_STEPS_PER_INCH
This variable stores how many steps to take to move the X axis 1 inch. You will need to set this as accurately as possible if you want your machine to be accurate. There are two ways to set it:
Move and Measure - slap a pen or marker on as a toolhead and draw a 1000 step line. Measure it and divide 1000 by the length in inches.
Calculate Step Size - this one is the preferred way of doing things. Its rather easy to calculate step size based on your drive mechanism.
For threaded rod drive systems:
Find your TPI (threads per inch). for example, 1/4"-20 threaded rod means that there are 20 threads per inch (aka 20 turns = 1 inch.) Simply take that number and multiply it by the steps in a revolution. With a 400 step motor, it would be 8000 steps per inch.
For belt/pulley systems:
Find the circumference of your drive pulley. (remember circumference = 2*pi*r) (say: 2.75")
Calculate step size (ie: circumference / steps per revolution) (say: 2.75" / 400 = 0.00625")
Divide 1 inch by step size (1" / 0.00625" = 160 steps/inch)
X_STEPS_PER_MM
This variable stores how many steps to take to move the X axis 1mm. You can either calculate it independently, or take the number above and divide by 25.4.
實(shí)際設(shè)置:
在用雕刻機(jī)改裝成RepRap的過(guò)程中,遇到問(wèn)題。電腦上面發(fā)指令走100mm,機(jī)器實(shí)際上只走了25mm。查閱資料無(wú)數(shù),始終不得要領(lǐng)。
根據(jù)上面的知識(shí),理論上X_STEPS_PER_MM的設(shè)置應(yīng)該是160(雕刻機(jī)原來(lái)是8細(xì)分,320 steps per mm,絲杠導(dǎo)程為5mm)。RepRap默認(rèn)是4細(xì)分的。
可是實(shí)際上,當(dāng)設(shè)置超過(guò)18以后,就走不動(dòng)了。A3977的電流、細(xì)分都調(diào)過(guò)。始終無(wú)法解決。
在“process_g_code.pde”里面,把收到的GCode都加大4倍,可以暫時(shí)解決這個(gè)問(wèn)題
  1. //did we get a gcode?
  2. if (gc.seen & GCODE_G)
  3. {
  4. last_gcode_g = gc.G; /* remember this for future instructions */
  5. fp = where_i_am;
  6. if (abs_mode)
  7. {
  8. if (gc.seen & GCODE_X)
  9. fp.x = gc.X;
  10. if (gc.seen & GCODE_Y)
  11. fp.y = gc.Y;
  12. if (gc.seen & GCODE_Z)
  13. fp.z = gc.Z;
  14. if (gc.seen & GCODE_E)
  15. fp.e = gc.E;
  16. }
  17. else
  18. {
  19. if (gc.seen & GCODE_X)
  20. fp.x += gc.X;
  21. if (gc.seen & GCODE_Y)
  22. fp.y += gc.Y;
  23. if (gc.seen & GCODE_Z)
  24. fp.z += gc.Z;
  25. if (gc.seen & GCODE_E)
  26. fp.e += gc.E;
  27. }
復(fù)制代碼
回復(fù)

使用道具 舉報(bào)

2#
2013-3-3 13:16:53 | 只看該作者
這是參數(shù)還是比較難懂。≈皇菍(duì)于我來(lái)說(shuō)!

推動(dòng)3D打印

關(guān)注南極熊

通知

聯(lián)系QQ/微信9:00-16:00

392908259

南極熊3D打印網(wǎng)

致力于推動(dòng)3D打印產(chǎn)業(yè)發(fā)展

Copyright © 2024 南極熊 By 3D打印 ( 京ICP備14042416號(hào)-1 ) 京公網(wǎng)安備11010802043351
快速回復(fù) 返回列表 返回頂部