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 Trimension Swivelchair – first questions (German)

Discussion in 'DIY Motion Simulator Projects' started by GeneralDiDi, Jun 24, 2017.

  1. GeneralDiDi

    GeneralDiDi Member

    Joined:
    May 21, 2017
    Messages:
    34
    Location:
    Deutschland
    Balance:
    347Coins
    Ratings:
    +48 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi, ich versuche mich gerade an meinem ersten Motion-Simulator. Habe damit noch keinerlei Erfahrung, aber zumindest Vorkenntnisse in den Bereichen Elektronik und Arduino.

    Mein Ziel ist es, einen kompakten 2DOF Drehstuhl zu verwirklichen, der lediglich einen Bewegung von ca. 10cm je Seite bringt und relativ mobil ist. Da dieser nicht nur für Cockpit-Anwendungen sondern auch für sonstige VR-Anwendung her halten soll, müsste er auch drehbar sein.

    Stick und Throttle sollen am Stuhl direkt befestigt werden und der Bewegung folgen. Eine direkte Verbindung zu einem Lenkrad und Pedale ist nicht angedacht.

    Mein Gedanke wäre, die Verwendung eines Trimension-Stuhl von Wilkahn. Dieser verfügt über 2 einstellbare Federn und lässt eine unabhängige Seitenneigung von etwas über 10cm zu. Da die Federn das belastende Gewicht gut relativieren, sollte die Bewegung über 2 Wischermotoren zu realisieren sein.

    sim004.jpg



    Ich habe jetzt mal einen ersten Testaufbau der Steuerung gemacht und schon ergeben sich unzählige Anfänger-Fragen:

    sim002.jpg

    Wie auf dieser Zeichnung verwende ich:
    1x Arduino Uno
    2x Ardunio H-Bridge
    2x 10K Poti
    2x Wischermotor
    Die Potis sind noch nicht mit dem Motor gekoppelt, da dies nur ein erster Testauf ist.

    sim003.jpg

    Den Arduino habe ich mit der SMC3 v1.0 über USB(COM3) versorgt. Leider gelingt es mir aber noch nicht eine Verbindung hin zu bekommen.

    Ich nehme an, dass mit mit „Output Testing“ der „Game Engine“ den Motor ansteuern kann. Bekomme das aber leider nicht hin. Auch über das SMC3 Utility bekomme ich keine Verbindung.

    Hat da jemand eine Idee / kann mir weiter helfen ?

    sim001.jpg

    Translation into English, as far as I can.

    Hi, I'm just trying to get my first motion simulator. Do not have any experience, but at least prior knowledge in electronics and Arduino.

    My goal is to realize a compact 2DOF swivelchair, which brings only a movement of about 10cm per side and is relatively mobile. This is to be used not only for cockpit-applications but also for other VR applications, so it should also be rotatable.

    Stick and throttle should be fastened directly to the chair and follow the movement. A direct connection to a steering wheel and pedals is not conceived.

    My thought would be to use a trimension chair by Wilkahn with 2 adjustable springs and allows an independent side inclination of slightly over 10cm. The springs compensate the loading weight well, the movement should be realized via 2 wipermotors.

    I have now made a first test setup of the control and already arise countless beginners questions:

    As in the tutorial - I use:
    1x Arduino Uno
    2x Ardunio H-Bridge
    2x 10K potentiometer
    2x wipermotor
    The potentiometers are not yet coupled to the motors, as this is only a first test.

    The Arduino I have supplied with the SMC3 v1.0 via USB (COM3). Unfortunately I succeed but not yet get a connection.
    I assume that with "Output Testing" the "Game Engine" can control the engine. But this is not the case. Also over the SMC3 utility I get no connection.

    Does anyone have an idea / can help me?


    Noch was zu meinem Spielzimmer:



    und noch was bewegtes zum Stuhl:
    • Creative Creative x 1
  2. GeneralDiDi

    GeneralDiDi Member

    Joined:
    May 21, 2017
    Messages:
    34
    Location:
    Deutschland
    Balance:
    347Coins
    Ratings:
    +48 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Habe noch etwas rum getestet. Mit dem SMC3 Utils scheint die Verbindung jetzt zu klappen. Wobei eine Umpolung für eine Drehrichtung gegen den Uhrzeigersinn anscheinend nicht geht. Mit der SimTools GameEngine bekomme ich aber leider weiterhin keine Verbindung hin. :(

    Kleines Video gemacht.



    Have something tested yet. With the SMC3 Utils, the connection now seems to fold. Whereupon a reversal for a counterclockwise rotation apparently does not works. With the SimTools GameEngine I get but unfortunately still no connection. :(
    • Like Like x 1
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,557
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,160Coins
    Ratings:
    +10,780 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Please post pictures of your SimTools settings.

    The is a difference from SimTools 1.3 to SimTools 2.0 in Interface Settings setup, which is that instead of axis defined like this <Axis1> it is now like this <Axis1a> in SimTools 2 to designate grouping for a or b.

    You won't need the b grouping, so just ignore it.
    • Useful Useful x 1
  4. GeneralDiDi

    GeneralDiDi Member

    Joined:
    May 21, 2017
    Messages:
    34
    Location:
    Deutschland
    Balance:
    347Coins
    Ratings:
    +48 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi noorbeast. Danke für den Hinweis. Habe etwas rumgestöbert und verschiedene Varianten gefunden. Habe jetzt bei mir [A<Axis1>][B<Axis2>] eingetragen und nun bin ich einen Schritt weiter. Was mich etwas verwundert ist, dass wieder mit dem SMC3 Utility noch mit SimTools GameEngine eine Umpolung gegen den Uhrzeigersinn stattfindet. Da bin ich mir nicht sicher ob dass so sein soll.
    Die Umschaltung an der Arduino H-Bridge erfolgt normal über Pin1 (High Signal Foreward) und Pin2 (High Signal Inversion) bzw. AusgangsPin 2 und 9 am Arduino-Board.

    Naja, als nächstes werde ich mal die Potis mit der Antriebswelle koppeln, wenn ich mal wieder etwas Zeit finde ;)

    Hier dann noch meine Interface Settings und die entsprechende Ausgabe dazu.

    ---

    Hi noorbeast. Thanks for the hint. I found some different variants. Have now entered [A <Axis1>] [B <Axis2>] and I am a step further. What a bit surprised me, that again with the "SMC3 utility" and with "SimTools GameEngine" a reversal for invertet direction dosnt work. I'm not sure if that should be.
    The switching at the Arduino H-Bridge works normally via Pin1 (High Signal Foreward) and Pin2 (High Signal Inversion) corresponding Output Pin 2 and 9 on the Arduino board.

    Well, next time I'll pair the potentiometer with the drive shaft, if I find time again ;)

    Here is my Interface settings and the corresponding output.

  5. ferslash

    ferslash Active Member

    Joined:
    Feb 8, 2011
    Messages:
    495
    Balance:
    4,798Coins
    Ratings:
    +181 / 2 / -0
    wooow... wait... i did not understand a thing... i dont speak german :D
  6. GeneralDiDi

    GeneralDiDi Member

    Joined:
    May 21, 2017
    Messages:
    34
    Location:
    Deutschland
    Balance:
    347Coins
    Ratings:
    +48 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Habe mal einen Rahmen hergestellt, die Motoren montiert und die Potis gekoppelt. Ob das ganze genug Stabilität bekommt bleibt abzuwarten ;)

    Now manufactured a frame, mounted the motors and coupled the potentiometer. Stability will be seen ;)

    2dof_001.jpg

    2dof_002.jpg

    2dof_003.jpg


    2dof_004.jpg
    • Like Like x 1
    • Old Old x 1
  7. GeneralDiDi

    GeneralDiDi Member

    Joined:
    May 21, 2017
    Messages:
    34
    Location:
    Deutschland
    Balance:
    347Coins
    Ratings:
    +48 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    A little step further. I take my time ;)

    potwire.jpg
    • Like Like x 2
    • Useful Useful x 1
    • Creative Creative x 1
  8. armpit

    armpit Active Member

    Joined:
    Jan 7, 2016
    Messages:
    128
    Occupation:
    Software Engineer
    Location:
    SC, USA
    Balance:
    - 8Coins
    Ratings:
    +132 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    This is such a cool idea, and very tidily executed so far; I'm excited to see where this goes!

    Careful with that potentiometer, I used an inexpensive one like that and it failed on me very quickly once I started rapid motor movement testing.
    • Like Like x 1
    • Agree Agree x 1
  9. Joao Neto

    Joao Neto Mucilon

    Joined:
    Jan 13, 2017
    Messages:
    61
    Occupation:
    Computer engineer
    Location:
    Salvador - Brasil
    Balance:
    310Coins
    Ratings:
    +36 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Well wired your sensor connection, will help to mount my.
    • Like Like x 1
  10. GeneralDiDi

    GeneralDiDi Member

    Joined:
    May 21, 2017
    Messages:
    34
    Location:
    Deutschland
    Balance:
    347Coins
    Ratings:
    +48 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Danke. Um die Potentiometer habe ich mir auch schon Sorgen gemacht. Durch die Hartschaumplatte ist dieser etwas gepuffert und die Vibrationen werden etwas abgefedert. Mal abwarten wir lange es hält. ;)

    Thanks. To the potentiometers, I've also worried. Due to the hardfoam-plate this is somewhat buffered and the vibrations are somewhat reduced. Lets wait how long it works. ;)


    I hope so :cheers


    next Step:

    platinen.jpg
  11. GeneralDiDi

    GeneralDiDi Member

    Joined:
    May 21, 2017
    Messages:
    34
    Location:
    Deutschland
    Balance:
    347Coins
    Ratings:
    +48 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Jetzt habe ich ein Problem: :sos
    Ich kann sowohl mit der Game Engine und mit den SMC3Utils die Motoren ansteuern und bekomme die Rückmeldung vom Potentiometer. Das ist OK.

    Allerdings drehen sich die Motoren nur in eine Richtung. Die H-Bridges funktionieren und wenn ich Pin1 (RPWM) und Pin2 (LPWM) der H-Bridge tausche dann laufen die Motoren nur in die andere Richtung.
    Ich habe das Gefühl dass SMC3 1.0 und dieser Verdrahtungs-Plan nicht ganz zusammen passen. Hat jemand eine Idee oder weiß wer wo der Fehler liegt?


    Now I have a problem: :sos
    I can drive the motors with the GameEngine and SMC3Utils and get the feedback from the potentiometer. That's OK.

    However, the motors only rotate in one direction. The H-Bridges works and when I exchange Pin1 (RPWM) and Pin2 (LPWM) of the H-Bridge then the motors also run only in the other direction.
    I have the feeling that SMC3 V1.0 and this wiring-plan does not quite match. Does anyone have an idea or who knows where the problem lies?

    sim_pins_prob.jpg
  12. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,557
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    145,160Coins
    Ratings:
    +10,780 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    • Like Like x 1
  13. GeneralDiDi

    GeneralDiDi Member

    Joined:
    May 21, 2017
    Messages:
    34
    Location:
    Deutschland
    Balance:
    347Coins
    Ratings:
    +48 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    • Like Like x 1
  14. dr.feelgood

    dr.feelgood Member Gold Contributor

    Joined:
    Apr 17, 2017
    Messages:
    86
    Location:
    FINLAND
    Balance:
    481Coins
    Ratings:
    +43 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi!

    I can confirm that diagram on your picture works (i'm using it). Just take care that your wiring is exact. Have you checked pins on ibt-2, as they are not marked very well...?
    • Like Like x 1
  15. GeneralDiDi

    GeneralDiDi Member

    Joined:
    May 21, 2017
    Messages:
    34
    Location:
    Deutschland
    Balance:
    347Coins
    Ratings:
    +48 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Also an den Motoren (Ground isolated) lag es auch nicht. Habe den gleichen Effekt mit kleinen Testmotoren und selbst mit einem Multimeter.

    Das Problem ist, dass Pin1 der IBT-2 H-Bridge kein PWM-Signal bekommt. Wenn man sich den Plan und den SMC3-Code anschaut sieht man auch dass Pin1 am IBT-2 auf Pin2 am Arduino geht und hier wird kein PWM sondern nur ein Enable-Potentional ausgegeben. Kann also nicht funktionieren. Aber so steht es im Plan. o_O

    Zur Sicherheit noch mal die Kontaktbelegung (nur von Motor1):
    ARD 5V → IBT-2 Pin7
    ARD Gnd → IBT-2 Pin8
    ARD PinA2 → IBT-2 Pin1
    ARD PinA3 → IBT-2 Pin3 + Pin4
    ARD PinA9 → IBT-2 Pin2
    ?


    Ground isolated motor was not the problem. Have the same effect with a small testmotor and even with a multimeter. o_O

    The problem is that pin1 of the IBT-2 H-Bridge does not get a PWM-signal. A look at the plan and the SMC3-code also sees that Pin1 on the IBT-2 goes to Pin2 on the Arduino and here is no PWM, only a Enable-Potentional-output. So can not work. But that is the plan. I wonder.

    For safety, the contact assignment (only from Motor1):
    ARD 5V → IBT-2 Pin7
    ARD Gnd → IBT-2 Pin8
    ARD PinA2 → IBT-2 Pin1
    ARD PinA3 → IBT-2 Pin3 + Pin4
    ARD PinA9 → IBT-2 Pin2
    ?
    :sos

  16. dr.feelgood

    dr.feelgood Member Gold Contributor

    Joined:
    Apr 17, 2017
    Messages:
    86
    Location:
    FINLAND
    Balance:
    481Coins
    Ratings:
    +43 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi! Do you have original Arduino Uno or clone? If clone, then download proper drivers for windows (google for clone arduino drivers).... Hope this solves your problem.
    • Like Like x 1
  17. Joao Neto

    Joao Neto Mucilon

    Joined:
    Jan 13, 2017
    Messages:
    61
    Occupation:
    Computer engineer
    Location:
    Salvador - Brasil
    Balance:
    310Coins
    Ratings:
    +36 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    When you turn the potentiometer before 512 the motor goes to one side and after 512 it goes to the other? If so, I think the connections and the H-bridge are all ok.
    • Like Like x 1
  18. GeneralDiDi

    GeneralDiDi Member

    Joined:
    May 21, 2017
    Messages:
    34
    Location:
    Deutschland
    Balance:
    347Coins
    Ratings:
    +48 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Now I use an original Arduino. Still the same problem :mad:

    The potentiometer works fine. If I drive the center position 512, the motor stops in the middle absolutely correct. Also the end position stops the motor as it should. But only in one direction.


    I just do not understand why from the Arduino Pin2 no PWM (Pulse Width Modulation) "according to SMC3" comes. PWM is, however, absolutely necessary so that the IBT-2 can control the forward direction via Pin1... didnt get that :(

    does not get to work :(
  19. GeneralDiDi

    GeneralDiDi Member

    Joined:
    May 21, 2017
    Messages:
    34
    Location:
    Deutschland
    Balance:
    347Coins
    Ratings:
    +48 / 3 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I have adapted the wiring somewhat. Now my test-motor runs forward and backward.
    The big motors I have to try later in a few days, if I find time again :cool:

    Already strange that the old plan works for all the others guys o_O

    newvergl1.jpg
  20. Joao Neto

    Joao Neto Mucilon

    Joined:
    Jan 13, 2017
    Messages:
    61
    Occupation:
    Computer engineer
    Location:
    Salvador - Brasil
    Balance:
    310Coins
    Ratings:
    +36 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Have you changed the Arduino code for Mode2? I had some problem similar to yours, when I realized I had forgotten to change the mode in the code of Arduino. Remember that I use "old" wiring.
    • Useful Useful x 3
    • Winner Winner x 1