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

Help with MMOS and encoder

Discussion in 'DIY peripherals' started by RoryB, Aug 2, 2020 at 11:40.

  1. RoryB

    RoryB New Member

    Joined:
    Sunday
    Messages:
    3
    Balance:
    41Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    Arduino
    Hello Everyone,

    I got the idea from this post with files from this post

    I have purchased a STM32F407VG and have managed to load the hex file to the board (image hyperlinked here)
    [​IMG]
    The only difference I can see between the board in the image and mine is that in the top right it says MB997D instead of MB997C in the image

    I dont know if i need to put the board into a application mode by moving pins or something, but it is connecting to mmos

    I have connected a 600 pulse per revolution (this one) to PA0 and PA1 and am running it with 5 volts.
    [​IMG] (image link)
    [​IMG] (image Link)

    You can't see the encoder as it is screwed into my wheel base.

    I have verified that the encoder works using a arduino pro micro (leonardo) but it wont work on the STM32 with the MMOS code.

    I haven't got any force feedback hardware setup currently as i wanted to verify that the encoder works. but it doesn't.

    Does anyone have any suggestions as to what could be the issue and/or any solutions.
  2. Ads Master

    Ads Master

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

    Nikiss999 New Member

    Joined:
    Jun 27, 2020
    Messages:
    6
    Balance:
    72Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    DC motor, AC motor
    Do you have an encoder that needs pullup resistors?
    You can check that if you connect a multimeter between ground and cable (disconect it from disco beforehand).
    If the voltage is ~2 to 3 V when turning the encoder then you've got one that should work with the mmos, if you've got like 0.1 V then you need pullup resistors.
    • Like Like x 1
  4. Chris_Beeves

    Chris_Beeves Member

    Joined:
    May 31, 2019
    Messages:
    54
    Balance:
    447Coins
    Ratings:
    +20 / 1 / -0
    Also, the STM’s input level is 3.3V right? Don’t know if pa0&1 are 5V tolerant.
  5. RoryB

    RoryB New Member

    Joined:
    Sunday
    Messages:
    3
    Balance:
    41Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    Arduino
    I fixed it with 330 ohm resistors. Thank you so much!!!
  6. RoryB

    RoryB New Member

    Joined:
    Sunday
    Messages:
    3
    Balance:
    41Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    Arduino
    I used 3v for the pullup instead of the 5v for the other bits of the encoder to not blow the pins on the board
  7. Nikiss999

    Nikiss999 New Member

    Joined:
    Jun 27, 2020
    Messages:
    6
    Balance:
    72Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    DC motor, AC motor
    Nice!

    Encoder pins are 5V tolerant but since you already made it work it doesn't matter anymore :)