Author Topic: Ball park coin resistance  (Read 12650 times)

0 Members and 1 Guest are viewing this topic.

Offline tosterTopic starter

  • Contributor
  • Posts: 28
  • Country: lv
Re: Ball park coin resistance
« Reply #25 on: March 17, 2013, 07:53:51 pm »
Yeah - I thought it was a great idea too. But it turns out to be more complicated than it sounds.

First off arduino can't act as an USB host by itself - so a webcam doesn't work out of the box.
Even if I rip the webcam apart and connect directly to the device, the arduino doesn't have enough mem to store the image.
It's impossible to analyze the data as it flows by, the arduino is too slow to even read the data real-time.
This means saving it to some other device, then loading and processing...

So yeah. Need something more powerful than an arduino for that.
« Last Edit: March 17, 2013, 07:58:37 pm by toster »
 

Offline 4to20Milliamps

  • Regular Contributor
  • *
  • Posts: 248
  • Country: us
Re: Ball park coin resistance
« Reply #26 on: March 17, 2013, 08:12:18 pm »
Yeah - I thought it was a great idea too. But it turns out to be more complicated than it sounds.

First off arduino can't act as an USB host by itself - so a webcam doesn't work out of the box.
Even if I rip the webcam apart and connect directly to the device, the arduino doesn't have enough mem to store the image.
It's impossible to analyze the data as it flows by, the arduino is too slow to even read the data real-time.
This means saving it to some other device, then loading and processing...

So yeah. Need something more powerful than an arduino for that.


I don't think the arduino is the problem:

http://www.arducam.com/tag/arduino-camera-shield/

http://nootropicdesign.com/projectlab/2011/03/20/arduino-computer-vision/

« Last Edit: March 17, 2013, 08:29:26 pm by 4to20Milliamps »
 

Offline tosterTopic starter

  • Contributor
  • Posts: 28
  • Country: lv
Re: Ball park coin resistance
« Reply #27 on: March 17, 2013, 08:46:17 pm »
Oh, they actually have a shield...
The arduino still can't load that much info but they've taken care of the pain of saving that all to an SD card.

"Due to the speed limitation of AVR series MCU, and all the Read and Write access to LCD GRAM is emulated by IO operation, saving a 320×240 RGB555 BMP into SD/TF card will take up 10 seconds."

So.. 10 seconds to save the image to SD. And after that I have to read it in w/ the arduino. And then process it without reading the whole thing. Just driving the file pointer around and reading it byte by byte.

I suppose it could work but that's like 30 seconds per coin or sth :/

Hum.. the other link looks promising. /me reads.
« Last Edit: March 17, 2013, 08:47:54 pm by toster »
 

Offline Chet T16

  • Frequent Contributor
  • **
  • Posts: 537
  • Country: ie
    • Retro-Renault
Re: Ball park coin resistance
« Reply #28 on: March 17, 2013, 08:46:41 pm »
I've a counting money box here all all it does is measure the diameter of any coin put in with a sliding arm mechanism.



Chet
Paid Electron Wrestler
 

Offline tosterTopic starter

  • Contributor
  • Posts: 28
  • Country: lv
Re: Ball park coin resistance
« Reply #29 on: March 17, 2013, 09:03:20 pm »
Hum.. could you explain it in more detail? How do you go about measuring the diameter?
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 18022
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Ball park coin resistance
« Reply #30 on: March 17, 2013, 09:10:32 pm »
Like i said it will have a disk or arm with holes in it for each coin to slip into, it will then be carried to the correct sorting section
 

Offline tosterTopic starter

  • Contributor
  • Posts: 28
  • Country: lv
Re: Ball park coin resistance
« Reply #31 on: March 17, 2013, 09:19:46 pm »
Yeah I thought so too but he did say "measure the diameter of any coin". Hope. It's still not dead.
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 18022
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Ball park coin resistance
« Reply #32 on: March 17, 2013, 09:24:54 pm »
I think he meant any withing the context of his own currency,

You could have something along the lnes of a slider pot that moves based on the diameter of a coin, motor "crushes" coild between two surfaces  and when it stops the resistance is taken
 

Offline tosterTopic starter

  • Contributor
  • Posts: 28
  • Country: lv
Re: Ball park coin resistance
« Reply #33 on: March 17, 2013, 09:33:53 pm »
Yep. That would work. But I still don't know neither the range the resistance could be in nor the resolution I'd need. This discussion has gone a long way off the original question ^-^
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 18022
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Ball park coin resistance
« Reply #34 on: March 17, 2013, 09:39:09 pm »
not really, you want to reinvent the wheel and we are trying to help, at the end of the day unless you use something like the sparkfun unit you have a lot of mechanics to come up with, never mind the electronics
 

Offline tosterTopic starter

  • Contributor
  • Posts: 28
  • Country: lv
Re: Ball park coin resistance
« Reply #35 on: March 17, 2013, 09:45:49 pm »
As I said - I don't mind doing that and your help is highly appreciated.
 

Offline JoeyP

  • Frequent Contributor
  • **
  • Posts: 321
  • Country: us
Re: Ball park coin resistance
« Reply #36 on: March 17, 2013, 10:22:54 pm »
As a learning experience (only), I encourage this exercise. The oxidation issue could be somewhat mitigated by using kelvin clamps. Google "4-terminal resistance measurement" for more info. The problem though, is that the resistance will be very very low, so you will need a large constant current source and a very sensitive voltmeter. Because the voltage will be so small, thermocouple effects will come into play as well. As an example, copper vs copper oxide has a Seebeck coefficient of about 1mV/degree. It will be more about the analog circuit design than the processing.
 

Offline Simon

  • Global Moderator
  • *****
  • Posts: 18022
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: Ball park coin resistance
« Reply #37 on: March 17, 2013, 10:33:34 pm »
I've dabled down there with a current regulator and a very low shunt resistor to mitigate power dissipation, the voltages get so low that expert analogue desgin skills are required.
 

Offline JoeyP

  • Frequent Contributor
  • **
  • Posts: 321
  • Country: us
Re: Ball park coin resistance
« Reply #38 on: March 18, 2013, 12:32:59 am »
Agreed, which is why I encourage it. This is the sort of exercise that helps beginners grow into experts :)
 

Offline sleemanj

  • Super Contributor
  • ***
  • Posts: 3043
  • Country: nz
  • Professional tightwad.
    • The electronics hobby components I sell.
Re: Ball park coin resistance
« Reply #39 on: March 18, 2013, 05:45:19 am »

~~~
EEVBlog Members - get yourself 10% discount off all my electronic components for sale just use the Buy Direct links and use Coupon Code "eevblog" during checkout.  Shipping from New Zealand, international orders welcome :-)
 

Offline JVR

  • Regular Contributor
  • *
  • Posts: 201
  • Country: be
Re: Ball park coin resistance
« Reply #40 on: March 20, 2013, 09:22:36 am »


Built one like this a few years ago, worked epically fine.

Other option is a arm connected to a pot, and a weak spring, as the coin goes under the arm, measure the peak resistance of the pot, and you know the diameter.
 

Offline tosterTopic starter

  • Contributor
  • Posts: 28
  • Country: lv
Re: Ball park coin resistance
« Reply #41 on: March 20, 2013, 12:47:11 pm »
Other option is a arm connected to a pot, and a weak spring, as the coin goes under the arm, measure the peak resistance of the pot, and you know the diameter.

O_O
Now that's what I call elegant! I must try this out. Like. Now!
My hat's off to you sir!
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: Ball park coin resistance
« Reply #42 on: March 20, 2013, 01:28:09 pm »
Thanks, JVR, for pointing out the opto solution. I hoped someone would. The camera idea is silly when you can just align one edge of the coin with gravity and use a couple phototransistors to find the edge. I like the pot idea in theory, but it may be hard to find one that is loose enough that it won't just stay put and trap the coins.
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline JVR

  • Regular Contributor
  • *
  • Posts: 201
  • Country: be
Re: Ball park coin resistance
« Reply #43 on: March 20, 2013, 02:03:25 pm »
I like the pot idea in theory, but it may be hard to find one that is loose enough that it won't just stay put and trap the coins.
Yeah, it would need a bit of work, bit it would be infinitely more configurable that the opto's.  Large slope would help, or even a modded servo to "catch" the coin and push it past the arm.
 

Offline Galaxyrise

  • Frequent Contributor
  • **
  • Posts: 531
  • Country: us
Re: Ball park coin resistance
« Reply #44 on: March 23, 2013, 04:50:02 pm »
Yeah, it would need a bit of work, bit it would be infinitely more configurable that the opto's.  Large slope would help, or even a modded servo to "catch" the coin and push it past the arm.
There's other complexities too, like the arm will have momentum, and pushing the coin in faster will result in a higher reading.

I gravitated towards the optical solution.  I had to sleep on it, but I think I came up with how to implement the optical solution such that it can read a very large variety of heights with just a few beams:

The idea is to point one of the opto beams vertically and then time when it's broken relative to the horizontal beams.  By computing their ratio rather that dealing with absolute times, it shouldn't matter what speed the coins are inserted at.  Backspin could still matter if the horizontal window is large enough.  It'll be a bit tougher to build to get that vertical beam so it doesn't cause coins to get stuck; either it'll have to go a bit horizontally as well or you'd have to put something clear into the track for it to shine through.
I am but an egg
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4700
  • Country: au
  • Question Everything... Except This Statement
Re: Ball park coin resistance
« Reply #45 on: March 23, 2013, 09:47:04 pm »
if you want to avoid coins being forced in, use a small vertical shaft, say 2-3 diameters at the coin slot, that way every coin will loose most of its horizontal momentum and run your timing arrangement from the same starting speed,
 

Offline cwalex

  • Frequent Contributor
  • **
  • Posts: 299
  • Country: au
Re: Ball park coin resistance
« Reply #46 on: March 24, 2013, 01:42:04 am »
maybe a way to stop the problem with people pushing the coins in with too much momentum you could arrange the slots inside so that if the coin is moving too fast it will just keep going past the point where it will drop into your measurement section and come out the place where change would normally come out. Then they can have another go at putting the coin in. I'm not good at drawing so I hope my description is easy enough to understand. :)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf