Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mks_robin_nano_v3.0 board map wrong AUXINPUT0_PORT selected #213

Open
calabr opened this issue Jan 23, 2025 · 3 comments
Open

mks_robin_nano_v3.0 board map wrong AUXINPUT0_PORT selected #213

calabr opened this issue Jan 23, 2025 · 3 comments

Comments

@calabr
Copy link

calabr commented Jan 23, 2025

Hi Terge,
Started to play with MKS robin nano v3.1 board found AUXINPUT0_PORT are configured to use GPIOG, which are not exists on this CPU.
As result, created by WebBuilder firmware mapping Safety door and Motor fault inputs to nowhere.
Most probable it's some copy-past error from different board map

mks_robin_nano_v3.0_map.h

[OPT:VNMSL,100,1024,5,0]
[AXS:5:XYZAB]
[NEWOPT:ENUMS,RT+,ES,MPG,SED,ODO,SD,YM]
[FIRMWARE:grblHAL]
[SIGNALS:HSEFP]
[NVS STORAGE:*EEPROM 4K]
[FREE MEMORY:81K]
[DRIVER:STM32F407]
[DRIVER VERSION:250118]
[BOARD:MKS ROBIN-NANO 3.0]
[AUX IO:0,1,0,0]
[PLUGIN:Bootloader Entry v0.02]
[PLUGIN:Trinamic v0.24]
[PLUGIN:KEYPAD v1.38]
[PLUGIN:Macro plugin v0.10]
[PLUGIN:Homing pulloff v0.01]
[PLUGIN:ODOMETERS v0.06]
[PLUGIN:SDCARD v1.19]
[PLUGIN:FS macro plugin v0.15]
ok
GrblHAL 1.1f ['$' or '$HELP' for help]
[PIN:PC1,Feed hold]
[PIN:PD9,Cycle start]
[PIN:PC0,Emergency stop]
[PIN:PG6,Motor fault]
[PIN:PC4,Probe]

It's also mapping the same pin for AUXOUTPUT1 and AUXOUTPUT4 and some other overlapping definitions

#define AUXOUTPUT1_PIN          1

#define AUXOUTPUT4_PORT         GPIOB // Coolant mist, HEAT1
#define AUXOUTPUT4_PIN          1

MOOR_UARTZ and MOTOR_UART3 are mapped to the same pin, MOTOR_UART5 are configured but board only supports 5 drivers in total
mks_robin_nano_v3.0_map

@calabr
Copy link
Author

calabr commented Jan 23, 2025

I'm trying to summarize board alignment from MKS documents and board mapping.
Problematic or not even mapping are highlighted yellow in this table
MKS Robin nano V3.1 port map

@terjeio
Copy link
Contributor

terjeio commented Jan 23, 2025

This is better? I do not have a board to verify with.

mks_robin_nano_v3.0_map.zip

@calabr
Copy link
Author

calabr commented Jan 24, 2025

This is better? I do not have a board to verify with.

mks_robin_nano_v3.0_map.zip

Thank you! it's looks much better.
MOT3 and MOT4 UART are crossed - should be:

#ifdef M3_AVAILABLE
#define MOTOR_UARTM3_PORT GPIOD
#define MOTOR_UARTM3_PIN 9
#endif

#ifdef M4_AVAILABLE
#define MOTOR_UARTM4_PORT GPIOD
#define MOTOR_UARTM4_PIN 8
#endif

#ifdef M3_AVAILABLE
#define MOTOR_CSM3_PORT GPIOD
#define MOTOR_CSM3_PIN 9
#endif

#ifdef M4_AVAILABLE
#define MOTOR_CSM4_PORT GPIOD
#define MOTOR_CSM4_PIN 8
#endif

I'll also propose different port and button allocation It will use more protected inputs for buttons, allow more free inputs :

PA13	SAFETY_DOOR			PW_DET
PA4	FEED_HOLD			MT_DET1
PE6	CYCLE_START			MT_DET2
PB2	RESET				PW_OFF
PA8	AUXOUTPUT1 (SPINDLE_DIRECTION)	BLTOUCH	
PC0	PROBE				TB 
PA2	AUXINPUT0 (motor_fault)		TH2	
PC1 	AUXINPUT1 - FREE		TH1	

power outputs: - move spindle PWM to most powerful output to allow connecting DC motors directly and logical output for the same port, direct connection of coolant DC motor or relay, reserve fan port for fan/vacuum etc. control

(PC14)	AUXOUTPUT5 - FREE reserved power out	FAN1 
(PB1)	AUXOUTPUT4 (COOLANT_MIST)		FAN2 
  High power outputs
PB0	AUXOUTPUT3 (COOLANT_FLOOD)		HE2/HE2-	
PE5	AUXOUTPUT2 (SPINDLE_ENABLE)		HE1/HE1-	
PA0	AUXOUTPUT0 (SPINDLE_PWM)		HB/HB-

It's also lots of ports still free on the board, but I'm only few days playing with board and cannot explore it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants