38. RFID Sensor(EF05047)#
The RFID sensor uses radio frequency to read and write the recording media (electronic tags or radio frequency cards) to achieve the purpose of identifying targets and data exchange.
Design in RJ11 connections, easy to plug.
38.5. Outlook and Dimensions#
38.6. Quick to Start#
38.6.1. Materials Required and Connection Diagram#
Connect the RFID to the IIC port on Nezha expansion board.
38.7. MakeCode Program#
38.7.1. Step 1#
Click “Advanced” in the drawer of the MakeCode to see more choices.
We need to add a package for programming. Click “Extensions” in the bottom of the drawer and search with “PlanetX” in the dialogue box to download it.
Note: If you met a tip indicating that the codebase will be deleted due to incompatibility, you may continue as the tips say or build a new project in the menu.
38.7.2. Step 2#
38.7.3. Code as below:#
You may also download it directly below:
After powering on, place the electronic tag under the RFID, and the RFID writes the data into the electronic tag, then it reads the electronic tag data and displays it on the micro:bit.