# RFID reader + servo motor

**URL:** https://forum.makecode.com/t/rfid-reader-servo-motor/18987
**Category:** micro:bit
**Created:** [April 7, 2023, 9:57pm UTC](https://forum.makecode.com/t/rfid-reader-servo-motor/18987 "2023-04-07T21:57:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![abenn](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@abenn](https://forum.makecode.com/u/abenn)
#### Post date: [April 7, 2023, 9:57pm UTC](https://forum.makecode.com/t/rfid-reader-servo-motor/18987/1 "2023-04-07T21:57:33Z")

</div>

I’m trying to use an RFID extension board where when a valid RFID tag is read a servo motor actuates. The RFID scanner uses serial ports on P0 and P1 while the servo is on P2. Each works OK independently. But after the servo has been activated once, the reader stops reading the tags.  
When I take out the servo motor and use a simple buzzer it works fine, ie the valid card is read and I can continually read the tags and activate the buzzer. But when I insert just one line to activate the servo, the RFID reader stops working until I reset the microbit.

---

<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: [April 10, 2023, 5:22pm UTC](https://forum.makecode.com/t/rfid-reader-servo-motor/18987/2 "2023-04-10T17:22:36Z")

</div>

Hi

Welcome

Couple of questions if you don’t mind ?

What sort of servo are you using and  
How are you connecting the servo to the MicroBit ?

Are you powering the servo directly off the MicroBit or using a seperate way of powering it ?

You say if you insert 1 line of code it RFID reader stops working - could we see your code please ?

Regards

---

<div class="post-metadata">

### Author: ![abenn](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@abenn](https://forum.makecode.com/u/abenn)
#### Post date: [April 10, 2023, 5:23pm UTC](https://forum.makecode.com/t/rfid-reader-servo-motor/18987/3 "2023-04-10T17:23:51Z")

</div>

I think I solved the problem. Its the usual one of needing to provide power to the servo from an external battery and not just from the microbit. I though the extension board would be able to handle it as it has dedicated 5V pins to supply the servo but it seems not.

---

<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: [April 10, 2023, 6:29pm UTC](https://forum.makecode.com/t/rfid-reader-servo-motor/18987/4 "2023-04-10T18:29:37Z")

</div>

Glad to hear you’ve solved it

In case others meet this problem would you be kind enough to let us know which extension board you are using?

Also sounds like a great project - are you planning on sharing it anywhere?
