Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: cheapy 'Zero Delay' USB encoder  (Read 46315 times)

0 Members and 1 Guest are viewing this topic.

pbj

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11054
  • Last login:Yesterday at 11:48:09 pm
  • Obey.
    • The Chris Burke Band
Re: cheapy 'Zero Delay' USB encoder
« Reply #80 on: February 26, 2014, 09:51:48 am »
Relays are extraordinarily useful and simple once you get the hang of it.  You'll think of a million uses for them once you've gotten this problem solved.


melvinbates

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 106
  • Last login:April 26, 2023, 11:39:02 am
  • Another day in paradise
Re: cheapy 'Zero Delay' USB encoder
« Reply #81 on: February 26, 2014, 11:18:15 am »
Relays are extraordinarily useful and simple once you get the hang of it.  You'll think of a million uses for them once you've gotten this problem solved.

And they make such a satisfying clicking noise.  But I agree with PL1, run a 5v relay and remove the zenner diode from your mech.  Even if it pulses out a 12v signal, the duty cycle on your relay will be low enough it won't affect anything or even get a chance to warm the coils.

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
Re: cheapy 'Zero Delay' USB encoder
« Reply #82 on: February 26, 2014, 12:02:36 pm »
Hi guys. I am back home and I have re-entered my lab... ready to battle again lol

I've taken a look at the wiring diagram of my 5v relay. Have a question because it doesn't explicitly mention COM / NO /NC etc.

I have colour code tagged the diagram with what I assume it means.
Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9671
  • Last login:Today at 03:15:42 am
  • Designated spam hunter
Re: cheapy 'Zero Delay' USB encoder
« Reply #83 on: February 26, 2014, 12:05:07 pm »
You're reading schematics like a pro.   ;D


Scott

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
Re: cheapy 'Zero Delay' USB encoder
« Reply #84 on: February 26, 2014, 12:12:22 pm »
You're reading schematics like a pro.   ;D


Scott

lol why, thank you Scott.
Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
Re: cheapy 'Zero Delay' USB encoder
« Reply #85 on: February 27, 2014, 01:30:31 am »
Gentlemen....

We have liftoff...

I would like to thank Bob,Peabody (pbj), Melvin, Yotsuya... everyone that made this possible.

*Infant begins to sob* But a special thanks has to go out to my agent... Scotty Maguire (PL1)
You are my ambassador of 'cade man.
« Last Edit: February 27, 2014, 01:32:53 am by InfantSorrow »
Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9671
  • Last login:Today at 03:15:42 am
  • Designated spam hunter
Re: cheapy 'Zero Delay' USB encoder
« Reply #86 on: February 27, 2014, 02:00:48 am »
Glad to hear it.   :applaud:

Now for the testing and documentation.   ;D

Are you getting chatter on the relay?

You should be able to drop 10 coins and get 10 credits -- test this using an old-school game that only does 1:1 coin/credit ratio.

Also, try putting the zener diode back in -- it should work as a snubber for this setup if you have any chatter.

Do you mind taking a few good pics (side view and front angle view with a contrasting/neutral backdrop) of your coin recognizer for the wiki?


Scott

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
Re: cheapy 'Zero Delay' USB encoder
« Reply #87 on: February 27, 2014, 05:21:08 am »
Will do my wingman Scott lol

At the office now though, have a spring in my step.

Whats the next challenge? lol
Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
Re: cheapy 'Zero Delay' USB encoder
« Reply #88 on: February 27, 2014, 12:00:29 pm »
Glad to hear it.   :applaud:

Now for the testing and documentation.   ;D

Are you getting chatter on the relay?

You should be able to drop 10 coins and get 10 credits -- test this using an old-school game that only does 1:1 coin/credit ratio.

Also, try putting the zener diode back in -- it should work as a snubber for this setup if you have any chatter.

Do you mind taking a few good pics (side view and front angle view with a contrasting/neutral backdrop) of your coin recognizer for the wiki?


Scott

Scotty

1 coin drop registers a credit :)

I will take pics of everything when Its done and not so crappy looking. Going to solder the relay to the wires from the coin mech and usb encoder.
Right now they are just crudely tied together. (Soldering is another thing I know nothing about, so bear with me lol)

Woodworking.. I am an old pro at that!
Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

melvinbates

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 106
  • Last login:April 26, 2023, 11:39:02 am
  • Another day in paradise
Re: cheapy 'Zero Delay' USB encoder
« Reply #89 on: February 27, 2014, 12:30:53 pm »
Glad you got it working.   :cheers:

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9671
  • Last login:Today at 03:15:42 am
  • Designated spam hunter
Re: cheapy 'Zero Delay' USB encoder
« Reply #90 on: February 27, 2014, 01:09:37 pm »
Soldering is another thing I know nothing about
There's a thread here for that.   ;D


Scott

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
Re: cheapy 'Zero Delay' USB encoder
« Reply #91 on: February 28, 2014, 03:55:45 am »
Soldering is another thing I know nothing about
There's a thread here for that.   ;D


Scott

This is why you are my wingman... lol
Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
Re: cheapy 'Zero Delay' USB encoder
« Reply #92 on: March 03, 2014, 12:50:19 pm »
Okay, just to keep you guys posted.
Got my mdf boards today, production shall begin in earnest lol

Getting the jigs out as we speak.

Also, received an arcade usb encoder kit from the chinaman Saturday.
This one isn't zero delay though, it kinda looks like a mini ipac. (Think its called a xin mo)

Anyways, chairman xin mo can be reviewed some other day. Right now I have bigger fish to fry lol
« Last Edit: March 03, 2014, 01:10:36 pm by InfantSorrow »
Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
Re: cheapy 'Zero Delay' USB encoder
« Reply #93 on: March 04, 2014, 04:19:39 am »
Okay people..

I tested the xin mo usb encoder, it seems better made and easier to config to work with coin mech. (Similar to the way an ipac works)

You need to tell me these things..
I'm the bossman... need the info.... lol

In hindsight, I would have gone this route
Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

bradx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 101
  • Last login:December 02, 2016, 02:39:53 am
Re: cheapy 'Zero Delay' USB encoder
« Reply #94 on: March 04, 2014, 04:29:17 am »
i started with the ipac years ago, switched to the keywiz, and honestly, for the projects i do, i have found the ZD encoder to be cheapest and easiest by far.  i admit, my projects are not as spectacular as some of yours, but i have gotten satisfactory results for myself and friends from the ZD.  compared to messing with the other older interfaces, i had the ZD wired up in just a couple minutes.  obviously, its not for EVERY application, but for a simple, quick, cheap interface its unbeatable! 
-- I was bradd on KLOV --

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
Re: cheapy 'Zero Delay' USB encoder
« Reply #95 on: March 04, 2014, 09:11:47 am »
i started with the ipac years ago, switched to the keywiz, and honestly, for the projects i do, i have found the ZD encoder to be cheapest and easiest by far.  i admit, my projects are not as spectacular as some of yours, but i have gotten satisfactory results for myself and friends from the ZD.  compared to messing with the other older interfaces, i had the ZD wired up in just a couple minutes.  obviously, its not for EVERY application, but for a simple, quick, cheap interface its unbeatable!

SILENCE!! I will not tolerate your insolence!
lol

I agree the ZD is bang for your buck but it is a mission to get a coin mech going.
If you don't wish to go full arcade simulation then by all means, go ahead. I recommend the ZD for ease of use.

But if you willing to pay just a little more and want something a little better made with easier coin mech hookup, then get the chairman xin mao
Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
Re: cheapy 'Zero Delay' USB encoder
« Reply #96 on: March 05, 2014, 06:45:37 am »
Okay, throw me a freak'n bone here Scott...
« Last Edit: March 05, 2014, 08:15:06 am by InfantSorrow »
Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
Re: cheapy 'Zero Delay' USB encoder
« Reply #97 on: March 05, 2014, 08:52:35 am »
No way to get the latest mame working with Joy2key anyone?
Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
Re: cheapy 'Zero Delay' USB encoder
« Reply #98 on: March 05, 2014, 09:19:32 am »
No way to get the latest mame working with Joy2key anyone?

My god, you certainly are a handsome fellow, Infantsorrow.

Allow myself to introduce... myself.
I am you from the immediate future, a future in which you have already solved this problem.

The answer to your conundrum is to compile Mame with DirectInput support.

Cheerio,
Me

Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9671
  • Last login:Today at 03:15:42 am
  • Designated spam hunter
Re: cheapy 'Zero Delay' USB encoder
« Reply #99 on: March 05, 2014, 07:44:40 pm »
Quick q. Would there be any particular reason why my NC and NO are working in reverse when wired up to the xin mo?

When coin mech is on NO, windows joystick config reads the button as being pressed by default and a coin drop registers as a non press.
With NC its vice versa.
When on NO, the coin mech works fine and will be responsive for all coin drops. (Albeit, working in reverse order with a coin drop registering a non press)
But when I use NC (which works in the correct manner) after a while the coin mech seems to stop registering input

Have you seen this kinda thing before? Maybe I should reverse the wires from the coin mech to chairman mo?
When in doubt, go back to basics.

Ran these tests on a friend's 1-Player Xin-Mo. (Can't guarantee yours will get the same results so I'm listing the tests I ran in case you want to duplicate the results on your end.)

*5v on the Xin-Mo inputs (black lead on the USB connector body) -- check.

*Encoder ground at same voltage as USB ground -- check

*Encoder ground not isolated from USB ground (short input to USB connector body) -- double check (encoder even registers a button press when ground comes from a different USB cable)

Based on these results, the Xin-Mo should register a button press whenever ground is applied to an input.
-----------
On your setup:
(before connecting the coin mech to the Xin-Mo)
*Is 12v connected to the coin mech?

*Is the zener diode installed?

*Is there normally 5v on the coin signal wire that dips when you drop in a coin? (you may need to change the NO/NC setting to get this to work right)

(connect the coin mech to the Xin-Mo)
*Is the Xin-Mo input connected to the coin mech coin signal wire?

*Is the Xin-Mo ground connected to coin mech ground?




Scott

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
Re: cheapy 'Zero Delay' USB encoder
« Reply #100 on: March 06, 2014, 07:17:38 am »
Quick q. Would there be any particular reason why my NC and NO are working in reverse when wired up to the xin mo?

When coin mech is on NO, windows joystick config reads the button as being pressed by default and a coin drop registers as a non press.
With NC its vice versa.
When on NO, the coin mech works fine and will be responsive for all coin drops. (Albeit, working in reverse order with a coin drop registering a non press)
But when I use NC (which works in the correct manner) after a while the coin mech seems to stop registering input

Have you seen this kinda thing before? Maybe I should reverse the wires from the coin mech to chairman mo?
When in doubt, go back to basics.

Ran these tests on a friend's 1-Player Xin-Mo. (Can't guarantee yours will get the same results so I'm listing the tests I ran in case you want to duplicate the results on your end.)

*5v on the Xin-Mo inputs (black lead on the USB connector body) -- check.

*Encoder ground at same voltage as USB ground -- check

*Encoder ground not isolated from USB ground (short input to USB connector body) -- double check (encoder even registers a button press when ground comes from a different USB cable)

Based on these results, the Xin-Mo should register a button press whenever ground is applied to an input.
-----------
On your setup:
(before connecting the coin mech to the Xin-Mo)
*Is 12v connected to the coin mech?

*Is the zener diode installed?

*Is there normally 5v on the coin signal wire that dips when you drop in a coin? (you may need to change the NO/NC setting to get this to work right)

(connect the coin mech to the Xin-Mo)
*Is the Xin-Mo input connected to the coin mech coin signal wire?

*Is the Xin-Mo ground connected to coin mech ground?

Scott

Ok Scotty will double check this when I get home.

On a related note... In electronics, what do you usually use to check the voltage of something that is quick pulsing?
It seems a DMM is not the best instrument to use to check for that.

Should I make a point to acquire an analog multimeter to add to my arsenal and aid my growing electronic prowess?

Yours faithfully,
Dr. Evil
Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9671
  • Last login:Today at 03:15:42 am
  • Designated spam hunter
Re: cheapy 'Zero Delay' USB encoder
« Reply #101 on: March 06, 2014, 03:39:40 pm »
An analog meter is always a good addition to your toolbox.

If you have access to an O'scope, that's an even better way to look at what's going on -- not worth investing in one for just this, though.   :lol


Scott

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
Re: cheapy 'Zero Delay' USB encoder
« Reply #102 on: March 06, 2014, 03:58:44 pm »
An analog meter is always a good addition to your toolbox.

If you have access to an O'scope, that's an even better way to look at what's going on -- not worth investing in one for just this, though.   :lol


Scott

Already picked up an analog multimeter on my way home from work. Picked it up for your equivalent of $6.
Also, the problem I mentioned earlier seems to have gone away by its own. Weird.
Didnt change anything.

Must be the chinaman screwing with me lol

Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9671
  • Last login:Today at 03:15:42 am
  • Designated spam hunter
Re: cheapy 'Zero Delay' USB encoder
« Reply #103 on: March 06, 2014, 04:47:21 pm »
The gremlins heard about my earlier post and fled. (again)   :laugh2:


Scott
« Last Edit: March 06, 2014, 04:49:17 pm by PL1 »

InfantSorrow

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 71
  • Last login:August 13, 2017, 02:53:22 pm
  • Scrumtrulescent!
Re: cheapy 'Zero Delay' USB encoder
« Reply #104 on: March 06, 2014, 04:57:04 pm »
The gremlins heard about my earlier post and fled. (again)   :laugh2:


Scott

This is why I cloned you, minime. lol

Just finished recompiling mame without nag screens and with directinput.
Man, that took 4 hours! Let me backup this compiled version!
Let me begin phase 2 of my plan... or is it phase 3? I don't know phases.

Tilloux

  • Trade Count: (0)
  • Newbie
  • *
  • Offline Offline
  • Posts: 1
  • Last login:July 21, 2014, 12:17:11 pm
  • I want to get my coin mech working!!!
Re: cheapy 'Zero Delay' USB encoder
« Reply #105 on: July 10, 2014, 08:09:01 am »
Glad to hear it.   :applaud:

Now for the testing and documentation.   ;D

Are you getting chatter on the relay?

You should be able to drop 10 coins and get 10 credits -- test this using an old-school game that only does 1:1 coin/credit ratio.

Also, try putting the zener diode back in -- it should work as a snubber for this setup if you have any chatter.

Do you mind taking a few good pics (side view and front angle view with a contrasting/neutral backdrop) of your coin recognizer for the wiki?


Scott

Scotty

1 coin drop registers a credit :)

I will take pics of everything when Its done and not so crappy looking. Going to solder the relay to the wires from the coin mech and usb encoder.
Right now they are just crudely tied together. (Soldering is another thing I know nothing about, so bear with me lol)

Woodworking.. I am an old pro at that!

Hi InfantSorrow,

I have been reading this thread with great interest because I am struggling to get my coin mech working.
Can you sum up the connexion you did between the pc molex, the relay and the ZD encoder ?
Also can you confirm that the relay I am using is ok http://i1289.photobucket.com/albums/b508/Smeeters/20140702_083131_zpse4a8cc33.jpg

Thanks!






a_netanel

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 18
  • Last login:August 28, 2022, 11:40:07 am
  • I want to build my own arcade controls!
Re: cheapy 'Zero Delay' USB encoder
« Reply #106 on: October 22, 2015, 12:17:19 pm »
Sadly, the OP forgot his promise to post a thorough explanation of the final configuration...
As a total beginner in electronics, I could not understand from this thread what to actually do in order to get the ZD to detect the coin drop as a button press.

The problem is that the coin mech that I'm using (ch-268t) outputs an "Open Collector", and does not simply "closes" a circuit.
But, after some tinkering and reading this document I got it, so I'm here sharing for n00bs like myself :)

This is the wiring diagram that I've used:


I hope it is gonna be helpful for the next guy that attempts this :)

Sushi-man

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 1
  • Last login:January 09, 2016, 11:37:13 am
  • I want to build my own arcade controls!
Re: cheapy 'Zero Delay' USB encoder
« Reply #107 on: January 05, 2016, 11:11:31 pm »
Sadly, the OP forgot his promise to post a thorough explanation of the final configuration...
As a total beginner in electronics, I could not understand from this thread what to actually do in order to get the ZD to detect the coin drop as a button press.

The problem is that the coin mech that I'm using (ch-268t) outputs an "Open Collector", and does not simply "closes" a circuit.
But, after some tinkering and reading this document I got it, so I'm here sharing for n00bs like myself :)

This is the wiring diagram that I've used:


Hello.
I have the same problema but in my case, my coin mech is a comestero rm5 light selfprog and the problem is i dont know where is the NO pin, because all i have is a 10-pin cable going to the interior of my cabinet. Can tou help me on that ? Thank you.

I hope it is gonna be helpful for the next guy that attempts this :)