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 360° hall effect potentiometer and SMC3

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by michel123, Nov 26, 2024 at 17:28.

  1. michel123

    michel123 Member

    Joined:
    Jan 12, 2024
    Messages:
    62
    Occupation:
    cadre sncf
    Location:
    lezignan-corbieres
    Balance:
    132Coins
    Ratings:
    +23 / 0 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino, Motion platform
    I searched everywhere in the forum, but I must not be smart, I can't find the answer to the following question:

    I have hall effect potentiometers at 360, but under SMC3 when my potentiometer reaches its highest level it switches to low (I understand that it is in fact a voltage tap +- 5 volt or 2 ,5...), I would like to make SMC3 understand that I have a 360° potentiometer and not 180!

    Is there a parameter in the arduino code (pot scaling????) that allows me to manage this problem.

    The chair itself works well, but when I stop the power my chair gets up and puts my potentiometers at the maximum height travel, I therefore exceed the limit value in SMC3, and if I restart the power, suddenly my motor goes in the opposite direction to what it should operate.

    I therefore always have to help my wheelchair when starting to lower it while it starts, and I would therefore like to avoid this by having potentiometers that operate at 360°...
  2. Aerosmith

    Aerosmith Active Member

    Joined:
    May 30, 2024
    Messages:
    247
    Occupation:
    self employed
    Location:
    Germany
    Balance:
    1,446Coins
    Ratings:
    +131 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor
    I think this is just an offset problem. The 360° sensor has no stop so it rolls over to 0° if it goes above 360°.

    Make sure the center position is correct. Move your arm to the neutral position (with the motor power off). Loosen the set screw of the coupling (or take the belt off) and turn the potentiometer until the output is 2.5V. Then tighten the set screw (or put the belt back on).
    • Agree Agree x 2
  3. michel123

    michel123 Member

    Joined:
    Jan 12, 2024
    Messages:
    62
    Occupation:
    cadre sncf
    Location:
    lezignan-corbieres
    Balance:
    132Coins
    Ratings:
    +23 / 0 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino, Motion platform
    I've already done that, and the chair normally works very well.

    The problem is that if I make my lever arm do a 360 degree, under SMC3, the rocker of the potentiometer line jumps, as soon as it reaches the top (roughly 90 degrees at the top), it jumps down to start again.

    Under SMC3 basically I have a coding which corresponds to a 180° not a 360, it is not sinusoidal when it reaches the stop at the top, it leaves from the bottom!?......

    If I stay in the range without going to the high or low end, my potentiometer works very well, and the signal is indeed sinusoidal.

    So I suspect a modification has been made to the SMC3 code, for example I have not validated the linear or non-linear pot option... but I tested and it seems to be the same....
  4. michel123

    michel123 Member

    Joined:
    Jan 12, 2024
    Messages:
    62
    Occupation:
    cadre sncf
    Location:
    lezignan-corbieres
    Balance:
    132Coins
    Ratings:
    +23 / 0 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino, Motion platform
    I think I understood why I can't have the entire range of my potentiometers under SMC3...

    My hal effect potentiometers are 360° with a range of 12 bits... SMC3 manages 10 bits.

    And secondly SMC3 was designed not to exceed a certain limit (therefore designed to only manage 180° max!).

    Apart from re-writing an SMC3, I would need to find another software that manages the 360 rotation of a motor and its control... if anyone knows of software that manages this?
  5. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,093
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,240Coins
    Ratings:
    +10,892 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    May I ask for a picture of the rig in which this is to be used.

    My reason is that you mention a lever being employed.

    While a Hall sensor may be 360 degrees, I can't think of a physical application with a lever that makes sense, in terms of actual effective torque utilisation, where that would seem useful to exceed around 80 degrees total of the lever motion. What I mean is τ = r F sin(θ): https://www.omnicalculator.com/physics/torque

    In other words, some clarity as to the actual use case would be helpful.
  6. michel123

    michel123 Member

    Joined:
    Jan 12, 2024
    Messages:
    62
    Occupation:
    cadre sncf
    Location:
    lezignan-corbieres
    Balance:
    132Coins
    Ratings:
    +23 / 0 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino, Motion platform
    [​IMG]
    <a href="https://zupimages.net/viewer.php?id=24/48/wnke.jpg"><img src="https://zupimages.net/up/24/48/wnke.jpg" alt="" /></a>

    <a href="https://zupimages.net/viewer.php?id=24/48/wnke.jpg"><img src="https://zupimages.net/up/24/48/wnke.jpg" alt="" /></a>
    [​IMG]

    When the chair is stationary (angle of more than 180°...)

    and when he works, normal angle...

    As soon as I start, as it can't find the right data from the potentiometers it tilts the arm to the left when it should go to the right... that's mainly my problem, I have to lower it with the arm on the right side before starting the arduino card........

    My original construction allows 360° rotation without breaking anything, I always think about the bug that could happen, hence the possibility for my chair to have motors that run in circles without problems (apart from the torque !!!)
  7. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,093
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,240Coins
    Ratings:
    +10,892 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Can you please post a picture of your SMC3 settings.

    And when your motors are not powered can they be rotated?
  8. 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
    Below are pictures of a properly set motor arm, in addition, in your case you have more teeth in the pinion on the motor than on the potentiometer which has already been described on the forum that sometimes causes errors , you need to limit the swing of the motor arm max to +45 degrees / -45 degrees from the initial position ( motor arm horizontal to the base ). I printed myself the 86 tooth gears for the motor shaft and the hall sensor shaft so I have a ratio of 1:1. I can provide you with .stl files to print.

    Initial position
    home position.png

    Max UP
    max up  position.png

    Max DOWN
    max down  position.png

    IMG20241127171758_BURST000_COVER.jpg
    • Like Like x 1
  9. michel123

    michel123 Member

    Joined:
    Jan 12, 2024
    Messages:
    62
    Occupation:
    cadre sncf
    Location:
    lezignan-corbieres
    Balance:
    132Coins
    Ratings:
    +23 / 0 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino, Motion platform
    Ok I just understood about the number of teeth!!

    I suspected something like that..... but I honestly thought that SMC could receive the 360° of the potentiometer....

    I'm interested in STL files and thank you for taking the time to show me and explain.
  10. michel123

    michel123 Member

    Joined:
    Jan 12, 2024
    Messages:
    62
    Occupation:
    cadre sncf
    Location:
    lezignan-corbieres
    Balance:
    132Coins
    Ratings:
    +23 / 0 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino, Motion platform
    Attila.pl as found the solution at my problem. And yes my motor can be rotated.
  11. 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
    The gears fit quite tightly, they may require some gentle filing to push them onto the axle properly

    Attached Files:

    • Friendly Friendly x 1
  12. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,093
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,240Coins
    Ratings:
    +10,892 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    • Like Like x 1
  13. Aerosmith

    Aerosmith Active Member

    Joined:
    May 30, 2024
    Messages:
    247
    Occupation:
    self employed
    Location:
    Germany
    Balance:
    1,446Coins
    Ratings:
    +131 / 0 / -0
    My Motion Simulator:
    3DOF, AC motor
    I can't see all the pictures but from the one in post #5 my guess is that the gear ratio from the motor aoutput shaft to the hall sensor/potentiometer is more than 2:1. So when your actuator arm rotates 180° the sensor rotates >360° which causes the roll over in the false direction.

    As @Attyla.pl already said, you need to limit your range to less than 180°.
    • Like Like x 1