1. You must be a registered member to be able to access this page and to download game plugins. Please register here. It´s for free.
  2. 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
  3. 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!
  4. 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
  5. 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
eaorobbie

Communicating with an Arduino and Sim Tools 1.0

Serial communication of axis information from Simtools to an Arduino

  1. eaorobbie
    The attached code is to capture two axis outputs from SimTools, please not it actually doesn't drive anything and is taken directly from my RC Sim Model code to show
    Upload the supplied code to the Arduino via the Ard IDE, once uploaded you can simple test via the Serial Monitor to make sure its all working.
    Set to 9600.
    Command is - Rxxxxx~Pxxxxx~ where xxxxx can be a number up to 16bit.
    You should see the output in the monitor, this will not work when communicating with SimTools the Debug line needs to be commented (//) out so SimTools can work properly.

    You need to add in some kind of control for running your motors , servos, steppers, etc.

    Overtime I will update this further with items like above being controlled.
    BTW this can be expanded easily to 6 DOF if required I will post it later.
    3DOF 4DOF 6DOF to follow.

    Axis Assignments:
    AxisAssignments for SerialOutIn.png
    Interface setting for SimTools 2 is
    [​IMG]
    Remember to press save after changing.
    Now Start with the Output Testing and you can move the Roll and Pitch slider to do what you have set in the code at present nothing.
    First update will show an lcd read out of what is being sent.
    *** Sorry site not letting me up pics properly ? *****

    Images

    1. Interface settings for SerialOutIn.png