Hi DanThe serial on the MDB spec is horrible! It is 9 bit, so not supported by either softwareSerial or even the Arduino hardware library. It is probably not your wiring that is causing you issues! (although you need to make sure you optically isolate the device from the vending machine as it is relatively high voltage)The AVR chip itself natively supports it 9bit serial, so we ypassed the Arduino libraries and used that.All our code is on github:The firmware is here: https://github.com/NottingHack/VendThe main logic for the server side is here: https://github.com/NottingHack/instrumentation/blob/master/cpp/nh-vend.cppIf you have any other questions, feel free to post back, and we'd love to see pictures!James
----
You received this message because you are subscribed to the Google Groups "Nottingham Hackspace - Nottinghack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nottinghack...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Nottingham Hackspace - Nottinghack" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nottinghack/IWPDt1gMi5M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nottinghack...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To post to this group, send email to notti...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Nottingham Hackspace - Nottinghack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nottinghack...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Nottingham Hackspace - Nottinghack" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nottinghack/IWPDt1gMi5M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nottinghack...@googlegroups.com.
To post to this group, send email to notti...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thank you for your response. It was helpful. I have just now been able to get back to looking into this project. I went through the Vend.ino code and I see TXB80, UCSR0B, and UDR0 being used but I am not quite sure where they are defined? I am assuming that UCSR0B and UDR0 are registers within the AVR libraries somewhere?
I was trying to figure out which defines/libraries that are included in your Vend.ino that wouldn't be needed in order to just send/receive MDB commands, as I wouldn't need to communicate with any other components (at this point). I am guessing I can just implement the MDB protocol on the AVR (assuming it has outside power). Is that a false assumption? I don't need to create some fully functioning independent at this point. Just looking to send/receive some test MDB commands from the AVR.
Communications to/from the master are opto-isolated by the 6N137 and the 4N25. So the master GND needs to come though to those ICs.
I think. I actually know very little about the vending machine. That's just what it looks like from the schematic.
So of course it's two seconds after I ask that I spot the overlooked http://wiki.nottinghack.org.uk/images/a/a2/VMC-Nanode_Schematic.png link. :P
On Wednesday, April 16, 2014 10:37:26 AM UTC-7, Dan Royer wrote:Hi Nottinghack!
I have just upgraded the vending machine at the Vancouver Hackspace. The new model supports MDB and I'd like to monkey with that. Someone sent me a video of your RFID hack and so here I am.
I read the pages on your wiki including the implementation details. I'm looking to build a similar device to connect to a Raspberry Pi running inside the vending machine.
I read the MDB 4.2 doc and followed their instructions (p54) to build a two-way serial interface. I set up an Arduino running SoftwareSerial to listen for bits coming from MDB and so far I'm getting nothing.
I could Dark Souls my way through this, but I'm lazy and you've already solved this riddle.
I don't have a nanode yet, but I can fumble my way through building most anything. Would you be willing to share a wiring schematic of your device?
--
You received this message because you are subscribed to the Google Groups "Nottingham Hackspace - Nottinghack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nottinghack...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Nottingham Hackspace - Nottinghack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nottinghack...@googlegroups.com.
To post to this group, send email to notti...@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Nottingham Hackspace - Nottinghack" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nottinghack/IWPDt1gMi5M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nottinghack...@googlegroups.com.
To post to this group, send email to notti...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "Nottingham Hackspace - Nottinghack" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nottinghack/IWPDt1gMi5M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nottinghack...@googlegroups.com.
It's in the header file - same repository
Our VMC is feature level 1, I don't think we ever see an expansion request
Let me check
Matt
To unsubscribe from this group and stop receiving emails from it, send an email to nottinghack+unsubscribe@googlegroups.com.
To post to this group, send email to notti...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Nottingham Hackspace - Nottinghack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nottinghack+unsubscribe@googlegroups.com.
To post to this group, send email to notti...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Nottingham Hackspace - Nottinghack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nottinghack+unsubscribe@googlegroups.com.
To post to this group, send email to notti...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Nottingham Hackspace - Nottinghack" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nottinghack/IWPDt1gMi5M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nottinghack+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Nottingham Hackspace - Nottinghack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nottinghack...@googlegroups.com.
Matt
To unsubscribe from this group and stop receiving emails from it, send an email to nottinghack+unsubscribe@googlegroups.com.
To post to this group, send email to notti...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Nottingham Hackspace - Nottinghack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nottinghack+unsubscribe@googlegroups.com.
To post to this group, send email to notti...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Daniel,thanks a lot for your answer, and yes I'm the one who like a lot stats, really lovely your stats, but it is a long way for me to have that.I had a look over Vend.ino file and it seems that some included files are not located, and not found in your folder, how to make available all included files? I am right now in the point of trying to communicate arduino Mega 2560 with my note validator NV9 Spectral. So after implementing hardware electronics to adapt MDB to TTL what arduino file to use to see first communication with NV9 spectral?thank you,
On Sunday, April 28, 2024 at 11:46:59 AM UTC+3 Daniel wrote:
To view this discussion on the web, visit https://groups.google.com/d/msgid/nottinghack/7ae3edb9-50ba-4b27-a4f1-0ee23b82965dn%40googlegroups.com.