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

Help with MMOS and encoder

Discussion in 'DIY peripherals' started by RoryB, Aug 2, 2020.

  1. RoryB

    RoryB New Member

    Joined:
    Aug 2, 2020
    Messages:
    3
    Balance:
    61Coins
    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. Nikiss999

    Nikiss999 Member

    Joined:
    Jun 27, 2020
    Messages:
    42
    Balance:
    418Coins
    Ratings:
    +13 / 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
  3. Chris_Beeves

    Chris_Beeves Active Member Gold Contributor

    Joined:
    May 31, 2019
    Messages:
    330
    Balance:
    1,897Coins
    Ratings:
    +230 / 2 / -0
    My Motion Simulator:
    DC motor, Arduino, Motion platform, 4DOF
    Also, the STM’s input level is 3.3V right? Don’t know if pa0&1 are 5V tolerant.
  4. RoryB

    RoryB New Member

    Joined:
    Aug 2, 2020
    Messages:
    3
    Balance:
    61Coins
    Ratings:
    +0 / 0 / -0
    My Motion Simulator:
    Arduino
    I fixed it with 330 ohm resistors. Thank you so much!!!
  5. RoryB

    RoryB New Member

    Joined:
    Aug 2, 2020
    Messages:
    3
    Balance:
    61Coins
    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
  6. Nikiss999

    Nikiss999 Member

    Joined:
    Jun 27, 2020
    Messages:
    42
    Balance:
    418Coins
    Ratings:
    +13 / 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 :)