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

Can X-sim communicate with Picaxe chips?

Discussion in 'Miscellaneous' started by xtech007, Aug 16, 2010.

  1. xtech007

    xtech007 Member

    Joined:
    Aug 4, 2008
    Messages:
    58
    Balance:
    24Coins
    Ratings:
    +1 / 0 / -0
    Good Evening Forum.
    My Intentions are to Communicate x-sim via- USO.
    I'm wondering if anyone else have accomplish the communication.

    I have made a control unit that reads of a pot from the steering wheel I personally modified to read Input.
    Another pot installed at the position of the motion mechanism to give position.
    Both communicate to the picaxe 28x1 chip, the chip is programmed to give I2C communication to a MD03 H-bridge to drive Geared DC motor. the direction is driven my a simple math code programmed in the chip, and input by the first pot.
    here is a video of the result:

    http://www.youtube.com/watch?v=pNBx1fkB0CA


    Problem:
    its mechanical, and not realistic to the input of the game but steering wheel input.
    I would like it to actually feel the game inputs driven by the game not my steering wheel.
    anyone's assistance will be greatly appreciated.
  2. egoexpress

    egoexpress Active Member

    Joined:
    Dec 13, 2006
    Messages:
    3,839
    Location:
    Germany - Frankfurt/M
    Balance:
    421Coins
    Ratings:
    +10 / 1 / -0
    The USO is not able to communicate. The USO is uni-directional.
    You have to configure your hardware to accept commands in the following format:
    (example for 2 axis and a resolution of 255)
    AB~255~~a01~~a02~

    You can get further info here:
    http://www.x-simulator.de/beta/uso.html

    Does your hardware support variable speeds?
  3. xtech007

    xtech007 Member

    Joined:
    Aug 4, 2008
    Messages:
    58
    Balance:
    24Coins
    Ratings:
    +1 / 0 / -0
    Thanks for the fast reply!
    Yes, it can support Variable speeds. I used the speeds to compensate for the speed of the motion to encounter weight of the user. if you notice in the video the machine with no weight in it is jerky, but when I sit on it ( average 180 lbs) is smooth.

    Back to the program side, The Picaxe can Receive and send out Serial communication in the following format:
    serin 7, N9600_16, (AB), b4, b5, b6, b7, b8, b9
    serout 7, N9600_16, (Q, b11, b10, b13, b12, b15, b14)
    this format works with Mr Ian's Hopper BFF Motion Driver software and 64SPU-1 card using a picaxe chip too.

    Problem:
    it only works with FSX. Not Racing simulators.

    if anyone can cross-data between x-sim and BFF Motion Driver software maybe we can get this to work.
  4. Frakk

    Frakk Active Member

    Joined:
    Apr 15, 2009
    Messages:
    1,144
    Balance:
    328Coins
    Ratings:
    +4 / 0 / -0
    There is no need for feedback.

    Here is what you need to do:

    Configure your picaxe and X-Sim to communicate with the same packet frames. For example: AB~a01~~a01~
    Where AB is just 2x 8bit ascii characters, ~a01~ and ~a02~ is your 2 axis, setup in the Math section. These numbers can be configured 8, 16, 32bits.

    After you receive these axis positions, you just have to substitute them in instead of the ADC result of your potentiometer. Might need to do some scaling and divide or multiply it.

    Use the TestPlugin to make things work and get familiar with it.

    Good luck!!