Is this different to what you said earlier?Quoteshould i just power these servos with the 5v and gnd from the arduino or something else?Certainly you should have the grounds common. I agree with that. And from the battery I would run a wire to the Arduino's "power in" socket (so it gets voltage regulated). And also direct from the battery to the motor shield. Sounds OK, subject to seeing a schematic.
should i just power these servos with the 5v and gnd from the arduino or something else?
Try increasing the baud rate to 115200 on both sides.
I'd forgotten about them. If you can, yes, if you are talking through them. I found with my robot car that a slow communication rate can make the response to controls a bit sluggish.For example:Code: [Select].123,100,92,42,99/That's 18 bytes. At 9600 baud (960 characters per second) that would take 18.7 mS to send. Maybe the problem is something else.
Serial.print("."); Serial.print(servoVal1, DEC); Serial.print(","); Serial.print(servoVal2, DEC); Serial.print(","); Serial.print(servoVal3, DEC); Serial.print(","); Serial.print(servoVal4, DEC); Serial.print(","); Serial.print(RotationV1, DEC); Serial.print("/"); delay(10);
Also comment-out the debugging prints in the receiving end.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16