-
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
SKR Pro + TMC5160 + PT100 using MAX31865+ BTT TFT35 v2 = no attached printer #163
Comments
Please send pictures showing the connection between tft and mainboard. Check the baudrate setting of mainboard and tft. |
Maybe then it would be good to start a ticket in the general TFT Firmware
repository. Seems TFT related and not SKR.
code505 <[email protected]> schrieb am Di. 25. Aug. 2020 um 19:02:
…
that is the picture, the reset wire is the last on the left,
[image: IMG_8996]
<https://user-images.githubusercontent.com/58148264/91205101-b413a980-e70d-11ea-8c11-51ee3d80820f.jpg>
the baudrate is 115200 on both the board and the TFT
what I want to emphasise on, is that when I put,
TEMP_SENSOR_0 1 >>>> TFT is working with no issue
if
TEMP_SENSOR_0 -5 >>>> TFT show no printer attached
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#163 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM6XKZCSL3TXA6VUYLJTWRLSCPVA5ANCNFSM4QJ6ZPRQ>
.
|
Saw you opened the ticket, great. Reading your answer again i am not sure if this is SKR or TFT any more, but there are more users watching, so it is always a good idea to start a ticket there. Hope someone can help. May i ask you why you are using this temp sensor and not a common one? |
thank you so much for your cooperation, I installed V6 hotend and I thought it is a good idea to upgrade to pt100 for more consistant heat management and for carbon fiber printing, I really doupt that it's a TFT issue, because the screen work very well with TEMP_SENSOR_0 set to 1 |
You are welcome.
I believe there are many parameters in a 3D printer which vary too much in
a very short time to give you accurate results which makes such a precise
measurement unnecessary.
PETG based carbon filament is my favorite material. Best results with a .6
Nozzle, approximately 240 degrees and VERY VERY slow print speed. Usually
60-80mm. Carbon 10mm. But the results are worth. 😁
code505 <[email protected]> schrieb am Di. 25. Aug. 2020 um 21:50:
…
thank you so much for your cooperation, I installed V6 hotend and I
thought it is a good idea to upgrade to pt100 for more consistant heat
management and for carbon fiber printing
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#163 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM6XKZA5VXDZS2COWFYV7W3SCQIWTANCNFSM4QJ6ZPRQ>
.
|
Forgot. NO Fan!!! Very important.
code505 <[email protected]> schrieb am Di. 25. Aug. 2020 um 21:50:
…
thank you so much for your cooperation, I installed V6 hotend and I
thought it is a good idea to upgrade to pt100 for more consistant heat
management and for carbon fiber printing
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#163 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM6XKZA5VXDZS2COWFYV7W3SCQIWTANCNFSM4QJ6ZPRQ>
.
|
Back to the problem. When there is any configuration for the serials where communication is possible - keep that. Checklist: Finally correct the
If all that does not help try to check the hardware with different software like https://github.com/adafruit/Adafruit_MAX31865/blob/master/examples/max31865/max31865.ino Don't tell us what guide you tried to follow. Tell/show us what you did. Those able to help you, already know how to do it and will not read/check a several page long, over redundant, guide being written for idiots. |
As far i can see the hardware SPI variants in the above guide can't work. Up to now i couldn't find a deal beaker for the Software SPI variantes. (Even if i did not try it physically.) Edit: Sorry. Even the newest Adafruit_MAX31865 library (1.2.2) is not able to use an other than the default SPI hardware. They missed to expand the constructor. |
Please educate me, so I can correct the guide. (To restate what you have written and to ensure I understand): You state that Marlin 2.0.6 can not work on SPI3. Marlin 2.0.6 will only use SPI1 for hardware SPI for ANY MCU. Is this correct?As far as I am aware, the Hardware SPI is a master slave communication protocol. The SKR PRO V1.1 has three SPI buses on the MCU. SPI1 is the SD card reader; SPI2 is EXP2 and SPI3 is the Stepper Motor Driver Sockets.Are you also saying that Marlin 2.0.6, does not allow the user to use Hardware SPI because at this time Marlin does not support Adafruit BUSIO? So the ONLY WAY to even use Adafruit’s MAX31865 is by using Software SPI? |
The BTT SKR PROs have 3 SPI-buses. Marlin, in general, is able to use all of them. Even in the newest version of the MAX31865 lib we have no way to specify the "buss".
While the underling BussIO now can handle it:
In general alone from the SS-pin it's impossible to detect the right buss. Edit: |
Is it not possible to write a software wrapper that exposes the pointer to the SPI BUS from the underlying BUSIO Function call? Is that not what a Constructor does in C++? Marlin is written in which programming language?Which MAX31865 amplifier board on the market today can a user of Marlin use to access the correct SPI bus? Is there even one available? |
Please place your Marlin folder (Zip the folder up) onto google drive and supply us with the shared link to that File.It makes no sense that Software SPI is not working for you.I will update the Guide to reflect the information about the current state of the Adafruit MAX31865 library |
Here is the compressed folder, I really appreciate your cooperation guys. https://drive.google.com/file/d/1K1XbNh0lFrJSDPzNua3jOYGHsJ_Dz9JK/view?usp=sharing |
@code505 I downloaded the latest Marlin version 2.0.6.1 and made the changes that I have on my printer. Do you have a filament runout sensor attached on your printer? Are you using the filament runout port on the TFT screen?If you have a filament runout sensor attached please comment out the Marlin sections related to that equipment. Leave them commented out until we get the MAX31865 in Software SPI mode to work.Are you running V2.0.26 firmware on your BTT TFT35 V2.0 screen?Here are the differences (that I think are relevant) I found between my setup and yours:Differences in Platformio.ini file (your file is on the LEFT, my setup is on the RIGHT)--- I think this is where your problem is:*** In my opinion: In Platformio.ini file: Change your default_evns to be BIGTREE_SKR_PRO and change include_dir to be MarlinDifference in Configuration.h file (you have two screens enabled in Marlin):You have Your Stock CR10 Displayed enabled yet the above picture shows no connections to EXP1 or EXP2 connectors:You have the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER enabled in Marlin along with your CR10 stock display:*** In my opinion: In Configuration.h file, you need to just disable both the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER and the CR10_STOCKDISPLAY AND ensure the Marlin line #define SDSUPPORT is uncommented.Here is a video to watch to connect the BTT TFT35 V2.0 to the SKR PRO V1.1 board: https://youtu.be/9i3Ee6UtC-QIn the above video He does not mention enabling any LCD screen in the Marlin firmware download. All he enables in Marlin Firmware are the following: Stepper Drivers used and enable are A4988 drivers; SERIAL_PORT is -1; SERIAL_PORT_2 is 1;. MOTHERBOARD is BOARD_BTT_SKR_PRO_V1_1 ; In Platformio.ini file: default_envs = BIGTREE_SKR_PRO. He sets his baudrate on the TFT35 V2.0 screen to 250000 |
@AnHardt Could I use this device and hack into the SPI Lines for the SKR PRO V1.1 and GTR V1.0 boards? Maybe that would work?https://www.amazon.com/gp/product/B088WB5L8R/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1 |
Yes - one could. |
@AnHardt, Thanks for setting me straight on the Adafruit library issue! I am now fixing the guide so that I will not be giving out bad information. Just to be clear on another point, the reason my guides provide redundant information is to make it perfectly clear to the user that they have options. Some people cannot extrapolate one solution into another solution. My goal is to open up this hobby of 3D printing to more users. The more people that get involved with 3D printing the better the firmware will get and the MCU boards will get upgraded. I do not intend for my manuals and guides to be idiot proof. But I do want to make it easier for people to hook up the devices. If they have a sort of cook book to follow, they are given a starting point and then learn from there. Sometimes that is all that is needed to get people to try out a new item. I never intended my guides and manuals to be insulting. In fact, if anyone ever finds wrong information in my guide or manuals PLEASE let me know. I need to learn and then I can fix the guide. Just like you did with the PT100 Guide. I really appreciate the input you gave. Thanks again. |
@GadgetAngel |
I have PT100 amplifier board (INA826 amp) , and I will connect it using table 21 to which pin should I use for 3.3v supply, ground and signal. thank you |
@code505 The easiest way is to use any of the ADC lines on extension-1 header, get 3.3VDC and GND from power expansion header. |
can I use 3.3v and GND from E1 endstop socket?, I have only one extruder |
yes |
@AnHardt You wrote this:
400 Ohm is the calibration resistor. So for the Adafruit MAX31865 for PT100 you must change the calibration resistor to 430 in temperature.cpp. If you bought Adafruit MAX31865 for PT1000 you must use max31865.temperature(1000, 4300) in temperature.cpp. Is this correct? |
Yes!Do you really have to be that loud - always? (big fonts) My eyes are bleeding. :-) At least for now. One days this will be properly configurable from the configs. |
@AnHardt Can you find any document showing the 15P cable and which PINS correspond to MOSI, MISO, SCK ? I have looked and I can not find any document showing which PINS on the extension cable correspond to the SPI lines |
One side of the cable is a sd-card with some wires. Soldering to the flat-cable is difficult. Better crack the housing of the sd-socket and solder to the contacts. |
This issue is the SD card socket has 15 pins on the back when I crack it open. The sd card on the other end has 8 pins. I agree they should be straight connect but why have 15 pins to 8? If every other pin was Ground then I would expect 16 pins to 8. I looked up the part number on the SD card socket: AoSheng100921TF . It is a patented product from China. I can not find how they go from 15 pins to 8 pins. Do you have any idea what they did? EDIT: I will use an ohm meter and document which 8 lines correspond to the SD card lines |
No, I do not #define MAX6675_IS_MAX31865 because Marlin 2.0.x will do that when you set TEMP_SENSOR_0 and/or TEMP_SENSOR_1 to -5 in Configuration.h. Marlin does the assignment of MAX6675_IS_MAX31865 in conditionals_post.h file : Which TFT screen are you using? Is the TFT screen firmware up to date? Can you upload your WHOLE Marlin firmware folder? Just zip your whole Marlin folder (include the platformio.ini file) to your free google drive. Then enable sharing of the folder on your google drive. Then place the shared link to your google drive here on this github thread so I can download your zipped Marlin folder. I need to see your Marlin folder so I can walk through the code to see what is happening to the TFT screen. |
Understood for the variable. https://drive.google.com/file/d/1EqjLOJ8raZYF7ro8YXlnBIgyeu5-e0gw/view?usp=sharing https://drive.google.com/file/d/1wUijbP1WXV-yZZEDUGuLvSy7rN8-CnKk/view?usp=sharing |
Which version of the TFT35 do you use? |
I use the TFT35 V3 |
For your information, I use the TFT port on my SKR PRO V1-1 |
I just tried to connect my printer with Repetier Host on my computer, using an USB cable. I'm not able to reach the printer even if the port is detected by Repetier. Strange... |
ensure you comment out your Try changing the
Edit: |
Ok I'm going to do it... |
@ymarco73 The change in Marlin from 2.0.5, which is the version you are running and the newest Marlin 2.0.7 might solve the problem |
I used |
To be sure, I connected: CS pin from my MAX31865 to the PD0 of the SKR |
Here is my updated Marlin with the latest revision: So, to recap, if I use SERIAL_PORT 1 and SERIAL_PORT_2 -1, the TFT returns a "kill called" with a "no printer attached". |
@ymarco73 In configuration_adv.h set THERMOCOUPLE_MAX_ERRORS to 20. When you see the "printer halted kill" message, "no printer attached" you would get that from any display that is attached to the printer because for some reason the printer is getting a MIN/MAX temp error or noise is getting into the temperature measurement. Setting THERMOCOUPLE_MAX_ERRORS does get used when reading PT100 temperature sensor from the MAX31865. You can also set MAX_CONSECUTIVE_LOW_TEMPERATURE_ERROR_ALLOWED to 10 in Configuration_adv.h file. They both deal with errors coming from the temperature sensor device. Another idea, in configuration_adv.h uncomment SHOW_TEMP_ADC_VALUE. Also, In configuraton_adv.h uncomment M115_GEOMETRY_REPORT. Use Pronterface software with the M155 gcode or M105 to examine the ADC values the MAX31865 board is sending the the SKR PRO V1.1 board:
If you never have used Pronterface software just search YouTube and you should find a video on how to go about using this tool with your 3D printer. You might also want to read about the M105 and M155 gcode commands. You said your TFT port was where your 3D printer screen was located. For the SKR PRO V1.1 the following SERIAL PORTs are available: -1 is USB Port; 1 is TFT port; 6 is the WIFI port and 3 is the TX3/RX3 on UART header. Any of these values are valid for SERIAL_PORT and SERIAL_PORT_2. The differences between SERIAL_PORT and SERIAL_PORT_2 is that SERIAL_PORT is the main connections that receives ALL errors coming from the 3D Printer. The SERIAL_PORT_2 does not receive ALL errors. That is why I told you to swap the settings. I needed to see if the printer was sending out an error message. So leave SERIAL_PORT set for 1 and SERIAL_PORT_2 set for -1. This way you see ALL errors on your TFT screen. Try commenting out REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER in configuration.h file and ensure you have not enabled any other LCD in Marlin Firmware. The BTT TFT screen only uses the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER if you switch the TFT to legacy mode. So as long as you are aware of it, let's disable REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER to see if it is affecting your firmware. Did you prepare the MAX31865 board? 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). Therefore, ensure your PT100 is hooked to the middle two terminals. To help troubleshoot:Please provide a jpg image of the error message or messages that are displayed on your TFT screen. I can then search Marlin for that error message or messages so we can figure out which part of the firmware called the halt printer routine. Was there a heater id provided on the screen when the halt command was issued? Did you intend to have your TMC2208 commented out in your firmware code? The way your firmware is configured you are running A4988 on all axes. |
Hi @GadgetAngel Thks for the advises. My machine isn't at home, I'll have a look at it tomorrow morning. |
@ymarco73 I did look at the Marlin folder you uploaded. Did you know that your stepper motor drivers are COMMENTED OUT. You forgot to remove the // at the beginning of the lines. This is from your firmware code you uploaded the second time to your google drive: |
Yes, I saw it this afternoon. This was not the case in my 2.0.5. |
@ymarco73 I just looked at the Marlin 2.0.7 code: If you did not get a heater ID with the "printer halted. kill() called" then the printer halted for another reason. Maybe, it was not the MAX31865 that caused the halt message. If the halt message was due to temperature reading from temperature.cpp code, the error message would indicated a heater ID. |
ok clear. let's see tomorrow if it will read a temp. |
@GadgetAngel Before swaping to the MAX31865, I tried to use SERIAL_PORT 1 and SERIAL_PORT_2 -1 but unfortunately, it doesn't work. No printer attached.
|
I compiled this morning Marlin 2.0.7 with: #define SERIAL_PORT -1 PF9 is a pin on extension 1 that I do not use. On my TFT, no printer attached and no way to connect Pronterface throughout the USB. |
@ymarco73 Do you own a real REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER, instead of the TFT35 V3? The message "no printer attached" is coming from the BTT TFT35 V3.0 firmware. I would like to remove that screen to take it out of the setup to see if we can get the MAX31865 board working. Once we get the MAX31865 board working then we can try to figure out why the TFT screen is not working. I am not an expert of the TFT display. All I can find on that error message to reinstall you firmware on the BTT TFT35 V3.0 screen (ensure you get the latest firmware version) OR You can buy a REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER here: https://www.amazon.com/KINGPRINT-Graphic-Display-Controller-Adapter/dp/B076WQQX5K |
@ymarco73, I believe your "no printer attached" message from the TFT is due to the fact that you are getting a "halt, kill() called" message that you do not see. When you power up the printer with the new Marlin 2.0.7 firmware do you have the MAX31865 board wired into the SKR PRO V1.1 board? Try changing the firmware back to If the "no printer attached" goes away then we can basically say that when you see that message on the TFT screen it means that you're really getting a "halt, kill() called" message. Can thermal runaway protection be causing the "halt, kill() called" message? When Marlin firmware detects over temp it goes into shutdown and goes offline without any warning. The following was originally posted by @AnHardt in #163 (comment)
In the firmware code you sent me on your google drive you had NOT made the below changes in Marlin 2.0.7: In the Marlin 2.0.7 firmware, if you want to use the Adafruit MAX31865 board with a PT100, you MUST correct the resistor values that Marlin uses in temperature.cpp as follows: EDIT:After I wrote all the above I went back to look at the Marlin 2.0.7 code in temperature.cpp: Notice this code:
The above code is the only way to get the MAX31865 in Software SPI mode. Therefore with your setup BUT What we really need is the following:
The above change will now force |
Hi @GadgetAngel Yes, the MAX31865 board is already connected when I start my printer. I added your code to define the pins like it is supposed to be. I also updated the resistance. I uploaded the Marlin to my Drive so that you can download it if necessary. thks, |
IN SUMMARY:
If you have only one hotend then you can have the following:
If you have two hotends then you can have the following:
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
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 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 for PT100 using Analog ADC input using 3.3 VDC for the 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 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: 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: 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.
11A. How to determine the default hardware SPI bus for a the SKR boards:
Below is a table of where this statement can be found 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 the GTR V1.0 board the pins_BTT_GTR_V1_0.h contains the following:
Notice that for the GTR V1.0 board, 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", which is used to override the variant.h file SPI Marlin variables. If the Marlin variable was "SOFTWARE_SPI", which indicates the SPI variables will be used as a Software SPI Bus, then no change occurs with the default hardware SPI bus. Additional Equipment that maybe necessary to obtain HARDWARE SPI for Adafruit MAX3186511B. 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: If you need to tap into the SD card reader ONBOARD the MCU board then use: 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: OR For Marlin 2.0.7.2 versions:
OR For Marlin bugfix-2.0.x version or later versions of Marlin:
}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 Bigtreetech's TF cloud device and hack the pins off the ESP 12-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 MAX31865. ++++++++++++++++++++++++++++++++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: OR For Marlin 2.0.7.2:
OR For Marlin bugfix-2.0.x version or later versions of Marlin:
}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: OR For Marlin 2.0.7.2:
OR For Marlin bugfix-2.0.x version or later versions of Marlin:
}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
++++++++++++++++++++++++++++++EXAMPLE+++++++++++++++++++++++++++++ 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: AND {For Marlin 2.0.7.1 or earlier version of Marlin: OR For Marlin 2.0.7.2:
OR For Marlin bugfix-2.0.x version or later versions of Marlin:
}Here is a wiring diagram for a PT100 sensor with an Adafruit MAX31865 using Software SPI: The information in [1, 11, 15-20] are for the MAX31855 board (thermocouples)
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 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:
For example, here is how you would setup using two thermocouples with the GTR V1.0 board:
In configuration.h: 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 SUMMARY |
Hi @GadgetAngel Yeeees, it works now fine with MAX31865! Thks a lot for your investigations & advises. |
@code505 You can close this issue now. Bugfix-2.0.x has fixed all issues with Adafruit MAX31865 boards and I opened a NEW issue which has the above summary as a GUIDE. You are the only one that can close this issue since you opened it. So please close this issue out. Thanks. |
Is it possible to connect two MAX31865 for dual extruder and one thermistor for chamber and one for bed? |
Marlin firmware does not support using a MAX31865 for the bed! Marlin will allow you to use two MAX31865s for the dual extruders. Just use TEMP0_ and TEMP1_ . Keep in mind that when I did the testing for the MAX31865 and Marlin (which was over a year ago), I tested using two MAX31865 boards. Marlin firmware has changed a lot since I did the testing on the MAX31865 boards. I use Klipper now. So if you have problems getting two MAX31865 boards running for a dual extruder setup, you should get on DISCORD server for Marlin and ask questions there { https://discord.com/invite/n5NJ59y }. Good luck. |
I'm having issue working this configuration
#define SERIAL_PORT -1 #define SERIAL_PORT_2 1
I'm using this guide to connect MAX31865 in software SPI configuration:
https://drive.google.com/file/d/1zOky07F_R_DO_-XxZx6C3xULqhuxYMOi/view?usp=sharing
once I change TEMP_SENSOR_0 to -5, I got the no attached printer, otherwise TFT is working
any thoughts
The text was updated successfully, but these errors were encountered: