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
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?
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?
leelinn Posted October 11, 2005 Report Posted October 11, 2005 And do u think possible to use the button of psx controller?
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
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?
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
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?
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
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 ;)
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
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)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now