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

ISSUE: noise coming from the VNH5019 on the M1/M2PWM line

Discussion in 'Motor actuators and drivers' started by Pit, Aug 25, 2015.

  1. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,451Coins
    Ratings:
    +3,093 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Hello

    EDIT, c/p the text from a posting on pololu forum

    Hello

    I am using a Dual VNH5019 motor driver shield with an Arduino UNO R3 where the Arduino is powered separately by the Notebook (jumper is off)

    The issue: I get some big noise on the pot feedback line ONLY coming from the M1/M2PWM lines (VNH5019) to the Arduino and ONLY if the PSUs (24V) are on.

    Second there is something which makes me stunning: the mouse pad of my notebook does not respond respectively there is a big lag on it, ONLY if the PWM line is shared to the Ard and the PSUs are powered on.

    To be clear: no 5V line is connected from the VNH to the Ard, ONLY the PWM line is shared.

    Electronic gurus, any help is much appreciated :)
    Last edited: Aug 25, 2015
  2. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,622Coins
    Ratings:
    +1,835 / 32 / -1
    The Ard and the VNH need to share a common ground also. Connect a wire between the Ard's gnd or its power supply's gnd and the VNH's gnd on the control side of the board, not the motor side gnd.
  3. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,451Coins
    Ratings:
    +3,093 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Sorry for the lack of information, I forgot to say connecting the GND from whatever side to the Ard does not change anything. Anyway thank you.
  4. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,451Coins
    Ratings:
    +3,093 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    :mad: - nothing of that all - the notebook is the source of the noise!! There have been never any issues, this is new and has nothing to do with the VNH, it is a coincidence that I meant that the VNHs have some issues. Shit...

    PS: it has something to do with the power saving mode of the notebook. Using the charger the noise is significantly lower but not eliminated. But now I know where to looking for.
    • Informative Informative x 1
    Last edited: Aug 25, 2015
  5. RufusDufus

    RufusDufus Well-Known Member

    Joined:
    Jul 21, 2013
    Messages:
    681
    Location:
    Adelaide Australia
    Balance:
    15,963Coins
    Ratings:
    +1,016 / 10 / -1
    Hi Pit, I know you have tracked the problem to the laptop PSU but can I ask what you have done with the VNH5019 M1EN/DIAG and M2EN/DIAG pins? Are they connected or not?

    The datasheet for the chip says they need to be connected to an external pullup. There is an external pullup on the pololu board schematic but if you don't have the 5V connected from the Arduino I don't see how it is actually pulled up to anything?

    Also I note your pots have long wires on them. Make sure in the final build they are twisted together. What value pots are you using? I would suggest using something around 5K with those long wires.
  6. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,451Coins
    Ratings:
    +3,093 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    Hi Rufusdufus they are not connected but all other needed pins are - should I connect them?
    The 5V line was off because of testing purposes only.
    10k - the table seems to be reactive when testing the smc3 motion output meanwhile the feedback line was lagging behind.
  7. BlazinH

    BlazinH Well-Known Member

    Joined:
    Oct 19, 2013
    Messages:
    2,145
    Location:
    Oklahoma City, USA
    Balance:
    16,622Coins
    Ratings:
    +1,835 / 32 / -1
    I don’t know if this the cause of your problem but according to Pololu the minimum connections require Vdd on the driver be connected to the Ard’s 5v for the pull up resistors and also the control source and the motor driver must share a common ground. https://www.pololu.com/product/1451
  8. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,451Coins
    Ratings:
    +3,093 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    There is some misunderstanding about my explanations...

    I connected the Ard and the VNH this way:
    0J3755.600.jpg

    Then I noticed when the PSUs have been powered on the noise on the feedback line.

    At least I localized the noise coming from the PWM lines only, that said even if only the PWM line is connected, the noise persists. This was my conclusion that the PWM is the source of the noise, but it was not due the notebook issue.

    Definitely it works now.
  9. SeatTime

    SeatTime Well-Known Member

    Joined:
    Dec 27, 2013
    Messages:
    2,573
    Occupation:
    Retired
    Location:
    Brisbane Australia
    Balance:
    28,370Coins
    Ratings:
    +2,844 / 39 / -0
    My Motion Simulator:
    AC motor, Motion platform
    Fi, I wired mine basically the same as a MM and it works perfectly. As explained in another thread used a capacitor on the feedback line to remove noise.
  10. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,451Coins
    Ratings:
    +3,093 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    I dimly remember it, on the pot you wired + and - together? Which capacitor did you use?
  11. SeatTime

    SeatTime Well-Known Member

    Joined:
    Dec 27, 2013
    Messages:
    2,573
    Occupation:
    Retired
    Location:
    Brisbane Australia
    Balance:
    28,370Coins
    Ratings:
    +2,844 / 39 / -0
    My Motion Simulator:
    AC motor, Motion platform
    Tantalum - positive on the feedback line, negative to feedback ground, size? It was from my junk box. I'm OS cannot check.
    • Informative Informative x 1
    • Useful Useful x 1
  12. Pit

    Pit - - - - - - - - - - - - - - - - Gold Contributor

    Joined:
    Oct 2, 2013
    Messages:
    3,012
    Location:
    Switzerland
    Balance:
    30,451Coins
    Ratings:
    +3,093 / 31 / -0
    My Motion Simulator:
    DC motor, Arduino, 6DOF
    no probs I can test various capacitors...thank you for the hint.