1. 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!
  2. 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
  3. 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. Ads Master

    Ads Master

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    18,282
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    131,037Coins
    Ratings:
    +10,145 / 47 / -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?
  4. 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
  5. Gadget999

    Gadget999 Well-Known Member

    Joined:
    Dec 27, 2015
    Messages:
    1,637
    Location:
    London
    Balance:
    10,430Coins
    Ratings:
    +400 / 8 / -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
  6. 2nasty4u

    2nasty4u ROOKIE BUT LEARNING FAST Gold Contributor

    Joined:
    Mar 21, 2019
    Messages:
    130
    Location:
    Antioch, CA, United States
    Balance:
    951Coins
    Ratings:
    +31 / 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
  7. 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?
  8. 2nasty4u

    2nasty4u ROOKIE BUT LEARNING FAST Gold Contributor

    Joined:
    Mar 21, 2019
    Messages:
    130
    Location:
    Antioch, CA, United States
    Balance:
    951Coins
    Ratings:
    +31 / 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