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

Classic 2 Dof - Stuck with electronics!! argh

Discussion in 'DIY Motion Simulator Projects' started by paulg100, Jun 26, 2015.

  1. paulg100

    paulg100 Active Member

    Joined:
    Nov 15, 2014
    Messages:
    102
    Location:
    Bristol UK
    Balance:
    1,373Coins
    Ratings:
    +94 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, 6DOF
    Hi All

    My first proper post, just wanted to give a brief intro and say a huge thank you to everyone contributing to this great site as building a motion platform has been a dream for many years.
    The potential in VR (have bought rift DK1 and 2 and looking forward to VIVE and CV1) and the fact that i moved to a bigger house last year has finally made it the right time for me to look at this properly.

    last project was a virtual pinball cab (widebody williams replica) with 47 inch screen, shaker motor, contactors for force feedback, Cree lighting and all the works.
    IMAG0048.jpg IMAG0040.jpg IMAG0041.jpg


    After soldering and wiring this rats nest i thought an audrino and MM 2 dof sim seemed straight forward enough but despite reading a ton of posts and spending a ton of time trying different board and wiring combo's i cant seem to get the basic electronics up and running here.

    i started sourcing parts around xmas time so was lucky enough to grab a couple of motion dynamics 12v dc motors with 60:1 boxes whilst they were still on UK ebay.
    other than that i have:

    modified HP DPS-600PB PSU's
    Arduino Uno R3
    MotoMonsters
    Bourn Pots 6639: 5kohm 1W continuous turn 340 degree

    Current wiring config as per linked H bridge guide, soldering not perfect but acceptable i think:

    wiring.jpg 20150626_191038.jpg

    Power light on MM working but no output voltage on A1/B1 and A2/B2
    Motors are working when connected directly to PSU so no prob there but for some reason i cant get any motion through ard and MM at the moment.
    Have uploaded SMC3 code and set to correct port.
    Win 7 port settings: BPS: 115200, bits: 8, parity: none, Stopbits: 1, Flow contrl: None

    Feeback reading in SM3utils seems to have a mind of its own with a sine like reading and turning pot does nothing.

    SM3util.jpg

    Have tried multiple MM's and also ordered another official Ard incase that was the issue. No movement with any of em.
    I thinking maybe i have the wrong pots or judging by all the issues people are having with the MM's my 4 samples are all knackered.

    If anyone has any suggestions about why i cant get motion then this would be greatly appreciated as its getting very frustrating and ive about run out of ideas.

    Many Thanks, Paul.
    Last edited: Jun 26, 2015
  2. SilentChill

    SilentChill Problem Maker

    Joined:
    Jul 19, 2014
    Messages:
    2,643
    Occupation:
    Railway Maintenance
    Location:
    Morecambe, Lancashire, England
    Balance:
    20,562Coins
    Ratings:
    +3,489 / 34 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 6DOF
    A picture tells a thousand words , or a video of your wiring and setup. Just to make sure you have it all wired correctly.

    From your list it looks like it should work fine and out of 4 MM's you would of got some kind of movent on at least half of the board in one direction. Although i did have 3 which were totally DOA out of 12.
  3. paulg100

    paulg100 Active Member

    Joined:
    Nov 15, 2014
    Messages:
    102
    Location:
    Bristol UK
    Balance:
    1,373Coins
    Ratings:
    +94 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, 6DOF
    Yep Sorry have the images issue sorted :)

    The MM in the pic has not been connected to a motor yet hence no heat sinks. Im guessing i should still get a voltage reading from A/B when manually turning pot.
  4. SilentChill

    SilentChill Problem Maker

    Joined:
    Jul 19, 2014
    Messages:
    2,643
    Occupation:
    Railway Maintenance
    Location:
    Morecambe, Lancashire, England
    Balance:
    20,562Coins
    Ratings:
    +3,489 / 34 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 6DOF
    Your pot feedback needs to go straight to the Uno and then from the uno to the MM


    edit: sorry its the picture i thought it was going straight to the MM but the brown wires goes down into pin9
  5. paulg100

    paulg100 Active Member

    Joined:
    Nov 15, 2014
    Messages:
    102
    Location:
    Bristol UK
    Balance:
    1,373Coins
    Ratings:
    +94 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, 6DOF
    Yep, ive checked the wiring over and over and solder/checked all 4 MM's i have... pretty damn sure its all correct.

    Im sure im being dumb somewhere but im stumped at the minute.

    The pot instructions have no indication of what is neg/pos etc on term 1,2 and 3.
    does it matter what goes where? ive tried several combinations and have voltage going to pot but not sure if it might be causing an issue.
  6. SilentChill

    SilentChill Problem Maker

    Joined:
    Jul 19, 2014
    Messages:
    2,643
    Occupation:
    Railway Maintenance
    Location:
    Morecambe, Lancashire, England
    Balance:
    20,562Coins
    Ratings:
    +3,489 / 34 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 6DOF
    Ok in SMC util you need to set it to 20hz and raise your max limits to 150 or so, put PWMin to 0 and PWM Rev to 0 and I would set PWMmax to about 150 to start with. And then reverse polarity on your motor see how that does :) May do nothing but worth a try :)
  7. insanegr

    insanegr !N$@n€

    Joined:
    Jan 14, 2014
    Messages:
    504
    Location:
    Athens
    Balance:
    16,718Coins
    Ratings:
    +499 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    @paulg100 when feedback gets out of range SMC3 disables motors for protection. your motors are all off. get your pot at the middle point and then press the off button to make it on again so you can have motion again.

    [​IMG]



    and your interface settings should look like this with different com port com9 from your pic
    [​IMG]

    and for your pots you should refer you seller or if you have a multimeter take some mesurements to find the "runner" usually its the middle pin
    Last edited: Jun 26, 2015
  8. SilentChill

    SilentChill Problem Maker

    Joined:
    Jul 19, 2014
    Messages:
    2,643
    Occupation:
    Railway Maintenance
    Location:
    Morecambe, Lancashire, England
    Balance:
    20,562Coins
    Ratings:
    +3,489 / 34 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 6DOF
    Yes it does !!! take a picture of your pot looking at the pins normally the top 2 close together are for power and the feedback is the bottom one like at the bottom of a traingle
  9. SilentChill

    SilentChill Problem Maker

    Joined:
    Jul 19, 2014
    Messages:
    2,643
    Occupation:
    Railway Maintenance
    Location:
    Morecambe, Lancashire, England
    Balance:
    20,562Coins
    Ratings:
    +3,489 / 34 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 6DOF
    [​IMG]

    top 2 pins are for power the bottom one is the feedback pin. Pin 1 is Ground Pin 2 Is output and Pin3 is positive
    Last edited: Jun 26, 2015
  10. paulg100

    paulg100 Active Member

    Joined:
    Nov 15, 2014
    Messages:
    102
    Location:
    Bristol UK
    Balance:
    1,373Coins
    Ratings:
    +94 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, 6DOF
    Great big thanks for the quick reply's guys,

    will have a quick play around before bed and report back tomorrow,
  11. SilentChill

    SilentChill Problem Maker

    Joined:
    Jul 19, 2014
    Messages:
    2,643
    Occupation:
    Railway Maintenance
    Location:
    Morecambe, Lancashire, England
    Balance:
    20,562Coins
    Ratings:
    +3,489 / 34 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 6DOF
    If it works let us know before you go to bed else I wont sleep tonight worrying :D
  12. paulg100

    paulg100 Active Member

    Joined:
    Nov 15, 2014
    Messages:
    102
    Location:
    Bristol UK
    Balance:
    1,373Coins
    Ratings:
    +94 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, 6DOF
    Ha @SilentChill i think your having enough sleepless nights worrying about your own 6dof by the looks of it!! great project btw.
    this 2dof is a trial to move on to a 6dof after, maybe the AC, VFD route we will see..

    Anyway, SUCCESS!!
    Everything was leading me back to the pots as they had a mind of their own with no control no matter which way i wired them..
    So i was passing a maplins earlier (rip off prices i know!) and stopped by and picked up a cheap 10k pot to try.
    Hooked it up and BINGO, everything is working.
    Sooo.. the pots i bought are not suitable, or damaged from miss wiring?

    So i need to order a couple of quality suitable pots, i did a fair bit of searching before buying the ones i did but there seems to be many different
    ones everyone is using,
    Can anyone recommend a suitable pot (UK availability) that is knowen to work well? not to bothered about the price as long as they work properly.

    cant believe the amount of wasted time and head scratching ive done due to these damn pots! Thanks for the help so far.
    • Like Like x 1
  13. insanegr

    insanegr !N$@n€

    Joined:
    Jan 14, 2014
    Messages:
    504
    Location:
    Athens
    Balance:
    16,718Coins
    Ratings:
    +499 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    • Agree Agree x 1
  14. paulg100

    paulg100 Active Member

    Joined:
    Nov 15, 2014
    Messages:
    102
    Location:
    Bristol UK
    Balance:
    1,373Coins
    Ratings:
    +94 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, 6DOF
    OK great, thanks for the how to link, must of missed that one.

    thanks for the help all, now on with the build until the next road block :)
  15. SilentChill

    SilentChill Problem Maker

    Joined:
    Jul 19, 2014
    Messages:
    2,643
    Occupation:
    Railway Maintenance
    Location:
    Morecambe, Lancashire, England
    Balance:
    20,562Coins
    Ratings:
    +3,489 / 34 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 6DOF
    I recommend the hall effect pots they work really well not had one fail in 9 months. They aren't that expensive either.
    • Agree Agree x 3
    • Like Like x 1
  16. paulg100

    paulg100 Active Member

    Joined:
    Nov 15, 2014
    Messages:
    102
    Location:
    Bristol UK
    Balance:
    1,373Coins
    Ratings:
    +94 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, 6DOF
    OK thanks will order some 10k hall effects today
    • Agree Agree x 1