# Servo Question

**URL:** <https://forum.makecode.com/t/servo-question/6889>\
**Category:** micro:bit\
**Created:** [March 20, 2021, 7:59pm UTC](https://forum.makecode.com/t/servo-question/6889 "2021-03-20T19:59:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kydaka](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@kydaka](https://forum.makecode.com/u/kydaka)\
**Post date:** [March 20, 2021, 7:59pm UTC](https://forum.makecode.com/t/servo-question/6889/1 "2021-03-20T19:59:48Z")

</div>

Please help - I’m a teacher and class is trying to make a robot with a head that turns. The TowerPro servo is supposed to move from 30 to 150 degrees. Instead it is moving unreliably and often crazily backwards and forth after reaching near to its angle. Image of code and video of problem - Links below  
I am using a battery pack of 4AAA to power that servo. Is it a power problem? I have replaced all batteries and done a lot of testing with code and servos, and still cant find a solution.

> **[microbit servo problem.mp4 (video)](https://drive.google.com/file/d/1n6ZXaobMt6hr3boqq1FELulfEE9VWBCx/view?usp=sharing)**
>
> Google Drive file.

> **[Screenshot Code.png](https://drive.google.com/file/d/160vAwcEfequ9N9vA7AnfHyg1wTnNnJxu/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [March 22, 2021, 3:12pm UTC](https://forum.makecode.com/t/servo-question/6889/2 "2021-03-22T15:12:56Z")

</div>

I can’t quite tell from the video: Is the Micro:bit ground (GND) connected to the battery and servo ground? (It looks like it may be, but it’s hard to tell if the wire is really connected)

---

<div class="post-metadata">

**Author:** ![kydaka](https://avatars.discourse-cdn.com/v4/letter/k/a87d85/32.png) [@kydaka](https://forum.makecode.com/u/kydaka)\
**Post date:** [July 19, 2021, 9:21pm UTC](https://forum.makecode.com/t/servo-question/6889/3 "2021-07-19T21:21:32Z")

</div>

I found out that the shuddering is caused by electrical noise. Using cheaper knockoffs of the TowerPro SG90 avoids the problem!  
I got this advice : ‘When using a digital servo, you need to have isolation between the controller and the motor driver. You should have isolation when driving any motor but the low power analogue (cheaper) motors don’t jitter, but also don’t hit the same spot.’  
I hope this helps others.  
Thanks very much for taking a look.
