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

potentiometer noise

Discussion in 'Electronic and hardware generally' started by Smollett, Apr 4, 2020.

  1. Smollett

    Smollett New Member

    Joined:
    Mar 27, 2020
    Messages:
    22
    Location:
    Russia
    Balance:
    86Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Hello to all creators. I made my 2dof from Adruino Uno and Motor Shield, with two motors. I use SMC3 firmware . Everything works well, but I feel wild pain from cracking engines due to electrical noise in potentiometers. They make a terrible noise. In the SMS3 software, the yellow bar is like a cardiogram of the heart. It feels like you are sitting on an electric chair that has a short circuit and it pops on the whole house.
    I am sure that the problem is not only mine. Who knows the solution?
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,461
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,596Coins
    Ratings:
    +10,741 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    Good cable management and clip on ferrite core magnets on all key leads should help.

    Personally I prefer Hall sensors to tradition cheap pots.
  3. BrazilianGuy

    BrazilianGuy eternal apprentice

    Joined:
    May 19, 2018
    Messages:
    27
    Location:
    Germany
    Balance:
    36Coins
    Ratings:
    +30 / 0 / -0
    I am not sure about your setup, but placing a capacitor very close to the analog inputs of the arduino should also help to filter the high frequency noise. I am guessing your are using 10k pots, so it you would need something in the range of 10 to 100nF capacitance.
    You just cannot put too much, otherwise you risk slowing down your signal.
  4. Smollett

    Smollett New Member

    Joined:
    Mar 27, 2020
    Messages:
    22
    Location:
    Russia
    Balance:
    86Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    In the previous firmware, which is simpler, I connected a third-party library 'ResponsiveAnalogRead'. This completely solved the problem. The output signals were smoothed and remained flat. I tried to use this in SMC 3, but my programming knowledge is not enough. I managed to get smoothed signals in Serial Monitor. But apparently due to this smoothing, there was no feedback, the yellow bar was at zero. Maybe there is someone here who can do this.
    I tried to install 0.1 mF capacitors on potentiometers. No result.
    I will try
  5. BrazilianGuy

    BrazilianGuy eternal apprentice

    Joined:
    May 19, 2018
    Messages:
    27
    Location:
    Germany
    Balance:
    36Coins
    Ratings:
    +30 / 0 / -0
    If this is some noise picked up on the wire or something similar, putting the cap on the potenciometers does not help much. It needs to be as close as possible to the pin from the ardruino.
  6. Smollett

    Smollett New Member

    Joined:
    Mar 27, 2020
    Messages:
    22
    Location:
    Russia
    Balance:
    86Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    I will check it right now.) Thanks
  7. TFOU57

    TFOU57 Member

    Joined:
    Mar 30, 2009
    Messages:
    164
    Location:
    Thionville - France
    Balance:
    5,723Coins
    Ratings:
    +16 / 1 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino
    Hello,
    If your ADC is fast, another solution may be to use an average of 4 or 5 position feeback readings.
    I think this will attenuate the sound of the position feekback serve account for the position fix of your simulator

    Texte original en Français
    Si votre ADC est rapide , une autre solution peut être d'utiliser une moyenne sur 4 ou 5 lectures du feeback de position .
    Je pense que cela attenuera le bruit du feekback de position servent compte au correctif de position de votre simulateur
  8. Smollett

    Smollett New Member

    Joined:
    Mar 27, 2020
    Messages:
    22
    Location:
    Russia
    Balance:
    86Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    Hello. can be more. how to do it?

    capacitor does not help. temporarily use the increase in the deadzone in SMC 3. But we must look for a solution.
  9. SeatTime

    SeatTime Well-Known Member

    Joined:
    Dec 27, 2013
    Messages:
    2,574
    Occupation:
    Retired
    Location:
    Brisbane Australia
    Balance:
    28,370Coins
    Ratings:
    +2,844 / 38 / -0
    My Motion Simulator:
    AC motor, Motion platform
    Your not giving us much ... but, Shielded cable from the Ard to the Pots?
    • Agree Agree x 1
  10. Smollett

    Smollett New Member

    Joined:
    Mar 27, 2020
    Messages:
    22
    Location:
    Russia
    Balance:
    86Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    no. conventional electric 2x1.5. thought to put a shielded.
  11. TFOU57

    TFOU57 Member

    Joined:
    Mar 30, 2009
    Messages:
    164
    Location:
    Thionville - France
    Balance:
    5,723Coins
    Ratings:
    +16 / 1 / -0
    My Motion Simulator:
    2DOF, AC motor, Arduino
    here's a snippet of code I had on the hard drive (Author ? )

    ReadAnalog <=> Of readings before averaging

    Code:
    void FeedbackPotWorker()
    {
      currentanalogue1 = 0;
      currentanalogue2 = 0;
      currentanalogue3 = 0;
      currentanalogue4 = 0;
      currentanalogue5 = 0;
      currentanalogue6 = 0;     
     
      for(int z=0;z<ReadAnalog;z++)
      {
          currentanalogue1 += analogRead(FeedbackPin1);
          currentanalogue2 += analogRead(FeedbackPin2);
          currentanalogue3 += analogRead(FeedbackPin3);
          currentanalogue4 += analogRead(FeedbackPin4);
          currentanalogue5 += analogRead(FeedbackPin5);
          currentanalogue6 += analogRead(FeedbackPin6);
      }
     
      currentanalogue1 /= ReadAnalog;
      currentanalogue2 /= ReadAnalog;
      currentanalogue3 /= ReadAnalog;
      currentanalogue4 /= ReadAnalog;
      currentanalogue5 /= ReadAnalog;
      currentanalogue6 /= ReadAnalog;
    
    }
    Last edited: Apr 4, 2020
  12. Smollett

    Smollett New Member

    Joined:
    Mar 27, 2020
    Messages:
    22
    Location:
    Russia
    Balance:
    86Coins
    Ratings:
    +2 / 0 / -0
    My Motion Simulator:
    2DOF, Arduino
    thanks. I understood the idea.