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

Question of the wiring between Arduino Mega and Ardumoto #2

Open
yhuangece7 opened this issue Mar 5, 2023 · 0 comments
Open

Question of the wiring between Arduino Mega and Ardumoto #2

yhuangece7 opened this issue Mar 5, 2023 · 0 comments

Comments

@yhuangece7
Copy link

yhuangece7 commented Mar 5, 2023

Hi cswiger,
Thank you for providing such a good example of the servo motor design. I am currently using Arduino Mega and Ardumoto (the latest version) to build something similar, but I have one question regarding the code and the corresponding wiring. Maybe my question is not related to the problem of your code, but is due to that I did not understand your code entirely. Therefore, any inputs are highly appreciated.
My question is: I assume an external signal "STEP" and "DIR" comes into Arduino Mega, along with the feedback input from the encoders. When the Arduino Mega process the signals, it is expected to generate two output signals (say "STEP_PROCESSED" and "DIR_PROCESSED" to feed into Ardumoto. However, I did not find you have defined any GPIO pins in your code regarding that.
In summary, for the first motor, I do not what are my "STEP_PROCESSED" and "DIR_PROCESSED" in Arduino Mega to connect to "IN1" and "PWM1" in Ardumoto. Would you advise what is my problem?
Thank you so much for your 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

No branches or pull requests

1 participant