diff --git a/draft/boards/mdb2pi-hat.png b/draft/boards/mdb2pi-hat.png new file mode 100644 index 0000000..be5f4ea Binary files /dev/null and b/draft/boards/mdb2pi-hat.png differ diff --git a/draft/overlay/mdb2pi-hat.md b/draft/overlay/mdb2pi-hat.md new file mode 100644 index 0000000..b676279 --- /dev/null +++ b/draft/overlay/mdb2pi-hat.md @@ -0,0 +1,80 @@ + +#MDB2Pi HAT + +The MDB2Pi HAT can serve as an MDB master or as a peripheral MDB Device for Vending Machines (VMC). It takes care of the MDB specific 9-bit format, electrical and timing constraints. It forwards the MDB payload to the Raspberry Pi UART using a simple serial protocol. +The MDB2Pi HAT is powered from the MDB bus (10...42V regulated or unregulated supply) and backpowers the Raspberry Pi with up to 2.5A@5V. Thus no separate power supply is required for the pi. + +##Configuration +1. Enable UART and HAT detection by adding the following lines to /boot/config.txt: +```bash +enable_uart=1 +dtparam=i2c_vc=on +``` + +2. disable serial console output by editing : +```bash +sudo nano /boot/cmdline.txt +``` +--> remove the "console=..." parameter + +##MDB Master Demo: +1. Install mono runtime: +```bash +sudo apt-get install mono-runtime +``` + +2. Get the Demo code: +```bash +wget https://secure.abrantix.com/downloads/MDBConverter/MasterSimulatorConsole.zip +unzip MasterSimulatorConsole.zip +``` + +3. Run the Demo: +```bash +cd MasterSimulatorConsole +mono MDBMasterSimulatorConsole.exe /dev/serial0 115200 +``` +Hint: On newer raspbian releases, the serial port is available as /dev/serial0 - older releases may use dev/ttyAMA0. + + +