Problems with analog pin on Nano

actually, I get no change at all when reading a pin and moving the opposite axis

It should be placed from the presumed G27 "analog out" (one lead) to GND (the other lead). Read the voltage across the resistor.

so, based on this wiring diagram, I should put the resistor in between the gnd pin and the pin number 6 from the db9 connector, right ?
imagem_2023-10-31_232938185

No.
One lead goes to whichever analog output is in question and the other goes to GND.

ooohh, got it
so the wires to the arduino pins come out from each of the resistor's leads, is that it ?

I would, at this point, for the time being, use the Arduino only for +5V and GND - to get the story on the shifter thing.

ok, I think I got it
so, in one of the resistor's leads, I will put the analog wire coming out of the db9 and connect it to the Nano board, and on the other lead, the gnd wire and also connect it to the arduino board, like this:

(btw, sorry for this much questions on this subject, I'm not that familiar with resistors)

Why can't you keep it simple -- run the 5V and GND to the DE9, the 10k from 4 to 6, and measure the voltage across the resistor when you mess with the shifter?

Test the thing - for now.

ok, I will get the resistor, measure it, and share my results
thanks A LOT for the help!!!

Pin 4, evidently (?), is supposed to present several voltage levels with regard to the shift lever position/s.
I don't know what that range is - but the differences would have to be more than 50mV (an ADC step is "50mV").
If there aren't any different voltages present then that would seem to me to be a problem.
(And if there's a problem - is it attributable to wiring, a misunderstanding, or what?)

well, I really have no idea of what could be causing this problem, but it really should have a higher variance , as the other pin has like, 2V of variance

But that's going to "D5". Why is that?
And what's supposed to go to "A6"?

I didn't see anything in the github 'documentation' that this chap gets the DE9 numbering. Lots of electric tape though.

that going to D5 was a wiring atributtion mistake on my behalf, but I will correct it to use the an analog pin and check if the variance happens in the same proportion
the A6 is used by some extra buttons the shifter has

about the numbering not being on that github, I think I actually looked the diagram at this forum post: G27 Shifter and buttons - Standalone USB.

The diagram is for the arduino pro micro, so I just changed it to fit the nano

Sorry, but my view of all that is about the same as the github stuff - nothing convincing. But, anyway.
The purpose of documentation is to drive out ambiguity and make assumption unnecessary (lots of heatshrink, electric tape and sideways pictures do not help).
Find those variable voltages.

yeah, you're totally right regarding the documentation of this whole project
I will look for that, thanks a lot for all of the help

Yes thank you

Hey guys, thanks for all the help on this subject
I think I managed to find out what was happening (it was by accident, but it will work for what I'm trying to achieve)
Firstly, I changed my wiring diagram to the db9 connector, which it's this one now:
image

But that wasn't it
After this I started measuring everything with my voltmeter, leading me to discover that my analog port was not connected to this chip on the Nano:

image

So, I did an direct connection with a wire on the analog port I would use, to the respective pin on the chip. (I found out which one measuring the voltage with the voltmeter on each pin on the chip).
Just to register, the chip to the A3 pin, was this one:

So, I did a direct connection, like this:

Anyways, I think the real problem was on my board!
If yyou have an better explanation to this, other than a faulty board, feel free to share your thoughts!!!

Thanks guys for all the answers and help provided on my issue!

Poorly soldered pin, perhaps?

could be, but I soldered it on different analog ports, various times, didn't seem to be the issue tbh
the only thing that solved the issue was the one that I described

Nice.
So then you have analog voltages from the DE9, pins 4 and 8?
(If so, what are the ranges?)

The picture looks like the 'A3' pin has a trace to IC pin 26.
( IC pin 25, circled in violet, is A2. )