Difference between revisions of "CokeVendingMachine"

From Hackerspace ACKspace
Jump to: navigation, search
m (Fixed some formatting of the images)
m (Machine is gone)
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{Project
 
{{Project
|State=Active
+
|Featured=No
|Members=CoolePascal, Sandor, Stuiterveer, Wirexbox, Vicarious
+
|State=Impossible
|Description=Awesome lighting for vending machine (Removed)
+
|Members=Coolepascal, Sandor, Stuiterveer, Wirexbox, Vicarious
Getting the vending machine to work! (In progress)
+
|Description=Awesome lighting for vending machine
 +
Getting the vending machine to work!
 
|Picture=CokeVendingMachine.jpg
 
|Picture=CokeVendingMachine.jpg
 
}}
 
}}
<noinclude>{{featured}}</noinclude>
+
At the ACKspace building one of the tenants found a CocaCola vending machine. After consulting CocaCola as well as the caretaker, the machine got a new owner who selled drinks at the profit of all tenants. However, the fluorescent lighting of the machine was broken. So we decided it might be fancier to replace the fluorescent lamps by multicolor, ledstrips.
  
At the ACKspace building one of the tenants found a CocaCola vending machine. After consulting CocaCola as well as the caretaker, the machine got a new owner who sells drinks at the profit of all tenants. However, the fluorescent lighting of the machine was broken. So we decided it might be fancier to replace the fluorescent lamps by multicolor, ledstrips.  
+
[[User:Coolepascal|CoolePascal]] created a small pcb with an Atmega328 and a few IRF510 powerfets connected to the pwm outputs of the micro controller.
  
I created a small pcb with an Atmega328 and a few IRF510 powerfets connected to the pwm outputs of the micro controller.
+
PLEASE NOTE: the above was an old setup that was taken out by someone unknown.
  
 +
In the meantime we will keep the old situation documented here.
  
 
<div style="border: none; padding: 1ex; text-align:center; background: ;">
 
<div style="border: none; padding: 1ex; text-align:center; background: ;">
Line 17: Line 19:
 
</div>
 
</div>
  
The project has been revisited by other members to get the machine to work.
+
The project had been revisited by other members to get the machine to work.
Currently we found out that you are able to access more options if you set/enter the passcode (See inside of machine).
+
We found out that you were able to access more options if you set/entered the passcode (See inside of machine).
The idea is to use an iButton reader OR barcode scanner (Implementation of the AckBar software) as a replacement of the technologically obsolete value that is called cash money. Mechanically the machine is working, it is just the software that needs to be edited (and in the case problems ARE found, they need to be fixed.).
+
The idea was to use an iButton reader OR barcode scanner (Implementation of the [[ACKbar]] software) as a replacement of the technologically obsolete value that is called cash money. Mechanically the machine is working, it is just the software that needs to be edited (and in the case problems ARE found, they need to be fixed.).
  
[[File:AckCola.jpeg|thumb|Machine internal]]
+
<gallery>
[[File:Cokeinternal.jpg|thumb|Filled machine]]
+
File:AckCola.jpeg|Machine internal
 +
File:Cokeinternal.jpg|Filled machine
 +
</gallery>
  
There has been found some documentation for the machine [[File:Merliniv.pdf]] from the following [http://royalvendors.com/customer-service/technical-info/manuals/manuals-vendors/ link location]. The site itself is ''probably'' the same site as the manufacturer.
+
The manual for the vending machine is found on [http://royalvendors.com/customer-service/technical-info/manuals/manuals-vendors/ the Royal Vendors website] ([http://royalvendors.com/wp-content/uploads/2014/01/giii230.pdf direct link]), the manual itself is also found one the wiki for archival's sake: [[File:GIII.pdf]].  
  
  
Line 33: Line 37:
 
*Do you need to get into the developer menu? Press the '''red''' button after opening the machine.
 
*Do you need to get into the developer menu? Press the '''red''' button after opening the machine.
 
*Is an option not showing in the menu? Enter the '''passcode'''.
 
*Is an option not showing in the menu? Enter the '''passcode'''.
*Did you press a button but get a different drink? Make sure the '''Space-to-Sales''' setting is at option '''#7'''.
+
*Did you press a button but get a different drink? Make sure the '''Custom Space-to-Sales''' setting is set to match the information below.
 
*The rear columns need the bottlecaps facing towards the backplate, the front columns need the bottlecaps facing the opposite (the backs of the bottles facing each other).
 
*The rear columns need the bottlecaps facing towards the backplate, the front columns need the bottlecaps facing the opposite (the backs of the bottles facing each other).
  
Which bottle goes where inside the machine:
+
Which bottle went where inside the machine:
*Spot 1,2,3 = Normal Mate
+
 
*Spot 4,5 = Mate Ice-T
+
{| class="wikitable"
*Spot 6 =
+
!|Button||Column||Drink
*Spot 7 = Coca Cola
+
|-
*Spot 8 = Coca Cola Zero
+
|1||1,2||Mate Regular
*Spot 9 = Fanta
+
|-
*Spot 10 = Premium Cola (33Cl)
+
|2||4,5||Mate Ice-T
*Spot 11 = Sprite
+
|-
*Spot 12 = Water ''Deluxe''
+
|3||6||Mate Granat
 +
|-
 +
|4||7||Coca Cola
 +
|-
 +
|5||8||Coca Cola Zero
 +
|-
 +
|6||9||Fanta
 +
|-
 +
|7||3||Premium Cola (0,5l)
 +
|-
 +
|8||11||Sprite
 +
|-
 +
|9||10||Water
 +
|-
 +
|10||12||Magic coding elixir - 18+, username was needed
 +
|}
 +
 
 +
===Raspberry Pi===
 +
We had connected a Raspberry Pi to the internals of the machine. A very simple script was running which enabled you to send GET requests in order to retrieve a drink. To do this, you needed to be connected to the ACKspace network. Connecting to http://vendingmachine:8080 in the browser gave you a JSON response which contained the buttons that were set up and the drinks that were linked to the buttons. When you wanted to "press" button 1 on the machine you needed to visit http://vendingmachine:8080?button=1. The physical buttons still work.

Latest revision as of 16:37, 6 March 2020

Project: CokeVendingMachine
Featured: No
State Impossible
Members Coolepascal, Sandor, Stuiterveer, Wirexbox, Vicarious
GitHub No GitHub project defined. Add your project here.
Description Awesome lighting for vending machine

Getting the vending machine to work!

Picture
CokeVendingMachine.jpg

At the ACKspace building one of the tenants found a CocaCola vending machine. After consulting CocaCola as well as the caretaker, the machine got a new owner who selled drinks at the profit of all tenants. However, the fluorescent lighting of the machine was broken. So we decided it might be fancier to replace the fluorescent lamps by multicolor, ledstrips.

CoolePascal created a small pcb with an Atmega328 and a few IRF510 powerfets connected to the pwm outputs of the micro controller.

PLEASE NOTE: the above was an old setup that was taken out by someone unknown.

In the meantime we will keep the old situation documented here.

The project had been revisited by other members to get the machine to work. We found out that you were able to access more options if you set/entered the passcode (See inside of machine). The idea was to use an iButton reader OR barcode scanner (Implementation of the ACKbar software) as a replacement of the technologically obsolete value that is called cash money. Mechanically the machine is working, it is just the software that needs to be edited (and in the case problems ARE found, they need to be fixed.).

The manual for the vending machine is found on the Royal Vendors website (direct link), the manual itself is also found one the wiki for archival's sake: File:GIII.pdf.


Some small troubleshooting steps and basic measures.

  • Is something sold out? Refill and close the machine.
  • Is it still sold out? Close the machine again.
  • Do you need to get into the developer menu? Press the red button after opening the machine.
  • Is an option not showing in the menu? Enter the passcode.
  • Did you press a button but get a different drink? Make sure the Custom Space-to-Sales setting is set to match the information below.
  • The rear columns need the bottlecaps facing towards the backplate, the front columns need the bottlecaps facing the opposite (the backs of the bottles facing each other).

Which bottle went where inside the machine:

Button Column Drink
1 1,2 Mate Regular
2 4,5 Mate Ice-T
3 6 Mate Granat
4 7 Coca Cola
5 8 Coca Cola Zero
6 9 Fanta
7 3 Premium Cola (0,5l)
8 11 Sprite
9 10 Water
10 12 Magic coding elixir - 18+, username was needed

Raspberry Pi

We had connected a Raspberry Pi to the internals of the machine. A very simple script was running which enabled you to send GET requests in order to retrieve a drink. To do this, you needed to be connected to the ACKspace network. Connecting to http://vendingmachine:8080 in the browser gave you a JSON response which contained the buttons that were set up and the drinks that were linked to the buttons. When you wanted to "press" button 1 on the machine you needed to visit http://vendingmachine:8080?button=1. The physical buttons still work.