shielded cable

geostein8888
Messages : 68
Enregistré le : 03 déc. 2020 11:42

Re: shielded cable

Message par geostein8888 »

Hello,
i just got a new ESP32 module, programmed with 9600bd wifi deactivated, same problem like before.
Just for fun i put the boards back to the cnc, and it was running with connected motors now up to the end of the job, without hanging up. i will now check another job if this si still running also up to the end

Georg
mstrens
Messages : 2611
Enregistré le : 27 févr. 2018 12:58

Re: shielded cable

Message par mstrens »

Did you try the following combination
- do not use the GRBL board and keep STM32 not connected to CNC (drivers, 24V, ...)
- connect the ESP32 and STM32 with only 3 wires
- power ESP32 from PC using USB cable
- power STM32 from PC using STlink+USB
- put wires between Gnd and STM32 pins used for limit switch (or configure GRBL to use normally open switch)

If this does not work, the issue is on the ESP32 board.
geostein8888
Messages : 68
Enregistré le : 03 déc. 2020 11:42

Re: shielded cable

Message par geostein8888 »

Hello,
as i wrote yesterday, i changed already the ESP board. Is it possible that ia used the wrong source to compile the stm hex file? On your github site there are two different versions:

https://github.com/mstrens/grbl_controller_stm32
and
https://github.com/mstrens/grbl_6axis_on_stm32

what version should i use

for the ESP i used this version:
https://github.com/mstrens/grbl_controller_esp32

i will try today the thing only the stm and esp on a breadboard like you wrote yesterday

Georg
mstrens
Messages : 2611
Enregistré le : 27 févr. 2018 12:58

Re: shielded cable

Message par mstrens »

geostein8888 a écrit : 24 déc. 2020 07:03 Hello,
as i wrote yesterday, i changed already the ESP board. Is it possible that ia used the wrong source to compile the stm hex file? On your github site there are two different versions:

https://github.com/mstrens/grbl_controller_stm32
and
https://github.com/mstrens/grbl_6axis_on_stm32

what version should i use

for the ESP i used this version:
https://github.com/mstrens/grbl_controller_esp32

i will try today the thing only the stm and esp on a breadboard like you wrote yesterday

Georg
For GRBL (to be flashed on STM32), you have to use:
https://github.com/mstrens/grbl_6axis_on_stm32

For the TFT/ESP32, you have to use:
https://github.com/mstrens/grbl_controller_esp32

Note:
https://github.com/mstrens/grbl_controller_stm32 is a previous project where I used a STM32 to manage the TFT/SDCard.
As STM32 has no wifi, I changed afterwards for an ESP32.
mstrens
Messages : 2611
Enregistré le : 27 févr. 2018 12:58

Re: shielded cable

Message par mstrens »

geostein8888 a écrit : 24 déc. 2020 07:03 Hello,


i will try today the thing only the stm and esp on a breadboard like you wrote yesterday

Georg
Did you already try this?
geostein8888
Messages : 68
Enregistré le : 03 déc. 2020 11:42

Re: shielded cable

Message par geostein8888 »

i planned this for Sunday, after all this Christmas things. Do you have a pin description of the st32 for the end-switches, i will not break something more then it is already here.
i will also later try to add push-up resistors (3k3) for the rx/td lines

Georg
mstrens
Messages : 2611
Enregistré le : 27 févr. 2018 12:58

Re: shielded cable

Message par mstrens »

The pins on STM32 are assigned in a file cpu_map.h
Here what is used:
So it is PB12 to PB15

// Port A Port B
// 0 X_STEP_BIT SPINDLE_DIRECTION_BIT
// 1 X_DIRECTION_BIT SPINDLE_ENABLE_BIT
// 2 Y_STEP_BIT unconnected
// 3 Y_DIRECTION_BIT COOLANT_MIST_BIT
// 4 Z_STEP_BIT COOLANT_FLOOD_BIT
// 5 Z_DIRECTION_BIT CONTROL_RESET_BIT
// 6 Z_DIRECTION_BIT CONTROL_FEED_HOLD_BIT
// 7 A_STEP_BIT CONTROL_CYCLE_START_BIT
// 8 SPINDLE_PWM_BIT CONTROL_SAFETY_DOOR_BIT
// 9 UART1 PROBE
// 10 UART1 reserved for UART3 or C_LIMIT_BIT
// 11 usb reserved for UART3 or B_LIMIT_BIT
// 12 usb X_LIMIT_BIT
// 13 swd, possible to use for C_STEP_BIT Y_LIMIT_BIT
// 14 swd, possible to use for C_DIRECTION_BIT Z_LIMIT_BIT
// 15 STEPPERS_DISABLE_BIT A_LIMIT_BIT
Répondre