Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DigiPots support #108

Open
wants to merge 2 commits into
base: edge
Choose a base branch
from
Open

DigiPots support #108

wants to merge 2 commits into from

Conversation

johnboiles
Copy link

This pull request add supports for digital potentiometers (DigiPots) that are included on some control boards. I've tested this code on an Ultimachine RAMBo 1.4 board which has an AD5206 DigiPot chip controlled over SPI. This allows for software control of stepper current. By commenting out the #define HAS_DIGIPOTS, the change should be fully removed from compilation.

As a part of this code, a new per-axis setting is included to change the DigiPot value was added as $14n where n is one of the axes indexed from 0-2 for x, y, and z. @chamnit suggested in gnea/grbl#696 that I should open a PR with DigiPots support directly onto gnea/grbl-Mega instead of gnea/grbl. We'll probably want to consider a way that we can reserve the $14n setting so that it doesn't become a different setting on gnea/grbl than it is on gnea/grbl-Mega.

@@ -41,10 +41,10 @@
// Define the Grbl system include files. NOTE: Do not alter organization.
#include "config.h"
#include "nuts_bolts.h"
#include "cpu_map.h"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I needed to move this up so that cpu_map.h got processed before settings.h so that settings.h could know if HAS_DIGIPOTS was defined

@jlirochon
Copy link

Hi @chamnit, do you think this feature should be merged into grbl-Mega ?

If yes, are you OK with the state of this PR, or are there things that need to be reworked first ? Can I help ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants