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

Question Potentiometer purpose and explanation

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by James Robbie, May 30, 2017.

  1. James Robbie

    James Robbie Active Member

    Joined:
    May 23, 2017
    Messages:
    111
    Occupation:
    IT Specialist
    Location:
    New Zealand
    Balance:
    538Coins
    Ratings:
    +65 / 2 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    Hi all,

    I have started my build thread in the projects area (https://www.xsimulator.net/community/threads/first-diy-2dof-attempt.10333/) and I am getting together the physical components but I have come across something I don't fully understand. I am planning on doing the basic Arduino/MM/Wiper motor build. I think i understand enough that they provide feedback/positional information BUT two questions:

    1. Does it matter what "K"/OHM value the potentiometers are?
    2. What is the deal with "gearing" the potentiometers?

    Some projects i have seen, the potentiometers are geared one to one to the main motor shaft, some have a bigger gear than the motor shaft and some have a smaller gear than the motor shaft.

    I am happy to read, learn and try to understand more so I have more of an idea of what I am doing but I am just not sure where I need to be reading if this type of question has been asked before.

    Thanks in advance
  2. RandomCoder

    RandomCoder Active Member Gold Contributor

    Joined:
    Feb 19, 2017
    Messages:
    185
    Occupation:
    Control Engineer
    Location:
    UK
    Balance:
    1,674Coins
    Ratings:
    +142 / 0 / -0
    1. The Arduino has 0 to 5V analogue inputs which are 10 bit, therefore it's resolution is...
    0-5V input range = 0-1023 counts = 4.88mV resolution
    This means that the smallest detectable movement ideally wants to produce approx 5mV.
    2. The pots are geared so that the rotation of the motor or movement of the actuator, is geared to produce a full 0 to 5V signal to the analogue input.
    • Like Like x 1
    • Informative Informative x 1
    • Useful Useful x 1
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,038
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,926Coins
    Ratings:
    +10,882 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Personally I use Hall sensors as you can easily connect them directly to a motor shaft using a flexible coupling, you do not need to gear them, they will not break if over rotated, and they are also precise and very durable.

    But 10k pots will work, see here for further details on pots and Hall sensors: https://www.xsimulator.net/community/faq/how-to-choose-potentiometer.238/

    There are also a number of approaches to mounting and connecting pots: https://www.xsimulator.net/community/faq/how-to-connect-protect-a-potentiometer.13/
    • Useful Useful x 1
  4. James Robbie

    James Robbie Active Member

    Joined:
    May 23, 2017
    Messages:
    111
    Occupation:
    IT Specialist
    Location:
    New Zealand
    Balance:
    538Coins
    Ratings:
    +65 / 2 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, Motion platform
    I would hate to think what you dream of at night @noorbeast, you have all the right threads for the rights questions...
    • Like Like x 1
    • Funny Funny x 1
  5. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,038
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    147,926Coins
    Ratings:
    +10,882 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    The FAQs are a gateway to a wealth of collective member tips, tricks, innovation and information
    :thumbs
  6. Zed

    Zed VR Simming w/Reverb Gold Contributor

    Joined:
    Apr 4, 2017
    Messages:
    1,040
    Location:
    USA
    Balance:
    5,840Coins
    Ratings:
    +1,040 / 4 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK

    About #1 - It does matter what the resistance of the potentiometers are. I didn't see it right off but since you are running with Monster Motos, I'm guessing you are using Arduino Uno's to control them and that is what would be reading the potentiometers.

    If you check here: https://www.arduino.cc/en/Tutorial/AnalogInput, Arduino recommends a 10k pot for this kind of thing. I'd stick with that. You can go up or down from that, but at low resistance you will use more current in the pot which depending on the value can lead to heating and drift, and at too high of resistance, the input resistance of the Atmel chip ADC can load the pot and cause slow and nonlinear response. Atmel also recommends a 10k ohm or less output impedance for whatever the circuitry is you are measuring.

    But I agree with Noorbeast - Hall sensors are the way to go. There are versions that look just like pots with an input shaft you have to use flex couplings to keep from wearing out, and there are also totally non-contact versions that you mount a magnet holder on your motor shaft and mount the sensor body in proper position next to it. No flex coupling, no wear, and no wearing out. I use Honeywell RTP180LVEAA sensors. A bit more than what some recommend, but so easy to install, rugged, and again, no wear. But there are others too.

    Halls.jpg
    • Like Like x 1
    • Useful Useful x 1
  7. mariano68

    mariano68 Active Member

    Joined:
    Nov 15, 2014
    Messages:
    576
    Occupation:
    builder contractor
    Location:
    Argentina
    Balance:
    3,339Coins
    Ratings:
    +395 / 2 / -0
    My Motion Simulator:
    2DOF, Arduino, 4DOF
    Simple question, is ok to use 20k potentiometers? I can get some really good 20k pots cheap...
  8. Zed

    Zed VR Simming w/Reverb Gold Contributor

    Joined:
    Apr 4, 2017
    Messages:
    1,040
    Location:
    USA
    Balance:
    5,840Coins
    Ratings:
    +1,040 / 4 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    Hi Mariano, 20k pots might work but they are not the recommended value for the Arduino Uno. You don't say what will be measuring the voltage on the pot, so that may or may not be correct for you.

    In a typical setup and without gearing, you would only see symmetric charge and discharge of the input ADC sample and hold capacitor of the Atmel (assuming Atmel based control circuit) at mid travel on the pot. As you move to either end, one way the charge impedance would be fine but the discharge would be too high. To the other end that would swap. Chances are you would be ok but you want to be sure to aim for mid range on the pot at mid range on your actuator to have the best performance each way. Thing is that the time scale of rig motion is way slower than the time scale of the ADC Sample and hold cap charging and discharging. You could be fine just because of that.

    Pots are cheap, though. I'd try for 10k if you can though the 20k's may work fine in practice. Only way to know is to try. Maybe the errors won't be noticeable.
    • Informative Informative x 1
  9. mariano68

    mariano68 Active Member

    Joined:
    Nov 15, 2014
    Messages:
    576
    Occupation:
    builder contractor
    Location:
    Argentina
    Balance:
    3,339Coins
    Ratings:
    +395 / 2 / -0
    My Motion Simulator:
    2DOF, Arduino, 4DOF
    Thank you Zed for the lesson, now the 50k are out of stock and 5k are in stock at half the price (us40 instead of us80 for 4 of them) elusive 10k pots :p
    • Creative Creative x 1
  10. Zed

    Zed VR Simming w/Reverb Gold Contributor

    Joined:
    Apr 4, 2017
    Messages:
    1,040
    Location:
    USA
    Balance:
    5,840Coins
    Ratings:
    +1,040 / 4 / -0
    My Motion Simulator:
    2DOF, DC motor, JRK
    In most setups the pots just act like variable voltage dividers with the voltage over the whole resistive element. If you need inputs in the range of 0-5V then you would probably be using 5V and ground at the ends. With a 5k ohm element, that's just 1 mA of current through the element. Power dissipated would only be 5 mW. Probably very little heating and no problem with drift.
    • Like Like x 1