Main Board Trouble Shooting - Marlin - Pin Debugging - Chris's Basement - 2022

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ย. 2024

ความคิดเห็น •

  • @ScottLahteine
    @ScottLahteine 2 ปีที่แล้ว +4

    Good subject! I just spent a day working on fixing up the AnyCubic Chiron pins and had to use M43 to validate some things, including using M43 W P79 to check whether the power-loss detect pin really works. And, what do you know? Trigorilla boards can detect power loss on pin 79 when pin 58 is HIGH, making it one of my favorite RAMPS-like boards. In the process I did a number of improvements on M43, so it should be a little better in the next release. One thing I need to take care of (soon!) is to do a global search, gather all distinct pin names, and make sure they're all listed in the M43 report.

    • @ChrisRiley
      @ChrisRiley  2 ปีที่แล้ว +1

      Awesome, thank you Scott for your continued Marlin support. It is VERY useful to many of us in so many ways.

  • @FilamentFriday
    @FilamentFriday 2 ปีที่แล้ว +1

    Nice explanation. I wish that was enabled automatically so old boards could be tested when you may not have the proper firmware.

  • @alexjaspers6863
    @alexjaspers6863 2 ปีที่แล้ว +2

    Hi Chris, nice topic, yes its a nice feature of Marlin to use mcu out/inputs, but people need to be carefull to sink an output pin with a fan.... not all pins are layout to drive enough amps , some are straight from MCU, and you could damage some, so best to check data sheet and use a led with resistor to limit the amp to a few mA or use a scope or MM.

    • @ChrisRiley
      @ChrisRiley  2 ปีที่แล้ว

      Thank you! Absolutely, you have to be careful, I should have probably made a better choice than a fan for this demo.

  • @jimbob1er
    @jimbob1er 2 หลายเดือนก่อน +1

    You are awesome!!! I knew M42 with ramps and the pins number on ramps are pins number!! Now on 32 bits boards pins id are not pins number! And where is it documented?:No idea. Not in the btt octopus pin drawing. I'm so glad I listened to your video. I found what I need. *After M43, is your printer responding? ( no big issue I just rebooted ) You are so awesome, you pulled me out of despair! Be careful on the wiki reprap gcode this statement is wrong: "In Marlin Firmware, pin numbers for 32-bit processors are in the form PORT * 100 + PIN." On octopus, M43 reply with PD13 = 61. I could have fried something.

    • @ChrisRiley
      @ChrisRiley  2 หลายเดือนก่อน

      HA HA, so glad this helped you!

  • @asocialconsciousness8535
    @asocialconsciousness8535 2 ปีที่แล้ว

    Dude this is a GREAT video! Very useful tip :D

    • @ChrisRiley
      @ChrisRiley  2 ปีที่แล้ว +1

      Glad it was helpful!

  • @kirkd6285
    @kirkd6285 หลายเดือนก่อน

    Thanks Chris, I am trying to update my Formbot T-rex 3.0 (IDEX) with a replacement mother board and the Config files are outdated. So my hot end fans are not spinning at all. I was able to activate the "unused" pins and figure out that Pin 6 and pin 45 operate the two hot end fans. next I have to assign them in the config files...I know you had a video on that ...years ago.

  • @onleditpas
    @onleditpas 2 ปีที่แล้ว

    wow, now that looks like fun (seriously, I’m that kind of a guy). Winter is coming so I may just pull out the old ender3 board and play with this. Thanks Chris

    • @ChrisRiley
      @ChrisRiley  2 ปีที่แล้ว

      Go for it! Thanks for watching

  • @noanyobiseniss7462
    @noanyobiseniss7462 2 ปีที่แล้ว +2

    Is there a breakout of all those unused pins on that monster board?

    • @ChrisRiley
      @ChrisRiley  2 ปีที่แล้ว

      Not that I have seen, but there seems to be a lot of them.

  • @roncarroll4531
    @roncarroll4531 ปีที่แล้ว +1

    Fantastic.
    Was hoping to get a little extra infor on pin assignment for Creality v2.5.2 board. I have been trying to do a reassigment of Mosfet_B_Pin for HEAT_0 that is set to run the hotend. Mine has failed and I have trying to use the pin for the HEAT_1. is it possible and if so what would the possible pins be.
    Thanks for the great video.
    RC

    • @ChrisRiley
      @ChrisRiley  ปีที่แล้ว

      Hey, yes, you should be able to switch it over. If you are using Marlin, you can just change it in the pins file. Problem is I can't seem to find the pinout for that board.

  • @rods87175
    @rods87175 2 ปีที่แล้ว

    Very helpful!

    • @ChrisRiley
      @ChrisRiley  2 ปีที่แล้ว

      Glad you think so!

  • @joseguevara184
    @joseguevara184 9 หลายเดือนก่อน

    i HAVE A TRONXY PRINTER AND THERE IS NO PIN DOCUMENTATION for my old green mobo so....... One of my 3 PWM ports got burned so I need to move one Fan to another Pin.You just saved me, thanks.

    • @ChrisRiley
      @ChrisRiley  9 หลายเดือนก่อน

      Happy to help! Thanks for watching

  • @LA3198
    @LA3198 2 ปีที่แล้ว

    Hi Chris, I am a long time subscriber and really enjoy your well presented videos. I have a dilemma and hope you can give me a little guidance.
    I have an Anet A8 that I have done a lot of upgrades to including a metal frame. I am still running Anet mainboard and display screen and want to upgrade the mainboard to 32 bit with silent stepper drivers. What mainboard and stepper drivers would you recommend? Thanks, Don

    • @ChrisRiley
      @ChrisRiley  2 ปีที่แล้ว

      There are a lot of great ones out there, it kind of depends on you much you want to spend. I would take a look at the BigTreeTech SKR3.

  • @ACKET2009
    @ACKET2009 ปีที่แล้ว +1

    Hello! How can I debug my CR-10S pro board pinouts in Klipper? Do I need to flash the marlin firmware to detect its names, or it can be diagnosed under the klipper?

    • @ChrisRiley
      @ChrisRiley  ปีที่แล้ว

      I personally think it's a little harder to do it with Klipper. If you can get it compiled and on the MCU, you can use some scripts to help. www.klipper3d.org/Debugging.html

  • @bobwtech
    @bobwtech 2 ปีที่แล้ว

    I've been thinking of toggling a pin in the gcode epilog to signal another piece of equipment to shut off at the end of a print. There's a couple of pins on my Creality 4.2.2 that are unused but I'm unsure if they are available. Maybe I can figure it out now ;).

  • @tomtaylor135
    @tomtaylor135 2 ปีที่แล้ว +1

    I have a 4.2.7 board.
    How would I go about setting PB1 pullup on it?
    Can I use M42 to turn it on permanently?

    • @ScottLahteine
      @ScottLahteine 2 ปีที่แล้ว +2

      You can use "M42 P17 M2" to set mode INPUT_PULLUP. To do this in the firmware, in setup() add SET_INPUT_PULLUP(PB1), or better, define a proper name for your pin and use that name instead.

    • @tomtaylor135
      @tomtaylor135 2 ปีที่แล้ว

      @@ScottLahteine Is this a permanent thing after reboot. Or does it revert back. Actually it is PBO pin 26 stm32f103ret6 for CRTouch errors. so M42 P26 T2 I'm using 2.1.1 Marlin In firmware do I add setup() add SET_INPUT_PULLUP(PB0) to pins_Creality_V427.h pin file? Do I also have to turn on DIRECT_PIN_CONTROL in both cases?

    • @ScottLahteine
      @ScottLahteine 2 ปีที่แล้ว

      @@tomtaylor135 Pins have a default state at boot, so the added line in setup() is needed to get the pin into the desired initial state. You can add #define BOARD_INIT() SET_INPUT_PULLUP(PB0) to the pins file as another option, if you prefer. You only need DIRECT_PIN_CONTROL if you want Marlin to include the M42 command.

    • @tomtaylor135
      @tomtaylor135 2 ปีที่แล้ว

      @@ScottLahteine Thank You so much. I have been running in circles on this. Was not sure what to put and where in Marlin. Says the Not a Programmer. Put the code into pins Creality_427.h and it compiled ok. I will check it out tomorrow. My CRTouch was doing slow red flashing at random, It was always a few layers after it started to print. I could see z doing mesh adjustment. But the flashing is not right. External resistor works but then found out the chip has internal 10k resistors. So I might be able by Marlin firmware.

    • @tomtaylor135
      @tomtaylor135 2 ปีที่แล้ว

      @@ScottLahteine Went with the firmware change. Got weird results. Y stepper reversed. and when I changed it the stepper went crazy. So I thought about and. Duh maybe I should put it in pins_CREALITY_V4.h after it is defined. Testing now and all seems to be working. Printing and no errors so far.