The Shop > Electronics & IC Programing

Turn on 12v DC with logic PIC output.

<< < (3/5) > >>

raynerd:
Aaaaaahhhh!! I see your thinking!

Pity I'm no where near as comfortable with arduino BUT I think this could be the way to go!!

I just need to see now what type of signal the hopper gives out when it releases a coin.

Thanks for your suggestion - made me feel a little more confident!

Chris

ChrisC:
No Problem Chris.  There is loads of help available for Arduinos (and Pics for that matter!), a number of folk on Madmodder have posted Arduino projects.  I find it a bit idiosyncratic, but if you soon get the hang of it.

I recently put together an LED controller for a quick customer demo, it took about a day from start to finish.  Not very pretty, but given that it was only going to be used once, effective.



Chris

raynerd:
Hey chaps, although I've got my penny pusher build thread, unless the mods say otherwise, I'm going to keep the electronics for this hopper in this thread.

Well the hopper arrived and I've just had time to play with it for the last hour. Took me most of that time to source a suitable connection to try it out at midnight!

Anyway, hooked the 12v line and ground up to my power supply and sure enough it started spitting out 10p coins at a good rate!  :D

So as far as I can see, although the socket is 9 pin, there are only 3 pins I'm interested in. 12v, gnd and optical sense output. The other pins are 24v (which I pretty sure from what I've read is just to give to the option of powering at 24v since that is the source in some machines), two pins for low coin sensing and three redundant pins - all of which can be ignored.

Again from the Internet I have realised that it is the job of the "controller" to count the optical output and therefore how many coins have been dispensed and shut off the 12v supply.


So the big question for me now is how do I read the output of the optical sensor? Will it be a digital 5v pulse and more specifically, if I am using an arduino, what would the code commands be?


As a flow list...the controller will:

1. Input switch "on" (money dropped into machine)
2. Turn 12v on (by turning a pin "on" as discussed above)
3. Count 10 input pulses from optical sensor
4. Shut off 12v

Any help much appreciated!

Chris
 

raynerd:
http://www.vendapin.com/Adobe%20files/Suzo%20Cube%20Hopper%20Mark%20II.pdf

Clearer details found in the online manual!!

1.5 Coin counting
Coin counting speed is 6 to 7 coins per second. All paid out coins pass by the optical sensor indirectly. The coin exit output changes from high impedance to low impedance status.
This output stays high as long as the hopper is in the “Off” status (power disconnected).
When a coin appears at the counter pawl under the exit bridge the PCB controls the coin verification and releases a logic signal. The opto-coupler and the counter pawl detect paid-out coins.
Payout signal: open collector NPN - active low, maximum sink of 25mA at 35Volt maximum. Minimum time obstructs optics 30ms - minimum.
Time between coins: ±100ms

Bluechip:
Hi Chris
 
What you seem to have is the lower left ..
 
The collector is open, so you need to put a load resistor in there connected to +5v.
That is R1. Connected from X to X'. Top left.
This will give you 0V to 5V pulses from the O/P.
560R will allow some 9mA or so current. Well within the 25mA max.
 
As I read it, the O/P is 0v when a coin is present ???
 
If you want a positive level, it needs to be inverted, so the basic single transistor inverter as per right will do the job.
 
Any small signal npn transistor will be OK. Nothing critical about that.
 
Doesn't matter if you input it to a PIC of course, code will take care of that, just poked it in anyway...
 
NB ... the emitter of the opto-isolator may not be connected to 0V if it is truly DC  isolated, so the 0V I have shown connected to it may not actually be connected to 0V in the coin mechanism, so the emitter must be connected to 0V on whatever logic doins you nail to it. Otherwise you will have no 0V reference and the O/P will be heaving and thrashing about all over the shop.
 
Dave
 
 
 

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version