1. 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!
  2. 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
  3. 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

Showroom 2DOF + traction loss using Brushless DC motors

Discussion in 'DIY Motion Simulator Projects' started by John Snell, Sep 16, 2021.

  1. John Snell

    John Snell Member

    Joined:
    May 31, 2021
    Messages:
    33
    Balance:
    241Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I needed to try something different. Either new BLDC drivers, or something other than the arduino SMC3. New drivers will cost me $200, and take a while to arrive so I decided to try the other option first.

    As mentioned above, FlyPT's (pmvcda) system runs on an ESP32, and uses the motor hall sensor for positioning which has a big advantage for me.

    So I got PCBs for the ESP32 created at allPCB.com. Gerber file for this, created by @fcppenta (thanks mate) is in the link below. For a new accounts at allPCB the first order is free (including worldwide shipping with DHL) so they were created and delivered within a week! Wow!

    https://www.xsimulator.net/communit...hless-diy-actuators.10799/page-38#post-218195

    I've made all other connections, including limit switches, and uploaded the ESP32 code created by the genius @pmvcda (thanks mate) from the link below:
    https://www.xsimulator.net/community/threads/flypt-6dof-brushless-diy-actuators.10799/#post-139682
    IMG_3248.jpg
    There are still a lot of things that could have been done wrong, a lot of potential for crossed wires despite the PCB doing much of the connections work. My BLDC driver direction pin is active low, so will it run in reverse? Will it run at all? Will it go up in a puff of smoke?

    I'm a little afraid to find out right now, and running out of time. I'll recheck all connections, and give it a go tomorrow.

    [EDIT] The motor ran as soon as I powered it up. Next I pressed one of the limit switches, and the motor stopped (makes sense it was at it's limit). Unfortunately I have not managed to get it to run again. More effort is still required.
    Last edited: Nov 8, 2021
  2. John Snell

    John Snell Member

    Joined:
    May 31, 2021
    Messages:
    33
    Balance:
    241Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Now that we are starting the holiday period, I'm hoping to make some progress.

    Since my last post some parts have arrived. They are:
    1 x 1500w 24v PSU
    1 x Universal Joint
    3 x Wantai BLDC-8015A drivers
    and a little more steel

    PROGRESS I think... with one of the ESP32 boards connected to a Wantai BLDC driver, and after uploading ESP32 code by @pmvcda, via Arduino IDE, my motor now runs smoothly and completes it's calibration. Very happy about that.



    Tomorrow I'll try to go beyond calibration and see if I can get smooth movement via SMC3Util and Sim Tools input, and then it will finally be time to start building the actual frame itself, starting with the traction loss part.
    • Like Like x 3
    Last edited: Dec 20, 2021
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    17,543
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    126,408Coins
    Ratings:
    +9,886 / 47 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Just checking if you have progressed further over the festive season?
    • Like Like x 1
  4. John Snell

    John Snell Member

    Joined:
    May 31, 2021
    Messages:
    33
    Balance:
    241Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks for checking in @noorbeast. There's certainly been a lot of effort, but not much progress unfortunately. I've burnt out one of the ESP32 boards and now using my one backup.

    As mentioned above, motor calibration works well and runs smoothly using the ESP32 with associated code provided by pmvcda, and Wantai driver

    The main focus now is to get FlyPT Mover to connect to do something useful with a "loop" as input, and this is where I'm stuck. It either does nothing or it goes a little crazy (randomly). Frustrating! :confused:

    Following that I want to switch to Simtools as the input.

    I'll do more reading (there's soooo many posts) and will also post questions on either of pmvcda's threads soon, but if anyone has a simple FlyPT Mover setup that can run a "single rotating actuator" Rig with output to pmvcda's ESP32 code, then could you please send it to me?

    Thanks a lot
    Last edited: Jan 4, 2022
  5. John Snell

    John Snell Member

    Joined:
    May 31, 2021
    Messages:
    33
    Balance:
    241Coins
    Ratings:
    +18 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    After much more effort that I thought it would take, it finally seems to run smoothly in response to in-game feedback. I must say I'm very happy to have reached this point.

    The overall aim is to use FlyPT Mover (so that BLDC motors run smoothly) with Sim Tools for game input.

    Sorry for the rubbish video but hopefully shows it responding to feedback from LFS:


    There's still an issue with a very specific order of events needed to connect the ESP32 and make it run (that took some time finding!), but at least for now I know that sequence.

    I'm now moving on to building the frame, and I have redesigned it again for simplification. I needed to keep in mind that there must be room for the 3 motors where they are needed and to reduce overall height by allowing the motor arms can go all the way to the floor at their lowest point. The image shows the two components and then how they will work when mounted together.

    traction loss frame.JPG

    EDIT: For my benefit the sequence is:
    1./ reboot the ESP32 using the onboard reboot button
    2./ while it is rebooting (or even calibrating), click on Connect in the Flypt Mover output to connect the ESP32
    The motor/lever should then centre itself and you know it is ready to go.
    • Like Like x 3
    Last edited: Jan 13, 2022