
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

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.
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.
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.

0x08) — setup, tube status, coin-type enable, deposited credit0x30) — setup, security, bill-type enable, escrow/stacker0x10) and #2 (0x60) — reset/setup/poll/vend/reader session flowThe 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

Two MDB ports — name reflects the board's role on each:
| Port | RX | TX | Board role | Connects to |
|---|---|---|---|---|
| Controller | IO1 | IO2 | master (VMC) | peripherals: coin changer, bill validator, cashless |
| Target | IO4 | IO5 | slave (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:
| Signal | GPIO | Note |
|---|---|---|
| MDB state LED | 21 | WS2812 status LED |
| DEX RX | 18 | EVA-DTS / DDCMP |
| DEX TX | 17 | EVA-DTS / DDCMP |
| Vend button | 0 | product select (active low) |
MDB UART: 9600 baud, 9 data bits (8 data + 1 mode), even parity emulated for the 9th bit, 1 stop bit.
Build with ESP-IDF v5.x:
# Clone the repository
git clone https://github.com/nodestark/mdb-esp32-vending-machine-control
cd mdb-esp32-vending-machine-control
idf.py build flash monitorWire 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.
This project is licensed under the MIT License - see the LICENSE file for details.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 5 | 0.1uF | Capacitor_SMD:C_0603_1608Metric | C7, C12, C14, C16, C17 |
| 4 | 10k | Resistor_SMD:R_0603_1608Metric | R3, R4, R6, R9 |
| 3 | 1k | Resistor_SMD:R_0603_1608Metric | R1, R10, R32 |
| 3 | 4K7 | Resistor_SMD:R_0603_1608Metric | R24, R25, R31 |
| 3 | D_Schottky | Diode_SMD:D_SOD-123 | D1, D3, D5 |
| 2 | 12pF | Capacitor_SMD:C_0603_1608Metric | C5, C6 |
| 2 | 1uF | Capacitor_SMD:C_0603_1608Metric | C1, C15 |
| 2 | 22pF | Capacitor_SMD:C_0603_1608Metric | C18, C22 |
| 2 | 470ohm | Resistor_SMD:R_0603_1608Metric | R2, R5 |
| 2 | 5.1k | Resistor_SMD:R_0603_1608Metric | R7, R8 |
| 2 | MDB_Connector | Connector_Molex:Molex_Mini-Fit_Jr_5566-06A_2x03_P4.20mm_Vertical | J1, J9 |
| 2 | TLP785 | Package_SO:SOP-4_3.8x4.1mm_P2.54mm | U1, U4 |
| 1 | 1.8pf | Capacitor_SMD:C_0603_1608Metric | C4 |
| 1 | 100uF | Capacitor_SMD:CP_Elec_6.3x5.8 | C3 |
| 1 | 100uH | Inductor_SMD:L_7.3x7.3_H3.5 | L2 |
| 1 | 10uF | Capacitor_SMD:C_0603_1608Metric | C13 |
| 1 | 110k | Resistor_SMD:R_0603_1608Metric | R28 |
| 1 | 15k | Resistor_SMD:R_0603_1608Metric | R26 |
| 1 | 2.4nh | Inductor_SMD:L_0603_1608Metric | L1 |
| 1 | 220uF | Capacitor_Tantalum_SMD:CP_EIA-3528-21_Kemet-B | C2 |
| 1 | 4.7uF | Inductor_SMD:L_APV_ANR3015 | L5 |
| 1 | Conn_01x04_Pin | Connector_JST:JST_PH_B4B-PH-K_1x04_P2.00mm_Vertical | J8 |
| 1 | Conn_Coaxial | Connector_Coaxial:U.FL_Hirose_U.FL-R-SMT-1_Vertical | J4 |
| 1 | Crystal_GND24 | Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm | Y1 |
| 1 | ESP32-S3FH4R2 | Package_DFN_QFN:QFN-56-1EP_7x7mm_P0.4mm_EP4x4mm | U3 |
| 1 | FerriteBead_Small | Inductor_SMD:L_0603_1608Metric | FB2 |
| 1 | LM2594HVM-3.3 | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U5 |
| 1 | MMBT3904 | Package_TO_SOT_SMD:SOT-23 | Q8 |
| 1 | MT3608 | Package_TO_SOT_SMD:SOT-23-6 | U7 |
| 1 | MountingHole | MountingHole:MountingHole_2.1mm | H1 |
| 1 | SW_Push | Button_Switch_SMD:SW_Tactile_SPST_NO_Straight_CK_PTS636Sx25SMTRLFS | SW1 |
| 1 | USB_C_Receptacle_USB2.0_16P | Connector_USB:USB_C_Receptacle_G-Switch_GT-USB-7010ASV | J2 |
| 1 | XL-2121RGBC-2812B | LED_SMD:LED_WS2812B-2020_PLCC4_2.0x2.0mm | D4 |

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

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…



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.



stonedDiscord/Automatenplatinen
Reverse engineerte Hardware aus deutschen Spielautomaten.
It measures 39 × 40 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
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).