Problem with Serial control of multiple servos
hey, so year 12 student using 2 arduino unos create wirelessly controlled robotic hand via 5 flex sensors , 5 servo motors. able 2 servos working @ same time 2 flex sensors, moment try 3, incorrect data gets sent servos , spaz out. for serial communication using apc 220's. as mentioned, both arduinos uno's. attached tx arduino code (used flex sensors data , send rx arduino via serial), quite long due calibration code make motors less jittery, ive attached it. and here rx arduino code: code: [select] #include <servo.h> servo thumb, index, middle, ring, pinky; int thumbpin = 9, indexpin = 10, middlepin = 11, ringpin = 12, pinkypin = 13; int ledpin = 2; void setup() { serial.begin(19200); pinmode(ledpin, output); thumb.attach(thumbpin); index.attach(indexpin); middle.attach(middlepin); ring.attach(ringpin); pinky.attach(pinkypin); } void loop() { if (serial.available() >= 5){ digitalwr...