Simplest Sony control stick interface

Posted by: CharlieP

Simplest Sony control stick interface - 06/09/2000 04:33



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.

Posted by: tonyc

Re: Simplest Sony control stick interface - 06/09/2000 05:29

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.
Posted by: altman

Re: Simplest Sony control stick interface - 06/09/2000 12:06

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


Posted by: rob

Re: Simplest Sony control stick interface - 06/09/2000 15:42

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
Posted by: CharlieP

Re: Simplest Sony control stick interface - 06/09/2000 16:43

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.


Posted by: trevorp

Re: Simplest Sony control stick interface - 06/09/2000 18:42

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
Posted by: Ezekiel

Re: Simplest Sony control stick interface - 06/09/2000 20:33

I second that....

-Zeke

just say you weren't paying much attention...
Posted by: CharlieP

Re: Simplest Sony control stick interface - 06/09/2000 20:34

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?


Posted by: Ezekiel

Re: Simplest Sony control stick interface - 06/09/2000 20:37

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...
Posted by: CharlieP

Re: Simplest Sony control stick interface - 06/09/2000 21:58

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?


Posted by: dionysus

Re: Simplest Sony control stick interface - 07/09/2000 02:00

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!

Posted by: CharlieP

Re: Simplest Sony control stick interface - 07/09/2000 02:29

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?


Posted by: Big John

Re: Simplest Sony control stick interface - 07/09/2000 03:48

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).
Posted by: dionysus

Re: Simplest Sony control stick interface - 07/09/2000 04:12

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!
Posted by: trevorp

Re: Simplest Sony control stick interface - 07/09/2000 06:17

$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
Posted by: eternalsun

Re: Simplest Sony control stick interface - 07/09/2000 12:30

The stick controller is $60 ain't it?

Calvin

Posted by: rob

Re: Simplest Sony control stick interface - 07/09/2000 16:02

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


Posted by: tfabris

Re: Simplest Sony control stick interface - 07/09/2000 16:07

The internal oscillator doesn't appear to be stable enough for repeatable timing of the capacitor discharge, or for timing the RS232 bitrate.

Must be that dirty English electricity you've got over there that's screwing it up.

___________
Tony Fabris
Posted by: CharlieP

Re: Simplest Sony control stick interface - 07/09/2000 16:56

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.


Posted by: Ezekiel

Re: Simplest Sony control stick interface - 07/09/2000 18:19

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...
Posted by: rob

Re: Simplest Sony control stick interface - 08/09/2000 04:31

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


Posted by: 94cobra

Re: Simplest Sony control stick interface - 10/09/2000 19:04

How about $30 shipped. I'll take one. Where do I send my money!

Posted by: tonyc

Re: Simplest Sony control stick interface - 11/09/2000 06:36

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
Posted by: Dignan

Re: Simplest Sony control stick interface - 13/11/2000 11:32

Hehe, maybe you should have sold your design to empeg and they could have marketed it.

DiGNAN