Difference between revisions of "Projects/RFIDpop"

From ENTS
Jump to: navigation, search
(Notes)
Line 107: Line 107:
  
 
Need to also write up how to properly load product or else bad things happen
 
Need to also write up how to properly load product or else bad things happen
 +
 +
A large number of vending machines use the same interface for the 'credit' function.  This project can be easily adapted to other models of vending machines.  Could be useful for other hackerspaces.
  
 
== Code Repository ==
 
== Code Repository ==
  
 
Code is GPLv2 and available on Github at [https://github.com/renderlab/ENTS-Pop-Pi https://github.com/renderlab/ENTS-Pop-Pi]
 
Code is GPLv2 and available on Github at [https://github.com/renderlab/ENTS-Pop-Pi https://github.com/renderlab/ENTS-Pop-Pi]

Revision as of 11:03, 4 November 2013

Contents

RFID Enabled Pop Machine AKA Project "Pop-pi"

History

After the kind donation of a 70'sish Coca-Cola Vending machine, we started tearing into it to get it working. While there were a few issues off the start, it's in good mechanical order and tests showed it's power consumption was >50% less than the existing smaller pop machine in the space.

One major problem was that the coin mechanism would not accept newer loonies and toonies. A replacement mechanism would be $200 or more. A bit pricy for a starving hackerspace, so we are doing what all good hackers do, overengineer a solution with parts at hand. In this case, utilize the door RFID tags the members have anyways and use them to debit from a pre paid pop account.

Mechanics

The machine is a Vendo V384. Soda-Machines.com

Oricanus did much of the work to figure out the mechanics of the machine and how to bypass the coin mech to allow us to dispense product. It's actually very easy. On the connector to the coin mech, short pins 1-7 together (all the time) and then momentarily contact pins 1-3 and then make your selection.

The original coke sign is a plexiglass insert, easily replaced. Behind it is a florecent ballast with a 120v supply line running to it.

Photo of the internal electromechanical schematic: Media:RFIDpop_mech_schematic.jpg

Feature Roadmap

Planned and Implemented features.

Feature Description Planned Version Implemented Version
example 1 no

V1

Version 1 is to basically setup the nessecary hardware to replace the coin mech and to use the RFID tags to debit from an account with little or no modification to the existing electro mechanical dispensing system. Various options were considered but parts on hand and flexibility came together in the following:

  • Raspberry Pi (Render)
  • Parallax Serial RFID Reader (Render)
  • TTL level shifter for 5v RFID reader to talk to 3.3v Pi serial gpio pins (Colin)
  • Solid state relay board (on order)
  • HDMI to DVI Adapter (Render)
  • Random LCD monitor from around the space
  • Powered USB hub (Render)


Current goals: Users provide cash or paypal to director who adds to account for thier tag via web interface or 'credit' tags on the pi.

On scan, Pi checks database for balance. If sufficient balance, deduct $1 and dispense product. If insufficent balance, then display an unhappy message . Once product is dispensed display the username and balance remaining for 15 seconds. When 'idle' the screen will goto a slide show of comical and ficticious beverages (Duff, Slurm, Nukacola, etc)

Curent Status: In prototype. RFID via GPIO working. GPIO relay control working. Rough software proof of concept working.

To-Do:

  • Clean machine mechanics. Lube everything inside. Test all mechanics
  • Paypal integration
  • Web Front End for manual account balance adjustment
  • Custom graphics for sides, front
  • Custom made circut boards for sturdy integration

V2

Feature requests/ideas:

  • Product remaining display
  • Tie in with mastercontrol
  • Ability to paypal monies directly to the pi to increase balance (or user added code via web interface)
  • Random dispense mode (slot machine)
  • Ability to dispense products at different prices (water $.25, beer $5)
  • Consumption graphs


Useful Links

http://www.susa.net/wordpress/2012/06/raspberry-pi-relay-using-gpio/

http://soda-machines.com/index.php?option=com_content&task=view&id=554&Itemid=14

http://stackoverflow.com/questions/372885/how-do-i-connect-to-a-mysql-database-in-python

http://www.sundh.com/blog/2013/09/connect-parallax-rfid-to-raspberry-pi/

http://zetcode.com/db/mysqlpython/

http://openmicros.org/index.php/articles/94-ciseco-product-documentation/raspberry-pi/217-getting-started-with-raspberry-pi-gpio-and-python

Notes

Power is no problem. The existing light ballast for the original backlight is 120v line that is perfectly placed to power everything.

There is lots of room to mount everything behind plexiglass on the outer door or against the inner door. Approximatly 4" depth is available

Need to also write up how to properly load product or else bad things happen

A large number of vending machines use the same interface for the 'credit' function. This project can be easily adapted to other models of vending machines. Could be useful for other hackerspaces.

Code Repository

Code is GPLv2 and available on Github at https://github.com/renderlab/ENTS-Pop-Pi

Personal tools
Namespaces

Variants
Actions
Navigation
Members
Toolbox