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 2560 R3 BOTTLENECK

Discussion in 'DIY Motion Simulator Projects' started by MagicMike, Feb 18, 2014.

  1. MagicMike

    MagicMike New Member

    Joined:
    Jan 26, 2014
    Messages:
    24
    Balance:
    961Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, Motion platform
    Finaly i have succeed to send 3 axis data from the SimTools to my arduino board . Everything works ok but after 3 minutes of game my arduino board stuck and it cant receive any data, i must reset by board and restart game after this. I am using @eaorobbie code
    . The game that i use is Wings Of Prey . My USB , Sim tools and arduino speed is 9600 20ms. Also i place a variable at Main loop and it stuck when i=3545 every time.... What is going wrong? :(

    *i have place an LCD screen and i can watch the 3 axis data.
    Last edited: Feb 18, 2014
  2. 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,440Coins
    Ratings:
    +1,684 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    The old code you are using is not efficient at all , I did warn you in another post it can be unstable, hence I was given a hand to develop a lot better of a code.
    V2 of the code that @aarondc helped me with is way easier to use and its way faster, you can pull out the way it handles the serial read, much better to use it. Or to fix your code you can put a check in the code to make sure the end value is between 0 - 255 if it goes higher, disregard the value and read the next.
  3. MagicMike

    MagicMike New Member

    Joined:
    Jan 26, 2014
    Messages:
    24
    Balance:
    961Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino, Motion platform
    Ok i purchase an FT232 break board and the data flow like water. Thank you mate :)
    • Useful Useful x 1
  4. 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,440Coins
    Ratings:
    +1,684 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    Ok might be another way around the issue. I use R3 cards seem to have a fair serial connection, but not the best why I dont use them to control motors.
    • Like Like x 1