Hobby Servo

This node uses Arduino's Servo library to control a hobby servo. Simply connect the red and black wires on the servo to the voltage and ground channels, and the yellow wire to a PWM enabled digital pin.



Decleration Code

Servo myservo;

Setup Code

myservo.attach(3); // Use a PWM enabled digital pin


myservo.write(transform(Input_Activation, 0.0, 1.0, 0, 180));

No required source files.

To use this node in your Embrio project, either add it from the Library toolbar or copy the XML in the below box and paste it into a node screen.

View Comments (0)