# Using NFC for Microbit and bot car

**URL:** <https://forum.makecode.com/t/using-nfc-for-microbit-and-bot-car/6058>\
**Category:** Educators' Lounge\
**Created:** [February 9, 2021, 2:12am UTC](https://forum.makecode.com/t/using-nfc-for-microbit-and-bot-car/6058 "2021-02-09T02:12:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![frank\_schmidt](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)\
**Post date:** [February 9, 2021, 2:12am UTC](https://forum.makecode.com/t/using-nfc-for-microbit-and-bot-car/6058/1 "2021-02-09T02:12:18Z")

</div>

This is a part of a project with home-school students where we built robotic carts based on Micro:bit and Yahboom Superbit power expansion board. Could we get some help on this code so as to add motors on all 4 wheels and if possible activate them when the NFC signal is received ? Thanks: [https://makecode.microbit.org/\_J3k8Da237RAU](https://makecode.microbit.org/_J3k8Da237RAU)

We are at “MakeCode and Hardware” channel on YouTube with the “Transporter” playlist.

---

<div class="post-metadata">

**Author:** ![Bilu](https://avatars.discourse-cdn.com/v4/letter/b/c37758/32.png) [@Bilu](https://forum.makecode.com/u/Bilu)\
**Post date:** [August 16, 2021, 2:34pm UTC](https://forum.makecode.com/t/using-nfc-for-microbit-and-bot-car/6058/2 "2021-08-16T14:34:58Z")

</div>

Hello,

for the NFC, you should : set NFC TX to 13 RX to 14  
for each ID Card NFC number you should SET a Variable (ex: if “VarFORWARD” = “593519A3” then M1 go forward

---

<div class="post-metadata">

**Author:** ![frank\_schmidt](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)\
**Post date:** [August 16, 2021, 6:35pm UTC](https://forum.makecode.com/t/using-nfc-for-microbit-and-bot-car/6058/3 "2021-08-16T18:35:22Z")

</div>

Thanks, will try.

---

<div class="post-metadata">

**Author:** ![Carlos\_Diaz](https://avatars.discourse-cdn.com/v4/letter/c/e9c0ed/32.png) [@Carlos\_Diaz](https://forum.makecode.com/u/Carlos_Diaz)\
**Post date:** [January 12, 2023, 5:15pm UTC](https://forum.makecode.com/t/using-nfc-for-microbit-and-bot-car/6058/4 "2023-01-12T17:15:11Z")

</div>

Dear Frank Schmidt and Bilu,

I am also trying to use NFC in conjunction with a power expansion board. However, I am clueless on the NFC capability of the micro:bit version 2.

I subscribed to your YouTube channel hoping to see the build, but couldn’t find it.

Besides the Yahboom Superbit power expansion board, did you add an NFC reader, or is this something the the v2 can do? How do I get the NFC capability on the micro:bit v2?

The idea is for the robotic cart to drive motors as well as read tags.

Thanks in advance for your reply.

---

<div class="post-metadata">

**Author:** ![frank\_schmidt](https://avatars.discourse-cdn.com/v4/letter/f/7993a0/32.png) [@frank\_schmidt](https://forum.makecode.com/u/frank_schmidt)\
**Post date:** [January 12, 2023, 6:14pm UTC](https://forum.makecode.com/t/using-nfc-for-microbit-and-bot-car/6058/5 "2023-01-12T18:14:14Z")

</div>

Hello Carlos. Good question. It has been a while since I looked at NFC and Microbit. I will look at it again and ask around for answers to your questions. From Frank

---

<div class="post-metadata">

**Author:** ![Carlos\_Diaz](https://avatars.discourse-cdn.com/v4/letter/c/e9c0ed/32.png) [@Carlos\_Diaz](https://forum.makecode.com/u/Carlos_Diaz)\
**Post date:** [January 13, 2023, 6:40am UTC](https://forum.makecode.com/t/using-nfc-for-microbit-and-bot-car/6058/6 "2023-01-13T06:40:40Z")

</div>

Thanks, really appreciate it.

Thanks for the prompt response.

I want to place nfc sticky tags on the floor and have the rover capture the tag’s id as it drives over them. Then, using a lookup table the rover can figure out what position it just crossed. If it works, I can think of several algorithms / problems that my students can solve on their way to understanding AI.
