Hello everyone I am currently trying to get a joystick to control 2 motors however the joystick output for x and y values are outputting into the same wire. I have 2 cytron md-10s hooked up to a arduino uno r2. I have the the joystick wires connected to a bread board here is a link to the schematic:
The wiring looks bad no need to tell me! Whenever I try to analogRead the y-axis wire it reads it however whenever I also move left and write it also read that. So it would up top is 1000, bottom is 0, left is 1000, and right is 0, 500 is the resting. Is there a way to make the x and y axis separate?
Oh, it looks quite decent, really. There does seem to be one issue though. Your table says "Solid green: ground". On your breadboard, solid green does not seem to connect to anything. Start by connecting that one to the GND of your Arduino board and try reading the X and Y signals on solid blue & striped blue once more. Report back if problems persist.
Do you have (good) photos of the inside of the joystick?
How far do you get trying to measure x & y with a multimeter? Assuming the joystick uses two potmeters (which is the common approach), you should be able to easily measure resistance changes.
Ah, there you go. This is the schematic of the joystick:
Measure resistance between the points labeled X and Y on the PCB (both next to the diagonal black box containing the paddle) and GND (pin 2 on J1 and also on J2) with various positions of the paddle. See if those measurements make sense. Then check if you can measure identical values on J1 pins 4 (Y) & 5 (X). With power connected, see if you can measure 3.3V on the points labeled thus on the joystick PCB.
All this allows you to verify correct operation of the joystick and its PCB. If you find problems here, focus on the joystick assembly.
Given the nature and source of the product, I wouldn't hesitate to reach out to the Open Wheelchair Foundation; seems to me they would probably be willing enough to think along with you.