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

24 dc motor not running

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by jarena, Feb 4, 2024.

  1. jarena

    jarena Member Gold Contributor

    Joined:
    Feb 28, 2012
    Messages:
    44
    Balance:
    126Coins
    Ratings:
    +5 / 0 / -0
    Hi guys,

    So I was looking at the you tube videos of D Max and decided to start a sim project.

    I have two 24v motors that I want to run the sim with. start to do the connection on the arduino and one IBT-2 to try one motor at the time to make sure everything works.

    did all my connections including the pot, in the arduino i downloaded the software to for sim utilities. when I turn on the sim utilities it detects the arduino on com 4, so that's good. then i put motor 1 on to play with pot and the green line moves up and down as I turn the pot so that's good also. but when I connect the 24 volt to the IBT-2 , the output to the motor I have nothing going to it. what am I doing wrong?
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,862
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,009Coins
    Ratings:
    +10,845 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  3. jarena

    jarena Member Gold Contributor

    Joined:
    Feb 28, 2012
    Messages:
    44
    Balance:
    126Coins
    Ratings:
    +5 / 0 / -0
    thanks for the reply, i will post pictures soon. just to make sure i have the right SMC3 can you direct me where i can get this?
  4. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,862
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,009Coins
    Ratings:
    +10,845 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  5. jarena

    jarena Member Gold Contributor

    Joined:
    Feb 28, 2012
    Messages:
    44
    Balance:
    126Coins
    Ratings:
    +5 / 0 / -0
    ok so re program the arduino with the smc3 , change it to mode 2 . again the pot I see the green line going up and down when I move the pot. but if I put the sim utility to motion nothing is happing to the motor. I check the output for the motor on IBT-2 and the is no 24v coming out i have 0 volt. here is the image of my connection re check all of my connection to make sure and all is done correct.

    Attached Files:

  6. jarena

    jarena Member Gold Contributor

    Joined:
    Feb 28, 2012
    Messages:
    44
    Balance:
    126Coins
    Ratings:
    +5 / 0 / -0
    can I remove the pot just to see if I can motion just with the smc3 utility? and see if motor moves?
  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,862
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,009Coins
    Ratings:
    +10,845 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Please post pictures of all of your SMC3 settings.

    A pot provides positional feedback for the motor.
  8. jarena

    jarena Member Gold Contributor

    Joined:
    Feb 28, 2012
    Messages:
    44
    Balance:
    126Coins
    Ratings:
    +5 / 0 / -0
    here is the picture. so if i move the pot green line goes up and down

    Attached Files:

  9. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,862
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,009Coins
    Ratings:
    +10,845 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    I am presuming the wiring is complete as per the SMC3 instructions and the pot is attached to the motor, is that correct?

    From the image it seems PWMmax is not set, step 9 in the initial SMC3 setup:
    1. Disconnect the motor power supply
    2. Make sure Simtools is not running – we’re not ready for that yet!
    3. Wire up the Arduino (with SMC3 installed) to your H-Bridges and connect to your computer via USB
    4. Run the Windows SMC3 Utility software and make sure it communicates with the Arduino (There is no need to set baud rates, they are not configurable)
    5. Set the Kp, Ki, Kd, PWMmin, PWMmax, PWMrev to 0 for ALL motors (This will make sure the motors don’t move)
    6. Set Clip to 255 (you need to do this first) and Limit to 255 (This will give you plenty of margin if something goes wrong while setting up)
    7. Turn on the power to your motors – nothing should move at this stage!
    8. Set Kp to about 400
    9. Now slowly, increase PWMmax… at some point the motor should start to move. When it does check the “Green” feedback line is moving toward the “Blue” target position.
      • If it is then that motor and feedback is wired correctly - proceed to test other motors.
      • If it is moving away turn off motor power immediately (or quickly reduce PWMmax again). In this case you need to either reverse the wires to the motor being tested –OR– reverse the +5V and GND wires to your feedback pot for the motor being tested (do not do both). Restart the test from the beginning.
    10. Do the above for each motor

    Once that is done can you please run the Sine test in Out Mode and post a picture of the result.
  10. jarena

    jarena Member Gold Contributor

    Joined:
    Feb 28, 2012
    Messages:
    44
    Balance:
    126Coins
    Ratings:
    +5 / 0 / -0
    quick question do I have to have the pot attach to the motor in order to just run a test? can I just have the pot connected and turn it up and down in order to see if I get movement from the motor? basically is to a bench test before I assemble the motor with all the wiring to the rig.
  11. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,862
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,009Coins
    Ratings:
    +10,845 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    The pot can be tested in SMC3 with the motor turned off, but should be connected to the motor for a proper test, as the pot provides position feedback of the motor.
  12. jarena

    jarena Member Gold Contributor

    Joined:
    Feb 28, 2012
    Messages:
    44
    Balance:
    126Coins
    Ratings:
    +5 / 0 / -0
    ok so tested again, when I do step 9 it's the yellow line that moves towards the blue not the green. so something is not right some where can you tell which connection is wrong?
  13. jarena

    jarena Member Gold Contributor

    Joined:
    Feb 28, 2012
    Messages:
    44
    Balance:
    126Coins
    Ratings:
    +5 / 0 / -0
    so recheck my connections and now i am sure 100% that everything is connected right from Arduino to IBT with pod and also power supply. check with multimeter continuity and a that is good check also the 5v power supply and that is good also. now on to the the programming which is what i suspect is my problem. My Arduino is connected on com 4, what I need to now is what is the program that needs to be load to Arduino to be visual by the simtool. if someone can attach the file and give me steps on the how to of it all would greatly be appreciative of this. Keep in mine the motor I will be using is 24v, 3000rpm, torque is0.43nm, amps 8.4. thanks
  14. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,862
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,009Coins
    Ratings:
    +10,845 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    As per pre previous posts SMC3 would be a good option, following the setup for your control board and configuring the SimTools interface as per the SMC3 instructions: http://www.xsimulator.net/community...3dof-motor-driver-and-windows-utilities.4957/

    Do not run the SMC3 config program at the same time as SimTools as that will create a port conflict.
  15. Attyla.pl

    Attyla.pl Member

    Joined:
    Oct 1, 2023
    Messages:
    130
    Location:
    Polska
    Balance:
    527Coins
    Ratings:
    +31 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    First, the motor will not start until the button next to Motor 1 is off, click it and switch it to ON
    Secondly, set Fpwm to 20mHz because you will burn IBT2
    Third, set the green line in the middle of the screen and set the PWMmax to 120-130 and gently turn the potentiometer the motor should start
  16. jarena

    jarena Member Gold Contributor

    Joined:
    Feb 28, 2012
    Messages:
    44
    Balance:
    126Coins
    Ratings:
    +5 / 0 / -0
    Thanks Noorbeast for your patients. got everything working. now onto building the rig. was looking at something like what D-Max built not the big 3 way one, but the small version of the 2 dof version. i'm about his size and height so was wondering if anyone can give me the dimension of the base and also the dimension of where the seat will sit on the u joint with pedal stand and steering stand. thanks
    • Winner Winner x 1
  17. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,862
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,009Coins
    Ratings:
    +10,845 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    The FAQs have some member submitted rig dimensions: https://xsimulator.net/community/faq/cockpit-design-dimensions.116/