# Controlling a mini DC motor with 0,1, and 2 pins

**URL:** <https://forum.makecode.com/t/controlling-a-mini-dc-motor-with-0-1-and-2-pins/28886>\
**Category:** micro:bit\
**Created:** [May 22, 2024, 9:27pm UTC](https://forum.makecode.com/t/controlling-a-mini-dc-motor-with-0-1-and-2-pins/28886 "2024-05-22T21:27:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [May 22, 2024, 11:53pm UTC](https://forum.makecode.com/t/controlling-a-mini-dc-motor-with-0-1-and-2-pins/28886/2 "2024-05-22T23:53:15Z")

</div>

Hi @drrich — Welcome to the forum!

Please see the response in this post: [Motor not spinning](https://forum.makecode.com/t/motor-not-spinning/28735) . Summary: It’s probably a power problem. The output pins are limited to about 15 milliamps (0.015A — about 1/10th of the 0.12A you mentioned). That post includes a link to an example circuit using Elecfreak’s Micro:bit Starter kit. The circuit uses the output pin to control a transistor and the transistor is capable of higher current that the motor needs.

---

_[View the full topic](https://forum.makecode.com/t/controlling-a-mini-dc-motor-with-0-1-and-2-pins/28886)._
