Skip to content

Question of the wiring between Arduino Mega and Ardumoto #2

@yhuangece7

Description

@yhuangece7

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions