# PiDog Servos shaking

**URL:** <https://forum.sunfounder.com/t/pidog-servos-shaking/1430>\
**Category:** Robotic kit for Raspberry Pi\
**Created:** [July 26, 2024, 4:21pm UTC](https://forum.sunfounder.com/t/pidog-servos-shaking/1430 "2024-07-26T16:21:34Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![DarrenL](https://avatars.discourse-cdn.com/v4/letter/d/c6cbf5/32.png) [@DarrenL](https://forum.sunfounder.com/u/DarrenL)\
**Post date:** [May 31, 2025, 10:45pm UTC](https://forum.sunfounder.com/t/pidog-servos-shaking/1430/14 "2025-05-31T22:45:04Z")

</div>

I use the code below to stop the head from shaking. Then, add stable(my\_dog) to stabilize the head. You could do something similar for the legs. Please tell me if this helps or not. IMPORTANT! REPLACE THE DASHES(MINUS SIGNS) WITH 4 SPACES OR ONE TAB. This is because the posts won’t let me indent the code.

def stable(my\_dog):  
----my\_dog.head\_move([[5, 5, 5], [0, 0, 0]], speed = 10)  
----my\_dog.wait\_all\_done()

---

_[View the full topic](https://forum.sunfounder.com/t/pidog-servos-shaking/1430)._
