Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.66 KB

README.md

File metadata and controls

31 lines (19 loc) · 1.66 KB

System Hardware for Contactless Payment with Blockchain System

This code is created with PlatformIO from Visual Studio Code, this code also uses C/C++ as the main language. In this project, there are other libraries from other authors such as TFT_eSPI, MFRC522, DFRobotDFPlayerMini, and OneButton. These libraries are very helpful to run this code optimally. This code is specific for ESP32 Wroom 32 or other name is ESP32 Dev Board / DOIT DEVKIT V1, if you use other board make sure the pins on the board are not conflicting.

You need to add the mqtt host, mqtt port, mqtt username, and mqtt password in the .env file. You can create an account at https://hivemq.com

const char
    *mqtt_server = "xxxxxxxx.hivemq.cloud",
    *mqtt_user = "xxxxxxxxxx",
    *mqtt_password = "xxxxxxxxxx",

Installation

Download or Clone this repository. After that you open it with Visual Studio Code, where visual studio code already has PlatformIO, if you don't have PlatformIO you can use the arduino application with a different configuration.

Running the code

If you want to run this code, your first step is to build this code and make sure this code does not occur a problem, after you build this code, then you can upload this code to the hardware using USB TTL.

Scematic the Hardware

You can use this Scematic for build the hardware system with another device sensor

Schematic Boardview

Tech Stack

System: C, C++