Reading 0-100k PC joystick resistance. Best route ADC?
Oldbitcollector (Jeff)
Posts: 8,091
I was motivated by the recent Logitech joystick hacking to purchase several PC joysticks from the local Goodwill today (I spent less than $10 for three) In the idea of creating a simple circuit I can stick on the GGPP board with a salvaged 25pin connector from an old sound card.
The standard PC joystick uses two 0-100k resistors. I'm guessing it's time to dig out an ADC chip as if memory serves the RCtime circuit is really intended for 0-10k.
(A MIGS driver for a PC joystick could be in the works.)
Any wizards want to confirm of suggest alternatives?
OBC
The standard PC joystick uses two 0-100k resistors. I'm guessing it's time to dig out an ADC chip as if memory serves the RCtime circuit is really intended for 0-10k.
(A MIGS driver for a PC joystick could be in the works.)
Any wizards want to confirm of suggest alternatives?
OBC
Comments
You've confirmed my thoughts on this.. I think I'll go with the MCP3208 so that the project will dovetail with the existing materials that Nick posted recently. http://www.gadgetgangster.com/tutorials/382
OBC
One comment on Nick's post: I put a 2.2K resistor between DO and DI (the Propeller is connected to DI); this protects the Propeller IO pin if there's a programming error, and limits the current into the pin when running the MCP320x at 5v.
This might be useful:
-- http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp8.pdf
Not sure what a GGPP board is..... but, in case it has a propeller on it, or the pots are going to be interfaced to a propeller, then is there a reason why you would not use the Sigma Delta ADC concept to convert the pot settings to a digital number? The hardware for that costs 5 cents; two resistors plus one capacitor, and the code to effect that function is less than the code to interface some external ADC. Seems like the best solution to me.
Cheers,
Peter (pjv)
Sorry if my lack of documentation caused any confusion, it's my first OBEX release.
I've successfully used a few ADCs from that line (3202, 3208) and they work fine.
I too got several joysticks fron GoodWill and the salvation army stores.
Also look in the book section
I just got a Z-80 programming textbook for a dollar.
So I've got this wonderful little ADC interface created using a recycled 15pin connector from an old soundcard. (This works extremely well because you only need the top row of pins on the connector, so the weird offset of the second row isn't a problem)
I'm reading right, left, up and down no problem.. But rediscovered something..
You get what you pay for...
Those cheap, plastic, PC joysticks from Goodwill belong there.
Time to get an old "Thrustmaster" off ebay and do this right...
OBC
OBC