#16863 - 06/09/2000 04:33
Simplest Sony control stick interface
|
new poster
Registered: 30/08/2000
Posts: 19
|
I just finished a project interfacing the Sony control stick. It's a very simple design, only three small components! (not including connectors) I fit the whole thing into the DB-9 shroud - very compact. I put up a web page explaining everything, including pictures, schematics and source code so you can do it yourself. Click here to see complete details.
|
Top
|
|
|
|
#16864 - 06/09/2000 05:29
Re: Simplest Sony control stick interface
[Re: CharlieP]
|
carpal tunnel
Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
|
Hmm... Even with my experience as a youngster with my Radio Shack 300-in-1 electronics kit, I'm not smart enough to build one of these. But it looks very cool.
--- My 18gb blue Empeg is in Memphis, and I'm not. Woe is me.
|
Top
|
|
|
|
#16865 - 06/09/2000 12:06
Re: Simplest Sony control stick interface
[Re: CharlieP]
|
carpal tunnel
Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
|
Wow, I'm impressed. You're a sick puppy indeed - I mean, using a 0.1uF cap for you A/D. If I had a hat, I'd take it off to you at this point :)
Hugo
|
Top
|
|
|
|
#16866 - 06/09/2000 15:42
Re: Simplest Sony control stick interface
[Re: CharlieP]
|
carpal tunnel
Registered: 21/05/1999
Posts: 5335
Loc: Cambridge UK
|
That looks a lot like a PC game port interface, and it's cool that you got the timing tight enough for serial comms using the internal oscillator. Any problems with driving RS232 with a TTL signal?
We're going to build one tomorrow!
Rob
|
Top
|
|
|
|
#16867 - 06/09/2000 16:43
Re: Simplest Sony control stick interface
[Re: rob]
|
new poster
Registered: 30/08/2000
Posts: 19
|
That looks a lot like a PC game port interface
Yeah you're right it is similar to the way a PC game port reads a resistance. Luckily the resistors on the stick have values that are pretty far apart.
and it's cool that you got the timing tight enough for serial comms using the internal oscillator.
I was worried that the internal oscillator wouldn't be accurate enough, but it hasn't been a problem. The calibration value tunes it to within 4nS. When I did a web search I found a couple other people who were sending RS-232 using the IRC. I've been playing with it for a few days and used a number of different components, the only one I've had trouble with is the 0.1uF cap. I was using some surface mount caps that I picked up from Digi-Key and were lying around. It's a pain soldering those things so when I was at Radio Shack (Tandy) I picked up a couple of ceramic discs with nice long leads. When I tried them several of the buttons were reading incorrectly. I looked at the package and it said 20% tolerance - I thought "that doesn't sound good". I plugged them into my capacitance meter and they all read 0.125uF. uhh... doesn't sound within 20% to me! I plugged in one of my surface mount caps and it read 0.099uF, tried another 0.098uF.
Any problems with driving RS232 with a TTL signal?
No trouble at all. It's an old trick. I do it all the time. The only time you run into trouble is going through long pieces of cable. Not going over +5V is common, many laptops and other small devices do it. Not going below zero seems at first like it would be a problem, but if you think about it, if they put the threshold at zero they'd get false start bits from noise if the cable were unplugged and the processor would get constant interrupts. In reality they put the threshold above zero.
|
Top
|
|
|
|
#16868 - 06/09/2000 18:42
Re: Simplest Sony control stick interface
[Re: CharlieP]
|
member
Registered: 08/06/2000
Posts: 144
Loc: Ft Lauderdale, FL
|
Any chance you'd be willing to sell pre-programmed PICs? I don't have the ability to program one, but would still like to build your interface.
-Trevor
----- Mk 2, Green 12GB 080000349
_________________________
-Trevor
----- Mk 2, Green 12GB, Tuner, 2.0b11, 080000349
|
Top
|
|
|
|
#16869 - 06/09/2000 20:33
Re: Simplest Sony control stick interface
[Re: trevorp]
|
pooh-bah
Registered: 25/08/2000
Posts: 2413
Loc: NH USA
|
I second that....
-Zeke
just say you weren't paying much attention...
_________________________
WWFSMD?
|
Top
|
|
|
|
#16870 - 06/09/2000 20:34
Re: Simplest Sony control stick interface
[Re: trevorp]
|
new poster
Registered: 30/08/2000
Posts: 19
|
Any chance you'd be willing to sell pre-programmed PICs?
I'd be willing to do that, I'm just not sure how much to charge. Any suggestions?
|
Top
|
|
|
|
#16871 - 06/09/2000 20:37
Re: Simplest Sony control stick interface
[Re: CharlieP]
|
pooh-bah
Registered: 25/08/2000
Posts: 2413
Loc: NH USA
|
What's the bother worth to you? I figure I can do the other bits, but the programming is a major project for me. Don't do it if it's not worth your time.
-Z
just say you weren't paying much attention...
_________________________
WWFSMD?
|
Top
|
|
|
|
#16872 - 06/09/2000 21:58
Re: Simplest Sony control stick interface
[Re: Ezekiel]
|
new poster
Registered: 30/08/2000
Posts: 19
|
What's the bother worth to you? I figure I can do the other bits, but the programming is a major project for me. Don't do it if it's not worth your time.
I'm really not sure. Does $10 sound like too much?
|
Top
|
|
|
|
#16873 - 07/09/2000 02:00
Re: Simplest Sony control stick interface
[Re: CharlieP]
|
veteran
Registered: 16/06/1999
Posts: 1222
Loc: San Francisco, CA
|
In reply to:
I'm really not sure. Does $10 sound like too much
Sounds fair; how about 20 for the whole thing?:) -mark
MK2: 36gb Tivo: 90gb CPU: 120gb ...I think drive manufacturers love me!
|
Top
|
|
|
|
#16874 - 07/09/2000 02:29
Re: Simplest Sony control stick interface
[Re: dionysus]
|
new poster
Registered: 30/08/2000
Posts: 19
|
I see the smiley, but I'm not sure how serious you are. Do you mean $20 for all the parts needed, or do you mean the whole thing completely constructed?
|
Top
|
|
|
|
#16875 - 07/09/2000 03:48
Re: Simplest Sony control stick interface
[Re: CharlieP]
|
member
Registered: 05/10/1999
Posts: 126
Loc: Hants, UK.
|
Hi,
I just finished a project interfacing the Sony control stick. It's a very simple design, only three small components! (not including connectors)
Nice one, simple beyond belief! A couple of points to note: -
You may have problems with this design over the automotive temperature range, the RS232 timings may be a problem using the IRC, RS232 (from memory) about 5% tolerant on timing, the IRC over it's range is about +10/-15%, the unit may fail to communicate in extreme hot & cold conditions. The R/C timing ADC method may fall over again with temperature, capacitor selection, noise are all issues to be wary of. Still, a good low-cost solution that's cheap and easy to construct, well done.
Regards,
_________________________________________ John, (MK1 #114-20G, MK2 #15-36G).
_________________________
[color:yellow]_________________________________________John, (MK1 #114-20G, MK2 #15-36G).</font color=yellow>
|
Top
|
|
|
|
#16876 - 07/09/2000 04:12
Re: Simplest Sony control stick interface
[Re: CharlieP]
|
veteran
Registered: 16/06/1999
Posts: 1222
Loc: San Francisco, CA
|
I'm honestly not sure how much the parts cost; but personally be willing to pay 10-15$ over the cost of the parts for one of those.. -mark
MK2: 36gb Tivo: 90gb CPU: 120gb ...I think drive manufacturers love me!
|
Top
|
|
|
|
#16877 - 07/09/2000 06:17
Re: Simplest Sony control stick interface
[Re: CharlieP]
|
member
Registered: 08/06/2000
Posts: 144
Loc: Ft Lauderdale, FL
|
$10 is reasonable to me.
How much would you charge to build the whole thing? I'd love to build it, just from the cool factor, but if John is worried about a lot of the tolerances, maybe I'd better leave it to someone who completed more than 4 classes in EE...
-Trevor
----- Mk 2, Green 12GB 080000349
_________________________
-Trevor
----- Mk 2, Green 12GB, Tuner, 2.0b11, 080000349
|
Top
|
|
|
|
#16878 - 07/09/2000 12:30
Re: Simplest Sony control stick interface
[Re: dionysus]
|
Pooh-Bah
Registered: 09/09/1999
Posts: 1721
Loc: San Jose, CA
|
The stick controller is $60 ain't it?
Calvin
|
Top
|
|
|
|
#16879 - 07/09/2000 16:02
Re: Simplest Sony control stick interface
[Re: Big John]
|
carpal tunnel
Registered: 21/05/1999
Posts: 5335
Loc: Cambridge UK
|
Funny you should say that. Hugo built one today but it doesn't run (very well). The internal oscillator doesn't appear to be stable enough for repeatable timing of the capacitor discharge, or for timing the RS232 bitrate.
Hugo's going to try fitting a small oscillator tomorrow, which will hopefully fix the problems. I think it'll still fit within a 9W D hood.
Rob
|
Top
|
|
|
|
#16881 - 07/09/2000 16:56
Re: Simplest Sony control stick interface
[Re: tfabris]
|
new poster
Registered: 30/08/2000
Posts: 19
|
The internal oscillator doesn't appear to be stable enough for repeatable timing of the capacitor discharge, or for timing the RS232 bitrate
I will agree that the design may have difficulty during temperature extremes (I haven't tested at anything but room temperature yet). But I've tried it with 8 different chips so far (both plastic and windowed bought at different times) and I haven't had any problems from variances in the internal oscillator.
If it is getting the buttons mixed up, I would say make sure you're using a precision capacitor. If you're having trouble with the RS-232 timing too, I would say check your oscillator calibration value. Put your programmed chip back in the programmer and read it. If value at address 01FFh (or 03FFh if you are using a '509) is 0FFFh then the calibration value got erased.
If you do end up trying an external oscillator you'll need to move the cap and stick off GP4. The only place you can move it is GP2, because all the other pins have internal weak pullups. I'm not sure how the fact that it's a schmitt trigger input will affect the timing. Be sure to change the out_pot constant to reflect your pin change.
If you have any questions, feel free to send e-mail directly, Rob should have my address.
|
Top
|
|
|
|
#16882 - 07/09/2000 18:19
Re: Simplest Sony control stick interface
[Re: CharlieP]
|
pooh-bah
Registered: 25/08/2000
Posts: 2413
Loc: NH USA
|
I'd give $20 just for the programming alone, parts notwithstanding. However, I'd like to be sure the design's gonna work in the long haul. With all the huge brains around here I'm sure that all the pesky details discussed above will be sorted out. I'm really starting to want one as my drives home get darker and darker. The Kenwood remote tends to wander.
-Zeke
just say you weren't paying much attention...
_________________________
WWFSMD?
|
Top
|
|
|
|
#16883 - 08/09/2000 04:31
Re: Simplest Sony control stick interface
[Re: Ezekiel]
|
carpal tunnel
Registered: 21/05/1999
Posts: 5335
Loc: Cambridge UK
|
If Hugo gets it working we're going to install one in our demonstrator. It will then get a lot of testing and use.
Rob
|
Top
|
|
|
|
#16884 - 10/09/2000 19:04
Re: Simplest Sony control stick interface
[Re: dionysus]
|
enthusiast
Registered: 30/09/1999
Posts: 252
|
How about $30 shipped. I'll take one. Where do I send my money!
_________________________
Sonic Blue 03 Cobra Vert Owner!!!
|
Top
|
|
|
|
#16885 - 11/09/2000 06:36
Re: Simplest Sony control stick interface
[Re: 94cobra]
|
carpal tunnel
Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
|
Just a "me too." I'd certainly pay a reasonable amount for this interface once the kinks are worked out. I'm not smart enough to do it myself. :)
--- MkII 080000554
|
Top
|
|
|
|
#16886 - 13/11/2000 11:32
Re: Simplest Sony control stick interface
[Re: tonyc]
|
carpal tunnel
Registered: 08/03/2000
Posts: 12338
Loc: Sterling, VA
|
Hehe, maybe you should have sold your design to empeg and they could have marketed it. DiGNAN
_________________________
Matt
|
Top
|
|
|
|
|
|