bigtreetech / BIGTREETECH-S42B-V1.0

The closed-loop drive is to feedback the rotation angle of the stepping motor to the control panel, compare the distance that needs to be rotated with the distance of the actual rotation, calculate the error value, and then compensate, so as to prevent the problem of multi-step and lost step. The closed-loop drive can completely overcome the lost step of the open-loop stepping motor, and can also significantly improve the performance of the motor at high speed
108 stars 53 forks source link

CLOSE LOOP MODE FAIL #23

Open davidcgu opened 3 years ago

davidcgu commented 3 years ago

Good night,

I just installed the module on my own stepper as DIY.

I have changed in configuration from original UART 2209 to A5984, also removed UARt jumper and installed all harware.

I move dip switch pos 4 to ON and complete properly the calibration process, then move it back to OFF.

If I try to extrude material with DIP Swich pos 3 OFF then it moves fine in both directions (only motor not coupled to anything for the moment) however If I move jumper 3 to ON then I get direclty red light on, not movement at all.

What could be the issue?

I have set dip switch 1 yo ON and 2 to OFF.

Thanks in advance

Quas7 commented 3 years ago

did you already do te steps in the manual?

dip 4 is write protection of calibration data. dip 3 is closed loop vs open loop mode. dip 1,2 set microstep resolution.

set 4 to off (EDIT: ON!) and select your preferred microsteps with 1,2. Them run calibration without any load on the motor (detach belt).

Also A4988 is not the right setting in Marlin. Chosing TB6600 is more appropriate for the signal timings.

davidcgu commented 3 years ago

did you already do te steps in the manual?

dip 4 is write protection of calibration data. dip 3 is closed loop vs open loop mode. dip 1,2 set microstep resolution.

set 4 to off and select your preferred microsteps with 1,2. Them run calibration without any load on the motor (detach belt).

Also A4988 is not the right setting in Marlin. Chosing TB6600 is more appropriate for the signal timings.

Thanks for your reply,

I read all PDF and I think I have not seen any clear steps to follow... what steps are you speaking about?

My actual marlin config changes are:

define E0_DRIVER_TYPE A5984

define INVERT_E0_DIR true

define MAXIMUM_STEPPER_RATE 150000

define MINIMUM_STEPPER_PULSE 3

Now moved to TB6600 and makes no change.

As mentiones I have dip switches as follows 1 ON 2 OFF 3 ON 4 ON

with this preset it completes calibration, I have same than before, moving E from LCD in any direction makes no motion at all on motor and red light on close loop module indicating an error, doind the same but moving dip switch 3 to OFF then moves fine, but I understand this means open loop and is not the desired working mode.

Regards

swanepoeljan commented 3 years ago

Sounds like it could be an issue with the magnet installation, and that the distance between the magnet and the sensor needs some adjustment. Maybe experiment with adding/removing some of the small spacers. Think the manual said the sweet spot is somewhere between 2mm and 4mm.

Quas7 commented 3 years ago

@davidcgu you could take a look at #19 as this solved it for me for all stepper motors I tried.

Brian-Zombait commented 3 years ago

@davidcgu you could take a look at #19 as this solved it for me for all stepper motors I tried.

I am experiencing the same problem as the OP. My machine is an Anycubic Mega S.

I've already updated the settings in the motherboard firmware to reflect the pulse min 3, and the max rate to 150,00. The default driver on the board is A4988. Also, motherboard firmware has been updated to the latest version of Merlin using the Anycubic Mega file set from their website to ensure its set up properly for my machine. Note - it works fine without the S42B controllers.

On addition, I have tested the values, via the oled, of the micro steps from 16 firm to 4 with no change in closed-loop mode. Again, open-loop mode works fine.

I have not attempted to change PID values, and have no experience doing so. All firmware changes and updates have been done via Visual Studio.

The distance between the magnet and sensor is 2.62mm, based on my measurements with my trusty calipers.

Any help with this would be appreciated, as my whole reason for getting the S42B controllers was for the closed-loop function.

Last entry (edit to add) when a move command is sent, while in closed-loop mode, I can hear a faint sound coming from the motor that goes away if I press the reset button, or the command times out.

My motherboard is an ANYCUBIC TriGorilla Integrated Main Board Compatible Mega2560 & RAMPS1.4 Combo Control Board 4 Layers PCB Controller Board for RepRap Mendel Prusa I3.