Got a bit of a problem. I am trying to control two servos with a simple joystick and I am running into issues. I am trying to control 2 MG995 Servos using my Arduino Mega 2560. The joystick is a simple thumbstick with 5 pins (+5V, GND,X,Y,SWTCH).
When I wired the servos and joystick up, I didn’t see much of anything,just buzzing. Then when I added a 100µF capacitor across a switch for one of the servos, it partially worked and then other servo worked completely. I know my code works great because if i hook up 2 HS-50 servos, I don’t run into issues, I have complete control. Check out the pic of my fritz schematic to see how I have it wired.
Ultimately, I’m thinking it is a combination of issues, both power & noise. I am running everything from the board’s power supply (which I know is a no-no) but I couldn’t get a response when I used a 9v battery with a voltage divider as an external 4.5V power supply. For my voltage divider, i tried with 10k ohms for both my resistors and got no response.
I also tried adding in a low pass filter, R=220 ohms w/ C=100µF for an fc of about 7ish Hz, no success. In reference to the schematic, I also tried increasing the capacitance to 200µF and 50µF, but neither were successful, only 100µF really showed promise. I really think manipulating the capacitance might be key though.
I did hook up the circuit that is shown to a scope and i recorded the output. This image is also attached. Any help or guidance would be really appreciated!!
If I can give you more information in order to properly respond to this post, please let me know!!