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

Stuttering motor problem

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by Colicab, Apr 8, 2016.

  1. Colicab

    Colicab New Member

    Joined:
    Mar 23, 2016
    Messages:
    10
    Location:
    The Netherlands
    Balance:
    60Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF
    Hey guys,

    While building my 2dof sim I have reached the point where I'm connecting my pots to my motors, but I'm having some issues while doing this. When trying to output test my motors from the simtools game-engine, my motors stutter everytime and then stop moving. In a previous attempt of connecting my pots with a rubber tube I had slightly more success and my motors were stuttering a bit less. I managed to do this by loosening the grip of the tube on the pot. Right now I'm using a coupling and I tried having it not screwed at all to tighter and everything in between. Please see my video as well. Who will become the hero of the day and help me fix this?

    I'm following the tutorial by RacingMat, so I'm using the wiring from his tutorial.
  2. pipis2015

    pipis2015 over-boost

    Joined:
    Feb 18, 2015
    Messages:
    222
    Location:
    Athens, GREECE
    Balance:
    10,248Coins
    Ratings:
    +271 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Increase "tol" from 20 to 30.
    Increase "braking distance" from 30 to 40.
    • Like Like x 1
    • Useful Useful x 1
  3. Colicab

    Colicab New Member

    Joined:
    Mar 23, 2016
    Messages:
    10
    Location:
    The Netherlands
    Balance:
    60Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF
    Thanks a lot!! That already helped quite a bit. I will play around a bit more with those values and with the tightness of the coupling tomorrow and hopefully I will get a good result.
  4. pipis2015

    pipis2015 over-boost

    Joined:
    Feb 18, 2015
    Messages:
    222
    Location:
    Athens, GREECE
    Balance:
    10,248Coins
    Ratings:
    +271 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    For better result...change also this:

    if (gap>50) pwm=215;
    if (gap>75) pwm=235;
    if (gap>100) pwm=255;

    to this:

    if (gap>50) pwm=225;
    if (gap>100) pwm=230;
    if (gap>150) pwm=235;
    if (gap>200) pwm=240;
    if (gap>250) pwm=245;
    if (gap>300) pwm=250;
    • Informative Informative x 1
  5. NjMotion

    NjMotion Active Member Gold Contributor

    Joined:
    Dec 29, 2012
    Messages:
    271
    Location:
    España
    Balance:
    1,500Coins
    Ratings:
    +261 / 5 / -0
    My Motion Simulator:
    2DOF, 6DOF
    It seems to have reversed the polarity of the motor or potentiometer.
  6. Rastus

    Rastus Active Member

    Joined:
    Oct 8, 2011
    Messages:
    117
    Occupation:
    Retired
    Location:
    Sydney Australia
    Balance:
    11,518Coins
    Ratings:
    +151 / 2 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    @Colicab Nothing to do with your present problem, but just a suggestion, in your final assembly attach the pot mounting bracket to the motor and not the base just in case the motor mounting plate flexes even microscopically putting strain on the pot shaft. I had that problem with an earlier design a few years back. Good luck
    • Agree Agree x 2
  7. Colicab

    Colicab New Member

    Joined:
    Mar 23, 2016
    Messages:
    10
    Location:
    The Netherlands
    Balance:
    60Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF
    Thanks for your feedback so far guys! Changing the code helped a bit, but the problem still persists. I do have an idea now what might cause the problem. The motor has a hollow tube of 12mm and I put a threaded rod through it of 8mm since I didn't have anything else laying around. This threaded rod is bolted onto the motor, but because of the difference in diameter, it's not entirely straight. This results in the end of the rod bouncing a bit as soon as the motor is running, which in the end puts too much resistance on the coupling/potmeter. I plan on swapping the threaded rod with a 12mm rod and this should align the rod with the potmeter perfectly. Do you guys agree?
  8. NjMotion

    NjMotion Active Member Gold Contributor

    Joined:
    Dec 29, 2012
    Messages:
    271
    Location:
    España
    Balance:
    1,500Coins
    Ratings:
    +261 / 5 / -0
    My Motion Simulator:
    2DOF, 6DOF
    I say that this can happen.
    You've checked ?.
  9. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,234
    Location:
    Marseille - FRANCE
    Balance:
    20,894Coins
    Ratings:
    +2,084 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    @Colicab :
    the problem is not the code because it's used by dozens of people... and a perfectly rigid coupling has to be fine
    but let's start some troubleshooting: it can be ground issues, H-bridge default, potentiometer default...

    0/ are your motor and pot ungrounded?

    1/
    what is happening without simtools? only arduino + Hbridge
    please follow the steps (in my signature) and don't bypass one

    2/ what is your Hbridge? can you film it as well?

    3/ have you tried with another potentiometer? another motor?
  10. Colicab

    Colicab New Member

    Joined:
    Mar 23, 2016
    Messages:
    10
    Location:
    The Netherlands
    Balance:
    60Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF
    @RacingMat :

    Thank you for your response!

    0: I'm using motion dynamics worm drive motors: https://www.motiondynamics.com.au/worm-drive-motor-12v-24v-200w-180-rpm-20nm-torque.html When I open them up I see the following:

    The back cover of the motor:
    [​IMG]

    The container with the motor brush:
    [​IMG]

    So as far as I can see, there is no wire going anywhere to the body of the motor. I have taken the motor even further apart, and there is no wire connected to the body. So as far as I know this should be ok right?

    1: I will try to do this as soon as possible.

    2: I am using the sparkfun monster moto which is wired the same as written in your tutorial. I will make a video as soon as I can.

    3: I only used parts that were confirmed to be working by other people in this community. So for the motors I am using the motion dynamics motor, and for the potmeters I am using the ones you suggested in your tutorial.

    My pots: http://www.gotronic.fr/art-potentiometre-lineaire-cermet-10k-8486-11293.htm

    I do have some other motors on the way which i could try once everything else fails, but this will still take at least a week.
  11. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,549
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,112Coins
    Ratings:
    +10,778 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Those motors do not need ground isolation.
  12. Nick Moxley

    Nick Moxley Well-Known Member

    Joined:
    Dec 13, 2013
    Messages:
    2,779
    Occupation:
    Owner/Operator- Moxleys Rantals
    Location:
    Winnipeg Manitoba Canada
    Balance:
    17,054Coins
    Ratings:
    +2,504 / 30 / -2
    My Motion Simulator:
    2DOF, 3DOF, DC motor, JRK
    That looks like a WHOLE lot of metal shaving's in that Can.....where the heck did those come from ?
  13. Colicab

    Colicab New Member

    Joined:
    Mar 23, 2016
    Messages:
    10
    Location:
    The Netherlands
    Balance:
    60Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF
    Hehe yes one of the bolts unfortunately went haywire, so I had no option but to cut it.. but that bolt's all sorted out now :)
  14. Nick Moxley

    Nick Moxley Well-Known Member

    Joined:
    Dec 13, 2013
    Messages:
    2,779
    Occupation:
    Owner/Operator- Moxleys Rantals
    Location:
    Winnipeg Manitoba Canada
    Balance:
    17,054Coins
    Ratings:
    +2,504 / 30 / -2
    My Motion Simulator:
    2DOF, 3DOF, DC motor, JRK
    Please explain, It might help a fellow enthusiast... Not.... do what you did. :p Thanks.
  15. Colicab

    Colicab New Member

    Joined:
    Mar 23, 2016
    Messages:
    10
    Location:
    The Netherlands
    Balance:
    60Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF
    @RacingMat :

    Probably a very stupid question, but how exactly do I send commands directly from the serial monitor. In your tutorial you wrote for instance to input R7FL7F for horizontal position.. but do i just copy paste this and hit enter or does it need extra stuff? Because with me nothing happens when I enter something. Last week I have made quite a few changes but my motors still respond the same. I will make a lot of videos tomorrow and post them here.
  16. Raymann

    Raymann New Member

    Joined:
    Jun 20, 2016
    Messages:
    24
    Location:
    Germany
    Balance:
    278Coins
    Ratings:
    +23 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    I know this problem.i have it too. reversed the polarity of the potentiometer ,and everythink works fine.
  17. Tech2123

    Tech2123 Tech2123

    Joined:
    Dec 16, 2013
    Messages:
    72
    Location:
    Wa. USA
    Balance:
    314Coins
    Ratings:
    +17 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Did you solve this problem, I have same issue, I been trying to fix for 3 years off n on
  18. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,549
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,112Coins
    Ratings:
    +10,778 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Best to post pictures of all of your settings.

    Have you tried switching to the SMC3 code and use the graphical config utility to get it sorted?
  19. frankrizzo2

    frankrizzo2 Member

    Joined:
    Sep 11, 2013
    Messages:
    54
    Location:
    Minot, ND
    Balance:
    603Coins
    Ratings:
    +29 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    Make sure your potentiometer wiring is correct. I had the same problem and checked everything 10 times over and it took me 2 weeks to realize that I had my potentiometer wiring incorrect.
  20. Tech2123

    Tech2123 Tech2123

    Joined:
    Dec 16, 2013
    Messages:
    72
    Location:
    Wa. USA
    Balance:
    314Coins
    Ratings:
    +17 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    I have not, I Looked it over, I will try this out, Do I just leave the 3rd motor setting to OFF?

    I dropped off my motor Shafts off today to get rebuild to correct size and pot holes center drilled, mine were off a bit and shaft loose in motor.