Skip to the content
2 layers39 × 40 mmMdb vmc esp32s3, the printed circuit board in 3D

ESP32-based MDB Vending Machine Controller (VMC) with support for bill validators, coin changers, cashless devices, and EVA-DTS DEX/DDCMP telemetry for vending machine integration and management.

Size
39 × 40 mm
Copper layers
2
Thickness
1.6 mm
Parts
53
Nets
78
Pads
219
Tracks, vias
394, 30
Pours
19
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
26 Jun 2026
Updated
25 Jun 2026

Overview

Mdb vmc esp32s3 is an open-source printed circuit board by hoangminhanhtai, from the hoangminhanhtai/mdb-esp32-master repository on GitHub, published under the MIT licence. It is a 2-layer board of 39 × 40 mm with 53 parts on 78 nets, routed with 394 tracks and 30 vias.

It is built around the ESP32-S3FH4R2, LM2594HVM-3.3 and MT3608, with the TLP785F, MMBT3904 and XL-2121RGBC-2812B among its other parts. Its parts include 16 resistors, 15 capacitors, 5 ICs, 5 connectors and 4 diodes. It belongs with the ESP32 boards of this library.

Main components

6

README

README.md

Discord License: MIT ESP-IDF

VMflow — MDB ESP32 Vending Machine Controller

A micro vending machine controller (VMC) on the ESP32, speaking native MDB to real peripherals.


This project implements the MDB master / Vending Machine Controller (VMC) side of the Multi-Drop Bus protocol. The ESP32 acts as the brain of a micro vending machine: it powers the 9-bit MDB bus and polls real peripherals — coin changer, bill validator, and cashless readers — driving the full deposit → credit → vend → audit cycle. It runs on any ESP32, and ships with a bare-metal KiCad board that provides the sockets and level/current bridges required for MDB.

The board exposes two independent MDB ports — a controller port and a target port. On the controller port the board is the master (VMC): it drives the peripherals — coin changer, bill validator, cashless reader. On the target port the board is a slave: it emulates a peripheral and talks to the vending machine's VMC/master. This firmware uses the controller port.

ESP32-S3 N16R8

Features

  • MDB master / VMC firmware implementing the bus poll loop, ACK/NAK/RET handling, and 9-bit address/mode framing
  • Talks to the standard MDB peripherals:
    • Coin Changer (moedeiro, address 0x08) — setup, tube status, coin-type enable, deposited credit
    • Bill Validator (noteiro, address 0x30) — setup, security, bill-type enable, escrow/stacker
    • Cashless reader #1 (0x10) and #2 (0x60) — reset/setup/poll/vend/reader session flow
  • Combined cash + cashless vend logic: accumulates coin and bill credit, deducts on vend, and reports cash sales back to the cashless device for audit
  • EVA-DTS DEX interface over a dedicated UART for reading machine audit data
  • WS2812 status LED indicating MDB bus state
  • Product-selection button (GPIO0) to trigger a vend on the selected coil
  • Dual MDB ports: drive peripherals as a VMC on the controller port, or act as a peripheral on the target port
  • Bare-metal KiCad hardware: MDB sockets + bridges, designed for low-cost production and customization
  • Part of the open VMflow platform — pairs with the 📊 Web Dashboard for telemetry, sales, inventory, and AI-powered diagnostics

Hardware

The companion board (KiCad project kicad/) carries the ESP32-S3 module and the MDB interface bridge (TX/RX opto-isolation and the 9-bit UART path) plus the peripheral socket. Shared on PCBWay:

👉 MDB ESP32 Bridge Device — PCBWay

MDB VMC ESP32-S3 PCB

PCBWay

MDB ports & pinout (default)

Two MDB ports — name reflects the board's role on each:

PortRXTXBoard roleConnects to
ControllerIO1IO2master (VMC)peripherals: coin changer, bill validator, cashless
TargetIO4IO5slave (peripheral)the vending machine's VMC/master

This VMC firmware uses the controller port (master): peripherals plug in here. The target port lets the board act as a peripheral driven by an external VMC.

Other pins:

SignalGPIONote
MDB state LED21WS2812 status LED
DEX RX18EVA-DTS / DDCMP
DEX TX17EVA-DTS / DDCMP
Vend button0product select (active low)

MDB UART: 9600 baud, 9 data bits (8 data + 1 mode), even parity emulated for the 9th bit, 1 stop bit.

MDB PCB connection diagram

Getting Started

Build with ESP-IDF v5.x:

bash
# Clone the repository
git clone https://github.com/nodestark/mdb-esp32-vending-machine-control
cd mdb-esp32-vending-machine-control

idf.py build flash monitor

Wire the MDB bridge to the peripheral's MDB connector, power the bus, and the VMC starts polling automatically — reset → setup → enable → poll. Press the vend button to attempt a purchase using whichever credit (coin, bill, or cashless) is available.

How to Contribute

  • Contributions are welcome! Open issues, send pull requests, or propose new features
  • Before submitting a pull request, make sure the code complies with the style and quality guidelines defined in the project
  • Help improve documentation by adding usage examples, wiring notes, and peripheral compatibility reports

License

This project is licensed under the MIT License - see the LICENSE file for details.

Parts

53
QtyValueFootprintReferences
50.1uFCapacitor_SMD:C_0603_1608MetricC7, C12, C14, C16, C17
410kResistor_SMD:R_0603_1608MetricR3, R4, R6, R9
31kResistor_SMD:R_0603_1608MetricR1, R10, R32
34K7Resistor_SMD:R_0603_1608MetricR24, R25, R31
3D_SchottkyDiode_SMD:D_SOD-123D1, D3, D5
212pFCapacitor_SMD:C_0603_1608MetricC5, C6
21uFCapacitor_SMD:C_0603_1608MetricC1, C15
222pFCapacitor_SMD:C_0603_1608MetricC18, C22
2470ohmResistor_SMD:R_0603_1608MetricR2, R5
25.1kResistor_SMD:R_0603_1608MetricR7, R8
2MDB_ConnectorConnector_Molex:Molex_Mini-Fit_Jr_5566-06A_2x03_P4.20mm_VerticalJ1, J9
2TLP785Package_SO:SOP-4_3.8x4.1mm_P2.54mmU1, U4
11.8pfCapacitor_SMD:C_0603_1608MetricC4
1100uFCapacitor_SMD:CP_Elec_6.3x5.8C3
1100uHInductor_SMD:L_7.3x7.3_H3.5L2
110uFCapacitor_SMD:C_0603_1608MetricC13
1110kResistor_SMD:R_0603_1608MetricR28
115kResistor_SMD:R_0603_1608MetricR26
12.4nhInductor_SMD:L_0603_1608MetricL1
1220uFCapacitor_Tantalum_SMD:CP_EIA-3528-21_Kemet-BC2
14.7uFInductor_SMD:L_APV_ANR3015L5
1Conn_01x04_PinConnector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_VerticalJ8
1Conn_CoaxialConnector_Coaxial:U.FL_Hirose_U.FL-R-SMT-1_VerticalJ4
1Crystal_GND24Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1ESP32-S3FH4R2Package_DFN_QFN:QFN-56-1EP_7x7mm_P0.4mm_EP4x4mmU3
1FerriteBead_SmallInductor_SMD:L_0603_1608MetricFB2
1LM2594HVM-3.3Package_SO:SOIC-8_3.9x4.9mm_P1.27mmU5
1MMBT3904Package_TO_SOT_SMD:SOT-23Q8
1MT3608Package_TO_SOT_SMD:SOT-23-6U7
1MountingHoleMountingHole:MountingHole_2.1mmH1
1SW_PushButton_Switch_SMD:SW_Tactile_SPST_NO_Straight_CK_PTS636Sx25SMTRLFSSW1
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_G-Switch_GT-USB-7010ASVJ2
1XL-2121RGBC-2812BLED_SMD:LED_WS2812B-2020_PLCC4_2.0x2.0mmD4

Similar boards

  • 2 layers39 × 40 mmMdb slave esp32s3, the printed circuit board in 3D

    Mdb slave esp32s3

    nodestark/mdb-esp32-cashless

    ESP32-based MDB cashless device for vending machines, supporting EVA DTS DEX/DDCMP telemetry and payments over the MDB protocol via Bluetooth and MQTT

    46 parts190MIT
  • 4 layers25.4 × 60 mmESP32S3 RF DevBoard, the printed circuit board in 3D

    ESP32S3 RF DevBoard

    lilnetty43/esp32-s3-rf-devboard_akel

    This project is a custom 4-layer development board built around the ESP32-S3. I designed the board to expand my PCB design experience into an RF-aware layout, multi-layer stackup design, controlled-impedance USB…

    35 parts
  • 6 layers38.5 × 33 mmPress CPU, the printed circuit board in 3D

    Press CPU

    Alexandr-Filatov/Press_CPU

    104 parts
  • 2 layers53 × 47.1 mmHot Swap, the printed circuit board in 3D

    Hot Swap

    ivanhorombe/Voltage-Regulator-FSAE

    Designed a voltage regulation PCB for racecar.

    22 parts
  • 4 layers61.2 × 44.1 mmSTM32+Codec, the printed circuit board in 3D

    STM32+Codec

    Nothingbutthebest1209/STM32F_Audio_Codec_PCB

    This project is designed to interface STM32F405 with the audio codec WM8731. The board supports the development of audio applications.

    70 parts
  • 2 layers50.8 × 76.2 mmSwitcher, the printed circuit board in 3D

    Switcher

    dennisss/dacha

    Monorepo for awesome tools/projects/libraries

    20 parts397Apache-2.0
  • 4 layers50 × 58.5 mmLed spot, the printed circuit board in 3D

    Led spot

    ervanalb/lux

    Light control protocol

    53 parts8
  • 2 layers100.7 × 24.1 mmPCauslese, the printed circuit board in 3D

    PCauslese

    stonedDiscord/Automatenplatinen

    Reverse engineerte Hardware aus deutschen Spielautomaten.

    41 parts5BSD-2-Clause

Questions

How big is the Mdb vmc esp32s3 PCB?

It measures 39 × 40 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Mdb vmc esp32s3 use?

53 parts, built around the ESP32-S3FH4R2, LM2594HVM-3.3, MT3608 and TLP785F. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Mdb vmc esp32s3 KiCad files?

From the hoangminhanhtai/mdb-esp32-master repository on GitHub, at the commit this page was made from: the board is kicad/mdb-vmc-esp32s3.kicad_pcb and its schematic kicad/mdb-vmc-esp32s3.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Mdb vmc esp32s3 design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).