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

Configure Spindle PWM Control on ArduinoDue gShield #469

Open
lumascet opened this issue May 28, 2020 · 7 comments
Open

Configure Spindle PWM Control on ArduinoDue gShield #469

lumascet opened this issue May 28, 2020 · 7 comments
Assignees

Comments

@lumascet
Copy link

lumascet commented May 28, 2020

I have troubles configuring the correct pins for PWM spindle speed control on the ArduinoDue on edge-preview branch. My hardware follows the ArduinoDue Pinout: here.

so i added these lines to my settings file:

#define SPINDLE_ENABLE_OUTPUT_NUMBER 	12
#define SPINDLE_DIRECTION_OUTPUT_NUMBER 13
#define SPINDLE_PWM_NUMBER 		11

Building and uploading results in not being able to controll any of the pins 11, 12 ,13 when enabling the spindle. they stay at 3.3v. am i missing something? Hardware errors can be ruled out, since it had worked in the edge branch.

@justinclift
Copy link
Member

Which model of PWM are you using? 😄

@giseburt giseburt self-assigned this May 29, 2020
@lumascet
Copy link
Author

Which model of PWM are you using? 😄

I'm not sure if I understand your question correctly 😅, the pwm should be controlled via the p1 property i think, these are my settings of it:

{"r":{"p1":{"frq":10000,"csl":0,"csh":24000,"cpl":0,"cph":1,"wsl":0,"wsh":24000,"wpl":0,"wph":1,"pof":0}},"f":[1,0,8]}

I previously didn't have to alter the default gShield pinout configuration as it worked out of the box: gShield-pinout.h
Im not sure what exactly changed that these settings are not working anymore in edge-preview.

@justinclift
Copy link
Member

Gah. That's a brain-o on my part. Was thinking VFD (like these) for some reason. Doh. 🤦

@lumascet
Copy link
Author

Gah. That's a brain-o on my part. Was thinking VFD (like these) for some reason. Doh. 🤦

Oh, yes indeed im using it in combination with a VFD like this one, with 0-10V is 0-24k rpm
The 0-3V3 to 0-10V conversion i realized through an Optocoupler.

@justinclift
Copy link
Member

Cool!

@giseburt has assigned this to himself, so you're in good hands when we has time to jump in.

I've not yet personally used a VFD at all, but I intend to when I get back into doing this stuff in a few months time. 😁

@lllars
Copy link

lllars commented Jun 30, 2020

I've also run into this issue with Due on edge-preview. I tried different settings:

#define SPINDLE_ENABLE_OUTPUT_NUMBER        4
#define SPINDLE_DIRECTION_OUTPUT_NUMBER     5
#define SPINDLE_PWM_NUMBER                  6

I'm not sure if output number is supposed to correspond to pin number. I'm trying to use pin 11 on the Due.

@lumascet
Copy link
Author

I've also run into this issue with Due on edge-preview. I tried different settings:

#define SPINDLE_ENABLE_OUTPUT_NUMBER        4
#define SPINDLE_DIRECTION_OUTPUT_NUMBER     5
#define SPINDLE_PWM_NUMBER                  6

I'm not sure if output number is supposed to correspond to pin number. I'm trying to use pin 11 on the Due.

Have you figured out anything yet?

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

No branches or pull requests

4 participants