Description
Controller Board
self build
Help From Board Vendor
-
YesNoNot Applicable
Machine Description
Gantry router Ratrig Killerbee with DM556T stepper driver, dual y motors and limit switches.
Input Circuits
No response
Configuration file
name: "ModuloController"
board: "ModuloControl V1"
stepping:
engine: RMT
idle_ms: 255
dir_delay_us: 1
pulse_us: 5
disable_delay_us: 5
start:
must_home: true
deactivate_parking: true
check_limits: true
axes:
shared_stepper_disable_pin: gpio.23
x:
steps_per_mm: 400.000
max_rate_mm_per_min: 5000.000
acceleration_mm_per_sec2: 150.000
max_travel_mm: 510.000
soft_limits: true
homing:
cycle: 2
mpos_mm: 510.000
feed_mm_per_min: 200.000
seek_mm_per_min: 400.000
positive_direction: true
motor0:
limit_pos_pin: gpio.35:low
hard_limits: true
pulloff_mm: 5.000
stepstick:
direction_pin: gpio.27
step_pin: gpio.26
y:
steps_per_mm: 400.000
max_rate_mm_per_min: 5000.000
acceleration_mm_per_sec2: 150.000
max_travel_mm: 750.000
soft_limits: true
homing:
cycle: 3
mpos_mm: 750.000
feed_mm_per_min: 100.000
seek_mm_per_min: 400.000
positive_direction: true
motor0:
limit_pos_pin: gpio.39:low
hard_limits: true
stepstick:
direction_pin: gpio.32:low
step_pin: gpio.25
motor1:
limit_pos_pin: gpio.36:low
hard_limits: true
stepstick:
direction_pin: gpio.22:low
step_pin: gpio.21
z:
steps_per_mm: 400.000
max_rate_mm_per_min: 5000.000
acceleration_mm_per_sec2: 150.000
max_travel_mm: 150.000
soft_limits: true
homing:
cycle: 1
mpos_mm: 150.000
feed_mm_per_min: 100.000
seek_mm_per_min: 400.000
positive_direction: true
motor0:
limit_pos_pin: gpio.34:low
hard_limits: true
stepstick:
direction_pin: gpio.18
step_pin: gpio.19
probe:
pin: gpio.4:high
control:
safety_door_pin: gpio.33:low
reset_pin: NO_PIN
feed_hold_pin: NO_PIN
relay:
direction_pin: NO_PIN
output_pin: gpio.5
enable_pin: NO_PIN
disable_with_s0: false
s0_with_disable: true
spinup_ms: 0
spindown_ms: 0
tool_num: 0
speed_map: 0=0.000% 0=100.000% 1=100.000%
Startup Messages
$ss
[MSG:INFO: FluidNC v3.6.3]
[MSG:INFO: Compiled with ESP32 SDK:v4.4.1-1-gb8050b365e]
[MSG:INFO: Local filesystem type is spiffs]
[MSG:INFO: Configuration file:config_ratrig_killerbee.yaml]
[MSG:INFO: Machine ModuloController]
[MSG:INFO: Board ModuloControl V1]
[MSG:INFO: SPI not defined]
[MSG:INFO: No SD Card CS Pin]
[MSG:INFO: See http://wiki.fluidnc.com/en/config/sd_card#sdfallbackcs-access-sd-without-a-config-file]
[MSG:INFO: Stepping:RMT Pulse:5us Dsbl Delay:5us Dir Delay:1us Idle Delay:255ms]
[MSG:INFO: Axis count 3]
[MSG:INFO: Shared stepper disable gpio.23]
[MSG:INFO: Axis X (0.000,510.000)]
[MSG:INFO: Motor0]
[MSG:INFO: stepstick Step:gpio.26 Dir:gpio.27 Disable:NO_PIN]
[MSG:INFO: X Pos Limit gpio.35:low]
[MSG:INFO: Axis Y (0.000,750.000)]
[MSG:INFO: Motor0]
[MSG:INFO: stepstick Step:gpio.25 Dir:gpio.32:low Disable:NO_PIN]
[MSG:INFO: Y Pos Limit gpio.39:low]
[MSG:INFO: Motor1]
[MSG:INFO: stepstick Step:gpio.21 Dir:gpio.22:low Disable:NO_PIN]
[MSG:INFO: Y2 Pos Limit gpio.36:low]
[MSG:INFO: Axis Z (0.000,150.000)]
[MSG:INFO: Motor0]
[MSG:INFO: stepstick Step:gpio.19 Dir:gpio.18 Disable:NO_PIN]
[MSG:INFO: Z Pos Limit gpio.34:low]
[MSG:INFO: safety_door_pin gpio.33:low]
[MSG:INFO: Kinematic system: Cartesian]
[MSG:INFO: Relay Spindle Ena:NO_PIN Out:gpio.5 Dir:NO_PIN]
[MSG:INFO: Using spindle Relay]
[MSG:INFO: Probe Pin: gpio.4]
[MSG:INFO: AP SSID FluidNC IP 192.168.178.1 mask 255.255.255.0 channel 1]
[MSG:INFO: AP started]
[MSG:INFO: WiFi on]
[MSG:INFO: Captive Portal Started]
[MSG:INFO: HTTP started on port 80]
[MSG:INFO: Telnet started on port 23]
ok
User Interface Software
WebUI, gSender
What happened?
If homing of the y-axis with dual motor is started, the axis goes towards the limit switches, as soon as they get activated, the motors are stopping and not moving any more. In this state, the limit switches stays activated and the motors sounds as the direction pins are changed randomly. This behaviour starts after the upgrade from 3.5.1 to 3.6.3. Before the update everything worked fine.
Other Information
No response
Activity
MitchBradley commented on Oct 13, 2022
Try it with FluidTerm. Set $message/level=debug and then home with $hy . Show us the messages from the terminal.
ModuloFS commented on Oct 14, 2022
This are the messages:
FluidNC v1.2.0 using COM3
Exit: Ctrl-C, Ctrl-Q or Ctrl-], Clear screen: CTRL-W
Upload: Ctrl-U, Reset ESP32: Ctrl-R, Send Override: Ctrl-O
$X
[MSG:INFO: Caution: Unlocked]
ok
$message/level=debug
ok
$hy
[MSG:DBG: Homing Cycle Y]
[MSG:DBG: Homing nextPhase FastApproach]
[MSG:DBG: Starting from 0.000,0.000,0.000]
[MSG:DBG: Planned move to 0.000,825.000,0.000 @ 400.000]
[MSG:DBG: Y2 Pos Limit 1]
[MSG:DBG: Homing limited Y2]
[MSG:DBG: Y Pos Limit 1]
[MSG:DBG: Homing limited Y Y2]
[MSG:DBG: Homing nextPhase Pulloff0]
[MSG:DBG: Starting from 0.000,20.000,0.000]
[MSG:DBG: Planned move to 0.000,19.000,0.000 @ 100.000]
[MSG:DBG: CycleStop Pulloff0]
ALARM:8
ok
MitchBradley commented on Oct 14, 2022
You do not have pulloff_mm defined for Y so it is defaulting to 1 mm, which is apparently too small for your machine. The 1 mm pulloff move is not releasing the switch.
ModuloFS commented on Oct 14, 2022
Ok, is there any difference between the “stepstick” definition in compare to the “standard stepper” definition?
MitchBradley commented on Oct 14, 2022
stepstick has configurable mode select and reset pins; standard stepper does not. standard stepper is basically an external driver where everything is configured with dip switches on the driver itself.
MitchBradley commented on Oct 14, 2022
http://wiki.fluidnc.com/en/config/axes#standard-stepper
http://wiki.fluidnc.com/en/config/axes#stepstick
MitchBradley commented on Oct 14, 2022
Can we close this ticket now?
ModuloFS commented on Oct 14, 2022
Give me a second, i try it right now.
ModuloFS commented on Oct 14, 2022
Ok, i changed the pulloff to 5 mm, the machine pulls off but not symetrically. If i start the homing after that again i get the same problem with the stopping stepper and the Alarm 8. So the Problem is not solved…
bdring commented on Oct 14, 2022
Did you change the pull off for both motors on that axis?
ModuloFS commented on Oct 14, 2022
Yes
bdring commented on Oct 14, 2022
Show your current config file.
bdring commented on Oct 14, 2022
Just send the $axes/y command. That is enough
ModuloFS commented on Oct 14, 2022
ModuloFS commented on Oct 14, 2022
I have changed now also the stepstick config to the standard stepper config.
15 remaining items
ModuloFS commented on Oct 15, 2022
I figured out a new detail of the problem. The axis, which is not homing correctly has the right idle signal state, the other axes are inverted. With the following configuration file i geht the following signal states if the machine is not moving: X = high, Y1 = high Y2 = high, Z = low.
This stayes the same even after a power cycle.
bdring commented on Oct 15, 2022
You have a shared pin that controls idle state.
It is not a problem with the firmware.
ModuloFS commented on Oct 15, 2022
Now i erased the complete ESP and flashed it agian. Now i do not see any failures with homing and all step signals have the same idle state / polarity. But the idle state is still inverted, if i do not add :low or :high to the step pin the signal state it is HIGH if no stepper is moving and a step signal is done by pulling the pin low for 5 us. If i use :low after my step pin definition, the step signal is idle LOW and a step signal pulls the pin to high for 5us.
Now i have a new problem, if i jog the machine over 3000 mm/min i get short stops of the stepper during the movement…. I see it also in the step signals.
What has the disable pin to do with my step pins?
bdring commented on Oct 15, 2022
You said nothing about step pins…
“The axis, which is not homing correctly has the right idle signal state, the other axes are inverted”
I assumed you meant the disable signal, because that is controlled by the idle time.
There is no “idle state” signal.
Try using STA mode for the Wifi. The ESP32 AP mode is not good.
http://wiki.fluidnc.com/en/features/wifi_bt#wifi-ap-mode
ModuloFS commented on Oct 15, 2022
Ok, with idle state i meant the signal state if no step signal is generated or if the stepper ist not moving. Now am back at the old homing problem. Here is the way i got back:
I try STA mode now. If this not solves my problem i am at the end with my latin how we used to say in germany….
ModuloFS commented on Oct 15, 2022
After changing to STA mode and doing a power cycle, the homing worked again, but i get again short stops during a fast jogging movement over 3000mm/min.
Additional after the power cycle the polarity of the step signals agreed with the configuration. Because before, they where inverted i changed the config file back and power cycled the ESP.
After that, the polarity was again worng and the homing is again not working any more…..
So the change to the STA mode has changed nothing….
I am debugging this stuff the whole day now, with basically no solution, quite disappointing…
closed this as completedon Oct 15, 2022
ModuloFS commented on Oct 15, 2022
Why you closed the issue?
bdring commented on Oct 15, 2022
I thought you were done. You you want a refund?
ModuloFS commented on Oct 15, 2022
Yes, for today i am done. But maybe someone else has the same issue?
ModuloFS commented on Oct 15, 2022
By the way, when I said quite disappointing, I meant the situation of not to find the failure in general, not your support or the project! If thats what your question about a refund was about.
MitchBradley commented on Oct 16, 2022
The very large amount of noise on your scope traces worries me. I can think of several possibilities:
I do not know which – or any – of these problems pertain to your system. You showed us your schematic, but we haven’t seen your physical layout (PCB or otherwise), nor the overall wiring of the system (you just showed closeups, not the big picture).
ModuloFS commented on Oct 16, 2022
Yes, the noise on the scope comes from bad grounding point of the scope-probe in the circuit (long grounding lead picks up a lot fo noise from the stepper driver). But my behaviour is comming with the change of the firmware from 3.5.1 to 3.6.3 and i measure definetly wrong signal states comming out of the ESP so this has less to do with EMC problems.
I am currently rebuilding the circuit anyway (switching to a new spindle with vfd and 0-10V control) and maybe if i am ready i can do some better measurements. If i get more information i let you know.
Just a last question, if i change / update the firmware is it correct to run the follwoing scripts on windows to get a completely clean and new installation on the ESP:
Or is just the install-wifi.bat script needed?
mentioned this on Oct 16, 2022
ModuloFS commented on Oct 21, 2022
I flashed https://github.com/bdring/FluidNC/releases/tag/v3.6.4-pre1 and first tests showed no problems with homing now! The signal levels of the step signals are agree with the config file too!