1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Arduino code for steppers?

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by jackon680, Apr 23, 2014.

  1. Ivan Zaharov

    Ivan Zaharov Member Gold Contributor

    Joined:
    Jul 6, 2019
    Messages:
    54
    Occupation:
    Industrial repair CNC
    Location:
    Latvija
    Balance:
    239Coins
    Ratings:
    +55 / 0 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino, Motion platform, 6DOF
    Hello. I do not know what to write in Sim Tools Engine. Startup output..?, Shutdown output..? BitRange ?
  2. Harry King

    Harry King Member

    Joined:
    Apr 6, 2016
    Messages:
    43
    Balance:
    224Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    3DOF, Arduino
    I was looking for some help with the code and the wiring schematic. I am using a UNO with motor driver DQ860MA motor Drivers for 4 stepper motors.

    I am not a coder and I am at the beginning of my project.
  3. EleaSkipper

    EleaSkipper New Member

    Joined:
    Feb 15, 2021
    Messages:
    10
    Balance:
    - 35Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, AC motor, SCN5, SCN6, SimAxe, Arduino, JRK, Joyrider, SimforceGT, Motion platform, 4DOF, 6DOF
    hello everybody , I'm trying to setup my 2 Steppers to the Simtools Engine using the Arduino. the Code up there it work with one Stepper using AccelStepper.h , but I cant figure out how to make it work with 2 Steppers , can someone help me with this pls ?
  4. AndreFilipe

    AndreFilipe Andrefly

    Joined:
    Apr 1, 2018
    Messages:
    11
    Occupation:
    businessperson
    Location:
    Brasil
    Balance:
    - 55Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, SCN6, SimAxe, Arduino, SimforceGT, Motion platform, 6DOF
    Hi, can you help me with something? I want to use stepper motor for testing, I found this code ai for arduino but I don't know how to define the output there in simtools (R<Axis1a>R<Axis1a>L<Axis2a>L<Axis2a>F<Axis3a>F<Axis3a> V<Axis4a>V<Axis4a>~*) like the one I was using on the model aircraft servos what should I put there for simtools to send to the engines?
    Thanks!
    Last edited by a moderator: Sep 16, 2021
  5. Billel

    Billel Member

    Joined:
    Mar 29, 2022
    Messages:
    37
    Balance:
    195Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    Arduino, Motion platform, 6DOF
    hello guys,
    a newbie here, i've been diging aroung this forum for the past two weeks, and the amount of informations i gathered are enormous, but i still can't my head around this stepper motors this, i mean linear actuators based on dc motors are easy to set up and control (thanx to SMC3), but how do you set your limits for the actuator if you are using stepper motors (SMC3 works with those as well ?)
  6. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,462
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,608Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Steppers are not impossible but are uncommon when you have so many cost effective tried and tested AC and DC alternate options, including DIY actuators: https://www.xsimulator.net/community/faq/diy-linear-actuators.248/

    Steppers can have a lot of vibration, noise, and can lose torque on higher speeds, so actuator speed is limited.

    But if you are interested in the Stepper path check out @Lebois thread: https://www.xsimulator.net/community/threads/srt100-stepper-motor-actuators.16261/
  7. Joe Cortexian

    Joe Cortexian Member Gold Contributor

    Joined:
    Sep 8, 2021
    Messages:
    36
    Balance:
    229Coins
    Ratings:
    +6 / 0 / -0
    My Motion Simulator:
    3DOF
    If it were up to me I would extract the serial protocol code from smc3. This requires some work but is certainly doable. There are 3 or 4 subroutines you need and of course you need to understand what they do. Aka this input sets the position value.

    smc3 is a fantastic piece of work but not really set up to be flexible.