pololu 36v4 #48
Replies: 3 comments 2 replies
|
Hi @enjoylife1024, Adding SPI communication protocol to grbl-Mega-5X is not impossible, but pretty complicated. @++; |
|
Thank you so much for the response. I am also having an issue with the limit switches. I am not able to get them to turn on. I have put this in the discussion with the code I uploaded to the arduino. I have all of the code attached to the discussion. I would like to tell you thank you for writing this. I am doing prototype builds of cnc's right now and this is by far the best solution for the arduino as controller I have found. Very is to follow even though I have never messed with arduinos before. I only know how to pretty much get the code onto the arduino. But the way you wrote this code it is very easy to understand with absolutely no knowledge of coding. Hope to hear from you soon.
…________________________________
From: Gauthier Brière ***@***.***>
Sent: Saturday, May 17, 2025 3:30 AM
To: fra589/cn5X ***@***.***>
Cc: Roger Pelletier ***@***.***>; Mention ***@***.***>
Subject: Re: [fra589/cn5X] pololu 36v4 (Discussion #48)
Hi @enjoylife1024<https://github.com/enjoylife1024>,
Adding SPI communication protocol to grbl-Mega-5X is not impossible, but pretty complicated.
In fact, for performance reason, grbl is written in pure C language, not C++ and don't use any Arduino code. So, you will can't use any existent SPI C++ library, and you will have to write the SPI code by yourself.
Then, if you are able to do it, to run SPI communication when initializing grbl, you can do it from the main() function in the main.c file.
@++;
Gauthier.
—
Reply to this email directly, view it on GitHub<#48 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BDXYP7T5PVG62ZVDOAAQ7UT263QR7AVCNFSM6AAAAAB5JFYYTCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMJXG42TGOA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
|
Hi @enjoylife1024, SPI and HighPowerStepperDriver libraries are Arduino C++ libraries. Using the drv8711 datasheet: https://www.ti.com/lit/gpn/drv8711 and this example: https://github.com/cnc-board/motor_driver/blob/master/drv8711.c, this should be possible. @++; |
Uh oh!
There was an error while loading. Please reload this page.
I am wondering how I would add the spi to the grbl so that it programs the driver chip at every power up. I am a very new to the whole programming stuff. I can modify the code to get the axis I need. And have grbl 5x working correctly now. I am using very large drives right now and the pololu is smaller foot print to get away from the large boxes I am using now. I just need to get the spi program to run on power up every time.
All reactions