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 Blame73's 2DOF Seat Mover

Discussion in 'DIY Motion Simulator Projects' started by Blame73, Nov 20, 2014.

  1. p00ky

    p00ky Active Member

    Joined:
    May 4, 2020
    Messages:
    115
    Occupation:
    Self Employed Laser Cutter
    Location:
    Wales
    Balance:
    380Coins
    Ratings:
    +65 / 2 / -0
    My Motion Simulator:
    2DOF, Arduino
    Hey there, I've been a little out fo the loop for a while, so I'm a little rusty on the setup. Blame is always the goto guy in general but......

    mdds30s runing 2 motors with Blames Arduino code.


    So I did some digging & wrote some stuff that doesn't quite match becasue I think I remapped a pin here and there :D

    From what I can gather you need for

    MOTOR 1 (Left)
    IN1 to Arduino Pin 2
    AN1 to Arduino Pin 9
    Encoder pot to Arduino Pin A0

    Motor 2 (Right)
    IN2 to Arduino Pin 4
    AN2 to Arduino Pin10
    Encoder pot to Arduino Pin A01

    I know Blame had done a variant of his controller Arduino code for me & I know we did some later testing but I can't remember what the outcome was.

    Start with what I've said, see if it works & if it doesn't come back.


    MDDS30 Pins (explanation)

    AN2 (Analog/PWM signal for motor RIGHT)
    AN1 (Analog/PWM signal for motor LEFT)

    IN2 (Digital signal (direction) for motor RIGHT)
    IN1 (Digital signal (direction) for motor LEFT, or can be used for Serial mode)

    Arduino Pins
    [​IMG]

    Attached Files:

    Last edited: Jan 23, 2025
  2. Marlon8232

    Marlon8232 New Member

    Joined:
    Sep 14, 2024
    Messages:
    6
    Balance:
    32Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino, Motion platform
    @p00ky thank you so much, I will certainly try this when I get home! :)
    • Like Like x 1
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,352
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    149,777Coins
    Ratings:
    +10,958 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    What motors are you using?

    To be clear on what you have or have not done, from the instructions: https://www.xsimulator.net/community/threads/blame73s-2dof-seat-mover.6029/page-22#post-198335

    The code needs to be set to Mode 2.

    Wiring:

    CYTRON MD30C >> ARDUINO UNO
    --------- DIR -------- >> ------- PIN 2 -------
    -------- PWM ------- >> ------- PIN 9 ------
    -------- GND ------- >> ------- GND -------

    -------- POT 1 ------ >> ------- A0 -------

    With the appropriate pin settings:
    [​IMG]
  4. Marlon8232

    Marlon8232 New Member

    Joined:
    Sep 14, 2024
    Messages:
    6
    Balance:
    32Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino, Motion platform
    Hello @noorbeast I’m using 2 24v jazzy wheelchair motors specifically the DRVMOTOR1302 with 2 mdds30s to drive o e each. I do not have a big enough power supply to run them both on one and I did not know the md30c existed before buying so I have 2 mdds30s and I want to drive one motor per controller.
  5. Marlon8232

    Marlon8232 New Member

    Joined:
    Sep 14, 2024
    Messages:
    6
    Balance:
    32Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino, Motion platform
    thank you so much! It’s working great now! :)
    • Like Like x 2
  6. Blame73

    Blame73 Well-Known Member

    Joined:
    Nov 6, 2014
    Messages:
    1,215
    Location:
    Italy
    Balance:
    8,295Coins
    Ratings:
    +1,127 / 2 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Hey
    Hey, out of the loop for a while too. Maybe with AC EVO out I'll turn the thing on again. Glad to know is still working with my code.
    Thanks for helping @Marlon8232 out :cheers
    • Winner Winner x 1
    • Friendly Friendly x 1
  7. p00ky

    p00ky Active Member

    Joined:
    May 4, 2020
    Messages:
    115
    Occupation:
    Self Employed Laser Cutter
    Location:
    Wales
    Balance:
    380Coins
    Ratings:
    +65 / 2 / -0
    My Motion Simulator:
    2DOF, Arduino
    Glad to hear you got it working. The wiring on the Mdd30s is odd as you would think they would have had one plug for one motor but instead they have all the pwm pins on one & the enable lines on the other.

    One thing of note though is the Mdd30s is supposed to be used with a battery, where as there is no specification for it on the md30c. I use a small car battery on mine & use a server psu running through a diode to continously charge it. It's possible that if you run it this way, your small psu would be enough to keep you going while using a single Mdd30s for both motors, & save you from possible driver explosion :D

    Yes Blame, Evo is dragging us all back to the saddle....... JOIN US :D
    • Like Like x 1
  8. Marlon8232

    Marlon8232 New Member

    Joined:
    Sep 14, 2024
    Messages:
    6
    Balance:
    32Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino, Motion platform
    Hello! I’m back again, and my rig is working very well. Ive been researching a way to add a soft start to the smc3 ini but i no luck. I’m not a coding expert, and I was wondering if there was a way to transplant the code from the other smc3 modified versions into the blame73’s. Also I cannot find the latest version of blame73’s smc3 ino so I’m running the one p00ky posted on mega lol. If you guys have any ideas of a way to add soft start so my rig doesn’t tear it self apart every startup, that would be nice. :thumbs
  9. p00ky

    p00ky Active Member

    Joined:
    May 4, 2020
    Messages:
    115
    Occupation:
    Self Employed Laser Cutter
    Location:
    Wales
    Balance:
    380Coins
    Ratings:
    +65 / 2 / -0
    My Motion Simulator:
    2DOF, Arduino
    Hey up again, glad you have it up and running.

    That said, I don't remember ever posting anything to mega, I'm guessing it was when blame and I were doing some testing. Dont know.

    As for coding, I'm afraid I'm more than useless at that side of things. It's a question for blame I'd say.
  10. Blame73

    Blame73 Well-Known Member

    Joined:
    Nov 6, 2014
    Messages:
    1,215
    Location:
    Italy
    Balance:
    8,295Coins
    Ratings:
    +1,127 / 2 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    The one from Mega is my code, as are mine the ones I gave to p00ky. I never needed softstart, so it's not implemented (and I have no time to code it), but there's a scaler, try using it.
    Warning: I can't help you out with that, sorry
    • Informative Informative x 1
  11. Marlon8232

    Marlon8232 New Member

    Joined:
    Sep 14, 2024
    Messages:
    6
    Balance:
    32Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, 3DOF, Arduino, Motion platform
    ok, will do! :D
  12. logstar6

    logstar6 New Member

    Joined:
    Jan 8, 2025
    Messages:
    1
    Balance:
    - 4Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    Thanks to @Blame73 and @p00ky for documenting getting these MD30Cs going. I have been reading as much as I can I

    I read a thread by @ChrisOmaha titled ChrisOmaha 2DOF Build Thread. Unfortunately I am new and can’t post a link yet

    It appears that he is using Mode1 with the SMC3 and have success, would this provide the same results as your modified mode2? Or am I overlooking something

    thanks!