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

RC Model for Motion Simulation

Discussion in 'SimTools compatible interfaces' started by eaorobbie, Jul 17, 2013.

  1. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,460
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,596Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    No the 12V12 can't @john a. Other versions of JRKs can but would require custom interface code. Grab a cheap arduino instead.
    • Agree Agree x 1
    Last edited: Jan 13, 2015
  2. Soc

    Soc New Member

    Joined:
    Jan 20, 2015
    Messages:
    13
    Location:
    Canberra, Australian Capital Territory
    Balance:
    273Coins
    Ratings:
    +23 / 0 / -0
    Hi guys, Figured i'd post in here because it relates directly to arduino to Simtools with RC servos (Aka, following your thread!)

    I've used the script from the wiki/download (there's a typo in the one on the front page)

    I've installed SimTools, uploaded the correct config to Arduino, and I've followed the SimTools quickstart guide at http://www.xsimulator.net/simtools-quickstart/ and I'm at the "set the interface settings" and then do the "output testing"

    I've followed the pictures on the Quickstart guide exactly, and it failed.
    Ive set the BitsPerSec to 9600 (same as it's set in Windows and in the Arduino script) and it's still not working.

    When the "output - type" is set to Hex (as per the quickstart guide) the servo will reset to 0 position, but absolutely no movement when fiddle with stuff on output testing window.

    When the "output - type" is set to Decimal it moves one servo to 90 degrees, then halts there. No movement with the output testing. Turning off "output testing' resets the servo back to 0 position.

    When the "output - type" is set to Decimal it moves one servo to 180 degrees, then halts there but continues to tick as it wants to move more.

    Obviously I've done something wrong. I've had both servo's moving using other scripts I found on the Arduino site so they are both functioning on the ports they are connected too.

    Does the Output Testing window not work with Arduino/servos? I move the sliders both directions, and nothing happens

    Help?
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,460
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,596Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Can you post some screen shots of all your settings, I am pretty sure it should be set to serial, 9600, 8 bit.
  4. Soc

    Soc New Member

    Joined:
    Jan 20, 2015
    Messages:
    13
    Location:
    Canberra, Australian Capital Territory
    Balance:
    273Coins
    Ratings:
    +23 / 0 / -0
  5. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,460
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,596Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    And your axis assignments?

    The settings looks right to me, other than the startup and shutdown which I have never bothered with. @eaorobbie can you advise further?
    • Informative Informative x 1
    • Old Old x 1
  6. Soc

    Soc New Member

    Joined:
    Jan 20, 2015
    Messages:
    13
    Location:
    Canberra, Australian Capital Territory
    Balance:
    273Coins
    Ratings:
    +23 / 0 / -0
    I just selected the Stock standard SimForceGT setting as per the quick guide?
    [​IMG]
  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,460
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,596Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  8. Soc

    Soc New Member

    Joined:
    Jan 20, 2015
    Messages:
    13
    Location:
    Canberra, Australian Capital Territory
    Balance:
    273Coins
    Ratings:
    +23 / 0 / -0
    Success! I've had to fiddle a bit with those settings, but I've got it working, and I even did 2 laps of Live for Speed :) so I'm going to call that a success.

    Unfortunately, if I drive the motors with %100 Main Level in the Profile Editor on Game Manager, it seems to shit itself. I suspect its either attempting to do to much power, or I've got a faulty arduino. (To be fair, It's spent ~1-2 years sitting in a metal tin. It's possible I've broken a contact somewhere or even that my PC has a faulty USB port. I might pull out the laptop and connect it to that, but for now, huzzah for me. :p

    I think the wife has even given me a tentative go ahead... I think I'll just accept it's a go-ahead to get some steel and start figuring out the frame :)
  9. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,460
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,596Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Great stuff @Soc, including the all important tentative go ahead!

    It would be worth posting your settings so there is a record for anyone else.

    As a starting point for this and other testing split the axis percentage to total 100%, normally testing starts at 20% for each DOF setting, doing one at a time until satisfied with the results.
    • Like Like x 1
  10. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,390Coins
    Ratings:
    +1,683 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    @Soc do you have a power supply hooked into the Eleven. This is needed to run more than one Servo.
    This will be why the it goes crap at 100%.
    Plus hope you not using those interface setting for my code , wont run ? Im sure I posted the setting in the download section.
    Maybe not here, Ah too many places sorry.
    Anyway @Soc welcome to give me a bell if ya need a hand.
  11. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,390Coins
    Ratings:
    +1,683 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    If you remove the pcb from the servo and solder wires directly to the servos internal pot and put it all back together minus motor and pcb , the answer is YES this the first way I had setup my Jrks, I even had the Ard sending an RC signal to the Jrks to drive the DC motors, before discovering that I could send command via a USB port. Plus found the old versions of the Ard to be way too unstable too. Revision 3 of the Ard is a lot more stable thou.

    So @john a hope that help you.
  12. Aaron450

    Aaron450 New Member

    Joined:
    Jul 24, 2015
    Messages:
    17
    Location:
    tasmania
    Balance:
    357Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Im gettting this error message when trying to upload sketch....."


    Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Uno"
    RC_Sim_Model.ino: In function 'void setup()':
    RC_Sim_Model:20: error: expected ')' before ';' token
    expected ')' before ';' token
    This report would have more information with
    "Show verbose output during compilation"
    enabled in File > Preferences.


    Any help would be great, im new to this and am keen to learn....
    • Like Like x 1
  13. kimballfount

    kimballfount Member

    Joined:
    Oct 12, 2015
    Messages:
    88
    Location:
    greer,sc
    Balance:
    879Coins
    Ratings:
    +14 / 3 / -0
    My Motion Simulator:
    2DOF, Arduino


    Hey man, one quick, probably stupid question for you. Im building my flight sim using servo motors, one of them is a 750w dc which controls roll, and one is a 500w for pitch. I'm too new to download simtools, so I havent been able to do any tinkering. My question is can Simtools send both heave and pitch to a single servo, or does it require two separate motors? It seems to me the pitch/heave position data would contradict and not work for a single motor.
  14. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,568Coins
    Ratings:
    +1,831 / 32 / -1
    Yes it can.

    It works just fine. However, it is true that at times the pitch and heave data will counter the other to some extent.
    • Agree Agree x 1
  15. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,460
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,596Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    • Like Like x 1
    • Agree Agree x 1
    Last edited: Dec 31, 2015
  16. mariana fino

    mariana fino

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Hi,i have make your progect and its perfect,very good job,now i am trying to atach a 3 servo in your code for traction loss ,but i am just starting with arduino, i need help with the code for uno r3 ,ty for all information posted until now!;)
  17. Jun

    Jun New Member

    Joined:
    Sep 2, 2015
    Messages:
    27
    Location:
    South America
    Balance:
    7,046Coins
    Ratings:
    +32 / 1 / -0
    It's pretty simple, I used @eaorobbie code (which is meant to be easily modifiable) and add another servo "actuator". Try to download this zip, includes code, wire diagram and simtools setup.

    Attached Files:

    • Like Like x 4
    • Agree Agree x 1
    • Informative Informative x 1
  18. mariana fino

    mariana fino

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
  19. mariana fino

    mariana fino

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Thank you,i start tomorow working on this ,happy new year!!and thankyou again!!Jun!!;)
  20. mariana fino

    mariana fino

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Perfect,it works very good,now its just tunnig the traction lose (sway axis) to be smooth,ty again for the code!just change the pin out on the code for my wiring,very easy!!!