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

Tutorial From AtoZ : 2DOF arduino wiper playseat

Discussion in 'DIY Motion Simulator Projects' started by RacingMat, Aug 8, 2013.

  1. Martin.Berger

    Martin.Berger Member

    Joined:
    May 6, 2014
    Messages:
    71
    Balance:
    214Coins
    Ratings:
    +3 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    hi @all,
    thank you racingmat for your work.
    i started my Project 4 years ago interrupted by my hous-building projetc.
    now I give it a Try again.
    I ll start a buildingthread soon.
    Maybe you can help me at some point.
    Thirst problem:I wired everything like you but how can i use the serial monitor of Arduino uno R3?
    i enter hex data click send and nothing happens. Just the rx led blinks one time.
    second problem:
    my pots do something stupid. When i turn one pot, motors move both in one direction. Then i move the other pot and motors move both the other way round.
    Shouldn't it be like one pot moves one motor in both directions.
    Hope you or alleine else can help me.
    thx
    Martin
    Last edited: Nov 6, 2017
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,462
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,608Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    You did not give details about the motors. If they are wiper motors then they likely need ground isolation: https://www.xsimulator.net/community/faq/wiper-motor-mandatory-ground-isolation.25/
  3. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,233
    Location:
    Marseille - FRANCE
    Balance:
    20,875Coins
    Ratings:
    +2,079 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    @baxbax : I think you can just switch the motor power wires AND switch as well the potentiometer wires ;-)
    • Like Like x 1
  4. 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 just switched the Motor wires to gain the correct direction.
    Aruduino sees pot values go up its told to turn motor 1 way, values go down turns the motor the other way, If that way dont match your setup, just swap Motor wires only.
    • Like Like x 1
  5. baxbax

    baxbax New Member

    Joined:
    Jan 2, 2018
    Messages:
    23
    Location:
    Italy
    Balance:
    135Coins
    Ratings:
    +2 / 0 / -0
    Thanks @Tech2123!
    I did what you wrote and now it's all ok.
  6. Krisie300

    Krisie300 Student Engineering

    Joined:
    Jan 18, 2016
    Messages:
    11
    Location:
    Netherlands
    Balance:
    146Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi everyone, I have a question..
    The 12V motors are turing in two ways. one with a positive voltage and one with a negative voltage.
    If we are using a 12V DC power suply, we will never have a negative voltage? Correct me if I'm wrong.
    So how do you do this?
  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,462
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,608Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Inverting the polarity of the applied voltage will reverse a DC motor.
  8. Krisie300

    Krisie300 Student Engineering

    Joined:
    Jan 18, 2016
    Messages:
    11
    Location:
    Netherlands
    Balance:
    146Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    That's true, I guess the VNH2SP30 will invert the polarity when I turn the potentiometer?
  9. hoyang

    hoyang handyman

    Joined:
    Dec 14, 2017
    Messages:
    84
    Occupation:
    Bricoleur
    Location:
    France
    Balance:
    1,267Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    [QUOTE = "Krisie300, poste: 152695, membre: 20472"] C'est vrai, je suppose que le VNH2SP30 va inverser la polarité quand je tourne le potentiomètre? [/CITATION]

    J'ai eu le même problème que vous.
    Le soucis venez du vnh2sp30 qui était défectueux une des broche de rotation moteur ne fonctionnait pas.
    Vous devriez tester votre moto monster en appliquant le 5v sur chaque broche de rotation 4-9 8-7 et avec le signal pwm activé.

    I had the same problem as you.

    The trouble came from the vnh2sp30 which was faulty one of the spindle motor rotation was not working.

    You should test your monster motorcycle by applying the 5v on each rotation pin 4-9 8-7 and with the pwm signal enabled
  10. Krisie300

    Krisie300 Student Engineering

    Joined:
    Jan 18, 2016
    Messages:
    11
    Location:
    Netherlands
    Balance:
    146Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Thanks! I will try this! =)
  11. Krisie300

    Krisie300 Student Engineering

    Joined:
    Jan 18, 2016
    Messages:
    11
    Location:
    Netherlands
    Balance:
    146Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    @hoyang it was de VNH2SP30 that wasn't working! By applying 5V to the pins I noticed only 2 pins are fully working. The other two pins only make the LED shine a little.
    So I guess I have to buy a new motor controller? Or can I fix this myself?
  12. Ijanen

    Ijanen Living Room Mechanic

    Joined:
    Feb 9, 2018
    Messages:
    41
    Occupation:
    precision mechanic, media designer
    Location:
    Germany, NRW, Halver
    Balance:
    408Coins
    Ratings:
    +28 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I think that is partly due to your electronics knowledge and the other part
    of the cost of the spare parts and the new motor controller.
  13. hoyang

    hoyang handyman

    Joined:
    Dec 14, 2017
    Messages:
    84
    Occupation:
    Bricoleur
    Location:
    France
    Balance:
    1,267Coins
    Ratings:
    +73 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    Si vous avez bien testé avec le pwm activé et que la diode la diode s'allume fort (+12v) dans un sans et faible (pas de -12v) dans l'autre.
    Je pense que votre vnh2sp30 est défectueux. Il n'y a pas de moyen de réparer à part remplacer la platine par une nouvelle.

    If you have tested well with the pwm enabled and the diode the LED lights up strongly (+ 12v) in one without and low (not -12v) in the other.
    I think your vnh2sp30 is faulty. There is no way to repair apart from replacing the platinum with a new one
  14. Krisie300

    Krisie300 Student Engineering

    Joined:
    Jan 18, 2016
    Messages:
    11
    Location:
    Netherlands
    Balance:
    146Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi!

    When I try to load in the presets files I get an error. (Picture)
    Someone who knows why this is?

    Regard,

    Kristian

    Attached Files:

  15. RacingMat

    RacingMat Well-Known Member Gold Contributor

    Joined:
    Feb 22, 2013
    Messages:
    2,233
    Location:
    Marseille - FRANCE
    Balance:
    20,875Coins
    Ratings:
    +2,079 / 21 / -2
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Try to replace "space" by "_" underscore
    I can't say more, I'm on my phone... :)
  16. nasrollah

    nasrollah New Member

    Joined:
    Jun 27, 2017
    Messages:
    13
    Location:
    iran
    Balance:
    252Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino


    Hello
    Erase the software and then reinstall it.
    Most likely your problem will be solved.
  17. Krisie300

    Krisie300 Student Engineering

    Joined:
    Jan 18, 2016
    Messages:
    11
    Location:
    Netherlands
    Balance:
    146Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    This worked! Thank you so much!
    Now I can finally mount everything toghter and hopefully it will work!
  18. alexdraco

    alexdraco Member

    Joined:
    Aug 8, 2018
    Messages:
    85
    Balance:
    278Coins
    Ratings:
    +34 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi RacingMat,
    I followed your project to build my simulator.
    I tested the electric motors by manually rotating the potentiometers (as explained in your guide). I ask you if the net change in the rotation of the motors without deceleration or braking could create problems in the operation.
    I do not yet have SimTools. Maybe it's SimTools to manage these dynamics?

    Thank you
    alexdraco
  19. alexdraco

    alexdraco Member

    Joined:
    Aug 8, 2018
    Messages:
    85
    Balance:
    278Coins
    Ratings:
    +34 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi RacingMat,
    I'm following your tutorial on the electrical part are in trouble because one of the two engines does not reverse the rotation.
    The problem is: I'm running the first hardware test "the pot is not mounted on the engine".

    ENGINE 1
    Pot at the center of the engine stopped
    turning the pot from the center to the right the motor turns to the right
    turning the pot from the center to the left the engine turns to the left.
    the LED on the card turns on / off according to the rotation
    I can switch the leds according to the rotation (correctly)

    ENGINE 2
    Pot at the center of the engine stopped
    turning the pot from the center to the right the motor turns to the right
    turning the pot from the center to the left the motor does not rotate
    The LED on the board lights up according to the rotation when it must reverse, the LED of the current rotation goes out and nothing is turned on when it is inverted
    in short: DO NOT MAKE THE INVERSION.

    Used material:

    N1 VNH2SP30
    N2 12V 30A engines
    N1 arduino one
    N2 potentiometers from 10k 270 ° single-turn

    Seeing your photos and comparing them with the pattern drawn known a different amount of cables.
    In the photos there are more cables welded on Motorshield compared to the design.

    What am I wrong?

    Do you have any suggestions to give me?

    Thanks in advance for your attention.

    I have alredy change two motorshield
  20. alexdraco

    alexdraco Member

    Joined:
    Aug 8, 2018
    Messages:
    85
    Balance:
    278Coins
    Ratings:
    +34 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    We had a misuration and the engine does not "rotate"
    and I found right 12v and left 9v.

    Measurements are made on wires without an "unplugged motor" electrical load

    Used material:

    N1 VNH2SP30
    N2 12V 30A engines
    N1 arduino one
    N2 potentiometers from 10k 270 ° single-turn

    POWER SUPPLY:
    12v 42 ampere

    Side A1B1 OK but side B1B2

    WRONG MESAURES


    ( potenziometer inverted the mesaures nothing change)