Skip to content
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

Pin mapping for servo Any i3 mega #1448

Closed
schnello opened this issue Mar 25, 2019 · 8 comments
Closed

Pin mapping for servo Any i3 mega #1448

schnello opened this issue Mar 25, 2019 · 8 comments

Comments

@schnello
Copy link
Contributor

schnello commented Mar 25, 2019

Hello.

Machine: Any i3 Mega
FW: Lastest Klipper Build

I installed an BLtouch. It works but want know what I did wrong.
Regarding some guides and other custom FW (Marlin) the servo pin should be:
#define SERVO0_PIN 11

image

I match also with my machine:
image

In Klipper i can only move the sensor if i set it to:
control_pin: ar5

It looks like the pinout for this block is mirrored
4,5,6,11,12 vs 12,11,6,5,4

So why it works in Marlin with pin 11 and in Klipper with pin 5? I do not think all the guides are wrong but I have not even tested it under Marlin.

PS: pin_map is set to arduino

@schnello schnello changed the title Pin mapping Pin mapping for servo Any i3 mega Mar 25, 2019
@klipper-gitissuebot
Copy link

Hi @schnello,

It did not look like there was a Klipper log file attached to this ticket. The log file has been engineered to answer common questions the Klipper developers have about the software and its environment (software version, hardware type, configuration, event timing, and hundreds of other questions).

Unfortunately, too many people have opened tickets without providing the log. That consumes developer time; time that would be better spent enhancing the software. If this ticket references an event that has occurred while running the software then the Klipper log must be attached to this ticket. Otherwise, this ticket will be automatically closed in a few days.

For information on obtaining the Klipper log file see: https://github.com/KevinOConnor/klipper/blob/master/docs/Contact.md

The log can still be attached to this ticket - just add a comment and attach the log to that comment.

Best regards,
~ Your friendly GitIssueBot

PS: I'm just an automated script, not a human being.

@Hywelmartin
Copy link
Contributor

I have the same board but in a delta.
I use those pins for my TMC-2130 as CS-pins and at first I used 4,5 and 6..for A,B and C and after a while I also used pin 11 for E so on my board it is as the picture..

you could easily test it with a simple sketch like Blink...

@schnello
Copy link
Contributor Author

schnello commented Mar 25, 2019

also used pin 11 for E so on my board it is as the picture..
you could easily test it with a simple sketch like Blink...

Hmm strange. I testet it several times and on my board is D11 ==> D5.
So if i want use the preassembled pins (the second from the right) i have to use: control_pin: ar5

I will do the crosscheck with marlin but i dont understand what i do wrong.. or what is wrong with my board...
@Hywelmartin

@schnello
Copy link
Contributor Author

Hmm. I compile now the Marlin FW and there is the same "issue". the second from the right is pin5 (and not 11). So this is not Klipper releated i closed the ticket. If anyone reads this ticket and have information regarding the reason: "Why the servo pinout is mirrored" feel free to contact me.

@Hywelmartin
Copy link
Contributor

The D11 is PB5.. are you sure that you don't have a typo... or you could try to use PB5 to see if there's a difference.

@schnello
Copy link
Contributor Author

schnello commented Mar 25, 2019

As i wrote i test this also with Marlin. Same result: Pin5 is OK and works with the pins installed on the photo. Yes the Klipper config is: control_pin: ar5

Marlin Config:
#define SERVO0_PIN 5

So iam not a Ardunino Guru but from my postion ... the pin is 5.

or you could try to use PB5

So instead of ar5 ... pb5?

@Hywelmartin
Copy link
Contributor

I'm a little curious because I have the same card.. have you tried all ports 4,5,6,11 and 12

yes you can use the hardware pin number PB5 but it would render the same result.... I'm afraid...

megapinout

@schnello
Copy link
Contributor Author

have you tried all ports 4,5,6,11 and 12

I try to install the bltouch exactly after the instructions. After 2 days i try the pin nr 4,5 ... and i stop at 5 because it was successfully. So at the end iam happy that it works but i want also understand why the pin is 5 and not 11. :)

I test also the HW PIN. Same result:
PB5 failed
PE3 good

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants