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

Newbie here building a 6dof

Discussion in 'New users start here - FAQ' started by Stevemannn, May 19, 2024.

  1. Stevemannn

    Stevemannn New Member

    Joined:
    Mar 20, 2024
    Messages:
    19
    Balance:
    119Coins
    Ratings:
    +13 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    So running into a little issue here, trying to get the second motor on the same Arduino to work correctly.

    The motor does spin both ways when given voltage either way.

    Video pretty much explains everything.

    Thank you in advance

  2. Attyla.pl

    Attyla.pl Active Member

    Joined:
    Oct 1, 2023
    Messages:
    163
    Location:
    Polska
    Balance:
    660Coins
    Ratings:
    +46 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    I watched your video , the first thing that strikes the eye is the arduino version 0.70 the latest is 1.0 :),
    Something must be wrong because with the “Monitor” option enabled both motor 1 and 2 should be stationary.
    Disconnect power from the motors , and check if by turning the potentiometer you have a change in the green line ?
    It would be best if you made a test wiring for only two motors , separate from your power cabinet.
    I'm worried about the movement with the “Monitor” setting :(
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,094
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,246Coins
    Ratings:
    +10,892 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Could you please post pictures of the settings used for the motor that works and the one that does not.

    It looks like a USB hub is being used, does the issue still happen if direct connected to the computer?

    You mention the possibility of a faulty IBT2, but if you swap the IBT2s between the motors and the problem does not follow then I doubt that is the case.

    Do double check all wiring and try swapping USB cables to see if the problem follows.
  4. Stevemannn

    Stevemannn New Member

    Joined:
    Mar 20, 2024
    Messages:
    19
    Balance:
    119Coins
    Ratings:
    +13 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Okay I updated all the Arduino files to version 1. Didn't notice that thank you, but still no change.

    Tried it without the hub, also still no change.


    I tried it on a different board, and that motor is working fine.
    Atleast on the motor 1 side it is

    I'm thinking I possibly have my Arduino wires messed up somewhere for motor 2 maybe.

    I'm gonna have to go over everything.
    I appreciate the quick replies.


    These are the settings for motor 1 on the first board.

    I copied the settings to motor 2 and messed with every single setting, from minimum to max, with obviously no success.

    I'll keep this updated,thank you for the help

    Attached Files:

  5. Stevemannn

    Stevemannn New Member

    Joined:
    Mar 20, 2024
    Messages:
    19
    Balance:
    119Coins
    Ratings:
    +13 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Okay, so the more I am reading,the more I am thinking I have bad ibt2s

    And this is for mainly one main reason, but in smc3 with all my settings turned to zero.

    My motors are powered no matter what I do. I originally thought this was normal,but the more I read, it seems that it isn't.
    They'll keep on spinning no matter what setting they're on

    I'm thinking this is why I'm only getting voltage in 1 direction and not the other.

    But it's only effecting 1 motor.

    Does this seem correct?
    Last edited: Nov 3, 2024
  6. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,094
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,246Coins
    Ratings:
    +10,892 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    That sounds like it could be faulty hardware, but I thought you said you already swapped the hardware and it was OK?
  7. Attyla.pl

    Attyla.pl Active Member

    Joined:
    Oct 1, 2023
    Messages:
    163
    Location:
    Polska
    Balance:
    660Coins
    Ratings:
    +46 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    How SMC3Utils works :
    1. the motor does not move when the green line (potentiometer signal reading) is in the middle, and coincides with the blue line.
    smc3 stop.png

    2. 2. when you select “Sine” from the arduino will output a signal to the IBT to turn the motor , at the same time from the potentiometer will return a feedback signal by what angle the motor turned , that's why on the graph the blue line and the green line overlap .
    smc3 running.png

    If you have one motor working, then rewire all the wires from motor 2 to the arduino outputs of motor 1 and connect to the output of motor 1 in IBT2. If it is ok then you have verified that the motor and wiring is correct.
    I would look for a faulty IBT2 though, I have had only one channel in IBT2 faulty several times in my project.
    The question is whether you uploaded the batch to the Arduino with “MODE 2” set ?
    Attach the file you uploaded to the arduino.
  8. Stevemannn

    Stevemannn New Member

    Joined:
    Mar 20, 2024
    Messages:
    19
    Balance:
    119Coins
    Ratings:
    +13 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Well by okay,I meant the motor was working fine just as it was before, but it seems this ibt2 has the same issue,which I agree is very odd.
    Do you think it's an Arduino issue?
    I'm hoping I get some time tonight to go over all my wiring.


    And thank you attyla.pl
    I was pretty close on thinking that's how smc3 worked.

    You also mentioned before, that my motors should be powered,when in the monitor mode?
    Mine are powered

    I'm gonna try to get 1 Arduino to actually work correctly on both motors 1 and 2.

    I have a feeling I'm either making a small stupid mistake,or I have a bad batch of ibt2s

    Have you heard of any issues with the Elegoo uno r3 boards?


    Just trying to rule out hardware issues
  9. Attyla.pl

    Attyla.pl Active Member

    Joined:
    Oct 1, 2023
    Messages:
    163
    Location:
    Polska
    Balance:
    660Coins
    Ratings:
    +46 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    As for the defectiveness of the Elgoo Uno r3 I do not know how to write it, I had such a case that at the beginning of the construction of 2dof also could not cope with the operation of one engine , and now I do not know either helped upload the oldest version smc3 0.6 and then upload version 1.0 since then everything works without problems
  10. Stevemannn

    Stevemannn New Member

    Joined:
    Mar 20, 2024
    Messages:
    19
    Balance:
    119Coins
    Ratings:
    +13 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    I'm thinking I have an Arduino issue. I did a ton of diag today.
    I swapped to a brand new Arduino,
    I formated the code.
    I tried version.6
    Version 1
    I swapped a known good ibt2 to motor 2 and still the same issue.

    I cannot get motor 2 to send voltage the opposite way.

    I'll post 2 videos.

    The second one, I discover something very odd, and I can't think in my head as to why this happens.

    Maybe these Elegoo Arduinos aren't the greatest?
    Same issue with all 3 boards.
    Really made me question my wiring 1000 times,but as you can see on my video, something odd is definitely happening.






    And this is video 2 the odd discovery.






    I think I'm getting somewhere, Ive definitely ruled a lot of things out.


    I tried every single terminal on that board. From 0-12 and not one of them let the voltage swap sides
  11. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,094
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,246Coins
    Ratings:
    +10,892 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Taking it step by step is the way to go in pinning down gremlins :thumbs

    Swapping out hardware and seeing if the problem follows or not is a good way to go.

    So, if you swap out the IBT2s and the problem does not follow, both are verified as working, then the Arduino may be the issue. Non-genuine Arduinos can be an issue and some of them actually require drivers, so may not work. A genuine Arduino is a good baseline.
    Last edited: Nov 5, 2024
  12. Attyla.pl

    Attyla.pl Active Member

    Joined:
    Oct 1, 2023
    Messages:
    163
    Location:
    Polska
    Balance:
    660Coins
    Ratings:
    +46 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    I think you need to go back to the beginning, at this moment you have a thicket of wires and confusing meter readings that are difficult to interpret.
    I suggest:
    1. remove one arduino board.
    2. connect two potentiometers according to the diagram
    3. run SMC3Utils and test whether the board correctly generates a signal to control the motors.
    It should, with “Sine” movement, look like this on the attached video, on which I assembled the ELEGOO board + 2 potentiometers.



    Notice that despite the absence of motors and controllers, the arduino generates the correct sine wave (blue line) and PWM signal (yellow line) for both motors, of course, the feedback signal from the potentiometers does not change because there is no real movement.
    • Like Like x 1
  13. Stevemannn

    Stevemannn New Member

    Joined:
    Mar 20, 2024
    Messages:
    19
    Balance:
    119Coins
    Ratings:
    +13 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    just ordered some genuine arduinos, i didnt know there was actually a difference, in chips and drivers.
    hoping this is the fix, or atleast some insight as to what is going on.



    Attyla. i know it looks confusing, but i am actually only using one board at the moment.
    both pot's read correctly, i am just having trouble getting voltage to switch from negative to positive on motor 2 , on every board.
    Wiring is correct.
    both of those ibt2's were known to work.
    im thinking it is an arduino clone issue, i just recently bought these, so maybe they changed something? or like noorbeast mentioned, different drivers etc.

    we will see. either way, im not giving up on it lol.

    once again, thank you both for your help.
    • Like Like x 1
  14. Stevemannn

    Stevemannn New Member

    Joined:
    Mar 20, 2024
    Messages:
    19
    Balance:
    119Coins
    Ratings:
    +13 / 0 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Well I figured it out, after 3 painful days.

    This is not a dash and a zero -0. This is the number ten!!!!!

    I thought it was supposed to be plugged into zero. Which is why all 3 boards did the exact same thing lol


    Time to put everything back together and return 3 Arduinos it seems lol.
    Omg I'm so happy I found it,I was going absolutely nuts.

    I really thought it was a dash.

    I actually ended up reading the code to figure it out lol

    Attached Files:

    • Like Like x 2
  15. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,094
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,246Coins
    Ratings:
    +10,892 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Glad you got that sorted, and kudos for the perseverance :thumbs
    • Like Like x 1