so i am doing this project from the arduino starter kit called mood cue but when i turn on the motor keeps twitching even without programming it
pS: idk if this effect my motor connectors { from top to bottom} is black/white/red while in the book it says
black/red/white
so i tweaked the project abit
so the the black is connected to gnd and red connected to positive while the middle is connected to ~9
and the capacitor is connected positive 2 positive and negative to negative
The normal arrangement of servo cables is to have power (v+) on the centre wire so that no harm is done by connecting it the wrong way. One of the other wires is GND and the other is SIGNAL.
You only need to connect SIGNAL to the appropriate Arduino pin and GND to the Arduino GND. If it does not work it only takes a moment to test those two the other way round.
Post your code.
Draw a diagram of how things are connected and post a photo of the drawing.
Robin2:
The normal arrangement of servo cables is to have power (v+) on the centre wire so that no harm is done by connecting it the wrong way. One of the other wires is GND and the other is SIGNAL.
You only need to connect SIGNAL to the appropriate Arduino pin and GND to the Arduino GND. If it does not work it only takes a moment to test those two the other way round.
Post your code.
Draw a diagram of how things are connected and post a photo of the drawing.
...R
here is a an example of the scheme but as u can see the difference is in the motor connectors mine have signal in the middle
here is a an example of the scheme but as u can see the difference is in the motor connectors mine have signal in the middle
In most servos the center wire of the three is red and is the +6v wire, and the two outside wires are the signal and ground wires. Your diagram appears to show you attempting to power the servo from the arduino, which usually causes issues.
The image you have added to your Original Post does not seem to me to show what you said in Reply #3
here is a an example of the scheme but as u can see the difference is in the motor connectors mine have signal in the middle
In the image the centre wire is red and seems to be connected to the 5V coming from the Arduino.
The problem is most likely that the Arduino cannot supply enough power for the servo. Give the servo its own power supply with the GND connected to the Arduino GND.
And for the future - don't add data to an old Post - add it where it makes sense in the flow of the discussion - your image should have been in Reply #6