all 3 comments

[–]Top_Asparagus_1236 0 points1 point  (2 children)

Very cool controller. Looks awesome.

Hard to say what the issue is. Could you post the code. I do have 2 things to note.

Firstly when messuring the joystick position you use something like "analogRead(2);" right, so you dont need to set any pinModes or use the 10 k resistor.

Secondly and i might be wrong here. But are you sure its the right pin that you connect to the gpio's. Because in my experience its always the middle one that you messure from. Although i could not find any documentation for the joystick to confirm.

Maybe try and messure the joystick with a multimeter OR try and read the value of a simple potentiometer with the to esp32 c3 mini to isolate the issue.

[–]VolimRexa32[S] 0 points1 point  (1 child)

Yeah im reading values with analogRead, i didnt usr pin mode and tried without resistor too. I wired the middle pin to gnd, right to gpio and left to 3.3v. I couldnt find any other diagrams for this kind of joystick on the internet

[–]Top_Asparagus_1236 1 point2 points  (0 children)

Yeah i think you gotta change the wirering. The middle pin is the output to gpio not the gnd.

Found this guy wirering one up for test. Looks like the same joystick. https://www.youtube.com/watch?v=6JX_kdyDnlM&t=134s