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

2dof - another in da' house ;)

Discussion in 'DIY Motion Simulator Projects' started by gorzasty, Apr 7, 2015.

  1. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,013
    Location:
    Switzerland
    Balance:
    30,409Coins
    Ratings:
    +3,088 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Hi @gorzasty ~1.8V? Are you sure you have connected the 12V output of the PSU?
  2. gorzasty

    gorzasty Active Member

    Joined:
    Apr 2, 2012
    Messages:
    151
    Occupation:
    photographer, IT specialist
    Location:
    Poland, Wrocław
    Balance:
    1,060Coins
    Ratings:
    +41 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    No, no it is 1,8A ;) and yes I'm sure there is 12,4V
  3. gorzasty

    gorzasty Active Member

    Joined:
    Apr 2, 2012
    Messages:
    151
    Occupation:
    photographer, IT specialist
    Location:
    Poland, Wrocław
    Balance:
    1,060Coins
    Ratings:
    +41 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Today I made mores test but my motor is not moving ;(

    First I'd like to show You my last video:



    Now what I did:

    1. I installed drivers for Arduino
    2. I uploaded code from: http://www.xsimulator.net/community...3dof-motor-driver-and-windows-utilities.4957/ (SMC v0.7 -were no errors)
    3. I checked settings form my Arduino in device meneger (com 4 and 115200)
    4. I configured SimTools Game Engine

    com4, 115200, 8, none, 1
    10 binary
    [A<Axis1>][B<Axis2>][C<Axis3>], 10ms

    5. Then I connected everything (I have only 1 motor and no pots) as in mentioned tread and to PSU.

    [​IMG]

    6. After this I can see two blue leds on Arduino and one red led on MM
    7. I went to Otput Testing, press "turn on" (orange led on Arduino RX is active) and choose "Axis outputs" form drop down menu. Tried to move axis 1 and axis 2 sliders but NOTHING has heppend - my motor was not moving ;(

    I've checked all connections with the multimeter and they seem to be ok. Voltage is 12,4V.

    What can I do more guys? How to move at last my motor? It's time! ;)

    BTW - Can anyone explain to me how to use Arduino codes:

    Whare to put it, and how to use at all?


    Are there any videos with tutorial of how to setup SIMTOOLS? I cant find any on YT.
  4. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,013
    Location:
    Switzerland
    Balance:
    30,409Coins
    Ratings:
    +3,088 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Baud rate 500000 , N , 8 , 1 (10ms delay)
  5. gorzasty

    gorzasty Active Member

    Joined:
    Apr 2, 2012
    Messages:
    151
    Occupation:
    photographer, IT specialist
    Location:
    Poland, Wrocław
    Balance:
    1,060Coins
    Ratings:
    +41 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Thx Pit - I tried 500000 BitPerSec but nothing has happened.

    Any other ideas?
  6. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,013
    Location:
    Switzerland
    Balance:
    30,409Coins
    Ratings:
    +3,088 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    the question is where did you change the value? I mention the SimTools interface settings.
  7. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,013
    Location:
    Switzerland
    Balance:
    30,409Coins
    Ratings:
    +3,088 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    pd please make screenshots it makes it easier for us, thanks
  8. gorzasty

    gorzasty Active Member

    Joined:
    Apr 2, 2012
    Messages:
    151
    Occupation:
    photographer, IT specialist
    Location:
    Poland, Wrocław
    Balance:
    1,060Coins
    Ratings:
    +41 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Yes, in SimTools. In device menager I dont have such a big value to set.
  9. gorzasty

    gorzasty Active Member

    Joined:
    Apr 2, 2012
    Messages:
    151
    Occupation:
    photographer, IT specialist
    Location:
    Poland, Wrocław
    Balance:
    1,060Coins
    Ratings:
    +41 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Here are the photos:

    [​IMG]

    [​IMG]

    [​IMG]
  10. gorzasty

    gorzasty Active Member

    Joined:
    Apr 2, 2012
    Messages:
    151
    Occupation:
    photographer, IT specialist
    Location:
    Poland, Wrocław
    Balance:
    1,060Coins
    Ratings:
    +41 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Do I have to change something in the code SMC3 if I want to use ARD+ MM (mode 1)?

    EDIT: How can I check does my Arduino after program uploaded work properly?

    EDIT2: I tried to upload different code to Arduino (by RacingMat) http://www.xsimulator.net/community/marketplace/arduino-code-2dof-and-2-pins-direction-hbridge.67/

    After upload and changing the connections my motor has moved but he's spinning still in one direction. Any changes in simtools do nothing. Maybe it's a matter of pots - I dont have them?
    Last edited: Apr 27, 2015
  11. gorzasty

    gorzasty Active Member

    Joined:
    Apr 2, 2012
    Messages:
    151
    Occupation:
    photographer, IT specialist
    Location:
    Poland, Wrocław
    Balance:
    1,060Coins
    Ratings:
    +41 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    One more thing. I looked at utility soft and it shows all motors off. I cant change it even if I click mouse on it.

    [​IMG]
  12. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,013
    Location:
    Switzerland
    Balance:
    30,409Coins
    Ratings:
    +3,088 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    OK, I am now at home from work. @gorzasty I have to determine that you did not read and did not follow all the steps described in the SMC thread. You are galloping the horse but you do not know where is back and front of the horse because you did not look FIRST. :p
    Please go back to the SMC3 thread and search for "Initial Setup".

    PS: Anyway I give you a hint: the pot is out of the range (max limits)
    • Friendly Friendly x 1
    • Useful Useful x 1
  13. Daguru

    Daguru Rally drivers do it in the Dirt

    Joined:
    Sep 4, 2013
    Messages:
    719
    Occupation:
    Kitchen installer
    Location:
    Wales uk
    Balance:
    452Coins
    Ratings:
    +631 / 1 / -0
    My Motion Simulator:
    Motion platform
    Hi @gorzasty not sure because I never tried but you have no pot connected to the arduino !
    The software needs feedback from pot to allow motors to move if it thinks pots are out of range it will turn them off until they are reset as a safety feature.
  14. gorzasty

    gorzasty Active Member

    Joined:
    Apr 2, 2012
    Messages:
    151
    Occupation:
    photographer, IT specialist
    Location:
    Poland, Wrocław
    Balance:
    1,060Coins
    Ratings:
    +41 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Hehe :D maybe You are right Pit . I'm to fast... but I have read quick start manual and thread with SMC3 several times.

    Here, onece again:

    1. Disconnect the motor power supply DONE
    2. Make sure Simtools is not running – we’re not ready for that yet! DONE
    3. Wire up the Arduino (with SMC3 installed) to your H-Bridges and connect to your computer via USB - DONE
    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) - DONE
    5. Set the Kp, Ki, Kd, PWMmin, PWMmax, PWMrev to 0 for ALL motors (This will make sure the motors don’t move) - DONE
    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) - DONE
    7. Turn on the power to your motors – nothing should move at this stage! DONE
    8. Set Kp to about 400 DONE
    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.
    Here is the problem. After connecting PSU my motors are still OFF in the utility, and rising PWMmax from 0 - 255 do nothing. Like I said - I dont have any pots connected. Should I have?
  15. gorzasty

    gorzasty Active Member

    Joined:
    Apr 2, 2012
    Messages:
    151
    Occupation:
    photographer, IT specialist
    Location:
    Poland, Wrocław
    Balance:
    1,060Coins
    Ratings:
    +41 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    UPDATE: ok, "'ll try to connect the pot and let You know.
  16. gorzasty

    gorzasty Active Member

    Joined:
    Apr 2, 2012
    Messages:
    151
    Occupation:
    photographer, IT specialist
    Location:
    Poland, Wrocław
    Balance:
    1,060Coins
    Ratings:
    +41 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Ok, another step forward thx to YOU guys ;)

    Now I have something like this:

    [​IMG]

    Motors are on if pot is in the range of red lines. When I go up with PWMmax motor 1 led on MM is on, but still my motor is not moving... Don't know why. I also tried to change +/- of my motor but that doesen't work.

    Near PWMmax 100 chip is getting so hot that I have to turn the power off. I've red about radiator and the fan, but I was thinking that it's not necessary for the test without the load.
  17. Daguru

    Daguru Rally drivers do it in the Dirt

    Joined:
    Sep 4, 2013
    Messages:
    719
    Occupation:
    Kitchen installer
    Location:
    Wales uk
    Balance:
    452Coins
    Ratings:
    +631 / 1 / -0
    My Motion Simulator:
    Motion platform
    Hi
    Are your pots now connected to your motor shaft ?
  18. gorzasty

    gorzasty Active Member

    Joined:
    Apr 2, 2012
    Messages:
    151
    Occupation:
    photographer, IT specialist
    Location:
    Poland, Wrocław
    Balance:
    1,060Coins
    Ratings:
    +41 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Hi Daguru
    Sorry, but what is motor shaft? At the moment I've got connected only one pot (because I've got only one motor) just like on this picture:

    [​IMG]



    I have connected only "motor 1" (A1,B1) and "Motor pot 1" (+,-,A0). Do I have to connect two pots while I've got only one motor to work it properly??? Sorry, but manual is not so clear for beginners...
    Last edited: Apr 27, 2015
  19. gorzasty

    gorzasty Active Member

    Joined:
    Apr 2, 2012
    Messages:
    151
    Occupation:
    photographer, IT specialist
    Location:
    Poland, Wrocław
    Balance:
    1,060Coins
    Ratings:
    +41 / 1 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    UPDATE: I tried to to add second pot and now I can see them both in utility soft (depends on what motor I choose) but satill cant move my motor with increasing PWMmax.
  20. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,013
    Location:
    Switzerland
    Balance:
    30,409Coins
    Ratings:
    +3,088 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Please check out the voltage of the outputs of A1 and B1 while turning the pot...
    At least please upload SMC3 0.63 and not 0.7 if you are NOT using the POT scaling input feature that can be used to scale the motion output based on the POT position.
    To do:
    The pots are not connected to the axle or motor shaft of the motors.
    If the pot is in the middle position (feedback and target line are at the same level) the motor does not move. If the pot is outside of the middle position higher then the blue line the motor begins to move. Did you understand what I try to explain?
    • Like Like x 1
    Last edited: Apr 28, 2015