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

Question Smc3 Digital Inputs

Discussion in 'DIY Motion Simulator Building Q&A / FAQ' started by Qlittles, Jan 25, 2020.

  1. Qlittles

    Qlittles Active Member

    Joined:
    Sep 27, 2017
    Messages:
    119
    Location:
    Union City, California, USA
    Balance:
    226Coins
    Ratings:
    +65 / 4 / -0
    My Motion Simulator:
    2DOF, Arduino
    Hello everyone, I'm in the process of upgrading from wiper motors to worm gear motors. The seller i'm buying from had already installed hall effect sensors on the motors, but his chip only outputs a digital signal for the absolute position (no analog).

    My understanding is that the arduino converts the analog voltage from the pots into a digital one for use with SMC3 code. Is it possible to modify the code so that the arduino reads the digital signal from the hall effect sensor rather than from the analog?

    The motor uses an AS5040:
    https://ams.com/as5040

    It has an SSI interface for the absolute and the following as well:
    Output Digital angle (interface) / ABI / UVW / PWM
    Last edited: Jan 26, 2020
  2. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,574Coins
    Ratings:
    +1,831 / 32 / -1
    I read that you need an interface to use ssi with an arduino. But the specs say it also outputs pwm. When an inexpensive low pass filter you can convert it into an analog signal. This usually smooths the signal out somewhat though.
    • Informative Informative x 1
  3. Qlittles

    Qlittles Active Member

    Joined:
    Sep 27, 2017
    Messages:
    119
    Location:
    Union City, California, USA
    Balance:
    226Coins
    Ratings:
    +65 / 4 / -0
    My Motion Simulator:
    2DOF, Arduino
    Ah, so it sounds like it IS possible. I'll research n see what that ssi interface is. For the pmw, I'm guessing that smoothing out the signal is not optimal because of the loss of detail?