Main > Main Forum
Any plans or pics for rotary interfaces.
<< < (4/7) > >>
PacManFan:
I've used the AVR2313 Microcontrollers before. I actually did a prototype interface for the rotary joysticks. The code and schematic was fairly simple. I like the 2313's , they are easy to work with. Where did you get them for 2.70$ I paid 3.75$ for each of mine.

You are going to need 2 of them to get enough inputs unless you use another chip to do a A/B muliplexer.

edit:
I hadn't thought about crossing the wires either, that's a great idea, that way you can just use 1 uC.

I'd like to see the schematic and code you come up with. I'd be more than happy to share mine.

-PMF
rdagger:

--- Quote ---Topic Summary  
Posted by: PacManFan  Posted on: Today at 01:12:23pm  
Where did you get them for 2.70$ I paid 3.75$ for each of mine.  

--- End quote ---

I bought 5 on Ebay for $2.50 each.  Shipping was $1.  They are 10PI which are suppose to have a higher temp rating then the 10PC.


--- Quote ---Topic Summary  
Posted by: PacManFan  Posted on: Today at 01:12:23pm  
I've used the AVR2313 Microcontrollers before.

--- End quote ---

I'm trying to clone a Kanda STK200 programmer cable.  I've found 3 schematics using 74HC244 Octal Buffers to clean up the programming.  However, they are all slightly different in how they handle the looping and grounding of the pins coming off the DB25 parallel.  How do you program your AVR chips?
geekbrain:
Eightbit - I do not expect everything related to MAME to be free.  I did not expect Druin to share the hex file.  What I did expect was the courtesy of a response to the request, of which at least three were sent.  I was not looking for a detailed response either.  Two simple keystrokes (N & O) and one mouseclick would have sufficed.  THIS is what made ME mad.

Yes, I did consider selling a circuit.  As I also stated, I was willing to share the code (for free, and still am) with those who have the ability to make use of it.  Since this is a hobby (for most of us; for others an obsession), I believe some of us get satisfaction from the construction of our project.  Some will build entirely from scratch, others will convert an existing cabinet, while others still purchase a pre-made ready to go cabinet, all controls/PC/etc. included.  To each his own.

I choose the first route.  I am building a cabinet from scratch.  I did purchase an IPAC though; time constraints and learning curve in designing factored into this decision.  Thanks to competition I had my choice of encoder:  Hagstrom, Keywiz, IPAC, hacked keyboard, etc.  This provides a range of prices and features.

Code is intellectual property, the owner of which can do whatever they please.  License it, charge for it, share it, whatever.  Once code has been written it costs absolutely nothing to post it.  Building a PCB requires time and effort and the designer/builder has every reason in the world to be compensated for their time.

I believe you missed my point.  This whole effort is about sharing.  Many posts to this forum are from those sharing their experiences, ideas and opinions.  That includes Saint who shared his storage and bandwidth to host this forum.  Without the sharing, MAME would be nowhere are good as it is today.  As I stated in my first post, a complete stranger halfway across the country went WAY out of his way to take detailed dimensions of a cabinet for me.  I am willing to share my code when it's completed.  Use it, don't use, it's up to you.  I am offering it for free.  If you want me to program a part for you do you think it's unreasonable to charge a couple of bucks for my time and effort to ship it back?  My point was Druin chose not to even respond.  Period.  He has every right to his code as well as every right to make a couple of bucks building a PCB.

Andy (the guy who makes the IPAC) responded quickly to my request regarding debounce time on the uP he uses.  He could have avoided my request as well.  But he didn't - it's the customer service which adds value to the product.  Well enough of my rant.  You're entitled to your opinion and I'm entitled to mine.  Hopefully I've clarified my position to those who mistook my earlier post.
rdagger:
I just completed my rotary interface and it works. ;D  Total cost of the interface is $7.88.  I also spent $1.15 to build an AVR programmer.  I have to give props to Druin because his design provided me with many insights.   I took the trick of crossing 12 wires down to 6 one step further by crossing 12 down to 3 wires.  Since the interface only needs to determine clockwise or counter-clockwise, 3 wires is sufficient and simplifies the design.  Another difference in my design is the use of a single AVR instead of 2 PIC's.  The single AVR has more than enough speed to handle 2 joysticks.  I'm actually running the processor at only 4MHz, because my local electronic store was out of 10MHz resonators.  Yet even at 40% speed it has no trouble keeping up with fast moving rotations.  I also included a 10 pin connector on the board that allows for in-system programming (ISP).  The ISP port connects to my computer and allows me to download updates to microcontroller without having to pull the board out.  This was a fun project and it was the first time I have worked with microcontrollers.  In terms of time, I spent about a
zero-one:
rdagger: That's awesome. It looks like your solution is a great and simplified one. Do you plan on posting a schematic, part list and the code? I'd love to build myself one of these too but I was too intimidated to try my hand at programming micro-controllers. With all the parts I'm sure that I can put it together even with my own mediocre soldering skills.

Again, very impressive.

[edit]
I was just looking at the picture again and i'm confused. Where are the outputs to the keyboard encoder for both joysticks? I would have expected 5 wires somewhere for ground, P1 Rotate Right, P1 Rotate Left, P2 Rotate Right, and P2 Rotate Left. All I see is are the blue/black, and green/black wires which could be good for only one joystick. What am I missing?

Also I noticed that you put the resonator in a socket. Wise man!
[edit]

Too bad that the rotary joysticks keep getting more expensive.

Cheers.
Navigation
Message Index
Next page
Previous page

Go to full version