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 SMC3 Arduino 3DOF Motor Driver and Windows Utilities

Discussion in 'SimTools compatible interfaces' started by RufusDufus, Dec 1, 2013.

  1. Djalma Ribeiro

    Djalma Ribeiro Member

    Joined:
    Mar 24, 2020
    Messages:
    65
    Occupation:
    Drone Pilot
    Location:
    Cuiabá, Brazil
    Balance:
    168Coins
    Ratings:
    +12 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    Excuse me. I appreciate the help but I still don't understand anything.

    Give me a practical example please. What is the amount I need to fill so that my engines are in the highest position?

    upload_2020-6-1_19-40-51.png
  2. gabe

    gabe New Member

    Joined:
    May 21, 2020
    Messages:
    8
    Balance:
    142Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    So I downloaded this code to help with my issue where one motor would turn the same direction regardless of which side of the blue target line the pot input was on, but now two motors are having that problem.. Does anyone know what the cause could be? I attached a video of the issue.

    https://www.icloud.com/photos/#0obJ8k_HcZSrAHX0wWI32k6Fg
  3. accelero

    accelero Member

    Joined:
    Jun 30, 2015
    Messages:
    32
    Location:
    france
    Balance:
    159Coins
    Ratings:
    +8 / 0 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino
    Hello, not sure to be on right thread.......I can’t figure out what I have to send to smc3 rc model sketch using Processing to send my data
    I know that Format is supposed to be RxxxLxxx~But I can’t translate that in terms of serial.write () instruction in Processing
    Has anyone a suggestion ? should be delighted
  4. Marcos73

    Marcos73 Member

    Joined:
    Feb 14, 2020
    Messages:
    77
    Balance:
    99Coins
    Ratings:
    +55 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hello, please help, I test my engines on the SMC3, start the cycle but stop, it seems that they lose strength, does anyone have an idea of what it could be?
    The engines are weight free in this test.
    Thank you.

    [​IMG]
    • Like Like x 1
  5. Bastiuscha

    Bastiuscha Active Member

    Joined:
    Apr 1, 2017
    Messages:
    291
    Location:
    Germany
    Balance:
    750Coins
    Ratings:
    +191 / 2 / -0
    My Motion Simulator:
    6DOF
    Your green line (the pot feedback) is stopping sending information, or i get it wrong?
  6. Bastiuscha

    Bastiuscha Active Member

    Joined:
    Apr 1, 2017
    Messages:
    291
    Location:
    Germany
    Balance:
    750Coins
    Ratings:
    +191 / 2 / -0
    My Motion Simulator:
    6DOF
    But i also have a question that's been bothering me for some time:
    Can someone explain to me what Fpwm is changing in practice? Unfortunately I have not really understood it until today. My frame moves the same, no matter if 5 or 30khz. Will the engines become less hot on less khz? Would be very nice to know from you guys.
  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,056
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,034Coins
    Ratings:
    +10,885 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Fpwm The frequency of the selected Motor PWM. Note Motors 1 and 2 are tied together and will always have the same PWM frequency and have more selection options than Motor 3. This is a limitation of the microprocessor used on the Arduino Uno.
  8. Bastiuscha

    Bastiuscha Active Member

    Joined:
    Apr 1, 2017
    Messages:
    291
    Location:
    Germany
    Balance:
    750Coins
    Ratings:
    +191 / 2 / -0
    My Motion Simulator:
    6DOF
    Thanks, but that's not what I meant. What's the difference in practice?
  9. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,056
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,034Coins
    Ratings:
    +10,885 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    • Like Like x 1
  10. Bastiuscha

    Bastiuscha Active Member

    Joined:
    Apr 1, 2017
    Messages:
    291
    Location:
    Germany
    Balance:
    750Coins
    Ratings:
    +191 / 2 / -0
    My Motion Simulator:
    6DOF
    Thanks! In the comments of this link, i found the answer i searched for:

    --------------------------------------------------------------------------------------------
    "A practical motor behaves roughly like a resistor and inductor in series with a real motor. For efficient operation you need should switch between connecting the motor to the supply and shorting it out. While the motor is connected to the supply, the current will become more positive. When shorted, it will become more negative. Efficiency will go downhill markedly if the current switches polarity, because the motor will spend part of each cycle trying to mechanically fight what it's doing in other parts.

    From the standpoint of the motor itself, efficiency will be at its best when the PWM rate is as high as possible. Two factors limit the optimum PWM rate, however:

    Many motors have a capacitor in parallel with them in an effort to minimize electromagnetic interference. Every PWM cycle will need to charge and discharge that cap, wasting a full load of energy. Losses here will be proportional to frequency.

    Many H-bridge switches take a certain amount of time to switch; while they are switching, much of the power going into them will be wasted. As the PWM on and off durations shrink toward the point where the bridge is spending most of its active or inactive time switching, switching losses will increase.

    What's most critical is that the PWM rate be fast enough that the motor doesn't fight itself. Going faster beyond that will improve motor efficiency somewhat, but at the expense of increase the other aforementioned losses. Provided there isn't too much parallel capacitance, there will generally be a fairly big range of frequencies were PWM losses are minimal and motor current polarity remains forward; a frequency somewhere near the middle of that range will probably be best, but anything within that range should be adequate."
  11. Marcos73

    Marcos73 Member

    Joined:
    Feb 14, 2020
    Messages:
    77
    Balance:
    99Coins
    Ratings:
    +55 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hello, I manually activate the potentiometers and the same effect happens, the motors stop.
  12. Bastiuscha

    Bastiuscha Active Member

    Joined:
    Apr 1, 2017
    Messages:
    291
    Location:
    Germany
    Balance:
    750Coins
    Ratings:
    +191 / 2 / -0
    My Motion Simulator:
    6DOF
    Do the switches still stay "on", or they turn into "off"? (like on the picture i created)

    Attached Files:

  13. yondwangmms

    yondwangmms Member

    Joined:
    Feb 14, 2018
    Messages:
    40
    Balance:
    - 151Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    Very good introductory tutorial, I believe that under the guidance of this tutorial I will quickly complete my motion simulator platform!
  14. Marcos73

    Marcos73 Member

    Joined:
    Feb 14, 2020
    Messages:
    77
    Balance:
    99Coins
    Ratings:
    +55 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    [QUOTE = "Bastiuscha, post: 200610, membro: 25016"] Os interruptores ainda permanecem "ligados" ou se tornam "desativados"? (como na foto que eu criei) [/ QUOTE]

    Yes, they remain on, and when I operate the pots manually, I cross all limits, but I do not move, it seems that there is not enough energy to move.
    Last edited: Jun 19, 2020
  15. Bastiuscha

    Bastiuscha Active Member

    Joined:
    Apr 1, 2017
    Messages:
    291
    Location:
    Germany
    Balance:
    750Coins
    Ratings:
    +191 / 2 / -0
    My Motion Simulator:
    6DOF
    Then it looks like it's your motor driver. Or really your power supply is the reason. What you use as driver? There is no error led active?
  16. Marcos73

    Marcos73 Member

    Joined:
    Feb 14, 2020
    Messages:
    77
    Balance:
    99Coins
    Ratings:
    +55 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    OK, THE SOURCE IS OK, I WILL OPEN THE BOX AND CHECK THE H BRIDGE (MONSTER SHIELD). THANK YOU.

    FOLLOW VIDEO OF ELECTRONICS

    • Friendly Friendly x 1
    Last edited: Jun 19, 2020
  17. Özden Büyüksanalan

    Özden Büyüksanalan Member

    Joined:
    Jun 19, 2020
    Messages:
    40
    Balance:
    317Coins
    Ratings:
    +11 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Hi,

    thanks for that great tutorial and how to build.

    I build the Same as Mode 2. Arduino Uno R3 with 2 IBT-2.

    I completely wired one IBT-2 to the motor and the arduino board.

    Before i uploaded SNC3 to arduino. If i start SNC3 Utility i can set all to 0 like
    mentioned in the tutorial. After that i power up the motor.

    I went PWMmax to 255 but the motor do nothing. Only one grey line goes up.
    If i manualy circle the pot the green line is moving.

    Is there something in the settings which i made wrong?

    Greets
    Özden utilpic.jpg
  18. Özden Büyüksanalan

    Özden Büyüksanalan Member

    Joined:
    Jun 19, 2020
    Messages:
    40
    Balance:
    317Coins
    Ratings:
    +11 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino



    EDIT:

    Nevermind. It is up and running. I now understand max limits and clip. The Potentiometer
    was fully on one side so it allways clips directly without starting the motor. Great.
    • Like Like x 1
  19. GoRacing

    GoRacing Member

    Joined:
    May 30, 2014
    Messages:
    41
    Balance:
    96Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    DC motor
    Hello @RufusDufus, pure curiosity, I wanted to know why ibt2 feeds with 5v to pins 7 + 8gnd? I tried to remove the 5v from ibt2 + and it works the same.




    Another question: is it normal for all the oscillations of the PWM and the potentiometer? as can be seen from the screenshot. Then in the engine it makes noise even when I put it in manual and it is stopped. I tried to lower kp from 400 to 300, but only if I lower it to 200 does the noise disappear but the engine becomes slow. If I raise the minimum PWM it makes even more noise. What can it depend on? Thanks in advance


    [​IMG]
    Last edited: Jun 26, 2020
  20. MrDemon

    MrDemon New Member

    Joined:
    Mar 20, 2020
    Messages:
    12
    Balance:
    - 80Coins
    Ratings:
    +5 / 0 / -0
    My Motion Simulator:
    2DOF
    Hello. I have a serious problem. It seems like everything works. Everything works fine in the SMC utility, but when I load simtools game engine the platform movements become very strange. When I start output testing and start moving the sliders, with a value of "1" the platform moves almost to the maximum and the difference between the values of 1 and 100 is not very significant. I have a 2dof platform. It's almost impossible to play. The platform jerks from one maximum to another (((Once again, in the test utility, everything works smoothly and the platform deviation angle is correct. The SMC and SIMTOOLS "centers" are different. That is strange too ((((
    When I take the slider in simtools to minus, it works from zero of simtools . When I take the slider to plus, it seems to work from zero SMCUtil. The difference between zero of simtools and zero of SMCUtil is this jerk. :sos

    As I see it - the problem is just in different centers between the simtools and SMC .


    SOLVED You have to change Win Regional Settings to English )))))
    • Informative Informative x 1
    Last edited: Jul 6, 2020