MDB Products
Released
MDB Charge
The MDB Charge is a simple shell script that request the amount from the customer. It can run in any OS and can be used with the Pi Hat or MDB USB (all versions)
Info
Download the scrip from here
How to run the script
python rqvend.py <price> <product_id> <timeout> <serial_port>
Example
python rqvend.py 1 2 20 /dev/ttyACM0
Arguments
price - Price of the product
product_id - Product id in the product list
timeout - Time (in seconds) that the function waits for the confirmation of the vend before issuing a timeout error
serial_port - Serial port to which the device is connected. This parameter is optional. If not specified it defaults to /dev/ttyAMA0
Wiring
Warning
Please NEVER connect MDB Cables with the machine turned on, this can damage both devices

Last updated on
(C) 2024 Qibixx AG - contact us with any questions: info@qibixx.com
Getting Started
MDB Developers' Playground - Code Samples and Examples
Downloads