# Unwanted Head Oscillation

**URL:** <https://forum.sunfounder.com/t/unwanted-head-oscillation/2169>\
**Category:** Robotic kit for Raspberry Pi\
**Created:** [December 24, 2024, 8:24pm UTC](https://forum.sunfounder.com/t/unwanted-head-oscillation/2169 "2024-12-24T20:24:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tedlawson44](https://avatars.discourse-cdn.com/v4/letter/t/8e8cbc/32.png) [@Tedlawson44](https://forum.sunfounder.com/u/Tedlawson44)\
**Post date:** [December 24, 2024, 8:24pm UTC](https://forum.sunfounder.com/t/unwanted-head-oscillation/2169/1 "2024-12-24T20:24:30Z")

</div>

Just completed PiDog build and software installation.  
Working fine except: Head will oscillate rapidly side to side until gently touched to steady. Will start up again with slightest movement. Any fixes?  
Thanks

---

<div class="post-metadata">

**Author:** ![SunFounder\_Moderator](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@SunFounder\_Moderator](https://forum.sunfounder.com/u/SunFounder_Moderator)\
**Post date:** [December 25, 2024, 3:26am UTC](https://forum.sunfounder.com/t/unwanted-head-oscillation/2169/2 "2024-12-25T03:26:37Z")

</div>

We recommend that you provide a video of the issue to help us analyze and resolve it.

It’s possible that the head servo was not properly zeroed before being assembled and secured. If the servo is not zeroed correctly, it may encounter gear jams when trying to operate at its designated angles. This gear jamming can prevent the servo from turning normally, requiring it to overcome greater resistance, which increases the current draw and may cause the Raspberry Pi to shut down and restart.

Please confirm whether the head servo has been properly zeroed and adjusted before assembly. We suggest following our assembly video to ensure that the servo is correctly zeroed and assembled.

[![](https://canada1.discourse-cdn.com/flex029/uploads/sunfounder/original/2X/7/7b46d3687d94b108c15c77dd8e832aed66bd30f6.jpeg "Assembly Tutorial 2 for PiDog - SunFounder Smart Robot Kit") ](https://www.youtube.com/watch?v=witCWeoHTdk)

---

<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:** [June 1, 2025, 12:10am UTC](https://forum.sunfounder.com/t/unwanted-head-oscillation/2169/3 "2025-06-01T00:10:58Z")

</div>

Try This

> [@PiDog Servos shaking](https://forum.sunfounder.com/t/pidog-servos-shaking/1430/14):
>
> 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()

> [@PiDog Servos shaking](https://forum.sunfounder.com/t/pidog-servos-shaking/1430/15):
>
> Example(This is an edited 9\_howling.py code found in pidog/examples):
