Table of Contents

set servo on () to () angle


Set servo on () to () angle block is a stack block available in actuators extension for evive and all Arduino boards. The block sets the servo connected to the PWM pin to the specified angle between 0 to 180.

Input Parameters

  1. Signal Pin: The PWM pin where the signal pin of the servo motor is attached.
  2. Angle: The angle user want to set the servo angle to. It ranges from 0 to 180 degrees. You can choose it from the drop-down slider.

Circuit Diagram for connecting servo motor



Arduino Uno

In this case, we are connecting the servo motor to digital pin 3.



  1. Servo sweep connected to channel 1.


Learn about servo motors and interface it with Arduino , servo control with ardunio


Understanding Servo Motors and it’s working

Servo motors are part of a closed-loop system and are comprised of several parts namely a control circuit, servo motor, shaft, potentiometer, drive gears, amplifier and either an encoder or resolver. A servo motor is a self-contained electrical device, that rotate parts of a machine with high efficiency and with great precision. The output shaft of this motor can be moved to a particular angle, position and velocity that a regular motor does not have.




  • From event palette drag when flag clicked block
  • From arduino palette drag set servo on() to ()
  •  Add forever block and insert if else block in forever block.
  • Read the status of IR senor on pin 7 of ardino using read status of digital pin()
  • If the sensor value is HIGH  then servo must rotate 180 for 3  seconds otherwise it will remain at 90 degree







Read More
All articles loaded
No more articles to load