Comments (7)
from grbl-lpc.
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.
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.
It looks correct.
from grbl-lpc.
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.
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.
@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)
- Error in checksum calculation in flash.cpp HOT 3
- Laser PWM PIN how can i find it? HOT 16
- how to compile master to binary HOT 1
- Compile thew project for MKSSBASE1.3 HOT 1
- Windows Comiple Issue HOT 2
- please help, compileeeeee HOT 1
- Setting up an MKS board - PWM/TTL HOT 7
- M9 not working on mks HOT 2
- Can this run on LPC1768? SKR boards? HOT 5
- pn:PA triggered on MKS HOT 4
- Compatible with Bigtreetech SKR V1.3?
- MKS Sgen L HOT 1
- Safety door detected as opened HOT 1
- Compiling in Platform IO HOT 1
- How to compile Firmware.bin without Arduino IDE (LPC17xx) HOT 1
- LPC boards HOT 11
- grbl-LPC on AZSMZ Mini Board HOT 5
- Homing does not move motors HOT 12
- arduino cnc sheild grbl setup
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grbl-lpc.