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

Showroom FlyPT - 6DOF Brushless DIY Actuators

Discussion in 'DIY Motion Simulator Projects' started by pmvcda, Aug 29, 2017.

  1. Spit40

    Spit40 VR Flyer

    Joined:
    Nov 3, 2016
    Messages:
    341
    Location:
    United Kingdom
    Balance:
    2,881Coins
    Ratings:
    +198 / 3 / -0
    My Motion Simulator:
    3DOF
    That sounds great. The load test will be very interesting. This may very well be the excuse I need to buy a 3D printer.
  2. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF

    i ordered up a ESP32 - just trying to get it configured

    did you find any tricks to get it to count an interrupt on one processor and run the main loop on the other ?
  3. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    1,846
    Location:
    Portugal
    Balance:
    14,096Coins
    Ratings:
    +2,169 / 16 / -0
    My Motion Simulator:
    6DOF
    For a small guide on using interrupts, take a look here:
    https://techtutorialsx.com/2017/05/09/esp32-running-code-on-a-specific-core/

    I have not tried yet...
    By default, it seems that all interrupts run on core 0 (https://www.esp32.com/viewtopic.php?t=3689), so we can use core 1 for other code (setup and loop run in core 1).
    So from above, it automatically separates execution in the two cores if we are using interrupts.



    EDIT: Also this link: https://www.hackster.io/rayburne/esp32-in-love-with-both-cores-8dd948
    Last edited: Jul 16, 2018
  4. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    1,846
    Location:
    Portugal
    Balance:
    14,096Coins
    Ratings:
    +2,169 / 16 / -0
    My Motion Simulator:
    6DOF
    OK, changed the code to run the position function inside core 0.
    It works well.
    Is it faster? I don't know. But it should be.
    To use another core make something like this:
    Code:
    TaskHandle_t TaskA;
    TaskHandle_t TaskB;
    
    
    void setup()
    {
     // Start runing tasks... (in any core we want, we can make a task for core 1 with higher priority)
     xTaskCreatePinnedToCore(
       TaskUpdatePosition,     // Task function code
       "UpdatePosition",       // Name
       10000,                  // StackDepth, size
       NULL,                   // Parameters
       2,                      // Priority 0=low high number=high
       &TaskA,    // CreatedTask
       0);                     // Core where the task runs (0 or 1)
    
     xTaskCreatePinnedToCore(
       TaskGetSerial,          // Task function code
       "GetSerialInfo",        // Name
       10000,                  // StackDepth, size
       NULL,                   // Parameters
       1,                      // Priority 0=low high number=high
       &TaskB,                 // CreatedTask
       0);                     // Core where the task runs (0 or 1)
    }
    
    
    
    
    void TaskUpdatePosition( void * parameter )
    {
      // Must run task code inside loop...
      while (true)
      {
        updatePositions(); // Code runing inside task
      }
    }
    
    void TaskGetSerial( void * parameter )
    {
      // Must run task code inside loop...
      while (true)
      {
        getSerial(); // Code runing inside task
      }
    }
    
    
    void main
    {
    
     // Some code runing in core 1...
    
    }
    • Useful Useful x 1
  5. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    thanks for sharing that :)

    its good that it defaults the interrupt onto one core !
  6. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    1,846
    Location:
    Portugal
    Balance:
    14,096Coins
    Ratings:
    +2,169 / 16 / -0
    My Motion Simulator:
    6DOF
    Got some time,
    it works with 3 actuators! :D
    But I need to clean the mess :confused::
    WP_20180717_23_07_21_Rich.jpg
    • Like Like x 3
    • Informative Informative x 1
  7. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    1,846
    Location:
    Portugal
    Balance:
    14,096Coins
    Ratings:
    +2,169 / 16 / -0
    My Motion Simulator:
    6DOF
    OK, I got some parts and started cleaning the mess:
    WP_20180727_18_25_46_Rich.jpg

    Well, more or less...
    WP_20180727_18_25_53_Rich.jpg

    One done, need another one.
    And 6 looms/cables...
    • Like Like x 3
  8. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    1,846
    Location:
    Portugal
    Balance:
    14,096Coins
    Ratings:
    +2,169 / 16 / -0
    My Motion Simulator:
    6DOF
    1 of 6 made:
    WP_20180729_16_06_31_Rich.jpg

    I'm also printing the remaining parts to hold the actuators, since I got the base:
    WP_20180724_10_43_11_Rich.jpg
    • Like Like x 1
    Last edited: Jul 29, 2018
  9. Spit40

    Spit40 VR Flyer

    Joined:
    Nov 3, 2016
    Messages:
    341
    Location:
    United Kingdom
    Balance:
    2,881Coins
    Ratings:
    +198 / 3 / -0
    My Motion Simulator:
    3DOF
    Very tidy engineering. Can't wait to see some load tests.
    • Agree Agree x 1
  10. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    1,846
    Location:
    Portugal
    Balance:
    14,096Coins
    Ratings:
    +2,169 / 16 / -0
    My Motion Simulator:
    6DOF
    Well, I made it today:
    WP_20180729_19_02_25_Rich.jpg

    Used some weights to hold down sun umbrellas.
    They have 26kg each.
    Unfortunately, I had no space in the phone to make a movie, only pictures.
    I will repeat and make a movie, but the weight was a bit unstable.

    I had 3 weights, and it lift the 3 so 3 x 26kg = 78kg more than enough... :)
    • Like Like x 4
  11. Spit40

    Spit40 VR Flyer

    Joined:
    Nov 3, 2016
    Messages:
    341
    Location:
    United Kingdom
    Balance:
    2,881Coins
    Ratings:
    +198 / 3 / -0
    My Motion Simulator:
    3DOF
    That b&d workmate looks to be in just as good condition as mine ;)

    So you were lifting 78kg with one actuator? That's great! We'll get a sense of the speed when we see the video.
  12. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    1,846
    Location:
    Portugal
    Balance:
    14,096Coins
    Ratings:
    +2,169 / 16 / -0
    My Motion Simulator:
    6DOF
    I have to say that I really love that Workmate. She was stored in the outside for 3 years, at rain and sun, but she's still useful, but I have to replace the wood...

    And, I made one of those stupid mistakes! :blush
    Until now, since I have been testing the actuators without big loads, I had no protection for the power supply, so in the hurry to see the results, guess what...
    78kg going down and some bad PID values = Lot's of EMF.
    So I have to send the power supply for repair :eek:

    What should I use? Diodes? Witch type and values?

    Power-Supply-with-Brushless-dc-motor.jpg
    (Taken from: https://www.designworldonline.com/using-power-supplies-with-dc-motors/ or https://blog.uk.tdk-lambda.com/uk/2...-external-diodes-be-used-with-a-power-supply/)

    HELP! :eek:

    Motor specs:
    motor.jpg

    Power supply (in red):
    MeanWell.jpg
    • Like Like x 1
    Last edited: Jul 30, 2018
  13. Spit40

    Spit40 VR Flyer

    Joined:
    Nov 3, 2016
    Messages:
    341
    Location:
    United Kingdom
    Balance:
    2,881Coins
    Ratings:
    +198 / 3 / -0
    My Motion Simulator:
    3DOF
    Oh nooooooooo. Thanks for pioneering this new tech for those that hope to follow.
  14. Spit40

    Spit40 VR Flyer

    Joined:
    Nov 3, 2016
    Messages:
    341
    Location:
    United Kingdom
    Balance:
    2,881Coins
    Ratings:
    +198 / 3 / -0
    My Motion Simulator:
    3DOF
    Any luck with that PSU? I've been following this development with great interest as have many others i'm sure. We should club together and buy you a new one so you can carry on and produce a reference design for us :)
  15. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    1,846
    Location:
    Portugal
    Balance:
    14,096Coins
    Ratings:
    +2,169 / 16 / -0
    My Motion Simulator:
    6DOF
    The PSU is being repaired. Must get it this week.
    Meanwhile, I got some diodes, made the new cables, replaced the pots with resistances in the actuators, printed the supports for the actuators...

    Top mount:
    WP_20180803_11_34_10_Rich.jpg

    WP_20180803_11_36_26_Rich.jpg

    WP_20180803_11_37_05_Rich.jpg

    Bottom mount:
    WP_20180802_16_29_14_Rich.jpg

    WP_20180803_09_18_18_Rich.jpg

    WP_20180805_10_29_38_Rich.jpg

    Waiting for the PSU to make a new load test with video.
    • Like Like x 1
  16. Spit40

    Spit40 VR Flyer

    Joined:
    Nov 3, 2016
    Messages:
    341
    Location:
    United Kingdom
    Balance:
    2,881Coins
    Ratings:
    +198 / 3 / -0
    My Motion Simulator:
    3DOF
    Looks great. Not long now before I can justify buying a 3D printer. The 3D printed brackets/supports are a big part of the appeal of this build for me as many other actuator designs seem to require complex machined parts. Its also great that you can share the design as I have very little experience of 3d modelling.

    Tell me - does it use lots of filament to make blocks that big? Most of the 3d printed stuff I've seen is quite small. These look chunky. How does it equate in terms of cost of materials?
  17. Flymen

    Flymen Flymen Gold Contributor

    Joined:
    May 19, 2018
    Messages:
    334
    Location:
    Montreal, Canada
    Balance:
    2,409Coins
    Ratings:
    +191 / 2 / -0
    My Motion Simulator:
    DC motor, 6DOF
    Thank you very much for the information . I am a bit transparent on the forum but I'm currently mounting a platform almost identical to yours with drive and similar engine and I had not imagined the return of tension. I'm reading you in time ... thank you!
  18. pmvcda

    pmvcda aka FlyPT

    Joined:
    Nov 3, 2010
    Messages:
    1,846
    Location:
    Portugal
    Balance:
    14,096Coins
    Ratings:
    +2,169 / 16 / -0
    My Motion Simulator:
    6DOF
  19. Dirty

    Dirty Well-Known Member Gold Contributor

    Joined:
    Oct 15, 2017
    Messages:
    736
    Occupation:
    All the way up front.
    Location:
    Germany
    Balance:
    7,825Coins
    Ratings:
    +859 / 2 / -0
    Hmmm,....

    I calculated those values as well for my own design, but come to a different result:
    If you apply 0,6Nm to a SFU1605 they should reach a push force of 754N (75Kg). Or did I miss something? The speed of 292mm/s is correct though.
  20. Dirty

    Dirty Well-Known Member Gold Contributor

    Joined:
    Oct 15, 2017
    Messages:
    736
    Occupation:
    All the way up front.
    Location:
    Germany
    Balance:
    7,825Coins
    Ratings:
    +859 / 2 / -0
    ...could it be that you used the diameter (16mm) instead of the radius (8mm) in your calculations?