Welcome! Log In Create A New Profile

Advanced

New main board and thermocouple board

Posted by caunyd 
New main board and thermocouple board
May 04, 2020 12:40AM
Hi guys. I’m upgrading my main board to an MKS Gen L V2.0 and I want to wire a Max31856 Thermocouple board to it. Here is a link to the MKS Gen L V2 Pinout:

[cdn11.bigcommerce.com]


The Max31856 can use both software SPI or hardware SPI. Looking at the board’s SPI pins, this is what I think the wiring should be for hardware SPI. I’m a rookie when it comes to electronics, so can you guys chime in on if my wiring is correct?


Max31856 Board MKS Gen L V2.0

Vin ------> any 5V pin
Grn ------> any ground pin
sck ------> D52
sdo ------> D50
sdi ------> D51
cs ------> D21


There are multiple possibilities for the CS pin to connect to based on the main board pinout. So how do I make sure that Marlin knows which pin is being used? Also, if I use software SPI, it says that I can use any 4 available pins. Similarly, how do I define the 4 pins that I choose so that Marlin is aware? I know it’s within pins_RAMPS.h and pins_MKS_GEN_L_V2.h but I don’t know how to define each pin.

Lastly, are there any other changes I need to make in Marlin to complete my thermocouple board installation? Thanks very much for your time!
Sorry, only registered users may post in this forum.

Click here to login