Closed IgorPack closed 2 years ago
Please paste your startup messages in a reply. Also, insert a photo of your electronics.
@IgorPack - I have the same hardware but checking my yml I use different pins as it was kind of a pain to find correct schematics for the shield and the esp32/arduino pin remapping:
Here's my config, your mileage may vary but it may help you:
axes:
shared_stepper_disable_pin: gpio.12:low
x:
steps_per_mm: 100
max_rate_mm_per_min: 6000
acceleration_mm_per_sec2: 200
max_travel_mm: 900
homing:
cycle: 2
mpos_mm: 10
positive_direction: false
motor0:
limit_all_pin: gpio.39:low:pu
stepstick:
direction_pin: gpio.16
step_pin: gpio.26
y:
steps_per_mm: 100
max_rate_mm_per_min: 6000
acceleration_mm_per_sec2: 200
max_travel_mm: 900
homing:
cycle: 2
mpos_mm: 10
positive_direction: false
motor0:
limit_all_pin: gpio.4:low:pu
stepstick:
direction_pin: gpio.27
step_pin: gpio.25
z:
steps_per_mm: 800
max_rate_mm_per_min: 2000
acceleration_mm_per_sec2: 25
max_travel_mm: 1000
homing:
cycle: 1
mpos_mm: 10
positive_direction: true
motor0:
limit_all_pin: gpio.35:low:pu
stepstick:
direction_pin: gpio.14
step_pin: gpio.17
OK, chron0, thanks for the advice, I'll try. Have a good New Year!
It looks like the problem was in the assignment of pins. Everything worked, the issue is closed, many thanks and good luck in projects to everyone who responded. Special thanks to Bard for everything he does.
@IgorPack - I have the same hardware but checking my yml I use different pins as it was kind of a pain to find correct schematics for the shield and the esp32/arduino pin remapping:
Here's my config, your mileage may vary but it may help you:
axes: shared_stepper_disable_pin: gpio.12:low x: steps_per_mm: 100 max_rate_mm_per_min: 6000 acceleration_mm_per_sec2: 200 max_travel_mm: 900 homing: cycle: 2 mpos_mm: 10 positive_direction: false motor0: limit_all_pin: gpio.39:low:pu stepstick: direction_pin: gpio.16 step_pin: gpio.26 y: steps_per_mm: 100 max_rate_mm_per_min: 6000 acceleration_mm_per_sec2: 200 max_travel_mm: 900 homing: cycle: 2 mpos_mm: 10 positive_direction: false motor0: limit_all_pin: gpio.4:low:pu stepstick: direction_pin: gpio.27 step_pin: gpio.25 z: steps_per_mm: 800 max_rate_mm_per_min: 2000 acceleration_mm_per_sec2: 25 max_travel_mm: 1000 homing: cycle: 1 mpos_mm: 10 positive_direction: true motor0: limit_all_pin: gpio.35:low:pu stepstick: direction_pin: gpio.14 step_pin: gpio.17
Hi. I have the same hardware as you. Espduino with cnc shield. I have use you settings. I have one problem I can’t get the laser to work with ttl. Can you help me?
I had issues with that too, because the pins on the cncshield were mapped to pins on the esp32 which werent suitable for pwm. I've chosen these ones now:
Laser:
pwm_freq: 5000
output_pin: gpio.32
enable_pin: gpio.33
direction_pin: NO_PIN
disable_with_s0: false
s0_with_disable: true
tool: 100
speed_map: 0=0.000% 1000=100.000%
so you wont be using the pins labeled on the cncshield but the pins on the espduino directly. This one gives me good PWM.
I had issues with that too, because the pins on the cncshield were mapped to pins on the esp32 which werent suitable for pwm. I've chosen these ones now:
Laser: pwm_freq: 5000 output_pin: gpio.32 enable_pin: gpio.33 direction_pin: NO_PIN disable_with_s0: false s0_with_disable: true tool: 100 speed_map: 0=0.000% 1000=100.000%
so you wont be using the pins labeled on the cncshield but the pins on the espduino directly. This one gives me good PWM.
Ok tnx for the fast answer. I will try them as soon as I get home. Tnx
OK laser is working now but I have 2 problems. When the CNC shield is installed I can't connect via WiFi, only if I remove it I can connect. And I can't get axis to move. I have a4988 drivers in sixteenths steps. Can you share your full config?
name: "Cutt3r Ghetto Controller V1"
board: "Cutt3r Ghetto Controller V1"
kinematics:
corexy:
stepping:
engine: RMT
idle_ms: 250
dir_delay_us: 1
pulse_us: 2
disable_delay_us: 0
axes:
shared_stepper_disable_pin: gpio.12:low
x:
steps_per_mm: 100
max_rate_mm_per_min: 6000
acceleration_mm_per_sec2: 200
max_travel_mm: 900
homing:
cycle: 2
mpos_mm: 10
positive_direction: false
motor0:
limit_all_pin: gpio.39:low:pu
stepstick:
direction_pin: gpio.16
step_pin: gpio.26
y:
steps_per_mm: 100
max_rate_mm_per_min: 6000
acceleration_mm_per_sec2: 200
max_travel_mm: 900
homing:
cycle: 2
mpos_mm: 10
positive_direction: false
motor0:
limit_all_pin: gpio.4:low:pu
stepstick:
direction_pin: gpio.27
step_pin: gpio.25
z:
steps_per_mm: 800
max_rate_mm_per_min: 2000
acceleration_mm_per_sec2: 25
max_travel_mm: 1000
homing:
cycle: 1
mpos_mm: 10
positive_direction: true
motor0:
limit_all_pin: gpio.35:low:pu
stepstick:
direction_pin: gpio.14
step_pin: gpio.17
spi:
miso_pin: gpio.19
mosi_pin: gpio.23
sck_pin: gpio.18
sdcard:
cs_pin: gpio.5
card_detect_pin: NO_PIN
coolant:
flood_pin: gpio.36
mist_pin: gpio.34
Laser:
pwm_freq: 5000
output_pin: gpio.32
enable_pin: gpio.33
direction_pin: NO_PIN
disable_with_s0: false
s0_with_disable: true
tool: 100
speed_map: 0=0.000% 1000=100.000%
name: "Cutt3r Ghetto Controller V1" board: "Cutt3r Ghetto Controller V1" kinematics: corexy: stepping: engine: RMT idle_ms: 250 dir_delay_us: 1 pulse_us: 2 disable_delay_us: 0 axes: shared_stepper_disable_pin: gpio.12:low x: steps_per_mm: 100 max_rate_mm_per_min: 6000 acceleration_mm_per_sec2: 200 max_travel_mm: 900 homing: cycle: 2 mpos_mm: 10 positive_direction: false motor0: limit_all_pin: gpio.39:low:pu stepstick: direction_pin: gpio.16 step_pin: gpio.26 y: steps_per_mm: 100 max_rate_mm_per_min: 6000 acceleration_mm_per_sec2: 200 max_travel_mm: 900 homing: cycle: 2 mpos_mm: 10 positive_direction: false motor0: limit_all_pin: gpio.4:low:pu stepstick: direction_pin: gpio.27 step_pin: gpio.25 z: steps_per_mm: 800 max_rate_mm_per_min: 2000 acceleration_mm_per_sec2: 25 max_travel_mm: 1000 homing: cycle: 1 mpos_mm: 10 positive_direction: true motor0: limit_all_pin: gpio.35:low:pu stepstick: direction_pin: gpio.14 step_pin: gpio.17 spi: miso_pin: gpio.19 mosi_pin: gpio.23 sck_pin: gpio.18 sdcard: cs_pin: gpio.5 card_detect_pin: NO_PIN coolant: flood_pin: gpio.36 mist_pin: gpio.34 Laser: pwm_freq: 5000 output_pin: gpio.32 enable_pin: gpio.33 direction_pin: NO_PIN disable_with_s0: false s0_with_disable: true tool: 100 speed_map: 0=0.000% 1000=100.000%
Tnx for the share. i found my problem i changed the "shared_stepper_disable_pin: gpio.12:low" to "shared_stepper_disable_pin: gpio.12" and now i have movement and laser control. tnx very much for the help.
Fixed (thanks Bart!).
Installed FluidNC 3.2.8 firmware, Wemos D1 R32 ESP32 board (ESPDUINO-32 HW -729), wifi and WebUI starts instantly. Everything is fine! When connecting motors (NEMA23 2.8A) and connecting (top) with CNC Shield v3.0, the X axis moves normally in only one direction, when I try to return it in the opposite direction, the axis moves in the original direction. The Y and Z axes do not react at all. Changing the pins on the X-axis from the Y-axis and vice versa does not change anything. Perhaps this is due to a different pinout on the CNC Shield v3.0.
I'm new to this and did't find any available instructions on how to check and configure it. Can someone tell me how to set up the car correctly?
I would be grateful for any help.
Thanks.