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

X-sim and EZIO questions

Discussion in 'SimTools compatible interfaces' started by kjg71, Nov 5, 2007.

  1. kjg71

    kjg71 New Member

    Joined:
    Sep 12, 2007
    Messages:
    61
    Occupation:
    Designer
    Location:
    Toledo, Ohio - USA
    Balance:
    9Coins
    Ratings:
    +0 / 0 / -0
    I have moved these questions to another topic as they are different then the FeelFX project update and deal more with interfacing to X-sim with a card I'm sure not many (if any are using)

    What Would be really cool if I could get ezio and velleman to work with x-sim.

    Not focusing 100% on this yet as I am still focusing on mechanics, but would like to know if this is not possible, I would think that Thanos' controller would need to replace what I use at least for gaming ....and I would have to build or buy one....I could not make one of those from scratch or just plans.

    My total pwm need is maybe 6 ports for the system, but currently this is being done from multiple I/O cards as you can see.

    @ego

    I think you said that I would have 1 instance of X-sim for each 2 ports? I am wondering if 3 instances would be an issue on CPU?

    How is Thanos' port going to be handled? will 2 instances 1 for each two be up and running for the 4 PWMs line?


    just courious how hard is it to get a card like EZIO to work with X-sim. I imagine someone has to program that into the software? It just doesn't see cards as generic I/O cards doesn it? Who is the person to ask about that?
  2. egoexpress

    egoexpress Active Member

    Joined:
    Dec 13, 2006
    Messages:
    3,839
    Location:
    Germany - Frankfurt/M
    Balance:
    421Coins
    Ratings:
    +10 / 1 / -0
    Hi Kyle

    Thanos interface works completly different comparing to the velleman. It operates independant from the PC via USO, as all motor driving and positioning is done by the microcontroller.
    It uses currently two USO ports. X and Y.
    The 4 PWMs and the pots/encoders are contolled via its microcontroller.

    There are two operating modes in the current ForceProfiler 1.X
    The active controlling of 8 on/off ports via the velleman or the USB 1.3 interface, or a passive X,Y output via the USO.

    How would you operate the PWMs of the EIZO board? Does it control them autonomeously? Do you have some code to control the pwm of the motors?
    Because X-Sim cannot control PWMs.

    regards
  3. kjg71

    kjg71 New Member

    Joined:
    Sep 12, 2007
    Messages:
    61
    Occupation:
    Designer
    Location:
    Toledo, Ohio - USA
    Balance:
    9Coins
    Ratings:
    +0 / 0 / -0
    ego,

    sounds like the passive X,Y output via the USO is the only way to get speed control.

    The answer to EZIO control is that it does need scripting to send via a program or script that can communication with serial.

    The board accepts ASCII Messages and returns ASCII results

    so to set the pulse-width-modulation duty cycle (PWM):

    send out P (ascii 80)
    send out pwm port line number as ASCII character, 0 or 1 (the board has two)
    send out the duty cycle as two chars/bytes, high byte first, then low byte, as such to make a 10-bit number (0- 1023)

    For example: to set the duty cycle to 100% (full on), send out ascii 03 in the high byte, followed by ascii 255 in the low byte.

    I actually have a plugin for the card for my scripting language so things are really easy for me

    it makes it a little more strait forward ...I just send this for full on to port 1 its:

    ezio.pwm (1, 1023)

    I don't have to worry about the two bit chars calculation.

    Definately sounds like x-sim needs to know how to communicate that way and I doubt if that is something that would be supported? Sounds like it would take some work from a X-sim coder?

    ....but for what its worth that is the way it communicates. Probably not to bad for someone who understands serial Commuication well. So not sure how well it would interface with X-sim if possible?