MAKE YOUR OWN SLOT MACHINE
COIN MECHANISMS CONTROL SOUND/ VIDEO AND COMPUTERS
The momentary electrical contact from the coin mechanism needs a circuit to start the machine working.
I used to make relay circuits but I now use small industrial computers called PLCs.
Here are the various options:
A simple coin operated machine can have a timer triggered by the coin mechanism. All electronics catalogues have delay timers, and some types have a ‘one shot’ option, which enables them to be triggered by a pulse. (in this case , the pulse from the coin falling through the coin mechanism). Pulse timers cost £20-30, from any electronics catalogue. Crouzet chronos2 multifunction timers are relatively good value. In the UK you can get them from RS (part no 331-0928 costs £22 but will only work with mains and 24 VDC. RS 331-0934 costs £33 will also work with 12 volts DC.
A simple relay latching or holding circuit can also be useful. In the basic circuit (left) switching A on momentarily will energise the relay, which will then stay energised until switch B is broken.
In the circuit below (which I used on my early machines), switch B is a cam switch on the output shaft of the geared motor. The momentary coin switch A will cause the motor to rotate one complete revolution and then stop.
The geared motor rotates the cams
slowly. Each cam has a microswitch pressing against it. Using one of the
cam switches as B with the circuit to the right, this will rotate
one revolution every time a coin is inserted. As each cam can be
individually adjusted, lots
of different elements can be made to switch on and off during the’cycle’.
Unfortunately they are obsolete, but you can find them on ebay sometimes.
These are probably the simplest form of digital electronic control. Kits including software and connecting cable to a PC cost about £150. Its not difficult to get a basic program running (you drag and drop elements like timers and logic gates into a block diagram on the screen).
I've used them for simple machines like postcard dispensers, though I wouldn’t recommend them for anything elaborate, because following the logic becomes difficult and editing is less easy than the initial programming.
Programmable Logic Controllers
These are my favourite controllers. I use the
Mitsibushi FX0 to FX2 series, which I buy secondhand on Ebay (from about
£70 for 14 outputs, or £180 for 64 outputs).
The advantages are that sensors and switches go in one side and relay
contacts come out the other – there’s no soldering and everything is
very robust and protected against voltage spikes and will work at high
temperatures etc. The stepladder
programming language is very versatile, and quick once you’ve got used
to it. The drawback is that it does take time to get the hang of the
programming – you definitely need the full printed manual to get far.
I’ve been using them for 15 years so I can’t now quite remember how I
learnt. There are free online ladder logic simulators which are a good way
of trying it out.
I love Arduino, its story is so romantic. A group of Italian engineers, laid off after Olivetti went bust, used to meet in a bar called the Arduino. They decided the world needed an open source microcontroller and its been a huge success. The problem for me is that I don't find the programming language C++ intuitive, with lots of conventions I don't understand. However, its more versatile - it will easily spit out serial data which I find very useful for controlling cheap MP3 players and LCD displays. But the best thing is that because Arduino is open source, there's a huge fan base and lots of forums. So the code for almost anything you could want to do is posted online (see arduino/playground) and that if you get stuck you can post a question in one of their forums. My most recent question was answered within two minutes! I went to a beginners weekend workshop in london which was brilliant. I didn't understand everything at the time, but it gave me the confidence to start trying things for myself, and I met people who understood C++ well who offered to help me with future projects.
Raspberry Pie and BBC Microbit
These more recent microprocessors are more powerful and versatile than Arduino. A Raspberry pie can play video and a Microbit can send messages to your phone amongst many other features. However they are both more orientated towards coding than interfacing with other things. I feel the neat shield boards that fit to Arduinos and the huge online libraries makes them more suitable for the machines I make.