Questions And Answers

More Tutorials

Raspberry Servo

In addition to PIR Motion Sensor the Servo is our indispensable tool for creating an automatic door. A servo is a DC motor with a gear and feedback system, whose position can be controlled accurately. It is also called a servo motor, and often used in control systems that need angular change that can be maintained, such as robotics equipment. In the automatic door project, we can sense whether anyone is approaching through PIR Motion Sensor, send the signal to Servo to control its rotation, and finally drive the door to a fixed position. When people leave, the Servo can then close the door.

When we need to control the Servo rotation, we need to control the output to the Servo through a PWM signal. The duty cycle of the PWM directly determines the rotation position of the Servo output shaft. The figure below shows the relationship between different pulse signals and the Servo rotation angle when the frequency is 50 Hz.


In this page (written and validated by ) you learned about Raspberry Servo . What's Next? If you are interested in completing Raspberry tutorial, your next topic will be learning about: Raspberry Control Servo.

Incorrect info or code snippet? We take very seriously the accuracy of the information provided on our website. We also make sure to test all snippets and examples provided for each section. If you find any incorrect information, please send us an email about the issue:

Share On:

Mockstacks was launched to help beginners learn programming languages; the site is optimized with no Ads as, Ads might slow down the performance. We also don't track any personal information; we also don't collect any kind of data unless the user provided us a corrected information. Almost all examples have been tested. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. By using, you agree to have read and accepted our terms of use, cookies and privacy policy.