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

Question output testing not working on scale model

Discussion in 'Ready, set, go - Start your engines' started by SaintFrank, Oct 24, 2021.

  1. SaintFrank

    SaintFrank Member

    Joined:
    Aug 14, 2021
    Messages:
    76
    Occupation:
    Proces operator
    Location:
    Nederland
    Balance:
    136Coins
    Ratings:
    +27 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hello everyone,

    Before getting into a real build ,I've build a 2DOF scale model with 2 sg90 servos and a arduino.

    I have some experience in arduino coding,
    Tested the servos with the arduino and they work 100%.

    installed sim tools and loaded the arduino code from
    "Original code By EAOROBBIE (Robert Lindsay)
    Completely mangled by aarondc"
    Changed Pin settings to my connections.
    changed int actuatorPosition[kActuatorCount] = {20, 160}; (
    changes made to the initial setting do change servos (so this part works)

    Changed settings in Sim tools game engine.

    But Output testing does not move servos .
    I think it has something to do with the interface output setting or some change i have to make in the code.

    Any help or tips for this beginner.

    Thanks simtools interface setting.jpg RCMODEL arduino code.jpg
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,464
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,620Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Your settings should EXACTLY be like this, so get rid of the extra bracket in your Interface settings and try Output Type: Decimal:

    [​IMG]
  3. SaintFrank

    SaintFrank Member

    Joined:
    Aug 14, 2021
    Messages:
    76
    Occupation:
    Proces operator
    Location:
    Nederland
    Balance:
    136Coins
    Ratings:
    +27 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    No luck with the settings you gave me Noorbeast.
    Will try uninstall and reinstall of simtools
  4. GWiz

    GWiz Active Member

    Joined:
    May 12, 2019
    Messages:
    179
    Occupation:
    Dentist
    Location:
    Aberdeenshire, Scotland
    Balance:
    1,453Coins
    Ratings:
    +116 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    I seem to remember that code worked with an older version of Simtools.

    Try changing the delimiter line in the Arduino code to:
    const char kEOL = ']';

    and then change your Interface- Output settings to:
    [R<Axis1a>][L<Axis2a>]

    See if that works with output type as Decimal.
  5. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,464
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,620Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    The settings I indicated should be correct, for SimTools 1.3 it was R<Axis1>~L<Axis2>~ for SimTools 2 the only change that should be needed is to R<Axis1a>~L<Axis2a>~