Hi I'm using Brian Wendt's code for setting up my Arduino Nano with 4 servos using PySerial which works perfectly.
So my next step was to get a nice GUI with sliders to position the servos, again no problems.
This issue is when I try to set an initial state for the servos. Servos 1 & 2 go to 0 degrees on start up but servos 3 & 4 go to 90 degrees for some reason?
My Python code for initialization,
import serial usbport = 'COM5' ser = serial.Serial(usbport, 9600, timeout=1) def init(): for servo in range(1, 5): print servo ser.write(chr(255)) ser.write(chr(servo)) ser.write(chr(0)) init()