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

Which frequency for a wiper motor?

Discussion in 'SimTools compatible interfaces' started by pjanos, Nov 12, 2010.

  1. pjanos

    pjanos New Member

    Joined:
    Oct 4, 2010
    Messages:
    13
    Balance:
    0Coins
    Ratings:
    +1 / 0 / -0
    I'd like to know which frequency is the best for a wiper motor.
    In my setup I use a 22 MHz crystal, and the motor doesn't move as expected. When it is getting close to the requested position and the PWM is getting narrower, the motor stops moving, just whistling, and never reaches the requested position. For example the requested position is the middle point. The motor should move till the pot shows ~512. But my motor stops at ~440-450 and doesn't (or can't) move, although the AMC still sends to PWM to move it further (this is the same in the opposite direction).
    I think the source of the problem is the too high PWM frequency as motor can't follow it, but maybe not.
    Yes I know, I could try to reflash the AMC with different crystals :blush: , but at the moment I don't have more crystals at home, and I'd like to know what frequencies you use guys with a wiper motor.

    Thanks,
    Janos
  2. Deleted member 4120

    Deleted member 4120

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    hi,

    i think 22Mhz is very good :) (24Mhz munch error)

    i use 22Mhz to.. :)

    have you pictures from your frame (wiper motion)??
  3. tronicgr

    tronicgr

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
    The frequency have nothing to do with that.... Its the PID that needs calibration!

    Change the KP to higher value until it positions itself correctly... Try increase it to 10 or 15. Some said that in some cases they needed to put up to KP 25!!!
  4. Frakk

    Frakk Active Member

    Joined:
    Apr 15, 2009
    Messages:
    1,144
    Balance:
    328Coins
    Ratings:
    +4 / 0 / -0
    That is exactly what should happen with a proportional control. :)

    You will always have a small error with P only, but it will get very small and you won't notice it.

    Increase kP as Thanos said to speed up the motor.
  5. pjanos

    pjanos New Member

    Joined:
    Oct 4, 2010
    Messages:
    13
    Balance:
    0Coins
    Ratings:
    +1 / 0 / -0
    Thank you Thanos and Frakk,
    I thought that the frequency is too fast to follow, but I changed KP to 10 and now it works as it should, it stops the motor around 512 +- a few, if the required is 512.
    I have been reading these forum pages for weeks, but it seems, that it wasn't enough to know all the know-how.

    Thanks again,
    Janos