Skip to content

Moken-Dapp-XRP/embedded

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

QR Code embedded

Overview

This project involves a QR code reading and control system using a combination of K210, ESP32, and ESP01 modules. The K210 reads QR codes and communicates the data to an ESP32 via serial UART. The ESP32 then sends this data to an MQTT topic. An ESP01 subscribed to this MQTT topic controls a relay module based on the received MQTT messages. overview

Demo

TODO

Components

Wiring Diagram

K210 to ESP32 Connection:

  • K210 Ports:
    • TX = 10
    • RX = 15
  • ESP32 Ports:
    • RX2 = 16
    • TX2 = 17

ESP01 Setup:

  • ESP01 Ports:
    • Relay = 0

Data Flow:

  • K210 reads QR codes and sends data to ESP32 via UART.
  • ESP32 forwards QR code data to MQTT topic.
  • ESP01 listens to MQTT topic and controls a relay based on the topic's messages.

MQTT Topic Interaction

  • Publisher: ESP32 sends QR code data.
  • Subscriber: ESP01 subscribes and reacts to the MQTT topic.

Relay Module

  • Connected to ESP01.
  • Controls a Mini Solenoid Electronic Lock (12V).

Getting Started

  1. Connect the K210 to ESP32 using UART (K210 TX to ESP32 RX2, and K210 RX to ESP32 TX2).
  2. Connect the relay module to the ESP01.
  3. Set up the MQTT broker and configure the ESP32 and ESP01 to connect to it.
  4. Add credentials for the MQTT broker and wifi, using the credentials.hpp.template file founded in publisher/host and subscriber/host.
  5. Deploy the code to each module.
  6. Scan a QR code with the K210.
  7. The QR code data should be sent to the MQTT topic and the ESP01 should react to it by controlling the relay module.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published