MarlinFirmware / Configurations

Configurations for Marlin Firmware
https://marlinfw.org
GNU General Public License v3.0
1.98k stars 3.33k forks source link

Enable BLTouch 5V Mode CR-10 Max #985

Closed DakotaCodes00 closed 8 months ago

DakotaCodes00 commented 8 months ago

Description

Apologies for making multiple pull requests, I am finding these little things as I'm tinkering with my CR-10 Max :b

Enabled BLTouch 5V Mode as the CR-10 Max Mainboard (Creality V2.4) supports it by default, without this change the BLTouch works for the most part but ignores the Y offset of the NOZZLE_TO_PROBE_OFFSET option found in the Configuration.h file from my experience.

I contacted Creality for other reasons but ended up getting the CR-10 Max Pinout from them and it explicitly labels the BLTouch voltage pin (red) as being 5V.

Here is the picture for reference the labels are in Mandarin so google translate on mobile is a good tool to have :)

Benefits

Related Issues

ellensp commented 8 months ago

The bltouch 5 volt mode is to set the output voltage on the bltouch trigger signal. It has nothing to do with any offsets

It is also unrelated to the bltouch supply voltage. They are all powered by 5v even on 3.3v systems.

English version, and way better documented

creality_v24_board_pinout-11-1024x768

Because this is a mega2560, and all IO pins are 5v, enabling 5V Mode will not harm anything.

ellensp commented 8 months ago

Your offset problem is way more likely that your updating Configuration.h offsets, but these offsets are in eeprom, so you need to refresh your eeprom every time you update them. Either manually M502 then M500 or using EEPROM_INIT_NOW

ellensp commented 8 months ago

From the Bltouch site

Open Drain for Logic Voltage Free

​

In the BLTouch, an additional MOSFET is used to implement the Logic Free 3.3V / 5V (Open Drain) output mode.

​

Open Drain(Default) mode depends on the logic level of your control board, so if your board is a 5V logic system, BLTouch operates in 5V logic mode and 3.3V logic mode if your board is a 3.3V logic system.

Other than some special cases  (for example, a controller board that has a Zmin input with a large capacitance), the Smart V3 is a drop-in replacement for a V2 (no firmware modification needed).

There are no capacitors on the trigger IO line, this is not required.

DakotaCodes00 commented 8 months ago

Hi @ellensp thanks for taking the time to review and reply to my PR I appreciate it.

I did do a manual EEPROM initialization after every flash and I do have the EEPROM_INIT_NOW option enabled anyway, the issue only resolved itself after configuring the 5V option for the BLTouch somehow. Not sure why or how but it did in my case.

Thanks for the better pinout for the Creality V2.4 main board helps a ton!

If this 5V option is not a necessary change I am happy to close the PR :b

Apologies for any misunderstandings, hope you are having a good day!