RFID Enabled Pop Machine AKA Project "Pop-pi"
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.
Want to help out? Interested in learning something new and expanding your skill set? Have a cool idea you want to include into the project?
Join the Pop-PI project! Do you know PHP, would you like to learn PHP?
Display Design - ART - Replace the coke sign with a plexiglass version, needs to be able to show a screen. Screen Saver - Screen saver that would display fake ad's Screen mount - Mount a monitor to the outer door Outer Shell Design - self explanatory PHP Web Interface - only needs to interface with Pay Pal and save transaction records in the database
The machine is a Vendo V384. Soda-Machines.com
Orcinus 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
With the participation and collaboration of the ents membership, bring the donated Pop machine back into service.
To provide a project for multiple members to collaborate together to create a near 0 administration pop machine/pop account tracking system.
To create a low hassle method of buying caffeine.
To promote more collaborative team building projects within the membership that cross disciplines and foster education and participation.
Planned and Implemented features, if you would like to participate or learn about any of the features contact the people who are associated with the feature or talk to one of us.
|Read RFID||Ability to read members's RFID tag||1||Yes||Render, Colin|
|Credit Vending Machine||Ability to credit the vending machine to allow the dispencing of caffeene||1||Yes|
|Track Member Account||Ability to track member's pop account balance||1||Yes||Colin|
|Deduct From Member Account||Ability to deduct a credit from a members's account balance||1||Yes||Colin|
|Email Balance to Member||Ability to email a balance to a member's account from email@example.com||2||No||Render, Colin|
|Member Account Top Up||Ability to top up a members account.||2||No||Colin|
|Pay Pal Top Up||Ability to top up a members account from paypal payment||TBD||No|
|Video Display Balance||Video display member balance information||3||No|
|Video Advertizing||Make use of the video monitor for displaying ad's||4||No|
|Mounting Brackets||3D Printed Mounting Brackets Modeled to hold the PI and Relay||2||No|
|RFID Mounting||3D Printed Mounting Brackets Modeled to hold the RFID where the Change was inserted.||3||No|
|Bitcoin Payments||Have the ability to take bitcoin payments.||TBD||No|
|Speaker Feedback||Make use of the audio jack on the pi to output auditory feedback on payment.</br>
Sounds to be determined. (Lottery Machine noises, Portal Sounds)
|Motion Detector||Make use of a motion detector as a type of Occupancy sensor for the display screen as well as feedback on when to enable/disable the rfid reader.||TBD||No|
API to interface to paypapal.
3D Printed mount for the RFID reader.
Pop Level Management.
Include a web cam to be hosted on live hacker spaces. "Live from the pop machine!"
PI Pinout Assignments
|3v3 to LV on Logic Converter||1||2||5V to HV on logic converter|
|3||4||5V to + on Relay|
|7||8||GND to Logic Converter|
|9||12||To S on Relay|
|Id||int||auto increment id for the account table|
|RFID||varchar||decimal value of the member's rfid|
|varchar||used to email users when their account is low|
Fritzing can be found at http://fritzing.org/download/
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 running Raspian 2013-09-25 (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.
Curent Status: In prototype: Replacement plexiglass for front obtained. 3d printed mount made for all hardware, first test on the actual pop machine with prototype Pi setup was a success!
RFID via GPIO working. GPIO relay control working. Rough software proof of concept working.
- 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
- 3d print mounting brackets once layout confirmed
- 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
Power is no problem. The existing light ballast for the original backlight is 120v line that is perfectly placed to power everything.
Need to also write up how to properly load product or else bad things happen
Code is GPLv2 and available on Github at https://github.com/renderlab/ENTS-Pop-Pi