Circuit Sword Joystick calibrate.

Post Reply
jlbp87
Posts: 28
Joined: Tue Jun 27, 2017 11:26 am
Been thanked: 3 times

Circuit Sword Joystick calibrate.

Post by jlbp87 » Sat Jun 09, 2018 3:26 pm

Hi everyone.
I have a problem when calibrating the joystick. I use a PSP 1000 joystick, and even though I recognize it correctly backwards, for some strange reason, the diagonal “down and right” does not work. I have calibrated the joystick 1000 times doing what the manual says, but the truth is that I work well all the directions except that indicated.
PS: I have tested with two joystick to rule out that it is defective. And I have also tried to calibrate it outside the case and I can not find any solution to the problem. This happens to me with Nintendo 64 games, I have not tested with any other platform.

jlbp87
Posts: 28
Joined: Tue Jun 27, 2017 11:26 am
Been thanked: 3 times

Re: Circuit Sword Joystick calibrate.

Post by jlbp87 » Mon Jun 11, 2018 4:06 am

Nobody with the same problem?
I think it's a problem with the calibration software ... because all directions work except the right-down (diagonal) combination.

User avatar
kite
Posts: 972
Joined: Thu May 12, 2016 4:30 am
Location: UK
Has thanked: 246 times
Been thanked: 361 times
Contact:

Re: Circuit Sword Joystick calibrate.

Post by kite » Mon Jun 11, 2018 7:22 am

Can you run the configurator as detailed here: https://github.com/kiteretro/Circuit-Sw ... he-arduino

And what I'd like you to do is leave the joystick in 'idle' position, and run the configurator .. and each time you just press ENTER it will refresh all the data shown to you.. so i'd like to you move the stick in UP, DOWN, LEFT, RIGHT (pressing enter each time) and recording the value it outputs. And then also do the same for UP-RIGHT, DOWN-RIGHT, DOWN-LEFT, UP-LEFT. So to reiterate .. run configurator, record values, hold joystick UP, press ENTER, record values, hold joystick RIGHT, press ENTER, record values..... etc for all the 8 possible directions!

The information i'm interested in is the "JOY 1 enabled: 0 - (X: 901 Y:0)" and specifically the X and Y data.

With all that I should be able to tell you what is going on! Those values are the RAW values that the arduino see's, and not what it outputs to the pi.

Lastly, a picture of how you have soldered it to the joystick and to the CSO
Stock clearance - CLOSED: viewtopic.php?f=38&t=12064
Kite's Mailing List: https://goo.gl/forms/e97uUvPOfUxPWdz82
Kite's FAQ: https://kiteretro.com/faq/


ImageImageImageImageImage

jlbp87
Posts: 28
Joined: Tue Jun 27, 2017 11:26 am
Been thanked: 3 times

Re: Circuit Sword Joystick calibrate.

Post by jlbp87 » Mon Jun 11, 2018 9:10 am

Ok, I hope this is the information you need. Thank you very much!




.***. Monday, 11 June 2018, 2:47:12 pm UTC
***** Linux 4.14.30-v7+ armv7l GNU/Linux
`***'
|*| Filesystem Size Used Avail Use% Mounted on
|*| /dev/root 118G 73G 41G 65% /
..|*|.. Uptime.............: 0 days, 00h06m50s
.*** * ***. Memory.............: 574076kB (Free) / 766780kB (Total)
*******@@** Running Processes..: 103
`*****@@**' IP Address.........: 192.168.100.87
`*******' Temperature........: CPU: 55°C/131°F GPU: 55°C/131°F
`"""' The RetroPie Project, https://retropie.org.uk

pi@retropie:~ $ sudo service cs-osd stop
pi@retropie:~ $ python Circuit-Sword/cs-configure.py
INFO:root:Program Started

GENERAL INFORMATION
Mode pressed: 0
Wifi enabled: 1
Backlight: 100%

VOLUME INFORMATION
Amp enabled: 1
Current volume: 100%
Analog volume enabled: 0
Analog volume adc: 0

JOYSTICK INFORMATION
JOY 1 enabled: 1 - (X: 300 Y:427)
JOY 1 X invert: 1
JOY 1 Y invert: 0
JOY 2 enabled: 0 - (X: 824 Y:0)
JOY 2 X invert: 1
JOY 2 Y invert: 0

MAIN MENU
---------
1 - Joystick calibration
2 - Invert JOY 1 X config
3 - Invert JOY 1 Y config
4 - Invert JOY 2 X config
5 - Invert JOY 2 Y config
6 - Toggle JOY 1 enabled config
7 - Toggle JOY 2 enabled config
8 - Toggle Analog Volume enabled config
ENTER - Refresh information
X - Quit

Enter selection followed by ENTER:

>>> Refreshing..

GENERAL INFORMATION
Mode pressed: 0
Wifi enabled: 1
Backlight: 100%

VOLUME INFORMATION
Amp enabled: 1
Current volume: 100%
Analog volume enabled: 0
Analog volume adc: 11

JOYSTICK INFORMATION
JOY 1 enabled: 1 - (X: 367 Y:228)
JOY 1 X invert: 1
JOY 1 Y invert: 0
JOY 2 enabled: 0 - (X: 890 Y:0)
JOY 2 X invert: 1
JOY 2 Y invert: 0

MAIN MENU
---------
1 - Joystick calibration
2 - Invert JOY 1 X config
3 - Invert JOY 1 Y config
4 - Invert JOY 2 X config
5 - Invert JOY 2 Y config
6 - Toggle JOY 1 enabled config
7 - Toggle JOY 2 enabled config
8 - Toggle Analog Volume enabled config
ENTER - Refresh information
X - Quit

Enter selection followed by ENTER:

>>> Refreshing..

GENERAL INFORMATION
Mode pressed: 0
Wifi enabled: 1
Backlight: 100%

VOLUME INFORMATION
Amp enabled: 1
Current volume: 100%
Analog volume enabled: 0
Analog volume adc: 205

JOYSTICK INFORMATION
JOY 1 enabled: 1 - (X: 198 Y:585)
JOY 1 X invert: 1
JOY 1 Y invert: 0
JOY 2 enabled: 0 - (X: 804 Y:0)
JOY 2 X invert: 1
JOY 2 Y invert: 0

MAIN MENU
---------
1 - Joystick calibration
2 - Invert JOY 1 X config
3 - Invert JOY 1 Y config
4 - Invert JOY 2 X config
5 - Invert JOY 2 Y config
6 - Toggle JOY 1 enabled config
7 - Toggle JOY 2 enabled config
8 - Toggle Analog Volume enabled config
ENTER - Refresh information
X - Quit

Enter selection followed by ENTER:

>>> Refreshing..

GENERAL INFORMATION
Mode pressed: 0
Wifi enabled: 1
Backlight: 100%

VOLUME INFORMATION
Amp enabled: 1
Current volume: 100%
Analog volume enabled: 0
Analog volume adc: 0

JOYSTICK INFORMATION
JOY 1 enabled: 1 - (X: 92 Y:467)
JOY 1 X invert: 1
JOY 1 Y invert: 0
JOY 2 enabled: 0 - (X: 849 Y:0)
JOY 2 X invert: 1
JOY 2 Y invert: 0

MAIN MENU
---------
1 - Joystick calibration
2 - Invert JOY 1 X config
3 - Invert JOY 1 Y config
4 - Invert JOY 2 X config
5 - Invert JOY 2 Y config
6 - Toggle JOY 1 enabled config
7 - Toggle JOY 2 enabled config
8 - Toggle Analog Volume enabled config
ENTER - Refresh information
X - Quit

Enter selection followed by ENTER:

>>> Refreshing..

GENERAL INFORMATION
Mode pressed: 0
Wifi enabled: 1
Backlight: 100%

VOLUME INFORMATION
Amp enabled: 1
Current volume: 100%
Analog volume enabled: 0
Analog volume adc: 0

JOYSTICK INFORMATION
JOY 1 enabled: 1 - (X: 446 Y:447)
JOY 1 X invert: 1
JOY 1 Y invert: 0
JOY 2 enabled: 0 - (X: 830 Y:0)
JOY 2 X invert: 1
JOY 2 Y invert: 0

MAIN MENU
---------
1 - Joystick calibration
2 - Invert JOY 1 X config
3 - Invert JOY 1 Y config
4 - Invert JOY 2 X config
5 - Invert JOY 2 Y config
6 - Toggle JOY 1 enabled config
7 - Toggle JOY 2 enabled config
8 - Toggle Analog Volume enabled config
ENTER - Refresh information
X - Quit

Enter selection followed by ENTER:

>>> Refreshing..

GENERAL INFORMATION
Mode pressed: 0
Wifi enabled: 1
Backlight: 100%

VOLUME INFORMATION
Amp enabled: 1
Current volume: 100%
Analog volume enabled: 0
Analog volume adc: 0

JOYSTICK INFORMATION
JOY 1 enabled: 1 - (X: 489 Y:287)
JOY 1 X invert: 1
JOY 1 Y invert: 0
JOY 2 enabled: 0 - (X: 856 Y:152)
JOY 2 X invert: 1
JOY 2 Y invert: 0

MAIN MENU
---------
1 - Joystick calibration
2 - Invert JOY 1 X config
3 - Invert JOY 1 Y config
4 - Invert JOY 2 X config
5 - Invert JOY 2 Y config
6 - Toggle JOY 1 enabled config
7 - Toggle JOY 2 enabled config
8 - Toggle Analog Volume enabled config
ENTER - Refresh information
X - Quit

Enter selection followed by ENTER:

>>> Refreshing..

GENERAL INFORMATION
Mode pressed: 0
Wifi enabled: 1
Backlight: 100%

VOLUME INFORMATION
Amp enabled: 1
Current volume: 100%
Analog volume enabled: 0
Analog volume adc: 0

JOYSTICK INFORMATION
JOY 1 enabled: 1 - (X: 291 Y:566)
JOY 1 X invert: 1
JOY 1 Y invert: 0
JOY 2 enabled: 0 - (X: 827 Y:0)
JOY 2 X invert: 1
JOY 2 Y invert: 0

MAIN MENU
---------
1 - Joystick calibration
2 - Invert JOY 1 X config
3 - Invert JOY 1 Y config
4 - Invert JOY 2 X config
5 - Invert JOY 2 Y config
6 - Toggle JOY 1 enabled config
7 - Toggle JOY 2 enabled config
8 - Toggle Analog Volume enabled config
ENTER - Refresh information
X - Quit

Enter selection followed by ENTER:

>>> Refreshing..

GENERAL INFORMATION
Mode pressed: 0
Wifi enabled: 1
Backlight: 100%

VOLUME INFORMATION
Amp enabled: 1
Current volume: 100%
Analog volume enabled: 0
Analog volume adc: 188

JOYSTICK INFORMATION
JOY 1 enabled: 1 - (X: 111 Y:534)
JOY 1 X invert: 1
JOY 1 Y invert: 0
JOY 2 enabled: 0 - (X: 833 Y:0)
JOY 2 X invert: 1
JOY 2 Y invert: 0

MAIN MENU
---------
1 - Joystick calibration
2 - Invert JOY 1 X config
3 - Invert JOY 1 Y config
4 - Invert JOY 2 X config
5 - Invert JOY 2 Y config
6 - Toggle JOY 1 enabled config
7 - Toggle JOY 2 enabled config
8 - Toggle Analog Volume enabled config
ENTER - Refresh information
X - Quit

Enter selection followed by ENTER:

>>> Refreshing..

GENERAL INFORMATION
Mode pressed: 0
Wifi enabled: 1
Backlight: 100%

VOLUME INFORMATION
Amp enabled: 1
Current volume: 100%
Analog volume enabled: 0
Analog volume adc: 5

JOYSTICK INFORMATION
JOY 1 enabled: 1 - (X: 136 Y:348)
JOY 1 X invert: 1
JOY 1 Y invert: 0
JOY 2 enabled: 0 - (X: 842 Y:0)
JOY 2 X invert: 1
JOY 2 Y invert: 0

MAIN MENU
---------
1 - Joystick calibration
2 - Invert JOY 1 X config
3 - Invert JOY 1 Y config
4 - Invert JOY 2 X config
5 - Invert JOY 2 Y config
6 - Toggle JOY 1 enabled config
7 - Toggle JOY 2 enabled config
8 - Toggle Analog Volume enabled config
ENTER - Refresh information
X - Quit

Enter selection followed by ENTER:
Attachments
IMG_0626.jpg
IMG_0626.jpg (1.55 MiB) Viewed 6988 times
IMG_0625.jpg
IMG_0625.jpg (2.03 MiB) Viewed 6988 times
IMG_0624.JPG
IMG_0624.JPG (2.97 MiB) Viewed 6988 times

User avatar
kite
Posts: 972
Joined: Thu May 12, 2016 4:30 am
Location: UK
Has thanked: 246 times
Been thanked: 361 times
Contact:

Re: Circuit Sword Joystick calibrate.

Post by kite » Mon Jun 11, 2018 9:18 am

Great that's exactly what I was after!

Your joystick is wired up incorrectly. See the labels on the connector, it says that

RED = 3v3 (vcc)
GREEN = X (left/right)
WHITE = Y (up/down)
BLACK = GND (ground)

Here is the correct pinout:
Image

Wire them up to the corresponding pins :)

Also, your fan isn't pointing at the heatsink :) there is a little arrow on the fan.. but basically where that gap is on the side of the fan, that's where air comes out from!
Stock clearance - CLOSED: viewtopic.php?f=38&t=12064
Kite's Mailing List: https://goo.gl/forms/e97uUvPOfUxPWdz82
Kite's FAQ: https://kiteretro.com/faq/


ImageImageImageImageImage

jlbp87
Posts: 28
Joined: Tue Jun 27, 2017 11:26 am
Been thanked: 3 times

Re: Circuit Sword Joystick calibrate.

Post by jlbp87 » Mon Jun 11, 2018 11:30 am

Indeed, that was the problem. Now everything is solved.
Thank you very much Kite, excellent work! :D
A greeting.

peteboz
Posts: 4
Joined: Mon Mar 06, 2017 7:55 pm
Has thanked: 1 time

Re: Circuit Sword Joystick calibrate.

Post by peteboz » Tue Apr 02, 2019 11:14 am

Hi Kite,

I'm having a little difficulty figuring out how the analog joystick works in emulation station. I've calibrated a psp joystick per the instructions and have the following values:

centered
JOY 1 enabled: 1 - (X: 513 Y:493)

up
JOY 1 enabled: 1 - (X: 179 Y:494)

down
JOY 1 enabled: 1 - (X: 901 Y:466)

left
JOY 1 enabled: 1 - (X: 541 Y:833)

right
JOY 1 enabled: 1 - (X: 609 Y:142)

UP-RIGHT
JOY 1 enabled: 1 - (X: 486 Y:144)

DOWN-RIGHT
JOY 1 enabled: 1 - (X: 880 Y:342)

DOWN-LEFT
JOY 1 enabled: 1 - (X: 618 Y:830)

UP-LEFT
JOY 1 enabled: 1 - (X: 229 Y:674)

I've also assigned LEFT Analog UP/DOWN/LEFT/RIGHT to the appropriate joystick positions on the joystick, but I am unable to use it in any games or the emulation station UI. Additionally, I've set the OSD Use Joystick for menu to "ON" but this doesn't appear to do anything (also rebooting the unit resets this value!)

Any idea what I am doing wrong?

Thanks in advance
IMG_0137.jpg
IMG_0137.jpg (513.85 KiB) Viewed 6154 times
IMG_0135.jpg
IMG_0135.jpg (293.53 KiB) Viewed 6154 times

User avatar
kite
Posts: 972
Joined: Thu May 12, 2016 4:30 am
Location: UK
Has thanked: 246 times
Been thanked: 361 times
Contact:

Re: Circuit Sword Joystick calibrate.

Post by kite » Wed Apr 03, 2019 3:14 am

Your config looks good.

What exactly have you been trying it with? It won't work in the menu unless you enable joystick navigation (google for it) and it'll only work in apps that use the joystick specifically, any that never used a joystick in the first place won't work unless some kind of setting is changed to use the joystick as direction buttons (no idea what supports this).

The menu item you enabled is not related, all that does is change the DPAD to appear as different buttons so that they can be remapped to something else (and toggled on the fly) so leave that as 'OFF'
Stock clearance - CLOSED: viewtopic.php?f=38&t=12064
Kite's Mailing List: https://goo.gl/forms/e97uUvPOfUxPWdz82
Kite's FAQ: https://kiteretro.com/faq/


ImageImageImageImageImage

peteboz
Posts: 4
Joined: Mon Mar 06, 2017 7:55 pm
Has thanked: 1 time

Re: Circuit Sword Joystick calibrate.

Post by peteboz » Wed Apr 03, 2019 5:44 pm

Thanks Kite! I thought I was doing something wrong. I didn’t know each emulator needs special config to make the analog inputs work. I’ll give it a try, thanks again!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest