Introduction: Make Money With Arduino

Picture of Make Money With Arduino

**** ENTERED IN THE HURRICANE LASERS CONTEST****
What would I do with a Laser Cutter? Build Simple Robotic Kits to teach people a Hobby that I Love.

Ever wanted to make some money from your projects?
This Instrutable will show you how to Simply interface a coin selector with your Adruino.
And also how to then connect that to your Visual C# Project.
Then it's all up to you and that great idea you have, if it's electronic or a program/game,
The Buck Starts Here.


You will need:
A Coin Selector: There are many different type's, the CH-926 accepts the most amount of coins so thats what I'll be using.
UK Stock, US Stock

Any 12v Power Supply, Batteries or Wall Wart.

An Arduino UNO

Microsoft Visual Express 2010 C#: Free Download, Scroll down until you see the correct option.
Note: Only needed for a coin operated Program, Not electronics Projects.

Let's get Started!

Step 1: Coin Sampling

Picture of Coin Sampling

For your Coin Selector to know what type of coins it accepts, you have to set it up and then feed it samples of those coins.
It is recommend to sample at least 15 coins of the same type, up to a maximum of 30. Don't feed the same coin through 30 times, it's make the selector to fussy about what it accepts.

A Coin Selector works by comparing the material, weight and size of coins past through it to the samples you provide. If a coin is not reconised it drops out the return slot, if it is reconised the Unit sends out pulse's on the "COIN" line.
So to make it easier for the programming side we use a "greatest common factor" rule.
eg. We'll use the following coins (UK) 5p, 10p, 20p, 50p,& £1, (US) 5c, 10c, 25c, 50c & $1.
All the the coins can be made up with multiple 5p or 5c coins, so we make 1 pulse equal to 5p or 5c.
5p/c = 1 pulse, 10p/c = 2 pulses, 20p = 4 pulses, 25c = 5 pulses, 50p/c = 10 pulses, £/$1 = 20 pulses.

Now, TheSetup:

First the switches...
select "NC" by sliding the top switch to the bottom position.
select "FAST" by sliding the bottom switch to the top position.

Power Up the unit with a 12v supply.

1. Hold the "ADD" and "MINUS" buttons down at the same time for about 3 seconds, release and then the letter "A" will appear on the LED display.
2. Press the "SETUP" button once, and the letter "E" will appear. Then use the "ADD" and "MINUS" buttons to choose how many kinds of coins your going to use. Press the "SETUP" button again to finish.
3. The letter "H" will appear. Use the "ADD" and "MINUS"buttons to choose how many sample coins your going to feed it later. Press the"SETUP" button again to finish.
4.  The letter "P" will appear. Again use the "ADD" and "MINUS" buttons to choose the amount of output pulses you want. Press the "SETUP" button to finish. Refer to the above example to determine number of pulses.
5.  The letter "F" will appear. Using the "ADD" and "MINUS" buttons, choose the accuracy. The value is from 1 to 30, with 1 being the most accurate. I use 10 and it works fine. Again "SETUP" to finish.

You have now setup the first coin, depending on how many coins you selected in step 2, you'll have to repeat Step's 3 to 5 for each one.
The letter "A" will appear when you've setup all the coins. Hold "SETUP" for 3 seconds to finish, the letter "E" will appear.
Finally, switch the unit off and then back on.

Sampling time:

1.  Hold the "SETUP" button down for about 3 seconds, release and then the letters "A1" will appear on the LED display. This is your first coin (5p/c)
2. Feed the Coin Selector your sample coins, the LED display will show the amount of coins you've entered. "A1" will appear again when finished.
3. Hold the "SETUP" button down again for about 3 seconds, release and then"A2" will appear, repeat these steps until all coins are sampled.

If your not using all of the coin types available (eg 5 coins of a 6 type coin selector) the unit will ask for samples of a coin type you haven't setup, just hold the "SETUP" button down for 3 secconds of each of the remaining coins.

The Coin Selector restarts itself and is now ready to connect to the Arduino.

Step 2: Arduino Time

Picture of Arduino Time

To Wire the Coin Selector to the Arduino is easy.

The white "COIN" Wire from the Selector connects to pin 2 on the Arduino. It has to be pin 2 or 3 as these are Interrupt pins.

Now if your using a different power supply for the Coin Selector to the Arduino, you must connect a common Ground. So the Red wire from the Coin Selector connects to +12V of the supply and the Black wire to ground of the supply AND to ground of the arduino.
Note: USB will NOT power the coin selector.

Step 3: Some Simple Code

Picture of Some Simple Code

Now, Fire up the Arduino IDE and let start coding:
PROGRAM START:

const int coinInt = 0; 
//Attach coinInt to Interrupt Pin 0 (Digital Pin 2). Pin 3 = Interrpt Pin 1.

volatile float coinsValue = 0.00;
//Set the coinsValue to a Volatile float
//Volatile as this variable changes any time the Interrupt is triggered
int coinsChange = 0;                  
//A Coin has been inserted flag

void setup()
{
  Serial.begin(9600);  
               
//Start Serial Communication
  attachInterrupt(coinInt, coinInserted, RISING);   
//If coinInt goes HIGH (a Pulse), call the coinInserted function
//An attachInterrupt will always trigger, even if your using delays
}

void coinInserted()    
//The function that is called every time it recieves a pulse
{
  coinsValue = coinsValue + 0.05;  
//As we set the Pulse to represent 5p or 5c we add this to the coinsValue
  coinsChange = 1;                           
//Flag that there has been a coin inserted
}

void loop()
{
  if(coinsChange == 1)         
 
//Check if a coin has been Inserted
  {
    coinsChange = 0;        
      
//unflag that a coin has been inserted
  
    Serial.print("Credit: £");
    Serial.println(coinsValue);    

//Print the Value of coins inserted
  }
}


PROGRAM END!

This simple program will write the total value of coins inserted to the serial monitor.
If you'd like your project to start automatically after say 50p or 50c has been inserted then replace:

    Serial.print("Credit: £");
    Serial.println(coinsValue);

with:

  if(coinsValue >= 0.50)
  {
          //your code here, eg Big Flashing Lights!!!! and Serial.println("I'M MAKING MONEY!!!!");
  }

CONGRATULATIONS
The Electronics Side is finished, Continue if you want to Interface with a Window Application you've created

Step 4: Basic Windows Form Application

Picture of Basic Windows Form Application

Load up Microsoft Express 2010 and create a new "Windows Form Application".
I'm calling mine Coin Selector.

Now to your form add the following components:
1. A Button, Change the Text to "Connect"
2. A Text Box, Change the Text to "0.00"
3. A Serial Port, Change the PortName to the COM Port your Arduino connects to.

Step 5: Coding Time

Picture of Coding Time

Double Click the "Connect" Button and you'll open the Code window, paste the following code in the brackets:

if (button1.Text == "Connect")   //If the button say's connect
            {
                 serialPort1.Open();             //Open Serial Port
                 if (serialPort1.IsOpen)         //If the Port Opens
                 {
                     button1.Text = "Disconnect";    //Change the Button to Disconnect
                     this.serialPort1.DataReceived += new System.IO.Ports.SerialDataReceivedEventHandler(this.serialPort1_DataReceived);
      //Adds an Event when the serial port receives data
                           
            }
            else
            {
                serialPort1.Close();
            //Close the Serial Port
                button1.Text = "Connect";    //Change the Button to Connect
            }


We have to add a few functions, the first will close the port if we close the application. The second tells the program what to do if data is received and the third is what it does. So Just below the final "}" of "button1_Click"
add the following:

//CLOSE PORT ON EXIT
        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (serialPort1.IsOpen)
            {
                serialPort1.Close();
            }
        }


//SERIAL DATA RECEIVED EVENT
        private void serialPort1_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
        {
   //serialPort1 runs in a different thread, to call a function in the main code Invoke must be used
            this.Invoke(new EventHandler(serialReceived));  //Calls the below function
        }
        private void serialReceived(object sender, EventArgs e)
        {
 
                double coinsValue = Convert.ToDouble(textBox1.Text);  //converts the text to a number
                coinsValue = coinsValue + 0.05;          //Add 0.05 to that number
                textBox1.Text = Convert.ToString(coinsValue);     //Converts it back to text and puts it back in the textbox          
        }

Now, Scroll up and you'll see some "using" lines, add "using System.IO.Ports;" as we'll be using Serial port functions.

The Basic Program is finished, On the Arduino side:
replace...
    Serial.print("Credit: £");
    Serial.println(coinsValue);

with...
  Serial.print(0);  //Sends 1 piece of data over the Serial, the windows program add's 0.05 for every piece (println would send 3)

Upload, Run the windows Application, Click "Connect" and your away!


Step 6: CONGRATULATIONS

Picture of CONGRATULATIONS

You can now activate your projects by receiving the right amount of money!

Good Luck & when your a Millionaire please send me some!

Comments

Mistablik (author)2017-01-05

I ran into a pretty big problem with static electricity in my application. Sometimes you could shock the front plate and it would count for a pulse or two, giving you false money. I modified the code slightly. You'll also need to set each coin to pulse one more time than normal. For instance, make nickles pulse 2 times instead of one. Then use this code:

const int coinInt = 0;

//Attach coinInt to Interrupt Pin 0 (Digital Pin 2). Pin 3 = Interrpt Pin 1.

int oldMillis = 0; //set first old time to 0

volatile float coinsValue = 0.00;

//Set the coinsValue to a Volatile float

//Volatile as this variable changes any time the Interrupt is triggered

int coinsChange = 0;

//A Coin has been inserted flag

int currentMillis = 0; //define currentMillis

void setup()

{

Serial.begin(9600);

//Start Serial Communication

attachInterrupt(coinInt, coinInserted, RISING);

//If coinInt goes HIGH (a Pulse), call the coinInserted function

//An attachInterrupt will always trigger, even if your using delays

}

void coinInserted()

//The function that is called every time it recieves a pulse

{

//As we set the Pulse to represent 5p or 5c we add this to the coinsValue

coinsChange = 1;

unsigned long currentMillis = millis(); //check current time

int difference = currentMillis-oldMillis; //find difference between last pulse time //and current pulse time

//Serial.print("Millis: ");

//Serial.println(difference);

oldMillis = currentMillis; //set old pulse time

if(difference < 152 && difference >148){

//unless the pulse time was in between the numbers above, it won't count for //money

coinsValue = coinsValue +0.05;

coinsChange = 1;

}

//Flag that there has been a coin inserted

}

void loop()

{

if (coinsChange == 1){

Serial.print("Money: $");

Serial.println(coinsValue);

coinsChange = 0;

}

}

tanjamaya (author)Mistablik2017-04-20

Ok. now I get it... It works great... Thanks... In arduino code I change

this line

volatile float coinsValue = 0.00

whith line

volatile int coinsValue = 0

also this line

if(difference < 152 && difference >148)

with this

if(difference < 200 && difference >100){

and this line

coinsValue = coinsValue +0.05;

whit this line

coinsValue = coinsValue +10;

In coinAcceptor Settings I chandge the pulses...

before 10denars was 1 pulse, after 10 denars is 2 pulses

also before 50denars was 5 pulses, after 50 denars is 6 pulses

and now it works great.

Thanks a lot you saved me :)

HifdzulH (author)2017-03-09

Is anyone know the source code of charging mobile with coin sensor?

JulioS47 (author)2016-11-28

I made it. It does not work as published. I feel there may be something blocking the main thread in the application. The arduino monitor reads the bits correctly. If I send 5 pulses it sends five zeros. But my VS application almost never produces the right ammount. I would appreciate any help.
I´m using VS Profesional 2013 and Net Framewrk 4.5

Robbiezxc (author)2016-08-19

hi thanks for this it just what i was looking for but does any one know now i would go about adding to the code say if i put in £3 it would do something and then it i put in £4 it would do something else

TuxedoNinja (author)2016-03-13

hey anyone know how to reset the coins value my project is supposed to start after fifty cents so I used that code and it works the first time after I upload the code but after that it breaks any help is great thanks!

ajrulradhi (author)2016-01-11

Hello, i'm in process to make project similar like vending machine. But, i dont know what to write in code if we press A button, then price should be like 5$ . Can you help me?

Ron MichaelS (author)2015-10-27

oLo

종찬윤 (author)2015-04-22

How can I use this coin adapter with AVR Program(Atmega128)??

Can you help me?

I don't know how to make the AVR souce....

Please.. help me...

I need just simple souce..

chickeneater made it! (author)2014-11-04

if you want to use an LCD screen to display the money, then use the sparkfun 2 by 16 lcd screen, hook it up like they do in the SIK guide (circuit 13), replace the lcd connections from pins 2, 3, 4, and 5 to 3, 4, 5, 6. Then upload this code:

const int coinInt = 0;

//Attach coinInt to Interrupt Pin 0 (Digital Pin 2). Pin 3 = Interrpt Pin 1.

#include <LiquidCrystal.h>

LiquidCrystal lcd(12,11,6,5,4,3);

volatile float coinsValue = 0.00;

//Set the coinsValue to a Volatile float

//Volatile as this variable changes any time the Interrupt is triggered

int coinsChange = 0;

//A Coin has been inserted flag

void setup()

{

Serial.begin(9600);

//Start Serial Communication

attachInterrupt(coinInt, coinInserted, RISING);

//If coinInt goes HIGH (a Pulse), call the coinInserted function

//An attachInterrupt will always trigger, even if your using delays

lcd.clear();

}

void coinInserted()

//The function that is called every time it recieves a pulse

{

coinsValue = coinsValue + 0.05;

//As we set the Pulse to represent 5p or 5c we add this to the coinsValue

coinsChange = 1;

//Flag that there has been a coin inserted

}

void loop()

{

if(coinsChange == 1)

//Check if a coin has been Inserted

{

coinsChange = 0;

lcd.setCursor(0,1);

lcd.print("Credit: $");

lcd.print(coinsValue);

//Print the Value of coins inserted

}

}

lezi007 (author)chickeneater2015-03-26

How can the arduino (your program) tells the difference if a 10p/c(dime) coin or 25p/c(quarter) coin is inserted from two 5p/c coins (nickel)? The way I understand is that this code:
void coinInserted()
//The function that is called every time it recieves a pulse
{
coinsValue = coinsValue + 0.05;
//As we set the Pulse to represent 5p or 5c we add this to the coinsValue
coinsChange = 1;
//Flag that there has been a coin inserted
}
will only add 0.05 to the value for each pulse.
How can I change the program so that It counts how many nickels (5p/c), dimes (10p/c), quarters (25p/c) etc... were inserted? I want just don't want to know the total value but also the number of coins type inserted.
Thanks

lezi007 (author)2015-03-26

How can the arduino (your program) tells the difference if a 10p/c(dime) coin or 25p/c(quarter) coin is inserted from two 5p/c coins (nickel)? The way I understand is that this code:
void coinInserted()
//The function that is called every time it recieves a pulse
{
coinsValue = coinsValue + 0.05;
//As we set the Pulse to represent 5p or 5c we add this to the coinsValue
coinsChange = 1;
//Flag that there has been a coin inserted
}
will only add 0.05 to the value for each pulse.
How can I change the program so that It counts how many nickels (5p/c), dimes (10p/c), quarters (25p/c) etc... were inserted? I want just don't want to know the total value but also the number of coins type inserted.
Thanks

Sebuk (author)2012-10-17

Inspired by this set of instructions I have embarked on a project using the CH-926. After successfully getting everything working - Today, when I turned it on, instead of the usual beeps it is displaying E2 and no combination of button pressing makes a difference. Can the units be reset?

Thanks.

fbccnt3 (author)Sebuk2015-02-18

@Sebuk Were you able to solve this E2 problem, by any chance? I encountered the same error today and I'm completely at a loss :(

frollard (author)Sebuk2012-11-22

Looking online the only time you should see 'e' is during training...

chickeneater (author)2014-11-04

this project rocks

crares (author)2014-08-24

Hey, can I program this coin acceptor with an Arduino Leonardo?

pjac82 (author)2013-07-07

How can I store the credit to EEPROM???! in case of powering off and on? SO it starts the count from the memory? I am trying but failing.

thewildman (author)2013-05-27

Thanks! Worked well for me. In Australia out $0.50 coin can fit in the slot but can't fit through the eject slot! I will have to hack the casing...

cefn (author)2013-04-02

Doesn't the COIN line have to be put through a voltage divider to prevent the ATMEGA pin for receiving more voltage than it can handle? I'm considering wiring one of these up with 6.8k and 5.1k resistors in a voltage divider arrangement to address this issue.

With the available documentation, (and without an oscilloscope on hand), I'm finding it hard to identify what the peak output voltage is from the COIN line, but it's safest to assume it's 12V like the supply in the absence of any other information. Perhaps you have found a data sheet which says otherwise.

thewildman (author)cefn2013-05-27

I measured it at 3.3V. I go though a 10K resistor between the coin pin an Arduino too and it works fine.

thewildman (author)2013-05-27

I measured it at 3.3V. I go though a 10K resistor between the coin pin an Arduino too and it works fine.

adriel_allen (author)2013-01-11

sir do you know how to program..L70 bill acceptor to arduino atmega328 ..?

pakizip (author)adriel_allen2013-03-13

Hello guys, i've this coin acceptor and it recognize my coins (1,2 and 0,5 €) and this is good!
But when i attach it to Arduino, it simply doesn't send any signal, any pulses.

The ground of coin acceptor is connected with ground of supply and arduino ground.
The signal with voltimeter is 0.004 and when i insert a coin 0.016 V.
what's wrong with this little toy? Thanks, so sorry for my English.

pakizip (author)pakizip2013-03-15

Ok guys, that's my problem.

I've purchased the ch-926 Coin Selector and i've programmed it with 1, 2 and 0.50 €.
Next, i've programmed arduino with sample sketch and it didn't work.

There is a pulse when i switch on the coin selector and another when i try to switch between NC and NO.

Anyway it doesn't send pulses when i insert my coins.
So, i've tested it with "Analog IN" ports and it show me a value between 0.03 and 0.09 with this code:

double sensorValue = analogRead(A0);
double voltage = sensorValue * (500 / 1023.0);

I suspect that my Coin Selector is faulty and it doesn't send my pulses.

How can i solve? Any ideas?

Thanks for advices, Paki

neilthegooner (author)2012-12-24

This is the code for the Simon game I made with the kids. Each program work on their own but not together. I think it is down to a { or } somewhere in the program. I;m currently getting the following error at the line where I put the stars: a function-definition is not allowed here before '{' token. Any help would be much appreciated.

const int coinInt = 0;
//Attach coinInt to Interrupt Pin 0 (Digital Pin 2). Pin 3 = Interrpt Pin 1.

volatile float coinsValue = 0.00;
//Set the coinsValue to a Volatile float
//Volatile as this variable changes any time the Interrupt is triggered
int coinsChange = 0;
//A Coin has been inserted flag

void setup()
{
Serial.begin(9600);
//Start Serial Communication
attachInterrupt(coinInt, coinInserted, RISING);
//If coinInt goes HIGH (a Pulse), call the coinInserted function
//An attachInterrupt will always trigger, even if your using delays
}

void coinInserted()
//The function that is called every time it recieves a pulse
{
coinsValue = coinsValue + 0.05;
//As we set the Pulse to represent 5p or 5c we add this to the coinsValue
coinsChange = 1;
//Flag that there has been a coin inserted
}

void loop()
{
if(coinsChange == 1)
//Check if a coin has been Inserted
{
coinsChange = 0;
//unflag that a coin has been inserted

if(coinsValue >= 0.50)
{
const int led_red = 1; // Output pins for the LEDs
const int led_blue = 2;
const int led_yellow = 3;
const int led_green = 4;
const int buzzer = 5; // Output pin for the buzzer
const int red_button = 9; // Input pins for the buttons
const int blue_button = 10;
const int yellow_button = 11;
const int green_button = 12; // Pin 13 is special - didn't work as planned
long sequence[20]; // Array to hold sequence
int count = 0; // Sequence counter
long input = 5; // Button indicator
int wait = 500; // Variable delay as sequence gets longer

/*
playtone function taken from Oomlout sample
takes a tone variable that is half the period of desired frequency
and a duration in milliseconds
*/
void playtone(int tone, int duration) { <<<<<<*************************************************
for (long i = 0; i < duration * 1000L; i += tone *2) {
digitalWrite(buzzer, HIGH);
delayMicroseconds(tone);
digitalWrite(buzzer, LOW);
delayMicroseconds(tone);
}
}


/*
functions to flash LEDs and play corresponding tones
very simple - turn LED on, play tone for .5s, turn LED off
*/
void flash_red() {
digitalWrite(led_red, HIGH);
playtone(2273,wait); // low A
digitalWrite(led_red, LOW);
}

void flash_blue() {
digitalWrite(led_blue, HIGH);
playtone(1700,wait); // D
digitalWrite(led_blue, LOW);
}

void flash_yellow() {
digitalWrite(led_yellow, HIGH);
playtone(1275,wait); // G
digitalWrite(led_yellow, LOW);
}

void flash_green() {
digitalWrite(led_green, HIGH);
playtone(1136,wait); // high A
digitalWrite(led_green, LOW);
}

// a simple test function to flash all of the LEDs in turn
void runtest() {
flash_red();
flash_green();
flash_yellow();
flash_blue();
}

/* a function to flash the LED corresponding to what is held
in the sequence
*/
void squark(long led) {
switch (led) {
case 0:
flash_red();
break;
case 1:
flash_green();
break;
case 2:
flash_yellow();
break;
case 3:
flash_blue();
break;
}
delay(50);
}

// function to congratulate winning sequence
void congratulate() {
digitalWrite(led_red, HIGH); // turn all LEDs on
digitalWrite(led_green, HIGH);
digitalWrite(led_yellow, HIGH);
digitalWrite(led_blue, HIGH);
playtone(1014,250); // play a jingle
delay(25);
playtone(1014,250);
delay(25);
playtone(1014,250);
delay(25);
playtone(956,500);
delay(25);
playtone(1014,250);
delay(25);
playtone(956,500);
delay(2000);
digitalWrite(led_red, LOW); // turn all LEDs off
digitalWrite(led_green, LOW);
digitalWrite(led_yellow, LOW);
digitalWrite(led_blue, LOW);
resetCount(); // reset sequence
}

// function to reset after winning or losing
void resetCount() {
count = 0;
wait = 500;
}

// function to build and play the sequence
void playSequence() {
sequence[count] = random(4); // add a new value to sequence
for (int i = 0; i < count; i++) { // loop for sequence length
squark(sequence[i]); // flash/beep
}
wait = 500 - (count * 15); // vary delay
count++; // increment sequence length
}

// function to read sequence from player
void readSequence() {
for (int i=1; i < count; i++) { // loop for sequence length
while (input==5){ // wait until button pressed
if (digitalRead(red_button) == LOW) { // Red button
input = 0;
}
if (digitalRead(green_button) == LOW) { // Green button
input = 1;
}
if (digitalRead(yellow_button) == LOW) { // Yellow button
input = 2;
}
if (digitalRead(blue_button) == LOW) { // Blue button
input = 3;
}
}
if (sequence[i-1] == input) { // was it the right button?
squark(input); // flash/buzz
if (i == 20) { // check for correct sequence of 20
congratulate(); // congratulate the winner
}
}
else {
playtone(4545,1000); // low tone for fail
squark(sequence[i-1]); // double flash for the right colour
squark(sequence[i-1]);
resetCount(); // reset sequence
}
input = 5; // reset input
}
}

// standard sketch setup function
void setup() {
pinMode(led_red, OUTPUT); // configure LEDs and buzzer on outputs
pinMode(led_green, OUTPUT);
pinMode(led_yellow, OUTPUT);
pinMode(led_blue, OUTPUT);
pinMode(buzzer, OUTPUT);
pinMode(red_button, INPUT); // configure buttons on inputs
digitalWrite(red_button, HIGH);// turn on pullup resistors
pinMode(green_button, INPUT);
digitalWrite(green_button, HIGH);
pinMode(yellow_button, INPUT);
digitalWrite(yellow_button, HIGH);
pinMode(blue_button, INPUT);
digitalWrite(blue_button, HIGH);
randomSeed(analogRead(5)); // random seed for sequence generation
//runtest();
}

// standard sketch loop function
void loop() {
playSequence(); // play the sequence
readSequence(); // read the sequence
delay(1000); // wait a sec
}
Serial.println("I'M MAKING MONEY!!!!");
}

}
}

Thanks

Drevious32 (author)2012-10-04

Hey bud, run a spell check ;)

amandaghassaei (author)2012-09-17

this is so awesome! what projects have you incorporated this into so far?

Skipped (author)amandaghassaei2012-09-18

So far, Just a few simple projects. Like Arduino based Simon Said, Tic tac toe on the PC, etc. Tho I am building a Cocktail Bartending Bot that I am planning on using it in.

mgalyean (author)Skipped2012-09-20

The bartending 'bot, to be legal, probably needs a vision system to check ID and to work out when someone has had too much to drink, and an integrated phone to call a cab for those over the limit. Then to make it marketable,it needs to be a good listener and respond appropriately on occasion. ;^)

Skipped (author)mgalyean2012-09-20

Inanimate object's are usually the best listeners ;-) Probably get away with it in a few european countries, I always use to love the beer vending machines in germany. The one I'm building is more for novelty and fun :-) Many conversations will be had tho!

waterlubber (author)Skipped2012-09-23

Breathalizer, security cam, UV or rfid whater for the ID.

foreverdisturbed (author)2012-09-21

Sorry this may be a stupid question but, Just so I understand this right. This is used if you wanted to make your own coin opperated video game or any other project coin opperated device so others can use it without you having to be present to collect money directly from them?

Skipped (author)foreverdisturbed2012-09-22

Thats right, Just make sure it's secure if your not around.

foreverdisturbed (author)Skipped2012-09-22

Thank you for answering my question.

markvovo (author)2012-09-18

Does the mechanism have a refund option? What happens to the COIN pulses if you press the button on the front? I have one ordered, but won't be here for another couple of days.

Skipped (author)markvovo2012-09-19

Hey markvovo, There is no refund option. The button on the front mechanically opens the sensor section of the selector to release jams, these jammed coins drop back into the return slot. The pulses start when they have past this setcion so you'll only get Coin Pulses once actually receiving a coin.
Good luck with your project.

Bonecaya (author)Skipped2012-09-21

Excellent instructable!.

A refund option could be mechanical. Coins that pass through the counter are collected in a small bin. The customer makes their selection and the coins are dropped into a bucket. If they don't make a selection and select a refund, the coins are dropped out to a refund cup on the outside of the machine... A small servo could activate the midpoint bin, one direction for keep, another for refund.

Skipped (author)Bonecaya2012-09-22

Very True, I'll have to try this. There is enough (All bar 1) spare pins on the Arduino to try use up ;-) Thats for your input.

Edgar (author)2012-09-20

Gone to my Blog Post, and voted, too.
http://faz-voce-mesmo.blogspot.pt/2012/09/um-makerbot-serio-um-robot-espanhol.html

Skipped (author)Edgar2012-09-20

Thanks very much Edgar, Glad you like it!

ak08820 (author)2012-09-20

What does this do? Are you building a component of a vending machine?

Skipped (author)ak088202012-09-20

Hey ak08820, you got it. It's the money making part of most vending machine's. So you can attach it to anything you feel like. Could just be used as a fun way to save spare change ;-)

chrwei (author)2012-09-20

this is great!

Keep in mind that if you want to use this in a public place, most places (at least in the US) you need a license from the city/county/state for a coin operated machine, and fines for not having one are seriously hefty.

ac-dc (author)chrwei2012-09-20

You need more than a license, you need specific permission from the local government that holds the deed to put one on their property, as you would anywhere else that isn't your own personal property, and then if it were on your own property you may at some point need business zoning, then there's the issue of establishing a business for taxation purposes. It is not so simple to make money with arduino after all!

chrwei (author)ac-dc2012-09-20

of course. though by public, I meant publicly accessible, like in a store you own/work at.

wwsean08 (author)2012-09-18

this is perfect, I've been eyeing the CH 926 on adafruit for a while, and seeing as I just setup a mysql database to keep track of my money this is giving me the perfect excuse to buy it to automate keeping track of it (yes I know it's overkill for php/mysql but i don't care lol).

mykiscool (author)2012-09-17

What, if anything, do you do with the counter meter gray wire?

Skipped (author)mykiscool2012-09-18

You can hook it up to an electronic coin counter. So you'll be able to tell at a clance how much money you've made. I've haven't used one, I just keep count in the program.

mykiscool (author)Skipped2012-09-18

Oh ok thanks that makes sense. Also thank you for making this tutorial I had one of these coin slots and was having trouble with it this helps.

About This Instructable

143,251views

296favorites

License:

Bio: Curiosity is the key. The "How"'s & "Why"'s always lead me to pull stuff apart. The "Can I build that" lets me put stuff back together. I Love creating stuff from stratch, even if there are a million others out there, this one's different, It's Mine ;-) More »
More by Skipped:Make Money with Arduino
Add instructable to: