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

Hall Sensors - Alternate mount - On the flange

Discussion in 'DIY Motion Simulator Projects' started by shannonb1, Feb 21, 2017.

  1. shannonb1

    shannonb1 Well-Known Member

    Joined:
    Mar 12, 2008
    Messages:
    1,107
    Occupation:
    Sales Intelligence
    Location:
    Virginia
    Balance:
    8,909Coins
    Ratings:
    +598 / 5 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino, JRK, 4DOF
    You need to look at my sketch. Each dirextion is locked on a pot. Alternate angles are not even an issue.
  2. Tim McGuire

    Tim McGuire "Forever a work in progress"

    Joined:
    Jul 26, 2015
    Messages:
    261
    Occupation:
    Electrical/Electronics Engineer
    Location:
    Canada
    Balance:
    2,185Coins
    Ratings:
    +314 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor
    We both understand that. One sensor measured z-axis (pitch) rotation, and the other measures x-axis (roll) rotation. The problem you're going to run into is that each of the angles that have been locked to the pot to is not dependant on one motor only.
    Each motor has the ability to affect both the x-axis rotation, as well as the y-axis rotation, but since each sensor only measures one of those, each motor will only be getting feedback from one axis of rotation. Unless you lock each motor to one axis as well, your feedback signals will not yield the correct positional output.
  3. shannonb1

    shannonb1 Well-Known Member

    Joined:
    Mar 12, 2008
    Messages:
    1,107
    Occupation:
    Sales Intelligence
    Location:
    Virginia
    Balance:
    8,909Coins
    Ratings:
    +598 / 5 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino, JRK, 4DOF
    I understand what you mean now. You are correct. I still believe this could be handled in the software. I have seen similar setups when there is a center pivot and a motor mounted on the side and the back vs. 2 on the rear.
    • Agree Agree x 1
  4. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,934Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    there is some error in the sketch that makes all these arguments and you requested not to judge you ...
    you just mounted the fixed base where the pot body should be fastened to the same rotating part where the pot axis should pick the motion .

    And generally , IMHO if a motor will affect the other motor's position " where a leakage of motion [ stress ] to the other pot can not occur " ... the other motor should hold its place unless commanded to move ... it is a closed loop PID for each motor Gentlemen :cool: ...
  5. shannonb1

    shannonb1 Well-Known Member

    Joined:
    Mar 12, 2008
    Messages:
    1,107
    Occupation:
    Sales Intelligence
    Location:
    Virginia
    Balance:
    8,909Coins
    Ratings:
    +598 / 5 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino, JRK, 4DOF
    I meant on the skill of the sketch. I really just dont like the added sensor on the side of the motor. I want a cleaner way to mount them over an l bracket.
    • Like Like x 1
  6. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,934Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    May be like this ... the pot axis is fixed to the other U-joint half .
    Universal Joint[1].jpg
    • Like Like x 1
    Last edited: Feb 28, 2017
  7. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,934Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    Oh my :grin:grin ...
    the other pot will be broken :confused: .
    Universal Joint[1].jpg


    Thinking mode ON :popcorn
    • Like Like x 1
    Last edited: Mar 1, 2017
  8. RandomCoder

    RandomCoder Active Member Gold Contributor

    Joined:
    Feb 19, 2017
    Messages:
    185
    Occupation:
    Control Engineer
    Location:
    UK
    Balance:
    1,674Coins
    Ratings:
    +142 / 0 / -0
    There was me thinking that you knew something I didn't? Had me scratching my head and ultimately thought I must be misunderstanding. ;)
    • Funny Funny x 1
  9. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,934Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    Gotcha ... :grin:grin:grin:grin
  10. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,934Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    I've tried it the other way and it still going to break too ...

    Universal Joint[1].jpg

    Universal Joint[1].jpg
    Last edited: Mar 3, 2017
  11. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,934Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
    OK :thumbs this is working good ... and the only way it is going to work is like the original concept description of @shannonb1 by drilling a hole into the center yellow cross for the pot axis ...

    1.jpg 2.jpg 3.jpg 1.jpg 1.jpg

    Attached Files:

    • Like Like x 1
    Last edited: Mar 3, 2017
  12. Tim McGuire

    Tim McGuire "Forever a work in progress"

    Joined:
    Jul 26, 2015
    Messages:
    261
    Occupation:
    Electrical/Electronics Engineer
    Location:
    Canada
    Balance:
    2,185Coins
    Ratings:
    +314 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor
    It could 100% be handled in software, you're absolutely right. In this case you'd need to take your current pitch/roll angles on each axis, and translate them into known motor positions (each combination of pitch/roll angles corresponds to one combination of motor positions, so you can do some geometry and find an algorithm to tell you which corresponds to which).
    You're 100% right, this could absolutely be done in software provided you have something with DAC capability.
    The problem isn't so much the fact that the movement from one motor would affect the position of the other one, it's more the fact that the feedback signals from the pots are now some linear combination of the two motor positions, instead of just one. To get the loop to run properly, you'd need to take the X and Z rotational position signals from each pot, run an algorithm on them to extract the left/right motor positions from the combination of the two rotation signals, and then calculate the desired position output set points for each motor based on current pitch/roll position, as well as desired pitch/roll position. Finally from there you'd take these new desired setpoint signals and use the DAC on your arduino/microcontroller (I don't know if a JRK has DAC capability) to send these signals to the feedback ports on the JRK. I can post a diagram later on if you want :). This is how I'd do it anyways, there might be a way to do it entirely in software but I'm not sure.
    • Agree Agree x 2
  13. Mmcool

    Mmcool Member

    Joined:
    Jun 26, 2015
    Messages:
    67
    Location:
    USA
    Balance:
    1,174Coins
    Ratings:
    +19 / 7 / -0
    My Motion Simulator:
    2DOF
    You might as well use a analog output accelerometer (X-Y). Then no problem with mechanical restrains.
  14. shannonb1

    shannonb1 Well-Known Member

    Joined:
    Mar 12, 2008
    Messages:
    1,107
    Occupation:
    Sales Intelligence
    Location:
    Virginia
    Balance:
    8,909Coins
    Ratings:
    +598 / 5 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino, JRK, 4DOF
    No need for diagram, what you say makes sense, I get it.
  15. shannonb1

    shannonb1 Well-Known Member

    Joined:
    Mar 12, 2008
    Messages:
    1,107
    Occupation:
    Sales Intelligence
    Location:
    Virginia
    Balance:
    8,909Coins
    Ratings:
    +598 / 5 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino, JRK, 4DOF
    I like you, youre smart.
    • Friendly Friendly x 5
  16. Tim McGuire

    Tim McGuire "Forever a work in progress"

    Joined:
    Jul 26, 2015
    Messages:
    261
    Occupation:
    Electrical/Electronics Engineer
    Location:
    Canada
    Balance:
    2,185Coins
    Ratings:
    +314 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor
    Aww shucks haha, you're too kind. This is kind of stuff is actually what I'm currently studying in school right now, so I'm more than happy to contribute anything I can to helping the forum/it's members :)
    • Like Like x 4
    • Friendly Friendly x 1
  17. speedy

    speedy Well-Known Member

    Joined:
    Feb 1, 2012
    Messages:
    1,193
    Location:
    Alexandria , Egypt
    Balance:
    7,934Coins
    Ratings:
    +1,287 / 10 / -0
    My Motion Simulator:
    3DOF, AC motor, Arduino, Motion platform
  18. RandomCoder

    RandomCoder Active Member Gold Contributor

    Joined:
    Feb 19, 2017
    Messages:
    185
    Occupation:
    Control Engineer
    Location:
    UK
    Balance:
    1,674Coins
    Ratings:
    +142 / 0 / -0
    Proof it can work, just seen this posting.... Has anyone made Jack Screw a Motion Simulator?
    At 2:00 minutes into the video you can see that he's using two linear transducers for motion feedback on the U-joint. It also looks like there's a couple of small limit switches that I guess are to protect against over travel? It's a slightly larger U-joint than I guess you had in mind but at least proves the concept!
  19. shannonb1

    shannonb1 Well-Known Member

    Joined:
    Mar 12, 2008
    Messages:
    1,107
    Occupation:
    Sales Intelligence
    Location:
    Virginia
    Balance:
    8,909Coins
    Ratings:
    +598 / 5 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino, JRK, 4DOF
    switch the side of the flange its connected to
    • Agree Agree x 1