cswiger / dcservodrive Goto Github PK
View Code? Open in Web Editor NEWArduino sketch to turn step / direction signals into DC servo motor position control - 'stepper simulator'
Arduino sketch to turn step / direction signals into DC servo motor position control - 'stepper simulator'
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!
Hello, is it possible to extend this code in mega for three axis? And I had another question, is it possible for us to use three Arduinoes in parallel so that one code runs in all three at the same time?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.