makerbase-mks / MKS-Robin

MKS Robin is a powerful 32-bit 3D printer control board with STM32F103ZET6 . Support Marlin2.0. Support MKS Robin TFT24/28/32... Screens. The motherboard integrates 5 AXIS interface, hot bed, 2 heating heads, 3 NTC100K, 2 MAX31855.Support MKS Robin WIFI for cloud printing.Supports firmware update by SD card…
https://es.aliexpress.com/item/32757129463.html?spm=a219c.12010612.8148356.9.5fc165f4oDUfFM
130 stars 129 forks source link

Stepper voltage control MKS Robin Mini V2.x #117

Open jfkerekes opened 5 years ago

jfkerekes commented 5 years ago

Hi Folks,

Can anybody tell me does firmware stepper voltage control work for the Robin Mini with Marlin 2.x? I am in the process of converting over and want to know what to expect here.

makerbase-mks commented 4 years ago

I have observed that the new Marlin 2.0 firmware, the pins_MKS_ROBIN_MINI.h file, has an adjustment to the reference voltage of the stepper drive: // Motor current PWM pins

define MOTOR_CURRENT_PWM_XY_PIN PA6

define MOTOR_CURRENT_PWM_Z_PIN PA7

define MOTOR_CURRENT_PWM_E_PIN PB0

define MOTOR_CURRENT_PWM_RANGE 1500 // (255 (1000mA / 65535)) 257 = 1000 is equal 1.6v Vref in turn equal 1Amp

define DEFAULT_PWM_MOTOR_CURRENT { 1030, 1030, 1030 } // 1.05Amp per driver, here is XY, Z and E. This values determined empirically.