Code Monkey home page Code Monkey logo

esp32-dynamic-upi-qr's Introduction

ESP32-Dynamic-UPI-QR

This repository showcases a project that leverages the power of an ESP32 microcontroller and a TFT display to dynamically generate and display payment QR codes for UPI services such as Google Pay, Paytm, PhonePe, and others. By integrating with the qrcode_espi library, this project enables real-time creation and rendering of QR codes, facilitating seamless digital transactions.

Features

  • Dynamic QR Code Generation: Utilizes the qrcode_espi library to generate payment QR codes in real-time.
  • UPI Integration: Supports various UPI services including Google Pay, Paytm, and PhonePe.
  • TFT Display: Displays the generated QR codes on a vibrant TFT display, making it easy for users to scan and pay.
  • ESP32 Based: Takes advantage of the versatile and powerful ESP32 microcontroller for efficient processing and connectivity.

Requirements

  • Hardware:

    • ESP32 microcontroller
    • TFT display compatible with the ESP32
  • Libraries:

    • qrcode_espi for QR code generation
    • TFT_eSPI or any other suitable library for controlling the TFT display

Setup and Installation

  1. Hardware Connections:

    • Connect the TFT display to the ESP32 according to the pin configuration mentioned in the library documentation.
  2. Software Setup:

    • Clone this repository.
    • Install the required libraries (qrcode_espi and TFT_eSPI).
    • Obtain your UPI URL details and add them to the code.
  3. UPI URL:

    • Open Google Pay or other UPI services, add any amount and generate a QR code.

      Copy of UPI

    • Scan the generated QR code to obtain the UPI URL. Use QR scanner or scanqr.org.

    • You will get a URL similar to this(sample): upi://pay?pa=zesto@okaxis&pn=Zesto Ryu&am=20.00&cu=INR&aid=uGICvfGNncCpSg.

      UPI

    • Modify the UPI and amount details in the URL to generate dynamic QR codes.

      Code

    • Apply your UPI URL to the code.

  4. Running the Code:

    • Upload the example code to the ESP32 using the Arduino IDE or PlatformIO.
    • Modify the UPI URL with your UPI URL.
    • Ensure the ESP32 is connected to a power source and the TFT display is properly connected.
    • Compile and upload the code.
    • The ESP32 will generate and display the QR code dynamically on the TFT display.

Usage

Once set up, input the required amount via the serial monitor and the TFT display will show a QR code that can be scanned using any UPI-based payment app such as Google Pay, Paytm, or PhonePe. The QR code will direct the payer to the respective payment page, making transactions quick and convenient.

Contributing

Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License.

esp32-dynamic-upi-qr's People

Contributors

ajmalva avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.