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. tadek

    tadek Active Member

    Joined:
    Aug 17, 2020
    Messages:
    187
    Balance:
    498Coins
    Ratings:
    +33 / 2 / -0
    My Motion Simulator:
    2DOF
    hi Tom1980
    can you send a picture of your potentiometer

    Best regards
  2. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    20220127_163255.jpg 20220127_163246.jpg
    This is the one I am using. I got it from digikey
  3. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    Thank you Tadek for responding so quickly.
  4. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    I am using the Elegoo mega, I wonder if it isn't compatible with this coding. What do you think?
  5. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    I tried that but it won't move off the bottom. No matter which was I rotate it. Interestingly though when I check the voltage from the positive leg to the Vout I get exactly 1 volt in difference which is 4.08 volts.
  6. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,861
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,002Coins
    Ratings:
    +10,844 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    That seems to me to indicate a wiring or hardware problem. Check the wiring to the pot, including polarity, and if you have more that one swap them over, to try and pin down where the issue is.
  7. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    Thank you Noorbeast, I have checked and double checked the wiring as per the diagram. I wonder if my sensor is faulty as you mentioned so I will try another one.
  8. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    Update: I tried the second sensor and got no change. I am using a mega until my uno arrives but I think the structure should be similar and the pins universal. Having said that I switched to several different pins and still the same. Do you think it could be the difference in boards?
  9. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    Screenshot_20220127-211544_Drive.jpg
    Correct me if I am wrong but doesn't the ground go to GND the positive go to +5v and the sensor connect to Vout and also be connected to A0 on the board.
  10. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,861
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,002Coins
    Ratings:
    +10,844 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    SMC3 is written for the Uno, so the Mega may be the issue.
  11. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    I have an uno on the way and I kinda hope that's it but logic would state that with the mega simply being an extended uno that the syntax would be the same.
  12. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,861
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,002Coins
    Ratings:
    +10,844 / 53 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    They are not exactly the same.
  13. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    That must be the reason then. Thank you for the advice. I should have one in a few days and we will see.
    • Like Like x 1
  14. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,929
    Location:
    London
    Balance:
    11,802Coins
    Ratings:
    +471 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    doe the vout voltage go up and down when you turn the pot ?
  15. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    Hello and good morning, unfortunately the Voltage remains the same at all times. The Voltage going in is 5.08 and the Vout Voltage is exactly 4.08 in every direction the switch is turned even when turned completely around 360 degrees.
  16. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,929
    Location:
    London
    Balance:
    11,802Coins
    Ratings:
    +471 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    remove the signal wire from the pot and test again
  17. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    20220128_105248.jpg
    I tried your suggestion but this is what happened. Any thoughts as to why. I am also very thankful for yours and everyone's help here.

    Attached Files:

  18. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,929
    Location:
    London
    Balance:
    11,802Coins
    Ratings:
    +471 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    Use a multimeter to measure the voltage on the output
  19. Tom1980

    Tom1980 The Sky Is The Limite

    Joined:
    Jan 1, 2022
    Messages:
    45
    Occupation:
    Business Management
    Location:
    Alabama, USA
    Balance:
    26Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino, Motion platform
    I have, the input voltage is 5.08 and the output voltage is 4.08. I am at a loss as to why I am losing one voltage. ON the other the voltage always stays at 4.08 no matter where I turn the Pot.
  20. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,929
    Location:
    London
    Balance:
    11,802Coins
    Ratings:
    +471 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF
    Remove the pot and benchtest it with no other wires just 5v and gnd