SounDuke Posted October 9, 2005 Report Posted October 9, 2005 Hello everyone, I stuffed an analog stick you can easily found on old PSX dual shock joypads on my MB. It works very well, except for a mechanical issue which cause the stick not to come in a precise central position, so I have values oscillating between 60~70 (CC). I thought this happens because of AIN driver sensitivity to slight changes in the wiper voltage. How To obtain a precise return of the stick to value 64? Maybe reducing AIN deadband (where do I need to modify the main.asm to reduce deadband?). Thanks in advance Quote
leelinn Posted October 9, 2005 Report Posted October 9, 2005 Hello everyone, I stuffed an analog stick you can easily found on old PSX dual shock joypads on my MB. It works very well, except for a mechanical issue which cause the stick not to come in a precise central position, so I have values oscillating between 60~70 (CC). I thought this happens because of AIN driver sensitivity to slight changes in the wiper voltage. How To obtain a precise return of the stick to value 64? Maybe reducing AIN deadband (where do I need to modify the main.asm to reduce deadband?). Thanks in advanceDo u think that the analog joystick of an old psx works with a midibox SID too? Quote
SounDuke Posted October 10, 2005 Author Report Posted October 10, 2005 The MB sid control surface allows only encoders (DIN's) as far as I know, but people have used joysticks from Elfa and from Alltronics so I suppose the answer is yes. The problem is that these sticks are not precise (Thorsten wrote high resolution 10 bits AIN drivers) so the central position is different each time the stick returns to the centre. Some code or change in main.asm is needed. Does anyone know a solution? Quote
leelinn Posted October 11, 2005 Report Posted October 11, 2005 And do u think possible to use the button of psx controller? Quote
moebius Posted October 11, 2005 Report Posted October 11, 2005 And do u think possible to use the button of psx controller?Well, Of Course! :) By not using the connector and the protocol used by PSX, but directly connecting joystick and buttons to midibox.M Quote
leelinn Posted October 11, 2005 Report Posted October 11, 2005 Well, Of Course! :) By not using the connector and the protocol used by PSX, but directly connecting joystick and buttons to midibox.MJust a little question:i need DINX4 module for button...but for joystick? i need AIN module obligatorily? Quote
moebius Posted October 11, 2005 Report Posted October 11, 2005 Just a little question:i need DINX4 module for button...but for joystick? i need AIN module obligatorily?No, I think.. just search for SID and joystick. I think You'll find needed code modifications from there.Bye, Moebius Quote
SounDuke Posted October 12, 2005 Author Report Posted October 12, 2005 I don't recommend the use of psx joystick buttons as they are of relative low quality (rubber switch) and difficult to install on a panel without precise drilling on the panel.Hey moebius you showed up :D could you tell me what do I need to modify on the main.asm file of midibox64 to reduce deadband of ain driver? Quote
moebius Posted October 12, 2005 Report Posted October 12, 2005 Damn! I got caught ;D(Eh, sorry folks.. not been in a midiboxin' mood lately)Search main.asm for "deadband", modify line: movlw 0x07 ; set deadband to 7 to movlw 0x15 ; set deadband to 15 See:http://www.midibox.org/forum/index.php?topic=5272.msg32427#msg32427Soo, this also drops the resolution to 6bitsBye, Moebius Quote
SounDuke Posted October 12, 2005 Author Report Posted October 12, 2005 thanks moebius :D still in debt for lcd troubles issue you helped me to solve time ago ;) Quote
leelinn Posted October 12, 2005 Report Posted October 12, 2005 No, I think.. just search for SID and joystick. I think You'll find needed code modifications from there.Bye, MoebiusYeah!!! i remember this. Look this link for help: http://www.midibox.org/forum/index.php?topic=4885.0Â Â --->a guy gave me the code but for mios 1.7 In mios 1.8 there is not the "main.hex" file. What file have i to modify?If i understood everything, i have to connect joystick on the J5 of master Core Module, is it right?leelinn Quote
SounDuke Posted October 12, 2005 Author Report Posted October 12, 2005 yes you can connect up 8 pots to J5 but you need to run the application in unmuxed mode (check main.asm file with mplabIDE) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.