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 Attach the hall-effect 'potentiometer' on the motor shaft on Arduino SMC3

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by prophet.id, Feb 6, 2025 at 23:13.

  1. prophet.id

    prophet.id Member Gold Contributor

    Joined:
    Mar 11, 2024
    Messages:
    30
    Balance:
    60Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    3DOF
    I am thinking to put the sensor on the motor shaft (Instead of on the gearhead shaft).
    Since I am using a 1:50 gear head and designing for a total maximum 90-degree motion angle of output/horn, my calculation for a Quarter rotation output of my motor would turn a total of 12.5 turns.
    So, I am thinking of getting 20 turn-hall effect potentiometers and attaching them to the motor shaft (it is a dual shaft motor, the front one attached to the gear head).

    My goal is to get the most precise output/horn without adding another gear up for the standard (single turn) potentiometer.

    Does this sound a good idea?
    Any suggestion which 20 turn-hall effect potentiometer I could try?
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,304
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    149,495Coins
    Ratings:
    +10,946 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  3. prophet.id

    prophet.id Member Gold Contributor

    Joined:
    Mar 11, 2024
    Messages:
    30
    Balance:
    60Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    3DOF
    I suppose you missed my notes. I use a gearhead, and I am not planning to attach the sensor to the gearhead but to the motor shaft. This means the motor shaft will turn multiplier turns, 12.5x per my note.
  4. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,304
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    149,495Coins
    Ratings:
    +10,946 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    I guess I have to ask why, as the gearhead is where the culmination of the motor/lever position actually is, including any play, of which there will be some?

    Off a motor will work, but in my view adds unnecessary complexity unless there is a good reason for it.
  5. prophet.id

    prophet.id Member Gold Contributor

    Joined:
    Mar 11, 2024
    Messages:
    30
    Balance:
    60Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    3DOF
    It is just like a typical servo motor system to get the most precision as they have a rotary encoder on the motor shaft, not the gearhead output shaft.
  6. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,304
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    149,495Coins
    Ratings:
    +10,946 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  7. prophet.id

    prophet.id Member Gold Contributor

    Joined:
    Mar 11, 2024
    Messages:
    30
    Balance:
    60Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    3DOF
    I suppose, in terms of simplicity, attaching the 'potentiometer' to the gearhead's shaft (typically built) and to the motor's shaft should be the same.
  8. Attyla.pl

    Attyla.pl Active Member

    Joined:
    Oct 1, 2023
    Messages:
    246
    Location:
    Polska
    Balance:
    1,106Coins
    Ratings:
    +70 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Question #1: can you write your own arduino code that will handle the multi-turn potentiometer ?
    If not then you can't use such a solution because SMC3 only supports single-turn potentiometers/hall sensors up to 270 deg. of measurement.

    Question No. 2: why are you concerned about the accuracy of the measurement , the backlash of the gearbox in any rotary slinky is much larger than the possible measurement error of the sensor attached to the axis of the gearbox.
  9. prophet.id

    prophet.id Member Gold Contributor

    Joined:
    Mar 11, 2024
    Messages:
    30
    Balance:
    60Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    3DOF
    #1 no need to rewrote the code. I just need a multi-turn "potentiometer" directly to the (rear) shaft of the motor.
    #2 I use a harmonic drive gearhead, which has a super small backlash. The issue I have now, the return position from multiple movements (either on Clockwise and Counter-Clockwise) was not precise enough. Perhaps off about 5 degree angles, when I have the "potentiometer" attached directly to the gearhead shaft (the horn). Tried on a regular 10K pot and 5V hall effect 360'.
  10. Attyla.pl

    Attyla.pl Active Member

    Joined:
    Oct 1, 2023
    Messages:
    246
    Location:
    Polska
    Balance:
    1,106Coins
    Ratings:
    +70 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Ok, I have read the information about multi-turn potentiometers actually should work with standard arduino code.
    What are you building ? , so far no one was looking for that much precision measurement when building a motion sim.
  11. prophet.id

    prophet.id Member Gold Contributor

    Joined:
    Mar 11, 2024
    Messages:
    30
    Balance:
    60Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    3DOF
    I am building 6dof Steward with rotational actuators.

    "so far no one was looking for that much precision measurement when building a motion sim."
    Well, I guess you just found one is looking :D
  12. Attyla.pl

    Attyla.pl Active Member

    Joined:
    Oct 1, 2023
    Messages:
    246
    Location:
    Polska
    Balance:
    1,106Coins
    Ratings:
    +70 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Ok, you made me curious :) what power of motors are you planning ?, how much such a motor with gearbox costs if it's not a secret ?
    Platform more for driving or flying ?
    In principle, a multi-turn potentiometer should work, provided you choose so that the movement of the lever is adequately reproduced by the number of turns of the potentiometer.
    Have you done tests with a Hall sensor ? such a
    https://www.ebay.co.uk/itm/P3022-V1...1YX&toolid=10001&customid=&ufes_redirect=true
    if so, what was the measurement error ?
  13. prophet.id

    prophet.id Member Gold Contributor

    Joined:
    Mar 11, 2024
    Messages:
    30
    Balance:
    60Coins
    Ratings:
    +4 / 0 / -0
    My Motion Simulator:
    3DOF

    Yeah... I tested that green boy as well. I also try the black housing from digikey (that usually higher quality source).

    I am currently planning to race, for now :D

    The harmonic gearbox is about $300-ish, landing in Boston (US).
    I use this DC motor, good enough efficiency https://amzn.to/3CJKuEX

    I documenting (photos and videos) here: https://www.instagram.com/stories/highlights/17943343157808731/
  14. Attyla.pl

    Attyla.pl Active Member

    Joined:
    Oct 1, 2023
    Messages:
    246
    Location:
    Polska
    Balance:
    1,106Coins
    Ratings:
    +70 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Last edited: Feb 8, 2025 at 13:29