Esp8266 Projects

Smart Shopping Cart Using EM-18 RFID And NodeMCU


In this Tutorial, We make a smart shopping cart using RFID readers and RFID cards with NodeMCU.The cart will Display all information and the total value will be displayed on the webpage as well as on the LCD.


  • we have faced a problem in shopping malls and markets. Because if you buy anything but when the time to pay bill is Wastes a lot of time in billing Process.
  • That’s why we built a smart shopping cart with an automatic billing system. that not only reduces the waiting time but the payment process is easy for everyone.
  • Here we used the RFID Cards and RFID Reader with nodeMCU(ESP8266) to build the smart shopping cart. and the cart information and total value will be displayed on the webpage as well on LCD Display.
  • Each RFID Tag has a Different Product. and just put the Details in a code.RFID Reader is in the cart, which Reads the RFID tags and finds out the Product Details.

Bill of Materials


Here is all component of the project… We will give some Detail about each component.

RC 522 RFID Module10


NodeMCU is an IoT Module based on ESP8266 wifi Module. NodeMCU uses Lua Scripting language and is an open-source Internet of Things (IoT) platform. This module has CH340g USB to TTL IC.


Specification of Node-MCU IoT Module:-

  • It is based on ESP8266 and integrates GPIO, PWM, IIC, 1-Wire and ADC in one board.
  • Power your development in the fastest way by combining with NodeMCU Firmware!
  • USB-TTL included plug&play
  • 10 GPIO, every GPIO can be PWM, I2C, 1-wire

Features of Node-MCU IoT Module:-

  • Open-source IoT Platform
  • Easily Programmable
  • Low Cost & Simple to Implement
  • WI-FI enabled

EM-18 Reader Module

This EM-18 RFID Reader is a Tiny, simple-to-use RFID reader module. With a built-in antenna, the only holdup is the 2mm pin spacing. Power the module, hold up a card and get a serial string output containing the unique ID of the card. It has TTL output.


Specifications –

  • Operating Voltage: 5V DC Supply
  • Reading Distance: 6-10 cm.
  • Read frequency: 125 kHz.
  • EM4001 64–bit RFID tag compatible.
  • 9600bps ASCII output.
  • Current : <50 mA
  • Operating Frequency: 125 kHz
  • Read Distance: 5 cm
  • Compatible Tags: 125KHz EM4100 Tags

Application –

  • Smart Access Control System.
  • Card-Based Entry System.
  • Attendance System.
  • Smart Trolly


A  Red light-emitting diode (LED) is a semiconductor light source. LEDs are used as indicator lamps in many devices and are increasingly used for other lighting. It looks like a Red led and it luminate Red light.



  • Choice of various viewing angles
  • Reliable and robust
  • The product itself will remain within RoHS compliant version Applications


  • Diameter : 3 mm
  • Glow Color: Red, Green
  • Forward voltage: 2.2 V to 2.4 V
  • Peak Reverse Voltage: 5 volts


The active Buzzer Alarm Module for Arduino is an audio signalling device, which may be mechanical, electromechanical, or piezoelectric. Just like what you are viewing now, it is 3.3V-5V DC Electronic Part Active Buzzer Module.


Push Button

These are very small light duty SPST Single Pole Single push buttons that are NO Normally Open. Push buttons are only rated up to 50mA at 5V DC and are intended for low-voltage operations such as providing digital inputs to microcontrollers.

Screenshot 2022 12 03 at 5.54.13 PM

Circuit Diagram

we will use EasyEDA Software to Design The Circuit Diagram And Proper PCB of the Project.

Smart Trolly Circuit diagram2

  • We just connect the all component in the ESP8266 Microcontroller Pin. The 16×2 LCD Display Will be connected to the I2C Pine Numbers SCL-D1, SDA-D2, VCC-5v And GND-GND.
  • The EM-18 Module Will Connect To The TX-RX Pin, VCC-5V And GND-GND.
  • The Red Led Will be connected to Pin number D7, Green Led-D5, and Buzzer-D6 and The Push button Will be connected to Pin Numbr-D4. 

Smart Trolly Circuit diagram1

Source Code

Here we will give the code Before You upload the code you just Edit the wifi SSID And Password And Then You Select the proper Board and Upload The Code.

Void Setup Function

Void loop Function

More Project




Hi, Prateek Here I’m interested in Electronics That's why I Make Soo Many Projects, I’m currently Pursuing M Tech.. if you Relay Like To My Blog Plz Comment Below...Thanks To All Electronics Lover...❤️

Leave a Reply

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

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker