Controlling servos with web browser? Now it’s possible and so simple!

With ArduGate, controlling servos (yes, not servers) attached to an Arduino, from within web browser has never been easier. The JavaScript code for doing the task is almost identical to that used in Arduino but it is JavaScript that can work with rich HTML5 features. You can imagine what this can be used for.

The JavaScript code working with a Servo is like this:

/* create servo object */
var myServo = new Servo();
/* attach servo to pin 3 */
/* set servo angle */
/* get servo angle */
var angle =;
alert("Current angle is " + angle);

Comments are closed.