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

New Odrive firmware - How to interface

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by theoptimisticcynic, Dec 29, 2020.

Tags:
  1. theoptimisticcynic

    theoptimisticcynic New Member

    Joined:
    Dec 31, 2011
    Messages:
    18
    Balance:
    96Coins
    Ratings:
    +12 / 0 / -0
    Hi all, I'm finally starting the journey to building an Odrive based 2DOF setup to start and who knows, maybe I'll expand to a 6DOF eventually.

    The latest Odrive firmware take position input as a decimal float that defines the number of motor turns (or partial turns) instead of a number of encoder counts. The precision of the turns is limited by the CPR of the encoder. I know that other's used older firmware in their builds so wondering if anyone has solved this yet.

    I'm still very new to all of this but from what I saw the standard interfaces seem to scale output as a whole number only that is easy to correlate to the number of counts of an encoder in the old firmware.

    Is there an existing way to pass Simtools Axis values as a float that's scaled by the CPR?
    If not, would the best approach be to write a new interface plugin (based on this) that scales the -1 to 1 output value to a # of turns?

    What else am I missing
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,463
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,614Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    @SilentChill may be able to advise, as he uses Odrive based actuators.
  3. SilentChill

    SilentChill Problem Maker

    Joined:
    Jul 19, 2014
    Messages:
    2,619
    Occupation:
    Railway Maintenance
    Location:
    Morecambe, Lancashire, England
    Balance:
    20,396Coins
    Ratings:
    +3,480 / 34 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 6DOF
    We are all using a custom firmware, to be honest and I have no idea with how to connect to simtools as I just use Mover now.

    I did attempt to make a tutorial for the software side but im not the best at it lol

    https://www.xsimulator.net/communit...190kv-bldc-6dof-here-we-go-again.13879/page-1
    • Informative Informative x 1
  4. theoptimisticcynic

    theoptimisticcynic New Member

    Joined:
    Dec 31, 2011
    Messages:
    18
    Balance:
    96Coins
    Ratings:
    +12 / 0 / -0
    Thanks, that was what I was afraid of haha. Was it someone on the Odrive community that helped customize? I am starting a thread there with some of my questions as well. so will try to keep the info flowing here as best I can.

    -B
  5. SilentChill

    SilentChill Problem Maker

    Joined:
    Jul 19, 2014
    Messages:
    2,619
    Occupation:
    Railway Maintenance
    Location:
    Morecambe, Lancashire, England
    Balance:
    20,396Coins
    Ratings:
    +3,480 / 34 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 6DOF
    Jonathan from insectatech is the man, he done a lot of work with the odrives with his sims.

    There's a few discussions over on xsimulator discord as well as scattered around the forum.
    • Like Like x 1