Table of Contents

set () servo angle to () degrees () calibrate

set servo angle block

Description

Set () servo angle to () degrees () calibrate block is a stack block available in Humanoid Robot extension for evive and other Arduino boards. This block sets the value of the selected servo by the value you enter. Whereas the angle of other servos remains the same.

Input Parameters

  1. Drop down to choose between left leg, right leg, left foot, right foot, left shoulder, right shoulder, left hand, and right-hand servos.
  2. The angle between 0 to 180 to which you want to set your servo.
  3. Drop down to choose whether you want to add the calibrated values(with calibration) or not(without calibration) to the entered angle.
evive Notes Icon
Note: This block is available in both Stage and Upload mode.

Example

In this script, we will set the left leg and right leg servo angle by the angle obtained on rotating the potentiometer 1 and 2 respectively.

  1. Make two custom variables Angle 1 and Angle 2, and set them to the value obtained by rotating potentiometer 1 and potentiometer 2 respectively.
  2. Set the left leg servo angle by Angle 1 and right leg servo angle by Angle 2.
    set servo angle block example
evive Notes Icon
Note: Before working with the Humanoid Robot, we need to calibrate the hands such that they are straight and calibrate the legs in such a way that they are facing forward.

Example

There are no examples documented for this article.