[Solved] control servo using android

Read the data as string using: string input = bluetooth.readString(); Then convert string to int using: int servopos = int(input); Then write the position to the servo:servo.write(servopos); Now depending on the data you send from android, you could need to : Trim it: input = input.trim(); Or constrain it : servopos = constrain(servopos,0,180); Your corrected … Read more