News on my MDB projects

2013-11-10 ยท 354 words ยท 2 minute read

Because i’ve got a lot of emails during the last year with several questions about my MDB projects, i try to answer them here.

The MateDealer, what is it exactly? ๐Ÿ”—

I’ve called my main MDB project MateDealer because my vending machine primary vends Club Mate . It is a (incomplete) implemetation of a Cashless Device, which is a slave on the MDB bus. The master on the MDB bus is always a Vending Machine Controller.

Can i connect a Coin Acceptor to the MateDealer? ๐Ÿ”—

No, because the MateDealer as well as the Coin Acceptor are both MDB slaves.

What does the MDB bus structure looks like? ๐Ÿ”—

The VMC frequently polls all slaves on the bus and the slaves answer with a specified answer depending if the slave has something to tell or just confirm that its alive. No slave sends anything on the bus without geting asked to do so by the VMC.

What does the MDB setup of a vending machine typically looks like? ๐Ÿ”—

Every Vending Machine has exactly one VMC, furter more it hat one or more MDB slaves, the most common are Coin Acceptors and Bill validators. The VMC controls all the hardware, the motors dispense the products, the push buttons for the product selection, the display and so on. A Coin Acceptor for example just have the job of verifying the coins and tell the VMC what types/values of coins have been inserted.

What Arduino do i need to upload the MateDealer software? ๐Ÿ”—

I’ve just tested it on a Arduino Mega 2560, because this is the only Arduino (as far as i know) that provides more that 1 Hardware UART.

How can i compile and upload the software to the Arduino? ๐Ÿ”—

I assume that you’re using a linux OS. (sorry Windows users ;-) )

git clone https://github.com/Bouni/MateDealer
cd MateDealer
make all
make program

You need some tools to do theese steps

  • git
  • avr-libc
  • gcc-avr
  • avrdude

Do i need the Arduino bootloader? ๐Ÿ”—

You don’t need to change anything on the Arduino, just use it as you unboxed it.

Other questions? ๐Ÿ”—

Feel free to post a comment, or send me an email.