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

DIY 3 DOF pegleg first motion rig

Discussion in 'DIY Motion Simulator Projects' started by Steve B, Jan 20, 2022.

  1. Steve B

    Steve B Member

    Joined:
    May 8, 2020
    Messages:
    40
    Balance:
    248Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    Arduino
    Finally pulled the trigger and started my first motion rig build, i've settled on a 4 actuator pegleg design. Will probably add traction loss later.

    The actuators are made of:
    Aluminium plates
    4040 extrusion
    HDPE sliders(high density polyethylene)
    1204 ballscrew
    ZY1020 24V DC motor

    I cut the aluminium plates on my small 6040 CNC router, this is old machine guarding i was given 20y ago.
    IMG_20220117_155718.jpg


    The plates were cleaned up in a tumbler.
    IMG_20220117_165428.jpg

    Trial build of the first actuator with 3d printed sliding parts, these were later replaced for HDPE parts IMG_20220117_170442.jpg

    Cutting the HDPE
    IMG_20220119_110824.jpg

    A set of parts for 1 actuator
    IMG_20220119_142000.jpg

    All 4 actuators assembled
    IMG_20220119_164154.jpg

    Test setup for a single actuator
    IMG_20220120_151732.jpg

    Testing with my old rig as a load. I tested with upto 130KG (me sat on the rig), The IBT2 started to struggle and cut out after around 10 senconds of running the SMC3 sinewave with me on the rig.
    I don't expect this to be an issue in the final build as the load will be shared between actuators and i may use 2x IBT2 per actuator to make sure.



    Next i need to finish the motor mounting of the other 3 actuators and start on the control box.

    Steve
    • Like Like x 4
  2. ahoenksiluman

    ahoenksiluman Member

    Joined:
    Nov 13, 2017
    Messages:
    91
    Location:
    indonesia
    Balance:
    89Coins
    Ratings:
    +47 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    nice project broo...

    how u attach the sensor/potentiometer..??

    u can give the ibt2 little bit of thermal paste, but dont use liquid metal based, just use cheap one, that will help a lot

    and set the voltage little bit down, i usually use around 22-23v for safe use
  3. Steve B

    Steve B Member

    Joined:
    May 8, 2020
    Messages:
    40
    Balance:
    248Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    Arduino
    Good point with the thermal paste.

    Position sensor is a 100mm stroke slide(Fader) potentiometer, 100mm stroke is the longest i,ve managed to find so far which will limit usable stroke to 85-90mm. (actuators would have 125mm stroke)
    Pot is mounted to front of actuator with 3d printed brackets, the bracket that connects to the moving part is going to be re-designed as it wobbles
    Pot1.jpg Pot2.jpg

    4 actuators now complete except for mounting of pots on 3 of them and i need to design and print end travel bumpers and feet.
    4Assembled.jpg

    I still need to order parts for the control box and figure that out, the test in my first post was at 12V, powered by a HP server power supply. Hoping i can get away with 1x 12V power supply per actuator.
    Steve
    • Like Like x 3
  4. Steve B

    Steve B Member

    Joined:
    May 8, 2020
    Messages:
    40
    Balance:
    248Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    Arduino
    Lots of progress and issues since my last update.

    I printed some TPU bumpers 3 times as i modelled them without measuring first(for some reason no photo of them). These are so when the rig sinks under gravity without the actuators powered it will rest on the bumpers and not destroy the potentiometers.
    IMG_20220131_220643.jpg

    I also reprinted the potentiometer brackets twice as thick as they sere distorting and printed the arms that join the potentiometer to the sliders out of TPU so if i do get an overtravel situation they should flex.
    IMG_20220131_220653.jpg IMG_20220131_220704.jpg

    Added aluminium box section between the motors and the top plate to make the motor mounting rigid, the box section is not sttached in any way. Just clamped between the motor face and top plate.

    From the start i've been unsure if the server power supplies would be enough without a battery, to assist with this i installed a 10000uF for each motor with a simple precharge circuit which gets bypassed by a relay when the capacitor reached 7V (ish).
    IMG_20220202_131741.jpg IMG_20220202_134019.jpg

    Many issues with the IBT-2's
    It turns out the one i used for initial testing is faulty and heats up even with virtually no load on it. This one may also be responsible for destroying the one it was in parallel with or that one may of just been a dud.
    Another has a faulty screw terminal so i need to desolder a terminal from one of the duds to try and save it.
    IMG_20220202_131818.jpg IMG_20220202_135349.jpg

    I finished wiring all these and with 4 working IBT-2's was able to test my 2 channel controller, the plan is to make 2 of these, one front and one rear each with a 750W power supply for each motor.

    Testing didn't go well, the 3 core wire i had used for the pots and run in the same socking as the motor cables was picking up a lot of interference from the motor wires, every time a motor changed direction i was seeing big spikes in the pot reading within SMC3.
    Also had connection issues with the 3.5mm headphone connectors i had used for the pot wiring.
    I found some USB A and micro USB breakout boards leftover from another project so decided to use these and standard usb cables for the pot wiring. these solved the interference issues.

    Now running the various tests within SMC3 the IBT-2's remain cool, even when using 1 per motor.
    This seemed a little odd so i fitted a power meter between the power supply and controller. A single actuator running the square wave test with most of my weight on it was generally drawing 3A with a peak of 7A when changing direction. These motors are rated at over 26A (@24V) so might be excessivly oversized.

    I'm now thinking of 2 power supplies in series to give 24V and am undecided on 1 or 2 IBT-2 per motor.
    • Like Like x 1
  5. Steve B

    Steve B Member

    Joined:
    May 8, 2020
    Messages:
    40
    Balance:
    248Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    Arduino
    Actuators now fitted to my rig, it's a little nose heavy with only the weight of the rear actuators holding the tail down. Hopefully this won't be an issue in use otherwire i'll nee to move them a long way forward to to between the pedals and wheelbase support.
    IMG_20220209_154001.jpg IMG_20220209_154008.jpg
    Still need to remove the existing legs and fit the cross braces between the actuators.
    The rubber feet are a bit soft, these may need replacing with something harder and something to spread the load on the floor.
    Built the second controller, this time with a single 24V input. Exactly the same as the first except for the common input and capacitor precharge circuit modified for 24v.
    IMG_20220208_144808.jpg

    Another Faulty H-Bridge on this controller, i'll try running 1 per actuator for now.
    I need to modify the first controller for 24V and hopefully get it all powered up tonight.
  6. Steve B

    Steve B Member

    Joined:
    May 8, 2020
    Messages:
    40
    Balance:
    248Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    Arduino
    Both controllers now in a working state and running off a pair of 750W HP server power supplies to gige me a total of 62.5A @ 24V.
    IMG_20220209_210848.jpg

    Installed and configured simtools, first actuator test was fine. Then the front left actuator seemed to get higher and higher and not really go down again. I need to look into this and see what's going on.
    The rubber feet are way too soft and are what's causing all the bouncing, the actuators and bouncing are just the same with me say on the rig.
    Video shows testing with simtools, heave first then pitch. difficult to see the pitch with the one actuator not responding properly.

    Will see what's wrong with that actuator tomorrow night and try printing some harder feet out of TPU.
    • Like Like x 1
  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,534
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,028Coins
    Ratings:
    +10,776 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Great to see your progress, technical issues notwithstanding.

    The balance of the rig unloaded looks like the rear actuator has little or no contact, how is it when loaded?
  8. Steve B

    Steve B Member

    Joined:
    May 8, 2020
    Messages:
    40
    Balance:
    248Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    Arduino
    I think the actuator not going down is another faulty IBT-2 H-Bridge. Will check tonight.

    Better balanced when loaded but still have a feeling it may topple with a fast pitch forward.

    My issue is the the front actuators would need to move a long way forward to clear the steering gantry and then I wouldn't be able to run a cross beam between the two fronts as the heal plate and bass shaker are in the way. It would also take a lot of actuator stroke to get much pitch.
  9. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,534
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,028Coins
    Ratings:
    +10,776 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    There are always compromises, but I guess the key issue is that the rig needs to be fundamentally stable, both with respect to producing accurate motion and also for safety reasons.
  10. Steve B

    Steve B Member

    Joined:
    May 8, 2020
    Messages:
    40
    Balance:
    248Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    Arduino
    More issues off the list for now.
    The squishy bouncy feet are gone, replaced with TPU printed feet.
    IMG_20220210_182925.jpg IMG_20220210_183708.jpg IMG_20220210_184616.jpg
    The front left actuator not lowering was another faulty H-Bridge and i later had the same issue with the rear left.
    I have some suspicions the way SMC 3 is controlling IBT-2 H-bridges (Mode 2) is responsible the these failures.
    If i'm right, it's probably fine with small motors but bigger motors will damage the H-Bridges.

    Anyway onto the good stuff, i got it working with simtools. Manual testing anyway.

    Unladen testing:
    Still nose heavy without a driver.

    Testing with me in the rig:
    • Like Like x 2
  11. zhai1987

    zhai1987 Member

    Joined:
    Sep 7, 2021
    Messages:
    96
    Balance:
    320Coins
    Ratings:
    +11 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, AC motor
    I feel that your four motors are out of sync,. Did you find anything?
  12. ahoenksiluman

    ahoenksiluman Member

    Joined:
    Nov 13, 2017
    Messages:
    91
    Location:
    indonesia
    Balance:
    89Coins
    Ratings:
    +47 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    nice progress, how much power draw when it stand still with you on it..??

    maybe you can monitor the power draw when you sit on it, measure each corner, or at least measure front and back. with that you can assume the balance is right...
  13. Steve B

    Steve B Member

    Joined:
    May 8, 2020
    Messages:
    40
    Balance:
    248Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    Arduino
    I've done very little output tuning, in reality these motors are far from ideal. They don't move until PWM gets to between 50 and 60 then move quite quickly with a lot of inertia. P gain is set to 110 with 0 for I and D , much higher on any of the gains results in in the motor surging and stopping when following a waveform. Lower P gain leaves a huge lag between target and position.

    Any power measurement when standing still will be a random number.
    The ballscrews are 4MM pitch and with the cogging of these motors the rig doesn't always drop when powered down. If it does then it's the rear that drops and i have to lean forward for the front to drop.

    Does anybody know if in the SMC3 GUI i set motors 1 and 2 to sinewave, will they be syncronised?

    Below image is how the motors are connected as per SMC 3 thread running Mode 2.
    [​IMG]

    Pins 1 and 2 on each H-bridge are to drive the motor in either direction, 3 and 4 put the H-bridge into standby/sleep with the 7 and 8 for +5 and gnd.

    Notice how pin 2 on each H-bridge is connected to a PWM capable pin (9 or 10) on the arduino but pin 1 on the H-bridges is not.
    PWM for that direction is presumably controlled by PWM firing pins 3 and 4 ( on the H-bridge) using arduino pin 3 or 5 which are PWM capable. Pin 1 wounl be held high whilst driving in this direction.

    The reason i think this is bad is that the data sheet it mentions "PWM capability of up to 25 kHz combined with active freewheeling", i may be completly wrong with this but active freeweeling sugests the device needs to be enabled for this to work and not in sleep mode?

    I've had 3 (or maybe 4, lost count) IBT-2's fail in the same way, they will lift the rig but not lower it, the first failed whilst the actuator was sat unloaded on the bench so it's nothing to do with the mass or inertia of the rig
    I think it's that in 1 direction the the H-bridge is being drived correctly and in the other it is being put to sleep between each pulse and thereby has no active flywheeling in that direction.


    Datasheet here: https://www.digikey.co.uk/htmldatasheets/production/70497/0/0/1/BTS7960.pdf
  14. Steve B

    Steve B Member

    Joined:
    May 8, 2020
    Messages:
    40
    Balance:
    248Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    Arduino
    Been doing some testing of different ideas to drive the H-bridges how i understand they should be driven.
    Reflashed the uno to mode1 and interfaced to the H-bridges using optocouplers as AND gates, this worked in that it drove the H-bridges but for some reason the uno froze after powering the motors for 20 seconds or so with either the gui or simtools.
    For the short time it worked it was much quieter and smoother than running mode 2. restarting the uno made it work for another 20 seconds or so, no damage done just something upsetting the uno.

    I did a similar test using mode1 and a ULN2004 stepper driver to convert the signals(all bits i had leftover) same results, the motor moved in a quiet controlled manor then the uno froze after maybe 10 seconds.

    So whilst it feels like i made no progres, i'm more convinced than before that smc3 mode2 is an issue with big motors at least.

    I have some more optocouplers ariving tomorrow and think with a bit more thought i can make it work.
  15. Steve B

    Steve B Member

    Joined:
    May 8, 2020
    Messages:
    40
    Balance:
    248Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    Arduino
    More testing with SMC3 in Mode1 and using optocouplers to interface with the IBT2.
    I extended the wires to the H-bridges so the arduino could be mounted away from all the high power wiring as the arduino was only freezing with power on. Still no good, then I tried powering the arduino from a sub c port and it worked!

    Completely stable in SMC3 and simtools, smooth motion and the noise from the motors is gone. Only done this to the front two actuators so far so plenty more soldering to do.
  16. Steve B

    Steve B Member

    Joined:
    May 8, 2020
    Messages:
    40
    Balance:
    248Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    Arduino
    Power with me sat on rig stationary is too low to use for balancing the rig.
    1.1A 24.7V 27W total for all the actuators.
    StaticPower.jpg

    Actuator positions are not finalised so balance will change anyway but for now there is more weight on the rear with me on the rig.
  17. Steve B

    Steve B Member

    Joined:
    May 8, 2020
    Messages:
    40
    Balance:
    248Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    Arduino
    The pile of dead IBT-2's is getting bigger!
    Dead.jpg

    I have now got everything working with SMC3 running Mode1 and converting the signals with optocouplers. Need to sketch out what i've done and post it here.
    2 optocouplers per motor output.
    Optocouplers.jpg

    SMC3 settings It's hard to tune a 4 actuator rig because as far as i can tell SMC3 only lets you move 1 axis at a time so that 1 actuator lifts 2 others off the ground when in motion.
    SMC3.jpg

    Simtools config i used to test with Live for speed.
    Simtools.jpg

    Working in Live for speed and yes i know my driving is shocking in the video.
    Excuses: This is my 4rd ever lap and second with wheel on this sim.
    I didn't enable the force feedback until a few laps in as the wheel went nuts ripping out a usb cable on my first attempt.
    Don't know the track, is it real or fictional?
    Don't know the car.
    Usually dim the lights when driving so i can see the screen.
    Steering was not centered.
    Had auto shift enabled and was shifting manually.



    The above 2 runs were done back to back, a minuite or so after i checked th etemperature of the H-bridges, 3 were cool to the touch. the rear right was hotter to the point where i couldn't keep my finger on for long so probably 65C. Either there is more weight on this actuator or this H-bridge is failing.
    This is with no fan cooling them.

    Peak power during these 2 runs was 454W (18.5A) total for all actuators.
    • Like Like x 1
    • Creative Creative x 1
  18. Steve B

    Steve B Member

    Joined:
    May 8, 2020
    Messages:
    40
    Balance:
    248Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    Arduino
    Big thanks to SimTools for my DIY License.
    I got the rig working in iRacing last night, felt more like a roller coaster than a GT3 car.

    Having read some of the manual and changed the assignments from pitch and roll to surge and sway. Manually tuned the min/max in tuning center.
    It feels remotely like a car, a 90's car with soft wallowing suspension but a big improvement.

    Had one weird issue last night, exited iRacing to change some settings and the rear 2 actuators started dropping then going back up every 10 seconds. Re launching iRacing didn't fix it but a reboot of the pc did.

    Still lots of tuning to do and some actuator repairs/modifications.
    • Like Like x 2
  19. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,534
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,028Coins
    Ratings:
    +10,776 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    You may find the Tuning Tips in the FAQs helpful: https://www.xsimulator.net/community/faq/steps-to-create-a-motion-profile.228/
  20. Steve B

    Steve B Member

    Joined:
    May 8, 2020
    Messages:
    40
    Balance:
    248Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    Arduino