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

SMC3 Hall Sensor issue

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by Dr4g0r, Jun 29, 2022.

  1. Dr4g0r

    Dr4g0r New Member

    Joined:
    Jun 19, 2022
    Messages:
    3
    Balance:
    483Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Hi, i have a problem with the hall sensor in the SMC3 (MODE2) program. I bought hall sensors on the LM393 PCB with analog and digital outputs because I have to limit the angle of the motor due to its design, I decided to buy them because they are relatively cheap compared to hall pots. Everything works fine on ordinary pots, after connecting the hall sensor, the engine does not respond and gets strange readings in the SMC3 program. Need to change something in the code? Or should I use a different sensor?

    123.png

    Attached Files:

  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,460
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,596Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Can I check the hall sensor is centered at rest and confirm what number of degrees is its range?
  3. Dr4g0r

    Dr4g0r New Member

    Joined:
    Jun 19, 2022
    Messages:
    3
    Balance:
    483Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    Sorry for long reply but during this time I bought the proper hall sensors and did something like an inverted potentiometer. everything works quite fine, after the initial configuration i get a graph like below, is it okay? The only thing that bothers me is a slight squeaking from the motor, so far only one is plugged in. The swing range is about 40 degrees (20 up and 20 down) or a little less
    Zrzut ekranu 2022-07-07 225256.png
    • Like Like x 1
  4. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,886
    Location:
    London
    Balance:
    11,543Coins
    Ratings:
    +453 / 9 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, 6DOF

    Looks good - is it the gearbox making the squeak ? Try some wd40 or grease
    • Agree Agree x 1
  5. Rodeo5150

    Rodeo5150 ROOKIE BUT LEARNING FAST Gold Contributor

    Joined:
    Mar 21, 2019
    Messages:
    210
    Location:
    Antioch, CA, United States
    Balance:
    1,233Coins
    Ratings:
    +51 / 0 / -0
    My Motion Simulator:
    Arduino, 6DOF
    Try lowering the KD and Ki to get rid of that squeak that engine noise motor noise or change the Fpwm to a different frequency
  6. Dr4g0r

    Dr4g0r New Member

    Joined:
    Jun 19, 2022
    Messages:
    3
    Balance:
    483Coins
    Ratings:
    +1 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino
    I connected both motors and connected them to the platform but I have a problem with the direction of movement. When both motors should go up, the movement is diagonal <left side go up and right side go down and vice versa> I tried to reverse the polarity of the motor and reverse the poles of the magnets but it did not help.
    Should i change something in the code?
  7. Rodeo5150

    Rodeo5150 ROOKIE BUT LEARNING FAST Gold Contributor

    Joined:
    Mar 21, 2019
    Messages:
    210
    Location:
    Antioch, CA, United States
    Balance:
    1,233Coins
    Ratings:
    +51 / 0 / -0
    My Motion Simulator:
    Arduino, 6DOF
    Okay so in Sim tools you invert the motor direction. there's a little box next to each axis and if you want one motor to go a different direction you just check that check the box next to that motor that axis and that axis/motor will go in a different direction go a different direction
    That's weird because switching the polarity should have switched the direction of the motor that's weird
    Are you sure your Motors are bidirectional
    Last edited: Jul 29, 2022