Coder Social home page Coder Social logo

Open drain outputs about grbl-lpc HOT 7 CLOSED

gnea avatar gnea commented on August 29, 2024
Open drain outputs

from grbl-lpc.

Comments (7)

jimfong1 avatar jimfong1 commented on August 29, 2024 1

from grbl-lpc.

tbfleming avatar tbfleming commented on August 29, 2024

You'll have to add initialization code to do it. Be careful though; if I remember right 5V optos will fry the device without a voltage converter. If you use a voltage converter IC, then you won't need open drain.

from grbl-lpc.

jimfong1 avatar jimfong1 commented on August 29, 2024

I would like to set the Z axis to open drain
Step pin is LPC_GPIO2 pin 3
Dir pin is LPC_GPIO0 pin 20

So the init code is something like this, I think....
LPC_PINCON->PINMODE_OD2 |= 1<<3; //Bit P2.3 is open drain
LPC_PINCON->PINMODE_OD0 |= 1<<20; //Bit P0.20 is open drain

I'm using both smoothieware and grbl-lpc, switch back an forth between them. Grbl works faster for laser rastering. I have a external driver on Z and its easy to set open drain in smoothieware by appending "o" in the config.txt pin configuration. Z driver works fine with smoothieware set to open drain. However would like to set grbl-lpc for open drain too so there would not need additional hardware changes. Not sure if the above code snippet is correct.

from grbl-lpc.

tbfleming avatar tbfleming commented on August 29, 2024

It looks correct.

from grbl-lpc.

jimfong1 avatar jimfong1 commented on August 29, 2024

Thanks I got it working. Had to figure out the pinmode selection to turn off the internal pullup, which is default on.

from grbl-lpc.

moors7 avatar moors7 commented on August 29, 2024

Sorry to resurrect this, but I was wondering if one of you could share what exactly needs to be changed in order to enable these open-drain outputs, and where these changes need to be made. Currently running a smoothieboard on a DIY laser, all external drivers. I think I've damaged my Alpha driver, so using the Gamma one for X. I've swapped the pin mappings in cpu_map.h, but can't seem to find where I'd need to make changes to enable the open-drain configuration.
Any and all assistance would be greatly appreciated. Let me know if you require additional information.

from grbl-lpc.

johnsonm avatar johnsonm commented on August 29, 2024

@cprezzi 's grbl-LPC now has native open drain support, based on the open drain support in @jimfong1 's code but without all the other changes:
cprezzi@47248cb

from grbl-lpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.