Coin Community Family of Web Sites Join Thousands of Coin, Bullion, & Money Collectors
300,000 items to help build your collection! Royal Estate Auctions - $1 Coin AuctionsSpecializing in Modern Numismatics Coin, Banknote and Medal Collectors's Online Mall Vancouvers #1 Coin and Paper Money Dealer Royal Canadian Mint products, Canadian, Polish, American, and world coins and banknotes. Join Thousands of Coin, Bullion, & Money Collectors








Username:
Password:
Save Password
Forgot your Password?


This page may contain links that result in small commissions to keep this free site up and running.

Welcome Guest! Registering and/or logging in will remove the anchor (bottom) ads. It's Free!

Numi V4: Autonomous AI Coin Sorting Robot, Rebuilt From Scratch

To participate in the forum you must log in or register.
Author Previous TopicReplies: 1 / Views: 63Next Topic  
New Member
DanscoAlbumDude's Avatar
United States
42 Posts
 Posted Yesterday   06:06 am Show Profile   Bookmark this topic Add DanscoAlbumDude to your friends list Get a Link to this Message Number of Subscribers
Numi-V4:-Autonomous-AI-Coin-Sorting-Robot,-Rebuilt-From-Scratch

I'm back at it again with an update on my AI Coin Sorting Robot. Version 4 is now complete, and I wanted to share some lessons learned and a breakdown for anyone interested in pursuing a similar project.

Last summer I brought Numi v3 https://goccf.com/t/481576 to various coin seminars https://justinhinh.webflow.io/blog/...tors-dealers and programs https://justinhinh.webflow.io/blog/...s-bowers-pnp to gather feedback from dealers and collectors. It worked, people loved it, and I came home with a notebook full of things that were wrong with it. These past twelve months have been spent fixing them, and in the process, throwing away almost everything v3 was built on.

Here is a video walkthrough of Numi v4 in action. You'll see the entire process, from dumping a handful of coins into the hopper all the way through AI analysis and automated sorting.

www.youtube.com/watch?v=9ImLmteQgm4


You can find previous posts about Numi v1-3 at the end of this post.

To be upfront, v4 is not perfect. The real goal of this version was to find the gaps in my own knowledge and close them before version 5.

Numi v3 was a Raspberry Pi 5 running about 14,000 lines of Python, bolted to a chassis made from more than 500 LEGO Technic pieces, with two 16-megapixel Arducam cameras looking at the coin.
Numi-V4:-Autonomous-AI-Coin-Sorting-Robot,-Rebuilt-From-Scratch

It was a wonderful proof of concept and a genuinely terrible machine. LEGO pieces flex under pressure. Every time the frame shifted a millimeter, the cameras lost focus, and the coin chute lost alignment. I spent more time re-squaring the build than improving it. So v4 got a full teardown. The LEGOS are gone, replaced with a 3D-printed frame I designed and printed myself. The Raspberry Pi is gone, replaced with a microcontroller about the size of a postage stamp.

The clearest way to explain v4 is to follow one coin through the machine.

1. The hopper drops a coin
Numi-V4:-Autonomous-AI-Coin-Sorting-Robot,-Rebuilt-From-Scratch

Knowing when to stop feeding is harder than it sounds, so Numi uses a laser rangefinder. It's a small sensor that fires an invisible laser at the coin stack and measures how long the light takes to bounce back. When the stack reaches about 90mm away, the hopper stops. When it drops back past 108mm, the hopper starts again.
Numi-V4:-Autonomous-AI-Coin-Sorting-Robot,-Rebuilt-From-Scratch

2. A pusher slides it under the camera
A second motor pushes the bottom coin out of the chute and onto a small lit stage. The pusher then retracts until it physically stalls against a wall, which is how it finds its home position again.
Numi-V4:-Autonomous-AI-Coin-Sorting-Robot,-Rebuilt-From-Scratch

The stage is lit by a ring of 19 white LEDs. Numi photographs the coin at 5 megapixels.
Numi-V4:-Autonomous-AI-Coin-Sorting-Robot,-Rebuilt-From-Scratch

3. It photographs both sides
Numi has one camera, so to see both faces of a coin, it has to physically turn the coin over. A flipper arm rotates the coin, and the camera takes a second photograph.

Numi-V4:-Autonomous-AI-Coin-Sorting-Robot,-Rebuilt-From-Scratch

The flip completing
Numi-V4:-Autonomous-AI-Coin-Sorting-Robot,-Rebuilt-From-Scratch

This works, but it also turned out to be one of my biggest mistakes.

4. The AI analyzes the coin
Both photographs are sent together to Google Gemini Flash (the same AI you can chat with in a web browser) along with a set of written instructions. Gemini sends back the coin's series, year, mint mark, a list of descriptive tags, and a decision about where it should go. All this info is sent to an easy to read dashboard.
Numi-V4:-Autonomous-AI-Coin-Sorting-Robot,-Rebuilt-From-Scratch

The part that surprises people the most is that the sorting rules are not code. They are written in plain English, in a text file, and I can change them without touching the robot at all. An excerpt from the actual instructions Numi sends with every coin:

Save: Silver, Key Dates, or Semi-Key dates.

Inspect: ANY known US Variety Candidates. Use your numismatic training to cross-reference the Series, Year, and Mint Mark; if this combination is associated with a specific valuable variety (e.g., 1955 Lincoln Cent, 2004-D Wisconsin Quarter), tag as "Variety Candidate" and set Action to "Inspect".

Dump: Common face-value US coins, standard clad, and severely damaged coins.

Misc.: Foreign coins, casino chips, tokens, non-coin objects, etc.

Retry: Machine anomalies (Double-Feeds where images show different coins, overlapping coins, empty frames), or if BOTH Year and Mint Mark are unreadable.


If I want Numi to start pulling War Nickels tomorrow, I add a sentence and go. That is a fundamentally different way to build a coin sorter than training a machine to recognize specific coins, and it is the single thing I am most convinced about after four versions.

5. Positioning the sorting carousel
Once the verdict comes back, the carousel spins the coin cup over the correct bin, and a dumper arm drops the coin in.

Numi-V4:-Autonomous-AI-Coin-Sorting-Robot,-Rebuilt-From-Scratch

Numi processes roughly 250 coins an hour at a cost of around $0.25 per thousand coins.

Numi-V4:-Autonomous-AI-Coin-Sorting-Robot,-Rebuilt-From-Scratch

The speed didn't come easily. Numi v4 started at about 60 seconds per coin. Getting to 15 seconds took weeks, and most of the gain came from overlapping steps that used to happen one after another.

Lessons Learned
A mechanical flipper will eventually jam. Any moving part that has to physically manipulate a coin is a part that will eventually fail.

Use two cameras, not one. The flipper only exists because I dropped from v3's two cameras to v4's one. I saved a camera and paid for it with a moving part that touches every single coin. That was a bad trade.

A funnel will eventually jam too. Another moving mechanical part that will eventually fail. Writing a function to un-jam your machine is a sign you designed the wrong machine.

Lighting and camera angle are much harder than I expected. Coins land at slightly different distances from the LED ring, and by my own measurements the brightness of the subject swings by roughly ten times between the near and far cases. Too bright and the lettering blows out to white. Too dark and the date disappears.

Bringing Numi to shops and shows is the best part. Nothing in the code is as valuable as watching a dealer's face when the machine pulls a silver quarter out of a junk bin, then hearing feedback on how to improve the machine to be useful for them.


Version 5 is already sketched out, and it's shaped entirely by these lessons.

I'd rather tell you what broke than pretend I got it right the first time. Four versions in the goal remains the same: raise awareness of AI and its impacts on our hobby.
Ls21Q8ZpVEY


If you have ideas, I'd love to hear from you. And if you see me at a show, come say hello. The machine will be running. If you want to keep up to date about Numi's latest developments, [as well as Dansco research], feel free to check out my Instagram page. https://www.instagram.com/dansco_dude/

Justin, aka Dansco Dude

Version 3 [https://goccf.com/t/481576]
Edited by DanscoAlbumDude
Yesterday 06:16 am
Moderator
Learn More...
jbuck's Avatar
United States
192650 Posts
  Previous TopicReplies: 1 / Views: 63Next Topic  

To participate in the forum you must log in or register.



    




Disclaimer: While a tremendous amount of effort goes into ensuring the accuracy of the information contained in this site, Coin Community assumes no liability for errors. Copyright 2005 - 2026 Coin Community Family- all rights reserved worldwide. Use of any images or content on this website without prior written permission of Coin Community or the original lender is strictly prohibited.
Contact Us  |  Advertise Here  |  Privacy Policy / Terms of Use

Coin Community Forum © 2005 - 2026 Coin Community Forums
It took 0.34 seconds to rattle this change. Forums