Arduino Projects

DFplayer Mini Mp3 and Arduino based RFID Bike access System


DFplayer Mini Mp3

DFplayer Mini Mp3 and Arduino based RFID Bike access System- A few days back I uploaded an article about “How to get RFID implant in humans and practical uses with Arduino”, In this tutorial I explained the step by step procedure how to get an RFID implant and then how to use it with Arduino to control a Sports Bike and other electronic gadgets. My friend Chimpo Mcdoodle actually got the RFID implant and sent me all the details. The whole credit goes to my friend.

In this article, I am going to modify my previous bike control system, this time I am going to add voice to Arduino using DFplayer Mini Mp3 Module by the DFrobot, I will be using the same mini MFRC522 RFID module, 4 Channel Bi-Directional Logic Level Converter Shifter 5V-3.3V, and of course a speaker will be added with the DFplayer Mini Mp3 Module.

A few words about the project, before, I am going to explain the electronic components, circuit diagram, and programming; so that you can have a clear idea, what are we actually going to make.

Bike Access Control System Working:

Different voice messages are pre-recorded, you can record your own voice or you can use the Google’s Narrator and select from different voices which best suits your needs. I myself I used the Google’s Narrator and selected the girl’s voice, which feels like a science fiction movie scene. The demonstration video is given at the end of this article. So, different voice messages are stored in the SD card, and played using the DFplayer Mini Mp3 Module.

When the switch is turned ON a voice message is played “Motor cycle engaged, awaiting authorization”, at this point the user swipes his/her RFID card, if an RFID UID is detected which is not registered the voice is played automatically “Access Denied”, it really doesn’t matter how many times you swipes the same card, the same audio message will be played. This is really cool we can use hundreds of prerecorded voice messages and play the one as per the situation.

When a registered RFID card, Tag, or an RFID chip is swiped another voice message is played “Motor Cycle Activated”, and then the user can go ahead and start the bike. Each audio file stored in the SD card has a unique number and any audio file can be played randomly which entirely depends on the programming.

Can we use this in Car access control system?

Of course the same system can be used in cars, door opening systems, lockers, etc. The overall designing remains the same, the only thing you will need to modify is, the number of relays you want to control, the number of audio files you will need to play, etc. The programming can be easily modified without any problem.

Without any further delay, let’s get started!!!

The components and tools used in this project can be purchased from Amazon and Banggood, the components Purchase links are given below:

Mini RC522 RFID Reader

Arduino Uno

Arduino Nano

DFplayer Mini Mp3 Module

5V to 3.3V Bi-directional Logic Level Converter for Arduino

2-channel Relay Module

DC to DC converter 12V to 5V

NExT RFID Chip Implant UK based

NExT RFID Chip Implant US based

Other Tools and Components:

Super Starter kit for Beginners

Digital Oscilloscopes

Variable Supply

Digital Multimeter

Soldering iron kits

PCB small portable drill machines

*Please Note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

4 Channel Bi-Directional Logic Level Converter:

Why we need the Logic level converter in the first place? Well, the Mini MFRC522 RFID Reader and the DFplayer Mini Mp3 Module need 3.3V. If these modules are directly used with the Arduino, these modules will be destroyed in no time. So, we need a kind of voltage converter that can convert 5V into 3.3V and 3.3V into 5V. For this, I decided to use the 4 Channel Bi-Directional Logic Level Converter.

DFplayer Mini Mp3

Above is the low cost and small size 4 Channel Bi-Directional Logic Level Converter Shifter 5V-3.3V for Arduino.


  • Bi-directional logic level converter is a small device that safely steps down 5V signals to 3.3V and steps up 3.3V to 5V at the same time.
  • You can successfully set your high and low voltages and step up and down between them safely on the same channel.
  • This level converter also works with 2.8V and 1.8V devices.
  • Each level converter has the capability of converting 4 pins on the high side to 4 pins on the low side with two inputs and two outputs provided for each side.
  • Dimensions: 0.63*0.52inch /16.05*13.33mm(approx)

Mini MFRC522 RFID Reader Module:

DFplayer Mini Mp3

As you can see this is the MFRC522 RFID module. The MFRC522 is a highly integrated reader/writer IC for contactless communication at 13.56 MHz. This module has a total of 8 male headers which are clearly labeled as SDA, SCK, MOSI, MISO, IRQ, GND, RST, and 3.3V. As per the datasheet the typical voltage is 3.3V while the maximum voltage is 3.6 volts. This module can be easily powered up using the Nodemcu ESP8266 Wifi Module.

If you take a look at the slightly larger version of the MFR522 RFID Reader you will find that both the RFID modules have got the same pins and in the same order. The only difference is in the size. So the same project can be built using the larger one.

DFplayer Mini Mp3

First we started with the very basic setup, by connecting the MFRC522 RFID module with the Arduino Uno this setup is used to read the identity number of the RFID tag, card, or the RFID chip implant.

In Arduino Uno and Arduino Nano the SPI pins are

Pin number 13 is the SCK

Pin number 12 is the MISO

Pin number 11 is the MOSI and

Pin number 10 is the ss.

DFplayer Mini Mp3 Module:

DFplayer Mini Mp3

The DFPlayer Mini is a small and low-cost MP3 module player with a simplified output directly to the speaker. The module can be used as a stand-alone module with an attached battery, speaker, and push buttons or used in combination with an Arduino UNO or any other with RX/TX capabilities.

It perfectly integrates hard decoding module, which supports common audio formats such as MP3, WAV, and WMA. Besides, it also supports TF card with FAT16, FAT32 file system. Through a simple serial port, you can play the designated music without any other tedious underlying operations.

DFplayer Mini MP3 Module APPLICATIONS

Car navigation voice broadcast;

Road transport inspectors, toll stations voice prompts;

The railway station, bus safety inspection voice prompts;

Electricity, communications, financial business hall voice prompts;

Vehicle into and out of the channel verify that the voice prompts;

The public security border control channel voice prompts;

Multi-channel voice alarm or equipment operating guide voice;

The electric tourist car safe driving voice notices;

Electromechanical equipment failure alarm;

Fire alarm voice prompts;

The automatic broadcast equipment, regular broadcast.


Supported sampling rates (kHz): 8/11.025/12/16/22.05/24/32/44.1/48

24 -bit DAC output, support for dynamic range 90dB , SNR support 85dB.

Fully supports FAT16 , FAT32 file system, maximum support 32G of the TF card, support 32G of U disk, 64M bytes NORFLASH

A variety of control modes, I/O control mode, serial mode, AD button control mode.

Advertising sound waiting function, the music can be suspended. when advertising is over in the music continue to play.

Audio data sorted by folder, supports up to 100 folders, every folder can hold up to 255 songs

30 level adjustable volume, 6 -level EQ adjustable

DFplayer Mini Mp3 Module Pinout:

DFplayer Mini Mp3

The DFplayer Mini Mp3 Module has a total of 16 pins, 8 pins on the Left side and 8 pins on the Right side. While using this Mp3 module, you should know exactly how to use each pin. Wrong connections may lead to the permanent damage of this Mp3 module.

DFplayer Mini Mp3

Bike Access Control System Circuit Diagram:

The following circuit diagram explains how to connect the DFplayer Mini Mp3 Module, MFRC522 RFID Reader, Logic Level Converter, 2-channel relay module, and a speaker with Arduino Nano.

DFplayer Mini Mp3

The Red and Ground wires going to the Arduino Nano Vin and Ground pins should be connected through a 12V to 5V converter, this way the whole system can be powered up using the Bike 12V battery. All the connections are pretty straight forward. In the programming later I used some other pins, so the circuit connections should be adjust a bit.

DFplayer Mini Mp3

The two brown wires are used for the relay module, which is currently not connected. For now my only concern is to play the sound files.

Bike Access Control System with DFplayer Mp3, Arduino Programming:

Finally, I uploaded the code, I used one unregistered RFID card, and one registered RFID chip implanted in hand. You can watch the practical demonstration in the video given below.

Watch Video:

Recently, I posted another article, in which we did a lot of new modifications, and we practically controlled a bike. This can be used as the final product. I highly recommend you should take a look.


Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button