fruit machine that pays out drinks...

just looking for a bit of guidance please.

my idea is basically the machine pays out by pulsing the coil in the hopper one per £1 i want the arduino to count the pulses and output a high signal for defined time i.e 1 pulse = 1 second 2 pulses 2 second and so on the electronics is fairly straight forward but the code is something im new to any help would be great obviously the time would be the on time of the pump pouring the drink

ANTHONYSOUNDSHARK:
just looking for a bit of guidance please.

my idea is basically the machine pays out by pulsing the coil in the hopper one per £1 i want the arduino to count the pulses and output a high signal for defined time i.e 1 pulse = 1 second 2 pulses 2 second and so on the electronics is fairly straight forward but the code is something im new to any help would be great obviously the time would be the on time of the pump pouring the drink

The description sounds to me as if you want to purchase a "coin acceptor module" first, which you then can calibrate to accept one-pund coins and connect to the Arduino board for the reason of counting inserted money by counting pulses created from the inserted coins.

Please describe your hardware more detailed and if you are already posessing a coin acceptor module or not!