MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.28k stars 19.23k forks source link

[BUG] Teensy 4.1 will not read Bed Temp #24854

Closed AlexanderHernacki closed 1 year ago

AlexanderHernacki commented 2 years ago

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

Issue Description: Teensy 4.1 will not read bed temperature but can successfully read extruder temperature. When asking for temperature in Pronterface, temperature is reported as -50 with custom thermistor settings and 0 with E3D thermistor settings. When flashing identical firmware with BOARD_RAMPS_14_EEB, bed temperature can be read.

Bug Timeline

This is a new bug, which I first encountered 10/1/22.

Expected behavior

When connected to Pronterface, Cura or any other interface, bed temperature should read approximately room temperature.

Actual behavior

When connected to Pronterface, Cura or any other interface, bed temperature reads either 0 C or -50 C.

Steps to Reproduce

Current Debug Process:

  1. Measured Resistance of hot end and bed thermistors at room temp and after heating with a hair dryer. Resistances were as expected.

  2. Switched Little Foot Thermistor to hot end pins and E3D thermistor to bed pins, still resulted in no successful reading of bed temp and successful reading of hot end temp.

  3. Switched Teensy TEMP_0_PIN and TEMP_BED_PIN still resulted in no successful reading of bed temp and successful reading of hot end temp.

  4. Set TEMP_SENSOR_BED to 5(E3D thermistor settings) and TEMP_SENSOR_0 to 1000(custom Little Foot thermistor settings), resulting in constant reading of 0 C for bed and normal reading for hot end.

  5. Connected Teensy to Cura instead of Pronterface. Resulted in normal reading for hot end and constant reading of 1 C for bed

  6. Flashed default marlin 2.1.1 with only changes to MOTHERBOARD, TEMP_SENSOR_0, and TEMP_SENSOR_BED, still resulted in no successful reading of bed temp and successful reading of hot end temp.

  7. Flashed marlin 2.1.1 with bug fixes, with only changes to MOTHERBOARD, TEMP_SENSOR_0, and TEMP_SENSOR_BED, still resulted in no successful reading of bed temp and successful reading of hot end temp.

  8. Flashed marlin 2.1.1 "Nightly" with bug fixes, with only changes to MOTHERBOARD, TEMP_SENSOR_0, and TEMP_SENSOR_BED, still resulted in no successful reading of bed temp and successful reading of hot end temp.

9.Fixed and arduino compiler warning in temperature.cpp for use of -Wimplicit-fallthrough by replacing it with Wextras

10.Measured voltage at Teensy Bed Temp pin, Voltage at room temp was approximately analogous to the voltage at the Extruder temp pin.

11.Enabled Pin Debugging(M43) and Pin State Control(M42), Requested full list of pins, TEMP_BED_PIN correctly assigned

12.Ran PID Calibration of hot end to verify relative functionality of Marlin(M303 E0 C8 S210), Calibration ran successfully

13.Flashed firmware in VS code instead of Arduino interface, no effect

14.Flashed firmware with Teensyduino on mac, instead of windows, no effect

15.Set TEMP_SENSOR_BED to 998( dummy 25 C constant) bed temp reported as 25 C

16.Flashed Identical firmware, only changing BOARD_TEENSY41 to BOARD_RAMPS_14_EEB onto a Arduino mega and bed temperature is successfully reported

Wiring Diagram for Test Set up

Thermistor Diagram

Test Set up

PXL_20221007_222724276

Version of Marlin Firmware

Marlin 2.1.1

Printer model

Custom EEB RAMPS 1.4 Printer

Electronics

Teensy 4.1 using BOARD_TEENSY41 default pin assignments. Wired to a RAMPS 1.4 board at 24 V using 2 extruder heaters in parallel and an openbuilds mini heated bed(EEB). Hot end thermistor is a E3D thermistor and the bed thermistor is a Little Foot GL104R5J thermistor.

Add-ons

N/A

Bed Leveling

No response

Your Slicer

Cura

Host Software

Pronterface

Don't forget to include

Additional information & file uploads

Configuration files

Configuration.zip

github-actions[bot] commented 1 year ago

This issue has had no activity in the last 60 days. Please add a reply if you want to keep this issue active, otherwise it will be automatically closed within 10 days.

github-actions[bot] commented 1 year ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.