Show Posts
Pages: 1 2 [3]
31  Using Arduino / Project Guidance / Re: NRI G.13 - Drinks machine on: January 11, 2013, 06:01:16 pm
What I've done to get the values:

I've used pulseIn to read the pulse the coin acceptor generates:

Code:
void setup() {
  // initialize serial communication at 9600 bits per second:
  Serial.begin(9600);
  pinMode(pin, INPUT);
}



void loop()
{
  duration = pulseIn(pin, HIGH);
   Serial.println(duration);
   delay(50);
}

It gives a long list of

9960
9899
9927
9932
9966
9892

And when I enter a euro (coin acceptor) it gives:

9928
10098
10124
9831

32  Using Arduino / Project Guidance / Re: NRI G.13 - Drinks machine on: January 11, 2013, 05:53:12 pm
I've read the output from the coin acceptor.

It's 100Hz normally and when you insert a coin it drops to 90Hz for a few milliseconds.

So I need to emulate this behaviour, from what I've read, PWM output should be the way to go.
33  Using Arduino / Project Guidance / Re: NRI G.13 - Drinks machine on: January 11, 2013, 05:43:39 pm
Yep, but haven't I done that by giving analogWrite 56?
34  Using Arduino / Project Guidance / Re: NRI G.13 - Drinks machine on: January 11, 2013, 05:39:55 pm
Yes and PWN is set between 0 and 255 right?

Zo 111Hz would be 56 value?
35  Using Arduino / Project Guidance / Re: NRI G.13 - Drinks machine on: January 11, 2013, 05:31:15 pm
Well even though it would be easier if someone did it, for me it would be better to learn it.

I've come up with this code:

Code:
void setup()

{

  pinMode(10, OUTPUT);   // PWM output right

}



void loop()

{

   analogWrite(10, 56);  // 56=111Hz ??


}
36  Using Arduino / Project Guidance / NRI G.13 - Drinks machine on: January 11, 2013, 05:04:21 pm
Hey Arduinousers,

We have an old can machine which uses a NRI G13.6000 (flat cable ribbon serial) as a coin acceptor. Now I need to trick the machines relays board to think that a payment has been made.

The NRI has several output channels, but the one I need (channel 8) sends out a pulse to the board. I need to emulate that Pulse with the push of a button.

This is the description of the output channel of the NRI:
Quote
NPN 100ms 10mA active low w/ 47K pull-up to +5V

Is there anyone who knows how to pull this off?

Moderator edit: Smiley removed
Pages: 1 2 [3]