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

[BUG] (Secondary Serial Port Not Functional On MKS_GEN_L_V2 Board) #17436 #3

Closed
borland1 opened this issue Apr 10, 2020 · 0 comments
Closed

Comments

@borland1
Copy link

borland1 commented Apr 10, 2020

I have reported an issue (#17436) on github MarlinFirmware concerning an issue that turned out to be hardware limited. To resolve this issue, I needed to modify the PCB board before I could enable a the secondary serial port in Marlin 2.0 firmware.

Because on MKS_GEN_L_V2, AUX-1 is wired to same processor pins as the USB port, a secondary port is not available from AUX-1. Alternatively, I chose to use Arduino Mega Serial1 (UART1) as secondary port. Processor's UART1 is wired to limit switch signal wires of Z-MIN and Z-MAX connectors. Unfortunately, this did not work at first until I discovered I needed to de-solder pull-up resistors and capacitors for both Z-MIN and Z-MAX.

I removed the surface mounted decoupling capacitors C2 and C3. They are very small size ( 0603 SMD ). After removing R3, R5, C2 and C3, I was able to enable secondary serial port SERIAL_PORT_2.

There are still two 1K ohm resistors ( R4 and R6 ) between the Signal pins ( Z-, Z+ ) and their associated processor pins. From my limited testing, this does not appear to affect serial communications at 250,000 baud rate. Ideally, these resistors could be replaced with 0 ohm surface mounted ( 0603 SMD ) resistors, but it is much easier to just leave them as-is.

This also required remapping limit switch Z-MIN function to otherwise unused Y-MAX, with an additional #define line, in the Configuration.h file. This remapping simply overrides the pins definition in the pins_RAMPS.h file without having to modify the pins file.

Since the ATmega2560 processor has software enabled pull-up resistors, can you explain why the board has additional pull-up resistors?

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

1 participant