1. 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!
  2. 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
  3. 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

Adding traction loss to my static setup, hope I go faster.

Discussion in 'New users start here - FAQ' started by Randy Zimmer, Jul 12, 2021.

  1. cfischer

    cfischer Active Member Gold Contributor

    Joined:
    Sep 7, 2015
    Messages:
    281
    Location:
    Colorado
    Balance:
    1,985Coins
    Ratings:
    +197 / 0 / -0
    Time for 360 yaw then?
  2. Randy Zimmer

    Randy Zimmer Member Gold Contributor

    Joined:
    Jul 12, 2021
    Messages:
    31
    Occupation:
    retired
    Location:
    buffalo, ny usa
    Balance:
    203Coins
    Ratings:
    +12 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I fought with the tuning of the pot but what the problem was, was that the IBT-2 H bridges kept blowing up. When the motor got to center, it'd vibrate a bit, then drive away to one side.

    Attached Files:

  3. Randy Zimmer

    Randy Zimmer Member Gold Contributor

    Joined:
    Jul 12, 2021
    Messages:
    31
    Occupation:
    retired
    Location:
    buffalo, ny usa
    Balance:
    203Coins
    Ratings:
    +12 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I don't have the space and getting all the slip rings and wireless is beyond me, read more in the thread...
  4. Randy Zimmer

    Randy Zimmer Member Gold Contributor

    Joined:
    Jul 12, 2021
    Messages:
    31
    Occupation:
    retired
    Location:
    buffalo, ny usa
    Balance:
    203Coins
    Ratings:
    +12 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I got a cool (expensive) Sabertooth 2x32, followed the toot as best I could and have a problem, well, two.
    1, with the computer off, I turn on the power supply and the arduino Uno and the motor runs. Moving the pot doesn't change it, it just goes on it's own. The last SMC3 (sorry, it's the newer soft start one) sketch saved was with everything at zero. I don't understand this enough to figure out what I can do. I copied the IBT-2 sketch settings and changed them for the 2x32 but I must be doing something wrong.
    I plugged in to DEScribe but have no idea what I should do there.
    2, I put the pot in the front pivot so the wheel will be controlled by where the rig is, not the motor because tire slip. The angles are very small. I could use slot car gears to manually change the ratio but there's probably a software fix (?)

    Attached Files:

  5. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    17,088
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    124,062Coins
    Ratings:
    +9,720 / 47 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    For Sabertooth you should use @BlazinH's modifed SMC3: https://www.xsimulator.net/communit...ket-serial-pid-motor-driver-for-arduino.9277/
  6. Randy Zimmer

    Randy Zimmer Member Gold Contributor

    Joined:
    Jul 12, 2021
    Messages:
    31
    Occupation:
    retired
    Location:
    buffalo, ny usa
    Balance:
    203Coins
    Ratings:
    +12 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Yes, that's the one I used. When I had problems, I thought I needed to make more comments active so I compared the comments from the working IBT sketch to the ones on on BlazinH's. I'm hoping someone else had this happen and knows where I went wrong.
    I have the dip switches set as the page - off,off,on,on,on,on
    no jumpers, no clamp resistor
    SPS does recognize the UNO when asked.
    The pot is seen (but very small movement shown)
    The motor won't move with just power, it needs the USB plugged into the UNO before it runs.
    I'm submitting the first bit of the sketch where I need to make the comment changes.
    There's a chance there are more further down I don't know about.(?)

    //****************************************************************************************************************
    // SMC3.ino is basic Motor PID driver designed for motion simulators with upto 3 motors (written for UNO R3)
    // Sabertooth Mode 3 upgrade to packet serial mode with serial timeout by BlazinH
    // Softstart by BlazinH
    //****************************************************************************************************************
    //****************************************************************************************************************
    //SET SOFTSTART SPEED
    const int SSloop = 30;
    //****************************************************************************************************************
    // Set to MODE1 for use with a typical H-Bride that requires PWM and 1 or 2 direction inputs
    // Set to MODE2 for a 43A "Chinese" IBT-2 H-Bridge from e-bay or equiv
    // Set to MODE3 for a Sabretooth setup in simple serial mode
    #define MODE3
    // Uncomment the following line to reverse the direction of Motor 1.
    // #define REVERSE_MOTOR1
    // Uncomment ONE of the following lines to enable analogue input AN5 as a scaler for the motion values.
    #define ENABLE_POT_SCALING
    // #define ENABLE_NON_LINEAR_POT_SCALING
    // Uncomment the following line to enable the second software serial port.
    // NOTE: This is currently not working - leave commented out until fixed!!!
    // #define SECOND_SERIAL
    // COMMAND SET:
  7. Randy Zimmer

    Randy Zimmer Member Gold Contributor

    Joined:
    Jul 12, 2021
    Messages:
    31
    Occupation:
    retired
    Location:
    buffalo, ny usa
    Balance:
    203Coins
    Ratings:
    +12 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I got some more IBT-2's and promised myself to treat them better. It worked right away so the 2x32 got sent back. I got too frustrated and have other things to do than figure that out. Using the motor and tire, I had to move the pot from the motor to the front pivot. Because the movement is so small, I figured the pot wouldn't have the resolution to show a difference. I have boxes of 50 year old slot car parts so I put them to work. The gears make it a bit over 5 to 1.

    Attached Files:

    • Like Like x 1
  8. Randy Zimmer

    Randy Zimmer Member Gold Contributor

    Joined:
    Jul 12, 2021
    Messages:
    31
    Occupation:
    retired
    Location:
    buffalo, ny usa
    Balance:
    203Coins
    Ratings:
    +12 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Here's the latest video. I have it dialed in pretty well but wonder if there's a magic formula for settings.
    I'd like it to be Very responsive (no lag) but with small movement with less noticeable re-centering.
    I'd just like to know when the back is starting to move but not get jostled around while feeling it.
    • Winner Winner x 1