I have two arduinos, two buttons and one servo motor.
i want to control a servo motor with two arduino's when i pressed the buttons. i linked arduino pwm pins (first arduino pwm pin is 9, and second one is 3) to the servo motor signal input.
when i pressed button 1 servo motor moving a few, or pressed button 2. but the signal isn't clear, and servo motor doesn't move correctly that i assigned degree.
what can i do for the solution?
Connecting 2 outputs together is not good. If 1 output is LOW and the other HIGH there will be a short and 1 or both of the pins can be damaged. Connect the servo to 1 Uno. Then connect the 2 Unos together with software serial, SPI or I2C. Send commnads to the first Uno, over whichever communication medium, from he second Uno. Then the first Uno conrtols the servo based on commands from the second or from the program on the first.
Hi,
Why do you need to control the servo with two Arduinos?
What is the application?
What model Arduino are you using?
Thanks.. Tom... 