
MDB-RS232 Interface Adapter for MDB Coin Changer Bill Acceptor and MDB card reader
Page 3 of 12 http://www.waferlife.com
(2) Power connector for AC/DC power supply (Normally we use the DC24V)
(3) MDB connector to bill acceptor,coin validator or card reader
(4) GPIO to Raspberry Pi board (Use RXD, TXD, GND and Ouput 5V to Raspberry pi)
(5) Serial port to PC (Can use this port to test with PC software)
Installation is relatively simple; there are only three connections that must be made for full
functioning of the device. There are connectors on the MDB adapter box.:
One cable plugs into a 24VDC power supply. (When connecting the DC24V power supply,
there is no need to consider the specific polarity. The 6-pin Molex connects to the MDB devices.
The final connector is a DB-9 and connects into the back of the computer or any other main
board with RS232 port. There should be an open port on the back of the computer labeled
“SERIAL2” or “COM2.” If you only has the USB port on your computer,then would be easy for
you to order a RS232/USB adapter.
For MDB-RPI board,has two serial port to PC and also to Raspberry pi board GPIO.Also it
will supply the DC5V voltage for Raspberry pi board.
After connected the device,and then Apply power on with DC24V. Check for “Power Status”
LED on the box (RED led) indicating power is OK.
If the MDB device is properly connected and working properly,then the “MDB Status” LED
should start to flash.
On the MDB-RS232 box also has another “PC Communication” LED,that would be flashing if
has any data sendt from MDB-RS232 box to PC.
Software
The MDB-RS232 sends information generated by the MDB device directly to the PC via RS-232
serial communication. There is no need to poll each MDB device. This is done by the
MDB-RS232. By default the MDB-RS232 will poll all known MDB devices. The MDB-RS232 then
sends data to the PC if there is activity. The information sent to the PC is send as bytes in
hexadecimal. For activity data,the first byte sent is the device ID. For example 30 XX means that
a bill validator has sent information. Whereas 08 XX means that a coin mechanism has sent data.
Consult the MDB V4.2 command specification for commands specific to your MDB device.