-
Notifications
You must be signed in to change notification settings - Fork 222
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
[GUIDE] to using PT100 or PT1000 or Thermocouples with SKR PRO V1.x boards or GTR V1.0 boards #179
Comments
HOW TO SETUP MAX31865 TO HEATED BED.... |
I already followed the guide and it was success on my heater_0....but now i want to set for my heatbed using the ultimaker pt100 bed....any guide to do using max31865??..... |
@arcmal22 What MCU board are you using? I am assuming you are using an SKR PRO V1.1, Please zip up your Marlin folder (ensure you include the platformio.ini file) and place the zipped folder on you free google drive. Turn on the share link for the zipped folder on your google drive and place that link here so I can download your Marlin firmware. This will give me the ability to look at how you are trying to set the MAX31865 up. Then I can investigate how to use a PT100 on the HEATED BED. |
@arcmal22 from looking at the Marlin firmware code, using a MAX31865 on the Heated bed (TEMP_SENSOR_BED set to -5) is NOT an option with Marlin firmware at this time. If you want this option please put in a request for a new feature. |
GadgetAngel, I am using SKR MINI E2 V1.2 and BIGTREE_TFT24_V1_1. Can I use your SKR MINI E3 V2.0 diagram to connect the MAX31865? What will I need to change in your settings? |
@fox631 let me take a look at the SKR MINI E2 V1.2 and the TFT24 V1.1 and see if I can find a way to do it. I will get back to you. |
Okay, thank you, I'll be waiting. |
@fox631 Here is the diagram: Here is a link to my google drive which has the diagram at the highest resolution: https://drive.google.com/file/d/1N-hZbQFYBljPhR0FeSUBp3NPB6rK9hTL/view?usp=sharing |
GadgetAngel, thanks for the diagram. When I compile the firmware for the software SPI, I get the error: He does not like the file Marlin \ src \ libs \ softspi.h, this line: I used Marlin_bugfix_2.0.x firmware |
@fox631 Please take your Marlin folder and place it in a zip file by using winzip or your OS' zip utility. Ensure that the platformio.ini file is included in the Marlin folder. Upload the zipped Marlin folder onto your free google drive. Ensure that you turn on "Shared Link" for the zipped Marlin folder on your google drive. Place the link here in this thread. This way I can download your Marlin folder and try to compile from your source code and see the problem you are talking about |
@fox631 You found a bug in Marlin, please report it here: https://github.com/MarlinFirmware/Marlin/issues I have already reported enough problems with the MAX31865 code, so please you need to report the issue. Just tell them like you told me in the write up. You can also point to this thread. But I confirm that your problem is a bug in the code. Did you try downgrading? Try using the release branch of Marlin to see if the issue is still there. If the issue is not there add that to your bug report EDIT: I try it with Release Version for Marlin and the problem is there too. Put in a Bug report |
GadgetAngel Thanks for the answer. I will report a bug. I will try all the options. If this is Marlene's mistake, then there is no need to send the firmware? |
No no need to place your zip file on your google drive. I have another idea I am investigating. Let me check it out. I may have a work-around. Have you reported the bug yet? |
@fox631 Please report the bug here: https://github.com/MarlinFirmware/Marlin/issues EDITED: Here is a work-around that solves your problem! You will need to update the configuration for your specific printer. I did the configuration for my Ender 3 Pro. The work-a-round is to use my Pull Request (MarlinFirmware/Marlin#20447) branch of Marlin. Here is how you do that:
You can read about the PR (pull request) here: MarlinFirmware/Marlin#20447 The branch you downloaded is equal to the Marlin bugfix-2.0.x branch as of today. I will be able to update this branch automatically, everyday, like I can with my PR. This branch will allow you to get the printer up and running with a PT100/MAX31865 on the SKR MINI E3 board. Like I said this has all the additional bugfix-2.0.x branch stuff as of today. If Marlin breaks my PR, I will still keep this "snap shot branch" (https://github.com/GadgetAngel/Marlin-Fix-Temperature-Issues-bugfix-branch/tree/SKR-MINI-E3-V1.2-fix) branch on my repository which is a snap shot of the bugfix-2.0.x branch with my PR as of today. That way I can roll back to the snap-shot branch if I need to. I compiled this branch (https://github.com/GadgetAngel/Marlin/tree/SKR-MINI-E3-V1.2-fix) on my computer today and it did not get any errors. I hope this helps. |
|
@GadgetAngel, I did it. The sensor is working. I made a software connection, according to your diagram, and with your firmware "Marlin-SKR-MINI-E3-V1.2-fix". For some reason, the firmware turned out to be 164kb in size. When I compiled with Marlin 2.0.7.2, the size was 251kb. Also, I had to disable BABYSTEP_ZPROBE_GFX_OVERLAY and LCD_BED_LEVELING in the configuration files. Doesn't compile with them when #define CR10_STOCKDISPLAY is commented out. |
👍🏻 @fox631 If you want to use hardware SPI, then you can go ahead and use the EXP1 port and TFT port. you will have to find another free digital I/O line that does not have a pull up resistor. I think PWR-DET is available. Please keep in mind that hardware spi uses the same lines as your micro-SD card reader. So always remove the power and ground from the MAX31865 board (or put in a switch to disconnect the lines) when you use the micro-SD card for reading or writing. Like when you do a firmware upgrade. Glad I was able to help. |
@GadgetAngel, thank you very much for your help, I could not have done it without you. I will try hardware SPI later, and post the results. About the micro-SD card with hardware SPI, I remember. I don't need it for printing, there is a micro-SD slot on the display. The main thing is not to forget about it while flashing the board. Best wishes to you. |
Good afternoon. Which option is better to use for the MAX6675 with SKR PRO 1.2, and is there even such an option for the MAX6675 with K-type? I hardly understand programming yet |
There is an option to use the MAX6675 I can do a GUIDE but I will need at least a week before I can start to work on the GUIDE due to other responsibilities. I will do one similar GUIDE like I did on the MAX31865 board. I will use the SKR PRO V1.2 board and the MAX6675 with K-Type Thermocouple. I will let you know when it is done. I will publish it on my github repository found : https://github.com/GadgetAngel |
Hey @GadgetAngel, great comprehensive guide. I am looking at integrating PT100+MAX31865 using software SPI on the SKR E3 TURBO. I have a few questions I hope you can help me with:
|
Yes, the reason most PINS are considered NOT "free and available" is because they have a pull-up resistor tied to it. A pull-up resistor will interfere with the PIN's signal when using it for software SPI. P1.24 has a pull-up resistor. The second reason most PINS are considered NOT "free and available" is because they the PIN'S "Output is open-drain". P0.27 and P0.28 are both "Output is open-drain". See the Datasheet on LPC1769: https://www.nxp.com/docs/en/data-sheet/LPC1769_68_67_66_65_64_63.pdf. See page 11 of the datasheet. |
Thank you @GadgetAngel! This is super helpful |
As shown on my Colored PIN Diagram (https://github.com/GadgetAngel/SKR-PRO-V1.2-Stepper-Driver-Jumper-Configuration-Manual/blob/master/CURRENT-Manual/HD-Diagrams/SKR_PRO_V1.2_Colored_PIN_Diagram_300ppi.pdf) the PINS on the SPI header you mentioned are the SPI pins used by the stepper motor drivers. If you do not have any stepper motor drivers in SPI mode (in other words, all stepper motor drivers are set for UART mode) you could try to use them but if you EVER decide to use just one stepper motor drivers in SPI mode then you will cause a conflict on the stepper motor driver SPI pins. The Stepper motor drivers' SPI PINS CAN NOT BE SHARED with other peripherals when the stepper motor drivers are using the SPI PINS (or stepper drivers are set to run in SPI mode). |
@GadgetAngel I don't ever plan to use SPI mode for the steppers, but I guess I will go the Extension 2 route. Thanks for your help. |
Thanks for this great write-up, very much appreciated! Hope you can help, thanks again. |
I think this is what you are looking for. I found these pins defined in the PINS file "pins_BTT_GTR_V1_0.h" of the current bugfix2.0.x branch of Marlin firmware (https://github.com/MarlinFirmware/Marlin/tree/bugfix-2.0.x): This is how Marlin defines the built in MAX31855 chip of the GTR 1.0 board. CLK PIN of the built in MAX31855 = PI1 Here are two other places that also indicate that these are the correct PINS for the MAX31855 chip on the GTR board:
|
GUIDE:
If you have only one hotend then you can have the following:
If you have two hotends then you can have the following:
Examples of this are:
- PT100 (uses table 20 or 21) on E0 and Thermocouple (-4 - use pure analog pin) on E1
- Thermocouple (-4 [pure analog I/O pin]) on E0 and PT100 (uses table 20 or 21) on E1
- PT1000 (uses table 1047) on E0 and PT100 (uses table 20 or 21) on E1
- too many to enumerate (etc.)
If you have two hot-ends then you CAN NOT have the following:
*** If you only have ONE PT100 (or PT1000 or Thermocouple) on your printer and you have two hotends then in Marlin you
must use TEMP_SENSOR_0 as the PT100 (or PT1000 or Thermocouple) even if you have the PT100 (or PT1000 or Thermocouple) hooked up to the second extruder. Just override your PIN definitions to have TEMP_0_PIN point to where the PT100 (or PT1000 or Thermocouple) is located.
REPRAP_DISCOUNT_SMART_CONTROLLER
in the pins-file for thesoftware SPI pins names
:The EXP1 and EXP2 ports are used for display screens. EXP2 contains a HARDWARE SPI bus while EXP1 contains a Software SPI bus. The EXP2 hardware SPI bus signal names are obvious in the pins-file but the EXP1 software SPI bus signal names are NOT obvious. Here is the EXP1 software SPI bus signal names used in pins-file with their corresponding SPI software functions:
-- For SKR PRO V1.1/V1.2, SKR V1.3/V1.4/V1.4 Turbo, GTR V1.0, M5 V1.0 all use 3.3 VDC as the ADC reference voltage for the MCU. Therefore use table 20 when the PT100/PT1000 Amplifier board is powered by 3.3VDC
-- The E3D PT100 Amplifier board wants 5V as its power supply. But the GTR V1.0 (like the SKR PRO) uses 3.3V as the ADC reference voltage for the MCU. If you use 5VDC power to the PT100 amplifier board, the amplifier can output a maximum signal with 5VDC. To protect the GTR V1.0 board (or the SKR PRO board), use a 3.6V Zener Diode (reverse biased hookup) between the output signal of the amplifier board and ground (to protect the MCU from getting fried from a 5V input).
On the GTR V1.0 board, here is a list of PINS that you will need to prevent negative current injection. We prevent negative current from flowing into the MCU by using a Schottky diode between the output signal of the amplifier board and ground. I do this as preventive measure. It protects the MCU from getting fried.
The below wiring diagram for PT100 using Analog ADC input using 5V DC for the E3D's PT100 amplifier board but the MCU board (GTR V1.0) uses 3.3 VDC ADC reference voltage, therefore the Thermistor table to use for this is Table 21:
The below wiring diagram is for PT100 using Analog ADC input using 5V DC for the E3D's PT100 amplifier board but the MCU board (SKR MINI E3 V2.0) uses 3.3 VDC ADC reference voltage, therefore the Thermistor table to use for this is Table 21:
The below wiring diagram for PT100 using Analog ADC input using 3.3 VDC for the E3D's PT100 amplifier board but the MCU board (GTR V1.0 board) uses 3.3 VDC ADC reference voltage, therefore the Thermistor table to use for this is Table 20 (see the process data sheet and you will find that PF10 need protection against negative current injection,https://www.st.com/resource/en/datasheet/stm32f407ig.pdf#page=114):
The below wiring diagram is for PT100 using Analog ADC input using 3.3V DC for the E3D's PT100 amplifier board but the MCU board (SKR MINI E3 V2.0) uses 3.3 VDC ADC reference voltage, therefore the Thermistor table to use for this is Table 20:
The information contained in [1, 4-14] are for the Adafruit MAX31865 board (PT100/PT100 sensors)
4A. For Marlin 2.0.7.1 or earlier versions of Marlin: If you want to use the Adafruit MAX31865 board with a PT100, you MUST correct the calibration resistor value that Marlin uses in temperature.cpp as follows:
If you search in temperature.cpp for the string "max31865.temperature(", there are ONLY two places in temperature.cpp that will be found:
Original is:
max31865.temperature(100, 400) // 100 ohms = PT100 resistance. 400 ohms = calibration resistor
CHANGE TO:
max31865.temperature(100, 430) // 100 ohms = PT100 resistance. 400 ohms = calibration resistor
4B. For Marlin 2.0.7.2: If you want to use the Adafruit MAX31865 boards with a PT100, you MUST use the Marlin variables in the configuration.h file to adjust the sensor resistance ohm value and calibration resistance ohm value as shown below. If they are not present in configuration.h file then you will need to add the two statements below to configuration.h file. Use the Marlin variables instead of making the change in the Marlin software in temperature.cpp as stated in 4A.
In configuration.h file:
4C. For Marlin bugfix-2.0.x branch or later versions of Marlin: If you want to use the Adafruit MAX31865 boards with a PT100, you MUST use the Marlin variables in the configuration.h file to adjust the sensor resistance ohm value and calibration resistance ohm value as shown below. Use the Marlin variables instead of making the changes in the Marlin software in temperature.cpp as stated in 4A. If you only have one (1) Adafruit MAX31865 board than use the Marlin variable MAX31865_SENSOR_OHMS_0 and Marlin variable MAX31865_CALIBRATION_OHMS_0 only (disable MAX31865_SENSOR_OHMS_1 and disable MAX31865_CALIBRATION_OHMS_1). If you have two (2) Adafruit MAX31865 boards then enable all four Marlin variables: MAX31865_SENSOR_OHMS_0, MAX31865_CALIBRATION_OHMS_0, MAX31865_SENSOR_OHMS_1, and MAX31865_CALIBRATION_OHMS_1.
In configuration.h file:
5A. For Marlin 2.0.7.1 or earlier versions of Marlin: If you want to use the Adafruit MAX31865 board with a PT1000, you MUST correct the resistor values that Marlin uses in temperature.cpp as follows:
If you search in temperature.cpp for the string "max31865.temperature(", there are ONLY two places in temperature.cpp that will be found:
Original is:
max31865.temperature(100, 400) // 100 ohms = PT100 resistance. 400 ohms = calibration resistor
CHANGE TO:
max31865.temperature(1000, 4300) // 100 ohms = PT100 resistance. 400 ohms = calibration resistor
5B. For Marlin 2.0.7.2: If you want to use the Adafruit MAX31865 boards with a PT1000, you MUST use the Marlin variables in the configuration.h file to adjust the sensor resistance ohm value and calibration resistance ohm value as shown below. If they are not present in configuration.h file then you will need to add the two statements below to configuration.h file. Use the Marlin variables instead of making the change in the Marlin software in temperature.cpp as stated in 5A.
In configuration.h file:
5C. For Marlin bugfix-2.0.x branch or later versions of Marlin: If you want to use the Adafruit MAX31865 boards with a PT1000, you MUST use the Marlin variables in the configuration.h file to adjust the sensor resistance ohm value and calibration resistance ohm value as shown below. Use the Marlin variables instead of making the changes in the Marlin software in temperature.cpp as stated in 5A. If you only have one (1) Adafruit MAX31865 board than use the Marlin variable MAX31865_SENSOR_OHMS_0 and Marlin variable MAX31865_CALIBRATION_OHMS_0 only (disable MAX31865_SENSOR_OHMS_1 and disable MAX31865_CALIBRATION_OHMS_1). If you have two (2) Adafruit MAX31865 boards then enable all four Marlin variables: MAX31865_SENSOR_OHMS_0, MAX31865_CALIBRATION_OHMS_0, MAX31865_SENSOR_OHMS_1, and MAX31865_CALIBRATION_OHMS_1.
In configuration.h file:
Do the following to prepare the Adafruit MAX31865 board correctly:
You need to solder two bridges on the MAX31865 board. Marlin will only read an RTD which have 2-Wire configuration. (https://voron.dozuki.com/Guide/How+to+Use+a+Pt100+Thermistor+w-+Skr+Boards/73?lang=en). Ensure your PT100 is hooked to the middle two terminals.
Check that in platformio.ini file the following line exists in [common] under
lib_deps =
and feature dependencies[features]
:MAX6675_IS_MAX31865 = Adafruit MAX31865 library@~1.1.0
If you want to use PT100 temperature sensor with the Adafruit MAX31865 over SPI you have two options:
A. Software SPI (where the MCU performs the handshake in software)
B. Hardware SPI (where the MCU performs the handshake with hardware interrupts).
If you want to use the Hardware SPI for Adafruit MAX31865, then you have to know which SPI bus on the MCU board is the default hardware SPI bus (SPI Bus 1 or SPI Bus 2) due to the fact that the Adafruit MAX31865 Library will default to this bus (Adafruit MAX31865 library does not expose the bus number, so it just defaults).
11A. How to determine the default hardware SPI bus for a the SKR boards:
To determine the default hardware SPI bus for BTT SKR boards, look at the following Marlin variable:
In the pins-file (Marlin\src\pins) for the board, look for the following Marlin variables:
and in configuration.h file:
and in configuratio_adv.h file:
Below is a table indicates the default hardware SPI bus for the BTT SKR series of boards:
Some board's also have an additional file to check. In Marlin/buildroot/share/PlatformIO/variants/[board name]/variant.h file look for the following Marlin variables:
If the board has both a variant.h file and a pins-file than Marlin first reads the variant.h file and then reads the pins-file. Therefore, the pins-file can override the default hardware SPI bus that the variant.h file defines.
For example the SKR PRO V1.1 board, has two files to look through (variant.h and pins_BTT_SKR_PRO_common.h).
The GTR V1.0 board has both files to look through. Let us look at an example. The GTR V1.0 board has the variant.h file which contains the following:
For the GTR V1.0 board the pins_BTT_GTR_V1_0.h contains the following:
Notice that for the GTR V1.0 board and SDSUPPORT enabled in configuration.h file, when Marlin executes, it will first set the default hardware SPI bus number to SPI2 due to the fact that the variables in variant.h get read in first. Then the file pins_BTT_GTR_V1_0.h gets read and it changes the default hardware SPI bus to SPI1. This is due to the Marlin variable "CUSTOM_SPI_PINS" and SDSUPPORT being enabled in configuration.h file, which is used to override the variant.h file SPI Marlin variables.
Additional Equipment that maybe necessary to obtain HARDWARE SPI for Adafruit MAX31865
11B. As stated in the above table for default hardware SPI bus you might need additional equipment to tap into the default hardware SPI lines. This section provides you links to find the extra equipment.
If you need to tap into the EXP2 flat ribbon cable use:
https://www.digikey.com/product-detail/en/te-connectivity-amp-connectors/1658622-1/AKC10B-ND/825411
Orient the clamp on connector so that it is in the same orientation as the one already installed on the end of the flat ribbon cable that gets plugged into the EXP2 socket of the MCU board. This way you will be able to keep straight which PINs are which. I oriented mine to be upside down just like the connector that is already on the end that plugs into the EXP2 socket of the MCU board.
If you need to tap into the SD card reader ONBOARD the MCU board then use:
JSER Micro SD TF Memory Card Kit Male to Female Extension Adapter (https://www.amazon.com/gp/product/B071DKCK47/) You will have to solder on three wires to the locations shown below and it only costs $4.00 on Amazon.com:
I have also used BIGTREETECH's Module BTT TF Cloud V1.0 SD Cloud Wireless Transmission Module (https://www.biqu.equipment/products/bigtreetech-module-btt-tf-cloud-v1-0-sd-cloud-wireless-transmission-module) and tapped into the SPI lines of the onboard ESP-12S chip. But, while the chip boots up and is plugged into the MCU board the MCU board will indicate a "ERROR: MAX TEMP on E1" and halt the printer. If you hit the MCU board's reset button the next time the MCU boots the TF cloud device might boot first or may not boot first. If the MCU boot first than you will get the MAX TEMP error again.
I decided that this was not worth the hassle so I went with the JSER's "Micro SD TF Memory Card Kit Male to Female Extension Adapter" instead. BTW, the JSER item only costs $4.00 US dollars on amzon.com. So get a couple, in case you can not get the wires attached on the first try.
HARDWARE SPI for Adafruit MAX31865
++++++++++++++++++++++++++++++++EXAMPLE 1+++++++++++++++++++++++++++++++++++
To setup Marlin on GTR V1.0 board for Adafruit MAX31865 and Hardware SPI, do the following in pins_BTT_GTR_V1_0.h :
In configuration.h:
AND {
For Marlin 2.0.7.1 or earlier version of Marlin:
you have to change the code in temperature.cpp module as stated in 4A above.
OR
For Marlin 2.0.7.2 versions:
ENABLE the following in configuration.h file or ADD the following lines to configuration.h file:
OR
For Marlin bugfix-2.0.x version or later versions of Marlin:
ENABLE the following in configuration.h file:
}
Here is the wiring diagram for the Adafruit MAX31865 with PT100 via Hardware SPI on GTR V1.0 board. To access the Hardware SPI lines for the GTR V1.0 board use a Micro SD Card Extension Adapter and hack the pins off the Adapter (https://www.amazon.com/gp/product/B071DKCK47/) and the Adapter only cost $4.00 US dollars. Now all you need is one free I/O pin to specify the Chip Select for the MAX31865. Again, the GTR V10 board uses the SD Card readers SPI lines as the default hardware SPI when
SDSUPPORT
is enabled in configuration.h file AND whileSDCARD_CONNECTION ONBOARD
is defined in pins_BTT_GTR_V1_0.h file. Otherwise, tap into the EXP2 SPI lines.++++++++++++++++++++++++++++++++EXAMPLE 2+++++++++++++++++++++++++++++++++++
For SKR PRO V1.1/V1.2 MCU board you would have to tap into the hardware SPI lines via the EXP2 connector.
To setup Marlin for Adafruit MAX31865 and Hardware SPI, on SKR PRO V1.1/V1.2 board do the following in pins_BTT_SKR_PRO_common.h:
In configuration.h:
AND {
For Marlin 2.0.7.1 or earlier version of Marlin:
you have to change the code in temperature.cpp module as stated in 4A above.
OR
For Marlin 2.0.7.2:
ENABLE the following in configuration.h file or ADD the following lines to configuration.h file:
OR
For Marlin bugfix-2.0.x version or later versions of Marlin:
ENABLE the following in configuration.h file:
}
Here is the wiring diagram for the Adafruit MAX31865 with PT100 via Hardware SPI on the SKR PRO V1.1/V1.2 board:
If you have 2 (two) Adafruit MAX31865 (for PT100/PT1000) boards you want to wire up to your 3D Printer, this is now been fixed in Marlin bugfix-2.0.x branch. So the release branch of Marlin 2.0.7.2 DOES NOT allow two Adafruit MAX31865 boards to work properly BUT the bugfix-2.0.x branch has fixed the issue. I am sure Marlin 2.0.7.3 will also fix the issue.
Below is a sample of how to get TWO PT100s in Hardware SPI to work on SKR PRO V1.1/v1.2 board by using TWO Adafruit MAX31865 boards , make the following changes in pins_BTT_SKR_PRO_common.h:
In configuration.h:
AND {
For Marlin 2.0.7.1 or earlier version of Marlin:
you have to change the code in temperature.cpp module as stated in 4A above.
OR
For Marlin 2.0.7.2:
ENABLE the following in configuration.h file or ADD the following lines to configuration.h file:
OR
For Marlin bugfix-2.0.x version or later versions of Marlin:
ENABLE the following in configuration.h file:
}
Here is the wiring diagram for the above example [number 13] (for 2 PT100s with 2 MAX31865 in Hardware SPI mode):
Software SPI for Adafruit MAX31865 board
++++++++++++++++++++++++++++++EXAMPLE1+++++++++++++++++++++++++++++
Below is a example of how to get Software SPI to work on SKR PRO V1.1/V1.2 for Adafruit MAX31865 (PT100 sensor), make the following changes in pins_BTT_SKR_PRO_common.h:
In configuration.h:
set TEMP_SENSOR_0 to -5
. If you have a second MAX31865 board then addset TEMP_SENSOR_1 to -5
AND {
For Marlin 2.0.7.1 or earlier version of Marlin:
you have to change the code in temperature.cpp module as stated in 4A above.
OR
For Marlin 2.0.7.2:
ENABLE the following in configuration.h file or ADD the following lines to configuration.h file:
OR
For Marlin bugfix-2.0.x version or later versions of Marlin:
ENABLE the following in configuration.h file:
}
Here is a wiring diagram for a PT100 sensor with an Adafruit MAX31865 using Software SPI:
14.++++++++++++++++++++++++++++++EXAMPLE 1+++++++++++++++++++++++++++++
14.++++++++++++++++++++++++++++++EXAMPLE 2+++++++++++++++++++++++++++++
Here are two wiring diagrams for a PT100 sensor with an Adafruit MAX31865 using Software SPI or Hardware SPI for SKR MINI E3 V2.0 board. The PINS in the YELLLOW boxes are what I call "available and free" I/O PINS that you, as a Marlin User, can controller (you can use these pins for MOSI, MISO, SCK, or CS when performing Software SPI; or you can use these pins for CS when performing Hardware SPI) :
Here is the sharable link to the above two diagrams for the SKR MINI E3 V2.0 (from my google drive with Highest resolution): https://drive.google.com/file/d/1bxzppVMYMMVOKphN8VXloUyU29sKJNim/view?usp=sharing
14.++++++++++++++++++++++++++++++EXAMPLE 3+++++++++++++++++++++++++++++
Here are two wiring diagrams for a PT100 sensor with an Adafruit MAX31865 using Software SPI or Hardware SPI for SKR E3 TURBO board. The PINS in the YELLLOW boxes are what I call "available and free" I/O PINS that you, as a Marlin User, can controller (you can use these pins for MOSI, MISO, SCK, or CS when performing Software SPI; or you can use these pins for CS when performing Hardware SPI) :
Here is the sharable link to the above two diagrams for the SKR E3 TURBO (from my google drive with Highest resolution):
https://drive.google.com/file/d/14lYGDR4BFCD9Fpatdr7AAuQ9NlWYb1SU/view?usp=sharing
14.++++++++++++++++++++++++++++++EXAMPLE 4+++++++++++++++++++++++++++++
Here are two wiring diagrams for a PT100 sensor with an Adafruit MAX31865 using Software SPI or Hardware SPI for SKR MINI E3 V1.2 board. The PINS in the YELLLOW boxes are what I call "available and free" Digital I/O PINS that you, as a Marlin User, can control (you can use these pins for MOSI, MISO, SCK, or CS when performing Software SPI; or you can use these pins for CS when performing Hardware SPI) :
Here is the sharable link to the above two diagrams for the SKR MINI E3 V1.2 (from my google drive with Highest resolution): https://drive.google.com/file/d/1N-hZbQFYBljPhR0FeSUBp3NPB6rK9hTL/view?usp=sharing
The information in [1, 11, 15-20] are for the MAX31855 board (thermocouples)
A. Software SPI (where the MCU performs the handshake in software)
B. Hardware SPI (where the MCU performs the handshake with hardware interrupts).
Hardware SPI for MAX31855 board (Thermocouple)
To access the hardware SPI lines for the GTR V1.0 board use Bigtreetech's TF cloud device and hack the pins off the ESP12-S chip (https://www.amazon.com/BIGTREETECH-Direct-Wireless-Transmission-Motherboard/dp/B088WB5L8R). Now all you need is one free I/O pin to specify the Chip Select for the MAX31855.
+++++++++++++++++++++++++++++++++++++EXAMPLE++++++++++++++++++++++++++++++++++++
Below is a example of how to get Hardware SPI to work on SKR PRO V1.1/V1.2 for MAX31855 (thermocouple sensor), make the following changes in pins_BTT_SKR_PRO_common.h:
In configuration.h:
In this example let us use the SKR PRO V1.1/V1.2 board as the MCU board. We want two MAX31855 boards to use hardware SPI for the two thermocouples. Here is how you would setup Marlin:
In configuration.h:
Here is a wiring diagram [number 18] for two MAX31855 boards in hardware SPI for the SKR PRO V1.1/V1.2 board:
To Prevent a noisy Thermocouple temperature sensor:
URL1: https://learn.adafruit.com/thermocouple/f-a-q#faq-2958381
URL2: https://3dprinting.stackexchange.com/questions/204/how-to-get-consistent-and-accurate-readings-from-thermocouples/355#355
Software SPI for MAX31855 board (Thermocouples)
Below is a sample of how to get Software SPI to work on SKR PRO V1.1/V1.2 for MAX31855 (thermocouple sensor), make the following changes in pins_BTT_SKR_PRO_common.h:
In configuration.h:
set TEMP_SENSOR_0 to -3
For example, here is how you would setup using two thermocouples with the GTR V1.0 board:
In configuration.h:
set TEMP_SENSOR_0 to -3
andset TEMP_SENSOR_1 to -3
NOTE: the first thermocouple is wired to the ONBOARD K_Type Thermocouple (KTEM) connector. That KTEM connector by default uses PH9 as its Chip select pin. The first thermocouple is not shown in the wiring diagram.
Here is a wire diagram for this situation:
END OF GUIDE
The text was updated successfully, but these errors were encountered: