The Cloudio board has a port to which a mini-servo motor (Rating: 5V, 2.5/3.0 Kgf. cm) can be connected. This motor is best used for pan and tilt applications.
Note: Please be sure to connect ( with the correct polarity) a mini-servo motor with the supported rating. Failure to do so may damage the Cloudio-Raspberry Pi setup.
This block is used to control the port A1 to which the mini-servo motor is connected.
Make sure to
A1 is the port to which the mini-servo motor is to be connected.
Here, you can set the angle to which the servo motor should rotate.
You can set the speed of rotation of the motor from 1 to 9.
Make sure the mini servo matches the 5V, 2.5/3.0 Kgf. cm rating.
This project continuously checks the motion sensor to see if motion is detected. The servo motor connected to port A1 is turned to the120 degree angle of the servo motor at speed 9 when motion is detected.