# Urgent Microbit Help, Motor and External Button connected to Kritonik board not working

**URL:** <https://forum.makecode.com/t/urgent-microbit-help-motor-and-external-button-connected-to-kritonik-board-not-working/26289>\
**Category:** micro:bit\
**Created:** [January 23, 2024, 8:02pm UTC](https://forum.makecode.com/t/urgent-microbit-help-motor-and-external-button-connected-to-kritonik-board-not-working/26289 "2024-01-23T20:02:58Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lena](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@Lena](https://forum.makecode.com/u/Lena)\
**Post date:** [January 23, 2024, 8:02pm UTC](https://forum.makecode.com/t/urgent-microbit-help-motor-and-external-button-connected-to-kritonik-board-not-working/26289/1 "2024-01-23T20:02:58Z")

</div>

My project consists of a motor which should move forward for a few seconds, then reverse for a few seconds, at the input of an external button.  
Below are pictures of my code, and my wiring.  
It is not working at all, the motor does not move, I’m not sure if it’s supposed to do this or not but when I press the button, the button turns of the microbit, then pressing it again turns it on.

Pls any help would be very appreciated, I’m quite new to microbits and I’m struggling to get my project to work.

Sorry I don’t have the motor in the picture but you get the idea

 ![IMG_1481](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/7959a001b2ded6e0d243dd1693c13df97c60a578.jpeg)

 ![IMG_1486](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/df778419ccec047d5907e12f343d57908a078326.png)

---

<div class="post-metadata">

**Author:** ![robotosaurus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robotosaurus/32/19294_2.png) [@robotosaurus](https://forum.makecode.com/u/robotosaurus)\
**Post date:** [January 24, 2024, 1:02am UTC](https://forum.makecode.com/t/urgent-microbit-help-motor-and-external-button-connected-to-kritonik-board-not-working/26289/2 "2024-01-24T01:02:23Z")

</div>

Some motors are not dc but are ac.

---

<div class="post-metadata">

**Author:** ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)\
**Post date:** [January 24, 2024, 1:02am UTC](https://forum.makecode.com/t/urgent-microbit-help-motor-and-external-button-connected-to-kritonik-board-not-working/26289/3 "2024-01-24T01:02:28Z")

</div>

HI

I can’t quite recognise what Kitronik board you have the Micro:Bit connected to?

Is it a motor driver / servo controller board?

Regards

---

<div class="post-metadata">

**Author:** ![Lena](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@Lena](https://forum.makecode.com/u/Lena)\
**Post date:** [January 25, 2024, 1:41am UTC](https://forum.makecode.com/t/urgent-microbit-help-motor-and-external-button-connected-to-kritonik-board-not-working/26289/4 "2024-01-25T01:41:42Z")

</div>

Hello,  
it is the kritonik motor driver board V1,

---

<div class="post-metadata">

**Author:** ![dsssssssss9](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dsssssssss9/32/861_2.png) [@dsssssssss9](https://forum.makecode.com/u/dsssssssss9)\
**Post date:** [January 25, 2024, 10:05pm UTC](https://forum.makecode.com/t/urgent-microbit-help-motor-and-external-button-connected-to-kritonik-board-not-working/26289/5 "2024-01-25T22:05:17Z")

</div>

Thanks for that

What exact motor are you using ?

---

<div class="post-metadata">

**Author:** ![Lena](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@Lena](https://forum.makecode.com/u/Lena)\
**Post date:** [January 25, 2024, 10:30pm UTC](https://forum.makecode.com/t/urgent-microbit-help-motor-and-external-button-connected-to-kritonik-board-not-working/26289/6 "2024-01-25T22:30:49Z")

</div>

It is a DC motor 3-12VDC 🙂

---

<div class="post-metadata">

**Author:** ![robotosaurus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robotosaurus/32/19294_2.png) [@robotosaurus](https://forum.makecode.com/u/robotosaurus)\
**Post date:** [January 25, 2024, 11:32pm UTC](https://forum.makecode.com/t/urgent-microbit-help-motor-and-external-button-connected-to-kritonik-board-not-working/26289/7 "2024-01-25T23:32:29Z")

</div>

There shouldn’t be any problem.

---

<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:** [January 29, 2024, 9:17pm UTC](https://forum.makecode.com/t/urgent-microbit-help-motor-and-external-button-connected-to-kritonik-board-not-working/26289/8 "2024-01-29T21:17:49Z")

</div>

Hi @Lena,

Some things you may want to try or confirm:

1. Have you tried a higher speed? Many DC motors will not operate at low speeds.
2. If you are trying to insert “stranded” wires in the sockets on the board, you may want to use a different approach, like something with a solid pin. Twisted wires often don’t make firm connections when they are pushed into the sockets.
3. If you have access to a voltmeter or know someone who does, you may want to: a) change the program so Button A turns the Motor on (full speed) and Button B turns it off, b) then use the meter in place of the motor to measure if there is voltage being applied and also use the meter on the motor wires in place of the micro:bit (and measuring resistance) to confirm a complete circuit.

---

<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:** [January 29, 2024, 9:52pm UTC](https://forum.makecode.com/t/urgent-microbit-help-motor-and-external-button-connected-to-kritonik-board-not-working/26289/9 "2024-01-29T21:52:39Z")

</div>

Quick follow-up: I noticed that you’re using `on pin P2 pressed`. If you haven’t already done so, you may want to try `on Button A` pressed first — that may help identify if the problem is due to detecting the button press or in controlling the motor. (And maybe do a separate piece of code that uses `on pin P2 pressed` to show a specific picture on the screen).

---

<div class="post-metadata">

**Author:** ![Lena](https://avatars.discourse-cdn.com/v4/letter/l/c68b51/32.png) [@Lena](https://forum.makecode.com/u/Lena)\
**Post date:** [January 29, 2024, 11:21pm UTC](https://forum.makecode.com/t/urgent-microbit-help-motor-and-external-button-connected-to-kritonik-board-not-working/26289/10 "2024-01-29T23:21:35Z")

</div>

Thanks for the help, you have a good point about the stranded wires, I’m going to try and get something to divide the wires into a solid point.  
I’m definitely going to experiment with the micro bit, try and figure out the problem step by step.  
Kind regards

---

<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:** [January 30, 2024, 7:53pm UTC](https://forum.makecode.com/t/urgent-microbit-help-motor-and-external-button-connected-to-kritonik-board-not-working/26289/11 "2024-01-30T19:53:07Z")

</div>

Hi @Lena ,

Alligator clips with Dupont ends can be handy for testing stuff like this.  
You can find them on Amazon, Alibaba, etc. For example: [https://www.amazon.com/Dupont-Breadboard-Jumper-Alligator-Arduino/dp/B086MVXPVY](https://www.amazon.com/Dupont-Breadboard-Jumper-Alligator-Arduino/dp/B086MVXPVY). I tear them into individual clips — pin in the board and clamp the alligator to the motor wire(s) for testing, etc.

Good luck and please share any progress or problems!
