cnorton-webdev / jg_maker_magic_v03_bltouch

Modified Marlin firmware and adds the ability to use the BLTouch or clones on the JG Maker Magic 3D Printer.
GNU General Public License v3.0
2 stars 1 forks source link

Using better pins #8

Open Demon000 opened 3 years ago

Demon000 commented 3 years ago

I'm bringing to your attention the fact that there are a few pins between the USB connector and the SD card slot that can be used to wire up BLTouch. I measured the continuity between the 22 / PB3 pin of the atmega2560 to the MISO pin and it is continuous. I then wired the signal pin of the BLTouch to the MISO pin, and then wired GND and VCC next to it. Everything worked. When I tried wiring to the Y+ pin as you did it didn't work. We either have different board revisions or something else is up. I have a BLTouch V3.1, by the way.

tribunskiysm commented 3 years ago

Обращаю ваше внимание на то, что между USB-разъемом и слотом для SD-карты есть несколько контактов, которые можно использовать для подключения BLTouch. Я измерил непрерывность между выводом 22 / PB3 atmega2560 и выводом MISO, и он непрерывен. Затем я подключил сигнальный контакт BLTouch к контакту MISO, а затем подключил GND и VCC рядом с ним. Все заработало. Когда я попытался подключиться к выводу Y +, как вы, это не сработало. У нас либо другие версии платы, либо что-то еще. У меня, кстати, есть BLTouch V3.1.

Hello Demon000, I also connected it to the Y + port (it looks like my black board is no different from the green board, I use 3D touch v3) but only Auto home works for me, 3D touch is not controlled from the printer menu, I want to try to connect like yours. What needs to be changed in the firmware to work on the MISO contact?

board jgmaker

Demon000 commented 3 years ago

Обращаю ваше внимание на то, что между USB-разъемом и слотом для SD-карты есть несколько контактов, которые можно использовать для подключения BLTouch. Я измерил непрерывность между выводом 22 / PB3 atmega2560 и выводом MISO, и он непрерывен. Затем я подключил сигнальный контакт BLTouch к контакту MISO, а затем подключил GND и VCC рядом с ним. Все заработало. Когда я попытался подключиться к выводу Y +, как вы, это не сработало. У нас либо другие версии платы, либо что-то еще. У меня, кстати, есть BLTouch V3.1.

Hello Demon000, I also connected it to the Y + port (it looks like my black board is no different from the green board, I use 3D touch v3) but only Auto home works for me, 3D touch is not controlled from the printer menu, I want to try to connect like yours. What needs to be changed in the firmware to work on the MISO contact?

board jgmaker

https://github.com/cnorton-webdev/jg_maker_magic_v03_bltouch/blob/master/Marlin/src/pins/ramps/pins_RAMPS.h#L71

I am using Klipper firmware, so I'm not exactly sure, but it should be enough to change this value to 22, which is the number of the MISO pin.

Demon000 commented 3 years ago

The reason I'm not sure is because I don't know if pin numbers match between the Arduino ATMega numbers and Marlin numbers. Klipper uses names and it's easier.

tribunskiysm commented 3 years ago

Причина, по которой я не уверен, заключается в том, что я не знаю, совпадают ли номера контактов между номерами Arduino ATMega и номерами Marlin. Клиппер использует имена, и это проще.

Thanks, I'll try

Eddynstain commented 3 years ago

Facing the same issue. Using the Y+ pins doesn't work. Only Auto Home partly works(tries to home in the center, and then throws a stop code). Tried using the MISO pin and changed the pin nr to 22 in pins_RAMPS.h, but doesn't seem to work (blue light on bltouch doesn't even turn on - with Y+ pins it did). Cannot find out if pin nr is correct or what is the issue.

Eddynstain commented 3 years ago

Ohhh, read around a bit and @Demon000 you were right about the pin numbers matching. The hw pin number is 22, but the one that should be used in Marlin is 50 (according to this)

Changed SERVO0_PIN to 50 (in pins_RAMPS.h) to use the MISO as the signal pin and now everything works great with Marlin 2.0.9.1 on the JGMaker Magic.

Speeltoog123 commented 2 years ago

I also tried to add the bltouch sensor to the printer, but whatever sensor pin i use i don't get a response from the bltouch. I do see behaviour on all the pins that the voltage is 0.8 volt on average and if i give commands like M401 and m402 it does not change or do anything, if i change the pin in the pins file the pin i select drops down to 0.8 volt but still no response. Another thing is that i cant even get the voltage to change on the MISO so i am not sure what is going on there even when i change the pin to 50.

Also i Demon000 you use klipper, could you share your cofig file, i am having a huge difficulty trying to make one myself.

Thanks in advance for reading I am stuck and I really don't know what to change...