I am designing a PCB for a hexapod robot with 19 servos(3 for each leg, 1 for a ultrasonic sensor positioning), controlled by an Arduino Mega and it kind has some jitter to it, and I wish to use some capacitors in it so it can have less external noise. I was wondering if there is a quick answer for the following question. Where should I put the capacitor with which value? I've seen EEVBlog recent video about bypass capacitors but I'm not really sure how to get ESR and ESL values so I can calculate the resonance frequency and all that stuff, and I think there is probably a rule of thumb for that, my guess, that I've made from previous research is, just put a 10nF ceramic capacitor between VCC and GND. My doubt is, for a servo, is it better to put the capacitor to VCC or SIGNAL? Also, is 10nF an appropriate value? Also, I'm using a 7.4V LiPo battery to supply, and I drop this voltage to 6V with some diodes, and have 10k pull up resistors in the signal pin (I know diodes are not the best way to regulate, but I'm from Brazil, and we don't actually have many parts available here, so It's kind hard to find regulators others than LM317 or 78XX that needs 2V drop, which we don't have in this case, and everything from the internet takes 1 mouth+ to arrive and have salty shipment fee).
So resuming my questions.
- Should I put capacitors between VCC and GND, or SIGNAL and GND?
- Should I use 10nF as a rule of thumb, or there is better method?
If someone can explain me the decision making process on this situation I would be really happy. I appreciate your time trying to helping me, sorry if I said anything wrong or misspelled anything, English isn't my first language, tell me if I've got anything wrong. Already, Have a good day! O0