Comments (4)
I have been doing my own gcode processor for a couple of years using a STM32 device. Recently have started using various ESP devices for remote sensing projects. More than willing to migrate to your implementation.
from grbl_esp32.
The solution mentioned above appears to work fine.
I removed the timer interrupt that turns off the step pulse and replaced it with a delay loop at the end of the main stepper driver interrupt (void IRAM_ATTR onStepperDriverTimer())
// wait for step pulse time to complete...some of it should have expired during code above
while (esp_timer_get_time() < step_pulse_off_time)
{
NOP(); // spin here until time to turn off step
}
set_stepper_pins_on(0); // turn all off
The stock Grbl setting is 3 uSecs, which is also the minimum. I am not sure why that is a minimum, but I'll leave it. Common drivers like the TI DRV8825 require a step pulse length of 1.9uS.
I don't think it should impact performance because the time is so brief. You can't go any faster than what the minimum step pulse timing will allow anyways. I have not profiled the code before that, but it probably uses up much of the time.
I have not committed the code yet, in case anyone wants to comment on this.
from grbl_esp32.
For reference, here is the DRV8825 timing diagram.
from grbl_esp32.
Changed to use method described above.
from grbl_esp32.
Related Issues (20)
- Translate Machine.h for 3Axis V4 HOT 1
- Translate Machine.h for 3Axis_V4 HOT 1
- Translate Machine.h for 3Axis_V4 HOT 2
- Translate Machine.h for obi_bot HOT 1
- impossible change home cycle for X and Y without Z on 3axis_v4 HOT 1
- Translate Machine.h for MyEggBot HOT 1
- Translate Machine.h for koputo HOT 1
- Translate Machine.h for koputo rs485 wo rts HOT 1
- Translate Machine.h for RS-CNC32 HOT 1
- Translate Machine.h for RS-CNC32 HOT 1
- Translate Machine.h for MFj_CNC HOT 1
- Translate Machine.h for Wolfspaw HOT 1
- 4Axis cnc
- WEBUI problem HOT 3
- Wifi problem HOT 2
- Translate Machine.h for cnc HOT 3
- Translate Machine.h for machine HOT 1
- Translate Machine.h for makerfr HOT 1
- Translate Machine.h for skal HOT 1
- Translate Machine.h for testpurp HOT 1
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_esp32.