Servo Driver

 

You can connect the [Servo Driver] block of mbuild to Halocode, and make more creations.

 

1. servo driver (1) sets angle to (90)°

Sets the rotation angle of the specified servo driver to the specified value.

1.png

 

Example

2.png

When the button of Halocode is pressed, the rotation angle of servo driver 1 will be set to 90°.


2. servo driver (1) increases angle by (20)°

Changes the rotation angle of the specified servo driver by the specified value.

3.png

 

Example

4.png

When the button of Halocode is pressed, the rotation angle of servo driver 1 will increase by 20°.


3. servo driver (1) back to zero position

Turns the specified servo driver back to zero position.

5.png

 

Example

6.png

When the button of Halocode is pressed, servo driver 1 will go back to zero position.


4. servo driver (1) current angle(°)

Reports the rotation angle of the specified servo driver.

7.png

 

Example

8.png

When the button of Halocode is pressed, if the rotation angle of servo driver 1 is greater than 90°, the LED ring of Halocode will light up red.


Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.