Klipper3d / klipper

Klipper is a 3d-printer firmware
GNU General Public License v3.0
9.52k stars 5.32k forks source link

open drain for smoothieboard #1918

Closed Akex2 closed 5 years ago

Akex2 commented 5 years ago

klippy.log hi ATM is'nt possible to use open drain mode for gpio, on smoothie board, i can't use my external driver :( it is possible to add this feature please ?

klipper-gitissuebot commented 5 years ago

Hi @Akex2,

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.

Akex2 commented 5 years ago

add log klippy.log

arthurwolf commented 5 years ago

Hey.

In case this can help, the code is pretty simple: https://github.com/Smoothieware/Smoothieware/blob/edge/src/libs/Pin.cpp#L98 There are other options you can add btw, see the same file.

Cheers.

( Hey here Akex :p )

KevinOConnor commented 5 years ago

The Klipper micro-controller code can configure open-drain on pins to set a particular mode. However, there isn't anything in the config file that would allow one to configure a pin in that particular mode. In order to further assist, we'd need to know more specifics about the setup and the pin and why it is necessary to configure it in open-drain mode.

-Kevin

Akex2 commented 5 years ago

hi Kevin open drain it used ex: for control a driver motor (5v input, step,dir,enable) with a 3.3v microcontroler see this link for more information: http://smoothieware.org/general-appendixes#external-stepper-drivers Watch the second picture thx

KevinOConnor commented 5 years ago

Okay, I understand. This change would require both micro-controller code changes as well as host code changes. So, a developer will need to step forward to implement this.

-Kevin

KevinOConnor commented 5 years ago

I'm going to mark this as inactive as it does not appear it is currently in development.

-Kevin