Jump to content
IGNORED

Custom 5200 controller


Devalis

Recommended Posts

BA-DUM! I have an idea!! The 10K pot controls the pulse width of an oscillator that in turn turns the LED on and off. Either dark, or full brightness, nothing in between. This light shines on the LDR which has a capacitor in parallel to it to smooth out the PWM signal. You'd want a small capacitor to still be able to achieve fast transients of movement. TAU [the greek letter] =R*C, R is 1M Ohm at max so you go from there and calculate the minimum frequency of the oscillator to achieve a full swing of the movement extremes in a given time.

 

Let's assume you move the stick left-right-left-right-.... 10 times a second. You nee approximately 5 TAU to fully charge or discharge the capacitor. 5*TAU=1/10 = 0.1 seconds -> TAU=0.02 seconds. C=TAU/R = 0.02µF= 20 nF. According to Nyquist's theorem, we need to sample at least twice the amount of the frequency we want to measure, so T=0.02/2=0.01 sec. With the frequency f=1/T we get 100 Hz for the oscillator's frequency.

 

 

Now here comes the electrically easy part

 

You could just have the LED shine through a piece of plastic with varying opacity fixed to the stick. As the stick gets moved around, so does the plastic piece, resulting in different amounts of light on the LDR. Such a piece of plastic can be made by printing a dithering on it. That thing needs NO CLEANING EVER :D but is probably not that easy to build.

Link to comment
Share on other sites

Yep, it's what I thought:

From wikipedia:

 

The N64 Analog stick does not use analog potentiometers, rather using light emitting diodes and photo detectors controlled by sensor wheels. The sensor wheels are plastic hubs which produce a shutter effect allowing for an accurate direct digital read. The sensor wheels give direct correlation to the stick position, as opposed to potentiometers, which can change resistance values over time.

 

So I suppose you could rip the assembly out and change the sensors if need be.

Link to comment
Share on other sites

  • 3 months later...

That's pretty cool. So it is possible to run a digital joystick to it... The part where you need to use the pots in conjunction with it is confusing though. I wish I had more electronics skill.

Link to comment
Share on other sites

The only issue I would have is figuring out how to wire the digital joystick to the pots. I would probably need to refer to a 5200 pinout diagram or something. The buttons are pretty straight forward.

Link to comment
Share on other sites

to me wiring the joystick to the pots was easy the matrix array was hard cause if you put one wire in wrong it will confuse the heck out of you

 

here is how you do it you have the 3 legs of a pot (i like canabalizing 2600 paddles) also you can end up using the paddle for kaboom

 

microswitch joystick is easy cause you can take advantage of the nc, no, common terminals

 

for up and left you want to use the common and the no terminals

for down and right you want to use the common and nc terminals

 

assuming you have 2 wires coming out each of your u,d,l,r switches

 

 

you take one left and one right direction wire and wire both to pot middle and put one on one side and one on the other

 

repeat for the uppy downy

 

 

then from your 5200 wire you will be using pins 9,10,11 take pin nine and make it 2 wires you know y off it then you will have your direction wires (ud) and (lr)

 

wire but those wires on the outer legs of the pot

 

this is why it looks like a freaky wiring nightmare cause you got like 12 wires all tangled around in there for the directions it can be neater if you use the wire that is a fused pair like an extension cord or earbuds or some twisted pairs from a network wire

 

 

easy peasy

 

if you can find some type of matrix keypad it looks a bit better than an array of pushbuttons

Edited by bohoki
Link to comment
Share on other sites

oh yea may be obvious but then the joystick is upside down the down switch is the up and the top the botton same withe the L&R since the joystick is a lever with the fulcrum in the middle i did that once and had to unsolder everything if you solder to push on blade connectors you can unplug them easier and it also is less of a chance you will damage the switch with soldering iron heat

Link to comment
Share on other sites

I was just going over your instructions, and I'm a little confused with...

 

"assuming you have 2 wires coming out each of your u,d,l,r switches

you take one left and one right direction wire and wire both to pot middle and put one on one side and one on the other

repeat for the uppy downy"

 

"then from your 5200 wire you will be using pins 9,10,11 take pin nine and make it 2 wires you know y off it then you will have your direction wires (ud) and (lr)

wire but those wires on the outer legs of the pot"

 

I not sure what you mean by this. Could you explain this again differently?

 

Not trying to be a smartass, but If you break it down for me into separate steps, It should help.

 

I'm trying to convert your info into a diagram. So far this is what I have...

 

IMG_2358_zpsaed4d9bb.jpg

Edited by 7800
Link to comment
Share on other sites

it may be best to walkthrough this in pms since i don't want to clutter up the group

 

your mistake is that the pots are an x pot and a y pot one for uppy downy one for lefty righty

 

joydraw_zps055b0817.jpg

 

its hard to make a physical diagram because it gets cluttered with jumps its better to have a schematic and know how to extrapolate from it

but here it goes

 

5200joydiagram-1.jpgsince they are switches it doesnt matter what orientation each pair is

Edited by bohoki
Link to comment
Share on other sites

oh wow... I was way off. Looks like just one pot is being used then... Yeah, PM's would be better. If you don't mind I'll hit you up when the time comes for me to build this. Thanks dude!

Link to comment
Share on other sites

oh wow... I was way off. Looks like just one pot is being used then... Yeah, PM's would be better. If you don't mind I'll hit you up when the time comes for me to build this. Thanks dude!

 

I actually think it is helpful to see the Q&A on this.

Link to comment
Share on other sites

If you want to use a Atari 2600, Sega Master System, or Sega Genesis controller with the 5200, use this simple circuit:

 

http://atariage.com/forums/topic/192363-masterplay-clone/page__st__25

 

It can also be used as a paddle controller.

 

I don't know the best way to get a modern analog controller to work though. That is rather complicated.

Link to comment
Share on other sites

I was weighing out the pros and cons of the 5200 stick... and I would probably be happy with just better fire buttons. I'm waiting for 2 new Rev 9 flexies, so when I take it apart I'm going to lube up the pots and sliders while I'm in there. I think the stick will be better once lubed... Not much room for any side button modifications though. :(

Link to comment
Share on other sites

I was weighing out the pros and cons of the 5200 stick... and I would probably be happy with just better fire buttons. I'm waiting for 2 new Rev 9 flexies, so when I take it apart I'm going to lube up the pots and sliders while I'm in there. I think the stick will be better once lubed... Not much room for any side button modifications though. :(

 

You probably be more happy if you get the gold reflex and gold buttons. I like it and yes it alittle more $ but it safe you in the long run

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...