> For the complete documentation index, see [llms.txt](https://sharinghub-eng.kittenbot.hk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sharinghub-eng.kittenbot.hk/functional_module/powerbrick/rfid.md).

# RFID Reader Module

![](https://kittenbothk.readthedocs.io/en/latest/_images/10_04.png)

![](https://kittenbothk.readthedocs.io/en/latest/_images/10_05.png)

This is an RFID module that can read or write RFID cards.

The included RDID card has 1K memory, it has 16 sections with 3 blocks each.

![](https://kittenbothk.readthedocs.io/en/latest/_images/IMG_2583.GIF)

### Details

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/10_031.png)

### Specifications

* Voltage: 3V-5V
* Dimensions: 56mm X 56mm X 16mm
* Connector: 4Pin PH2.0
* Sensing Distance: Approximately 3cm

### Precautions

* Do not use the module in an environment with strong magnetic fields.
* Any metal between the reader and the card will cause it to fail to write or read.
* It may take sometime when writing a large amount of data into the RFID Card, please wait until the light goes off.
* Cards like Octopus Cards or ID Cards have encrypted data, the reader can only read the UUID of these cards.

### Connecting the module

#### Armourbit

***

Connect the RFID Module to the I2C port of Armourbit with a 4Pin cable.

![](https://kittenbothk.readthedocs.io/en/latest/_images/rfid_wire.png)

#### Robotbit

***

Connect the RFID Module to the I2C port of Robotbit.

```
Blue(A)->SCL, Green(B)->SDA
```

![](https://kittenbothk.readthedocs.io/en/latest/_images/rfid_wire1.png)

### MakeCode Coding Tutorial

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/mcbanner.png)

#### Load Powerbrick Extension:

#### Search "Powerbrick" in the search bar.

![](https://kittenbothk.readthedocs.io/en/latest/_images/powerbrick_search.png)

#### Or search the following link.

<https://github.com/KittenBot/pxt-powerbrick>

#### RFID Module Blocks

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/rfidblocks1.png)

#### Writing data onto RFID Card

{% embed url="<https://makecode.microbit.org/_XdP0Pye1rFA0>" %}

[Sample Program](https://makecode.microbit.org/_XdP0Pye1rFA0)

#### Reading Data from RFID card

{% embed url="<https://makecode.microbit.org/_TEz6D45qgDaa>" %}

[Sample Program](https://makecode.microbit.org/_TEz6D45qgDaa)

#### Reading the UUID

Every RFID card has an unique ID.

{% embed url="<https://makecode.microbit.org/_a6wiKdUqWaXL>" %}

[Sample Program](https://makecode.microbit.org/_a6wiKdUqWaXL)

#### Identification with UUID

We can use UUID to identify indicviduals.

{% embed url="<https://makecode.microbit.org/_c4rcrE76Tc6Y>" %}

[Sample Program](https://makecode.microbit.org/_c4rcrE76Tc6Y)

#### Makecode Vidoe

{% embed url="<https://www.youtube.com/watch?v=r1B6l7xK7So>" %}

#### Demo Video

{% embed url="<https://www.youtube.com/watch?v=oR1FwHu4lrM>" %}

### Extension Version and Updates[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/PWmodules/powerBrickRFID.html#extension-version-and-updates)

There may be updates to extensions periodically, please refer to the following link to update/downgrade your extension.

[MakeCode Extension Update](/programming-platforms/makecode-tutorial/makecode-extension-updates.md)

### KittenBlock Coding Tutorial[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/PWmodules/powerBrickRFID.html#kittenblock-coding-tutorial)

![../../\_images/kbbanner.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/kbbanner.png)

#### Load Powerbrick Extension[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/PWmodules/powerBrickRFID.html#load-powerbrick-extension)

Select Powerbrick from the hardware column.

![../../\_images/addextension1.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/addextension1.png)

#### RFID Module Blocks[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/PWmodules/powerBrickRFID.html#id1)

![../../\_images/kbrfidblocks1.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/kbrfidblocks1.png)

#### Writing data onto RFID Card[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/PWmodules/powerBrickRFID.html#id2)

![../../\_images/rfidwrite3.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/rfidwrite3.png)

[Sample Code Download](https://bit.ly/PowerbrickM8_01sb3)

#### Reading Data from RFID card[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/PWmodules/powerBrickRFID.html#id3)

![../../\_images/rfidread3.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/rfidread3.png)

[Sample Code Download](https://bit.ly/PowerbrickM8_02sb3)

#### Reading the UUID[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/PWmodules/powerBrickRFID.html#id4)

![../../\_images/uidread3.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/uidread3.png)

[Sample Code Download](https://bit.ly/PowerbrickM8_03sb3)

#### Identification with UUID[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/PWmodules/powerBrickRFID.html#id5)

![../../\_images/uididentify3.png](https://kittenbothk-eng.readthedocs.io/en/latest/_images/uididentify3.png)

[Sample Code Download](https://bit.ly/PowerbrickM8_04sb3)

### FAQ[](https://kittenbothk-eng.readthedocs.io/en/latest/functional_module/PWmodules/powerBrickRFID.html#faq)

1：Why is there no reaction when I click the blocks?

Make sure you have connected the Micro:bit correctly and flash the firmware again.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sharinghub-eng.kittenbot.hk/functional_module/powerbrick/rfid.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
