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 2dof frame mover 24v arduino sabertooth

Discussion in 'DIY Motion Simulator Projects' started by matthew loomis, May 28, 2017.

  1. matthew loomis

    matthew loomis Member

    Joined:
    May 18, 2017
    Messages:
    94
    Location:
    rochester,ny
    Balance:
    603Coins
    Ratings:
    +82 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Ok. Loose wire. Got some video.

  2. Andrew M

    Andrew M P_H_O_3_N_I_X Gold Contributor

    Joined:
    May 11, 2017
    Messages:
    108
    Occupation:
    IT Chief Programmer / CTO
    Location:
    Warsaw, Poland
    Balance:
    573Coins
    Ratings:
    +98 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    If oscilations are mechanical, then you need to improve something on the RIG - I had same situation, but after fixing oscilations still remained, and for this experiments helped [ configuration in SMC ]:
    PWN min 20, max 180, and KV 500, all KP/PI to 0 [ if around 40 was shaking like crazy ] / even deadzone to 0-1 and it somehow stopped shaking... in LifeForSpeed movements were also not smooth - so I need to set Sway/Surge to 5% and in *filters add smoothness to 60% -> then is started somehow to make more predictable movements. - also still tuning.
  3. matthew loomis

    matthew loomis Member

    Joined:
    May 18, 2017
    Messages:
    94
    Location:
    rochester,ny
    Balance:
    603Coins
    Ratings:
    +82 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Ok I need to rethink something. Chair moves great. Can't handle weight. Power supply keeps tripping. I'm gonna make a short arm and try that. It is a used power supply, kinda questioning as it's supposed to be 600 watt and one motor is tripping it. Batteries may be in my future, or a giant capacitor bank, I have those.
  4. matthew loomis

    matthew loomis Member

    Joined:
    May 18, 2017
    Messages:
    94
    Location:
    rochester,ny
    Balance:
    603Coins
    Ratings:
    +82 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Ok changed arms to 1.5"ctc now everything works. I can "ride" the motion sim in the smc3 tuner. And i can move the wheel arm to the forward position, had to move the seat up a click for cg.
    • Like Like x 1
  5. matthew loomis

    matthew loomis Member

    Joined:
    May 18, 2017
    Messages:
    94
    Location:
    rochester,ny
    Balance:
    603Coins
    Ratings:
    +82 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    So I just saw my chair lean back when I hit the gas, forward with breaks lean with turns and a good general chug hitting a wall. Time to try this thing!
    • Like Like x 2
  6. matthew loomis

    matthew loomis Member

    Joined:
    May 18, 2017
    Messages:
    94
    Location:
    rochester,ny
    Balance:
    603Coins
    Ratings:
    +82 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Just ran my first laps in live for speed. Pitch was inverted but roll surge and heave were right. Motion is awesome!
    Now do I play all day or take it apart for final paint and electric mounting?
    • Like Like x 2
    • Funny Funny x 1
  7. RandomCoder

    RandomCoder Active Member Gold Contributor

    Joined:
    Feb 19, 2017
    Messages:
    185
    Occupation:
    Control Engineer
    Location:
    UK
    Balance:
    1,674Coins
    Ratings:
    +142 / 0 / -0
    I'd opt for play all day, but instead of calling it that I'd say performance testing and running in. No point painting just yet, enjoy your sim and ensure that it's reliable first. Paint can come later ;)
    • Agree Agree x 2
  8. matthew loomis

    matthew loomis Member

    Joined:
    May 18, 2017
    Messages:
    94
    Location:
    rochester,ny
    Balance:
    603Coins
    Ratings:
    +82 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Received my diy licence today. I feel like it is a trophy. Thank you so much to this whole community.
    I'm working on some detailed posts about some of the settings and setup I somehow stumbled my way through. I would be happy to share any info.
    But for now just some thanks. Without these people and their projects, I could never have made this happen.

    @BlazinH and his smc3 sabertooth sketch that I don't understand at all but just works.
    @RufusDufus for creating the arduino uno interface
    @noorbeast for the huge amount of help all across the forums that I gathered and his great design
    @SilentChill and @SeatTime for keeping me humble humble
    @RandomCoder and @Andrew M for the support for my project

    And all other people who hammered through this before me.

    Thank you.
    • Like Like x 4
    • Friendly Friendly x 2
  9. matthew loomis

    matthew loomis Member

    Joined:
    May 18, 2017
    Messages:
    94
    Location:
    rochester,ny
    Balance:
    603Coins
    Ratings:
    +82 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Got to try to tune project cars today. Took a while but pretty much tuned in. Was pretty warm after 2 hours, thinking about air holes
  10. matthew loomis

    matthew loomis Member

    Joined:
    May 18, 2017
    Messages:
    94
    Location:
    rochester,ny
    Balance:
    603Coins
    Ratings:
    +82 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Ok I'm going to share my SMC3 pid settings and sim tools settings here. I'm open to suggestions, most of the posts are for jrks and such and are quite different. I'll leave these here to show how they changed to fix the problems

    Fpid/1
    Kp 260
    Ki 0
    Kd 210
    Ks 1
    Pwmmin 5,3
    Pwmmax 134
    Pmwrev 0
    Dead zone 1

    These settings are pretty harsh. It needs to smooth out a bunch. Occasional short oscillation with empty seat with big step change but so far good with a rider. Graph shows almost no overshoot and a very very close green blue.

    And here are my current Sim tools settings for project cars.
    Pitch and roll are switched up somewhere. It works this way but is screwey.

    Axis a1. Axis b2
    Roll 60. 60
    Pitch i60. 60
    Heave i40. I40
    Surge i40. I40

    My roll and gear shift are great, can't seem to get a good lean back for acceleration, and curbs are too harsh.
    • Like Like x 1
  11. matthew loomis

    matthew loomis Member

    Joined:
    May 18, 2017
    Messages:
    94
    Location:
    rochester,ny
    Balance:
    603Coins
    Ratings:
    +82 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Should have started here but I found it now. I was way off and am using the wrong forces.
    • Agree Agree x 1
  12. Tim McGuire

    Tim McGuire "Forever a work in progress"

    Joined:
    Jul 26, 2015
    Messages:
    261
    Occupation:
    Electrical/Electronics Engineer
    Location:
    Canada
    Balance:
    2,187Coins
    Ratings:
    +314 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor
    My rig oscillates slightly with no driver on it sometimes. It has more to do with the mechanical slop in the gearboxes and the joints than the actual PID settings. I make sure that the response is good with a driver sitting in the chair, as that's the one that'll really matter in the end.
    • Useful Useful x 1
  13. matthew loomis

    matthew loomis Member

    Joined:
    May 18, 2017
    Messages:
    94
    Location:
    rochester,ny
    Balance:
    603Coins
    Ratings:
    +82 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    So I have been testing. Have some nice settings for pcars. The shift is perfect, could use more curb. Pid seems good, got rid of dead zone and kp. down to 160. Made tie rods longer, I like it leaned back way more than where it was. Helped keep the cg rotating backwards as well. Motor heat issues are gone. Between softer pid and no cg shift it's way better.
    Now time to get it all working together with the vive!
    • Like Like x 3
  14. matthew loomis

    matthew loomis Member

    Joined:
    May 18, 2017
    Messages:
    94
    Location:
    rochester,ny
    Balance:
    603Coins
    Ratings:
    +82 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    So I contacted dimension engineering about the voltage clamp on a 2x32. Using ohms law to calculate resistance at a max of 8 amps (for the clamp output) and 24 volts that works out to 3 ohm. They confirmed 3 ohm was appropriate for my application and suggested the 2 included 5.1 ohm in parallel would work fine.
  15. matthew loomis

    matthew loomis Member

    Joined:
    May 18, 2017
    Messages:
    94
    Location:
    rochester,ny
    Balance:
    603Coins
    Ratings:
    +82 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Got some video of a full lap at Laguna seca using my Vive and motion cancellation
    • Like Like x 3
  16. Andrew M

    Andrew M P_H_O_3_N_I_X Gold Contributor

    Joined:
    May 11, 2017
    Messages:
    108
    Occupation:
    IT Chief Programmer / CTO
    Location:
    Warsaw, Poland
    Balance:
    573Coins
    Ratings:
    +98 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, DC motor, Arduino
    Great moves ! nice work ! :)
  17. matthew loomis

    matthew loomis Member

    Joined:
    May 18, 2017
    Messages:
    94
    Location:
    rochester,ny
    Balance:
    603Coins
    Ratings:
    +82 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    ok Gonna share my new settings here. I like these a lot. only recentered surge.
    PID
    Fpid / 1
    Kp = 210
    Ki = 1
    Kd = 130
    Ks=1
    Fpwm = 30
    PWMmin = 4
    PWMmax = 130
    PWMrev = 0
    Deadzone = 0

    Axis Assignments I = inverted i = not
    Surge Ii = 25 1/-1.3 m/m
    Sway ii= 40 3.1 m/m
    Heave Ii = 20 1.2 m/m
    Roll ii= 10 4 m/m
    Pitch iI= 20 5.5 m/m
  18. matthew loomis

    matthew loomis Member

    Joined:
    May 18, 2017
    Messages:
    94
    Location:
    rochester,ny
    Balance:
    603Coins
    Ratings:
    +82 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    got some setup tips from the video, gonna share here. pitch and roll are still swapped but again it works this way. (Edit. One of these motors is inverted. As the graph shows this is bottom for this motor. I need to switch the polarity on a sensor)
    [​IMG]
    Last edited: Jul 18, 2017
  19. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,038
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,926Coins
    Ratings:
    +10,882 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    From the looks of those settings one motor is turning the opposite to what it should, so you may want to fix your wiring then Dir settings in Axis Assignments.
  20. matthew loomis

    matthew loomis Member

    Joined:
    May 18, 2017
    Messages:
    94
    Location:
    rochester,ny
    Balance:
    603Coins
    Ratings:
    +82 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I did not switch the polarity on one of the hall sensors. That's why it's inverted. Haven't broke out the iron to switch. Other than aesthetics, is it important, or can It wait for my next teardown? It would be nice to have down be down for both motors in smc and simtools