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

Setting up Ocean Control k-5198

Discussion in 'SimTools compatible interfaces' started by stringer85, Jul 24, 2008.

  1. stringer85

    stringer85 New Member

    Joined:
    Jul 24, 2008
    Messages:
    7
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Has anyone used the Ocean control board with X-sim?

    I've just bought the vellemann k8055 & the Ocean control KT-5198 board.

    My problem I dont really no how to set the Ocean control board up in X-sim, I set the output to Universal Serial Ouput.
    I understand the board need to receive data in a certain way below:

    Serial commands are in the form

    @AA CMND XXXX

    and are terminated with the Carriage Return (CR) and Line Feed (LF) Characters.
    AA is the Address, as set by switches 1 and 2 (See Table 1).

    CMND is the four letter Command. Valid commands are shown in Table 2.

    XXXX is the Parameter. Each command has a valid parameter range.


    But I dont no how to make X-sim send the data in this way.

    Basically If anyone uses a similar setup could they talk me through setting up?

    Thanks
  2. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Hi stringer85,

    I don't think you can use just the KT-5198 to get the motion you need from x-sim...
    As KT-5198 is a motor speed controller you will also need a position encoder too! A controller that reads the position of the motors (of the cockpit) and send the proper speed and direction commands to the KT-5198.

    Don't bother with serial commands... Its there for use in robotic systems...! You can use my AMC1.5 controller's PWM output (with a small intermediate PWM to Volts converter, I'll tell more about it later...) and connect it to the analog speed input AN1 or AN2. You can also connect the STP/DIR input to control the direction of the motor.


    But there is something that troubles be about KT-5198... I've heard that you can't reverse the motor direction unless you fully stop it first:

    http://forum.racesimcentral.com/showpos ... stcount=61


    Regards, Thanos
  3. stringer85

    stringer85 New Member

    Joined:
    Jul 24, 2008
    Messages:
    7
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Thank Thanos for the quick reply!

    Couldnt I use pots connected to my Vellemann k8055 Card analogue inputs to give position of my motor/cockpit? and then somehow connect it to the KT-5198?

    Where can I buy one of your controllers? What connection do your controllers have?

    And would that be all I need, if I bought one of your controllers?

    Would I then be able to use X-sim with your controller?

    If I were to start again what boards would you recommend a beginner (myself) to use, to build a simple 2DOF (DC Motor) platform.

    Sorry about all the questions. Im just learning.

    Is there any sort of manual for X-sim?

    Thanks!
  4. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Hi stringer85,

    No, you can't do it this way, cause controlling the position of a DC motors requires calculation of time-related critical calculations that must be done fast enough so the motors will not overshoot or oscillate (PID algorithms). My AMC1.5 reads the position potentiometers and does these calculations in less than a fraction of a second (around 400 times per second).
    Velleman depends on the windows USB timing of its driver that is not more than 10ms... Too slow!

    You can build one for youself. I have posted detailed PCB plans, instructions and extensive description here:
    tronic-s-amc-motor-motion-controller-with-pwm-servo-output-t559.html
    Or if you are bored to search all the 38 pages, just download this:
    http://ptyxiouxos.net//greekbotics/user ... Mhb1_2.zip


    Its designed to work with x-sim motion software!!!


    You need two boards, the AMC1.5 and the DSMhb1.2b. The DSMhb1.2b is a powerful mosfet h-bridge driver that more info about you can find here:
    tronic-s-diy-dual-mosfet-h-bridge-t820.html

    And you can always take ideas for the hardware part (motors, cockpit, etc) from my motorized joyrider motion simulator, here:
    http://ptyxiouxos.net/greekbotics/user_ ... ulator.htm

    I haven't seen a single x-sim manual, cause the program itself is designed to work with so many configurations (DC motors, pneumatics, Hydraulics) and with various electronic interfaces, that is almost impossible to document all in one file. But there is a lot of info available here and on the main x-sim site.


    Best Regards, Thanos :cheers:
  5. egoexpress

    egoexpress Active Member

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

    stringer85 New Member

    Joined:
    Jul 24, 2008
    Messages:
    7
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    Thanks Thanos

    I think my best bet is to build the the AMC1.5 and the DSMhb1.2b. My ocean control board has most of the major components for the DSMhb1.2b board anyway so only need to etch the pcb.

    On the AMC1.5 board I'm having trouble finding 1.2nf Capacitor, will this one work?

    (http://www.crsupply.co.uk/shop/index.ph ... ductId=842)

    Also can I use a ATmega8535 16PU instead of ATmega8535 16PI?

    Thanks, Im gunna start converting my old scanner now for the PCB's!

    BTW I think its great how much effort you've put into all your work and that your sharing it for free, Thanks
  7. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    Hi stringer85,

    You can use the 1n2 capacitor on the link you gave. Its the same thing just different package.
    And you can use the ATmega8535 16PU !!! Its the same thing, just green part.


    Regards, Thanos
  8. JimNZ

    JimNZ New Member

    Joined:
    Feb 9, 2008
    Messages:
    3
    Balance:
    0Coins
    Ratings:
    +0 / 0 / -0
    >>But there is something that troubles be about KT-5198... I've heard that you can't reverse the motor direction unless you fully stop it first:

    http://forum.racesimcentral.com/showpos ... stcount=61<<

    Just caught up with this,,, it's wrong ,,, of course you can feed a command when it is going the wrong way (it doesnt have to be stopped.)

    On my setup, you could be going flat-out one direction and feed a command to it to go flat-out the other way ,,, and it done it !!! The board is made to do just that. !!!

    Hope that clears that up.
    See ya's ,,, Jim
    http://www.jimspage.co.nz